king
2023-03-11 d1d9dc29318cb2a9a466246adff7b78fe36cf623
src/templates/zshare/formconfig.jsx
@@ -2408,6 +2408,23 @@
    roleList = []
  }
  let msgTemps = sessionStorage.getItem('msgTemplate')
  if (msgTemps) {
    try {
      msgTemps = JSON.parse(msgTemps)
      msgTemps = msgTemps.map(item => {
        item.value = item.ID
        item.label = item.SignName + ' - ' + item.TemplateCode
        return item
      })
    } catch (e) {
      msgTemps = []
    }
  } else {
    msgTemps = []
  }
  inputfields = inputfields.map((item, index) => {
    item.label = `${index + 1}、${item.field || ''}(${item.label})`
    return item
@@ -2498,6 +2515,9 @@
  }, {
    value: 'formula',
    text: '公式'
  }, {
    value: 'vercode',
    text: '验证码'
  }]
  let _fieldlength = 50
@@ -2560,6 +2580,9 @@
    }, {
      value: 'formula',
      text: '公式'
    }, {
      value: 'vercode',
      text: '验证码'
    }]
  }
@@ -3458,11 +3481,20 @@
      }]
    },
    {
      type: 'text',
      key: 'splitctrl',
      label: '控制字段',
      initVal: card.splitctrl || '',
      tooltip: '选行且行中对应字段值为空时隐藏。',
      required: false,
      options: columns
    },
    {
      type: 'radio',
      key: 'place',
      label: '排列',
      initVal: card.place || 'left_right',
      tooltip: '提示文字与输入框的位置关系。',
      tooltip: '提示文字与输入框的位置关系。注:选择器、日期表单在表单样式为阴影时有效',
      forbid: appType !== 'mob',
      options: [{
        value: 'left_right',
@@ -3632,6 +3664,38 @@
      }]
    },
    {
      type: 'radio',
      key: 'sendType',
      label: '发送方式',
      initVal: card.sendType || 'local',
      tooltip: '短信发送时是否通过单点系统。',
      required: false,
      options: [{
        value: 'local',
        text: '本地'
      }, {
        value: 'sso',
        text: '单点'
      }]
    },
    {
      type: 'select',
      key: 'phoneField',
      label: '手机号',
      initVal: card.phoneField || '',
      required: true,
      options: inputfields
    },
    {
      type: 'select',
      key: 'smsId',
      label: '短信模板',
      initVal: card.smsId || '',
      tooltip: '请选择适当的短信模板。',
      required: true,
      options: msgTemps
    },
    {
      type: 'number',
      key: 'span',
      min: 1,