| | |
| | | } 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') |
| | | } |
| | | } |
| | | |
| | |
| | | shows.push('reason') |
| | | } |
| | | } |
| | | } else { |
| | | } else if (!(openType === 'funcbutton' && this.record.funcType === 'expPdf')) { |
| | | if (openType !== 'excelOut') { |
| | | reOptions.control = [ |
| | | { value: '', text: '无' }, |
| | |
| | | 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 + '!' } |
| | |
| | | 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( |
| | |
| | | } |
| | | }) |
| | | } |
| | | } else if (values.OpenType === 'funcbutton' && values.funcType === 'expPdf') { |
| | | values.Ot = 'notRequired' |
| | | } |
| | | |
| | | if (values.outerBlacklist) { |