king
2024-01-02 84aa4415e0702faf99a20efbedadd6ab36d7a962
src/menu/components/share/actioncomponent/actionform/index.jsx
@@ -505,6 +505,8 @@
      } else if (_funcType === 'refund') {
        shows.push('Ot', 'execSuccess', 'execError', 'syncComponent', 'openmenu')
        reOptions.Ot = requireOptions.filter(op => ['requiredSgl'].includes(op.value))
      // } else if (_funcType === 'expPdf') {
      //   shows.push('exportType')
      }
    }
    
@@ -523,7 +525,7 @@
          shows.push('reason')
        }
      }
    } else {
    } else if (!(openType === 'funcbutton' && this.record.funcType === 'expPdf')) {
      if (openType !== 'excelOut') {
        reOptions.control = [
          { value: '', text: '无' },
@@ -911,7 +913,7 @@
        rules = [
          { required: item.required, message: '请添加' + item.label + '!' }
        ]
        content = (<MKTable tip={''} columns={item.columns || []} actions={[]}/>)
        content = (<MKTable columns={item.columns || []} actions={item.actions}/>)
      } else if (item.type === 'icon') {
        rules = [
          { required: item.required, message: '请选择' + item.label + '!' }
@@ -949,18 +951,8 @@
        content = <KeyInterface type={item.key === 'exInterface' ? 'develop' : 'product'}/>
      }
      if (help && /func:/.test(help)) {
        try {
          // eslint-disable-next-line
          let func = new Function('record', help.replace(/func:/, ''))
          help = func(this.record)
          if (help) {
            help = <span dangerouslySetInnerHTML={{ __html: help }}></span>
          }
        } catch (e) {
          help = ''
          console.warn(e)
        }
      if (help && typeof(help) === 'function') {
        help = help(this.record)
      }
      fields.push(
@@ -1093,6 +1085,8 @@
                }
              })
            }
          } else if (values.OpenType === 'funcbutton' && values.funcType === 'expPdf') {
            values.Ot = 'notRequired'
          }
          
          if (values.outerBlacklist) {