import {FormProps, FormSchema} from '/@/components/Form'; import {BasicColumn} from '/@/components/Table'; export const searchFormSchema: FormSchema[] = [ { field: 'operationId', label: '主表id', component: 'Input', }, { field: 'formType', label: '表单类型', component: 'Input', }, { field: 'formCode', label: '表单编码', component: 'Input', }, { field: 'dataId', label: '主表或子表的id', component: 'Input', }, { field: 'fieldCode', label: '变更字段编码', component: 'Input', }, { field: 'fieldName', label: '变更字段名', component: 'Input', }, { field: 'fieldType', label: '变更字段类型', component: 'Input', }, { field: 'oldValue', label: '变更前的值', component: 'Input', }, { field: 'newValue', label: '变更后的值', component: 'Input', }, { field: 'changeType', label: '变更类型', component: 'Input', }, ]; export const columns: BasicColumn[] = [ { dataIndex: 'operationId', title: '主表id', componentType: 'input', align: 'left', sorter: true, }, { dataIndex: 'formType', title: '表单类型', componentType: 'input', align: 'left', sorter: true, }, { dataIndex: 'formCode', title: '表单编码', componentType: 'input', align: 'left', sorter: true, }, { dataIndex: 'dataId', title: '主表或子表的id', componentType: 'input', align: 'left', sorter: true, }, { dataIndex: 'fieldCode', title: '变更字段编码', componentType: 'input', align: 'left', sorter: true, }, { dataIndex: 'fieldName', title: '变更字段名', componentType: 'input', align: 'left', sorter: true, }, { dataIndex: 'fieldType', title: '变更字段类型', componentType: 'input', align: 'left', sorter: true, }, { dataIndex: 'oldValue', title: '变更前的值', componentType: 'input', align: 'left', sorter: true, }, { dataIndex: 'newValue', title: '变更后的值', componentType: 'input', align: 'left', sorter: true, }, { dataIndex: 'changeType', title: '变更类型', componentType: 'input', align: 'left', sorter: true, }, ]; //表单事件 export const formEventConfigs = { 0: [ { type: 'circle', color: '#2774ff', text: '开始节点', icon: '#icon-kaishi', bgcColor: '#D8E5FF', isUserDefined: false, }, { color: '#F6AB01', icon: '#icon-chushihua', text: '初始化表单', bgcColor: '#f9f5ea', isUserDefined: false, nodeInfo: {processEvent: []}, }, ], 1: [ { color: '#B36EDB', icon: '#icon-shujufenxi', text: '获取表单数据', detail: '(新增无此操作)', bgcColor: '#F8F2FC', isUserDefined: false, nodeInfo: {processEvent: []}, }, ], 2: [ { color: '#F8625C', icon: '#icon-jiazai', text: '加载表单', bgcColor: '#FFF1F1', isUserDefined: false, nodeInfo: {processEvent: []}, }, ], 3: [ { color: '#6C6AE0', icon: '#icon-jsontijiao', text: '提交表单', bgcColor: '#F5F4FF', isUserDefined: false, nodeInfo: {processEvent: []}, }, ], 4: [ { type: 'circle', color: '#F8625C', text: '结束节点', icon: '#icon-jieshuzhiliao', bgcColor: '#FFD6D6', isLast: true, isUserDefined: false, }, ], }; export const formProps: FormProps = { labelCol: {span: 3, offset: 0}, labelAlign: 'right', layout: 'horizontal', size: 'default', schemas: [ { key: '1f7a5fa213f549748f3d00e177d86b1b', field: 'operationId', label: '主表id', type: 'input', component: 'Input', colProps: {span: 24}, defaultValue: '', componentProps: { width: '100%', span: '', defaultValue: '', labelWidthMode: 'fix', labelFixWidth: 120, responsive: true, respNewRow: false, placeholder: '请输入主表id', maxlength: null, prefix: '', suffix: '', addonBefore: '', addonAfter: '', disabled: true, allowClear: false, showLabel: true, required: false, rules: [], events: {}, isSave: false, isShow: true, scan: false, style: {width: '100%'}, }, }, { key: '524a5c581073419d8e8daff9e461695a', field: 'formType', label: '表单类型', type: 'input', component: 'Input', colProps: {span: 24}, defaultValue: '', componentProps: { width: '100%', span: '', defaultValue: '', labelWidthMode: 'fix', labelFixWidth: 120, responsive: true, respNewRow: false, placeholder: '请输入表单类型', maxlength: null, prefix: '', suffix: '', addonBefore: '', addonAfter: '', disabled: true, allowClear: false, showLabel: true, required: false, rules: [], events: {}, isSave: false, isShow: true, scan: false, style: {width: '100%'}, }, }, { key: 'd74b7a7bede24820a6c85677a6cdb5fe', field: 'formCode', label: '表单编码', type: 'input', component: 'Input', colProps: {span: 24}, defaultValue: '', componentProps: { width: '100%', span: '', defaultValue: '', labelWidthMode: 'fix', labelFixWidth: 120, responsive: true, respNewRow: false, placeholder: '请输入表单编码', maxlength: null, prefix: '', suffix: '', addonBefore: '', addonAfter: '', disabled: true, allowClear: false, showLabel: true, required: false, rules: [], events: {}, isSave: false, isShow: true, scan: false, style: {width: '100%'}, }, }, { key: '3d499852001044c0a6230e5ce18532d2', field: 'dataId', label: '主表或子表的id', type: 'input', component: 'Input', colProps: {span: 24}, defaultValue: '', componentProps: { width: '100%', span: '', defaultValue: '', labelWidthMode: 'fix', labelFixWidth: 120, responsive: true, respNewRow: false, placeholder: '请输入主表或子表的id', maxlength: null, prefix: '', suffix: '', addonBefore: '', addonAfter: '', disabled: true, allowClear: false, showLabel: true, required: false, rules: [], events: {}, isSave: false, isShow: true, scan: false, style: {width: '100%'}, }, }, { key: '32b4ed61b5504f74943ead2cdc770baf', field: 'fieldCode', label: '变更字段编码', type: 'input', component: 'Input', colProps: {span: 24}, defaultValue: '', componentProps: { width: '100%', span: '', defaultValue: '', labelWidthMode: 'fix', labelFixWidth: 120, responsive: true, respNewRow: false, placeholder: '请输入变更字段编码', maxlength: null, prefix: '', suffix: '', addonBefore: '', addonAfter: '', disabled: true, allowClear: false, showLabel: true, required: false, rules: [], events: {}, isSave: false, isShow: true, scan: false, style: {width: '100%'}, }, }, { key: 'f08ff059b6db43608e6ecf5f195f92bb', field: 'fieldName', label: '变更字段名', type: 'input', component: 'Input', colProps: {span: 24}, defaultValue: '', componentProps: { width: '100%', span: '', defaultValue: '', labelWidthMode: 'fix', labelFixWidth: 120, responsive: true, respNewRow: false, placeholder: '请输入变更字段名', maxlength: null, prefix: '', suffix: '', addonBefore: '', addonAfter: '', disabled: true, allowClear: false, showLabel: true, required: false, rules: [], events: {}, isSave: false, isShow: true, scan: false, style: {width: '100%'}, }, }, { key: '4f11bf8e79484cc7a694b52c9524c371', field: 'fieldType', label: '变更字段类型', type: 'input', component: 'Input', colProps: {span: 24}, defaultValue: '', componentProps: { width: '100%', span: '', defaultValue: '', labelWidthMode: 'fix', labelFixWidth: 120, responsive: true, respNewRow: false, placeholder: '请输入变更字段类型', maxlength: null, prefix: '', suffix: '', addonBefore: '', addonAfter: '', disabled: true, allowClear: false, showLabel: true, required: false, rules: [], events: {}, isSave: false, isShow: true, scan: false, style: {width: '100%'}, }, }, { key: '5aa4b801a16d41e88b8ef61a0a93f2f7', field: 'oldValue', label: '变更前的值', type: 'input', component: 'Input', colProps: {span: 24}, defaultValue: '', componentProps: { width: '100%', span: '', defaultValue: '', labelWidthMode: 'fix', labelFixWidth: 120, responsive: true, respNewRow: false, placeholder: '请输入变更前的值', maxlength: null, prefix: '', suffix: '', addonBefore: '', addonAfter: '', disabled: true, allowClear: false, showLabel: true, required: false, rules: [], events: {}, isSave: false, isShow: true, scan: false, style: {width: '100%'}, }, }, { key: '870896f3810543bc83a1510ff141bfb8', field: 'newValue', label: '变更后的值', type: 'input', component: 'Input', colProps: {span: 24}, defaultValue: '', componentProps: { width: '100%', span: '', defaultValue: '', labelWidthMode: 'fix', labelFixWidth: 120, responsive: true, respNewRow: false, placeholder: '请输入变更后的值', maxlength: null, prefix: '', suffix: '', addonBefore: '', addonAfter: '', disabled: true, allowClear: false, showLabel: true, required: false, rules: [], events: {}, isSave: false, isShow: true, scan: false, style: {width: '100%'}, }, }, { key: '52ef4d91155f4666b697b5aab1adb2c7', field: 'changeType', label: '变更类型', type: 'input', component: 'Input', colProps: {span: 24}, defaultValue: '', componentProps: { width: '100%', span: '', defaultValue: '', labelWidthMode: 'fix', labelFixWidth: 120, responsive: true, respNewRow: false, placeholder: '请输入变更类型', maxlength: null, prefix: '', suffix: '', addonBefore: '', addonAfter: '', disabled: true, allowClear: false, showLabel: true, required: false, rules: [], events: {}, isSave: false, isShow: true, scan: false, style: {width: '100%'}, }, }, ], showActionButtonGroup: false, buttonLocation: 'center', actionColOptions: {span: 24}, showResetButton: false, showSubmitButton: false, hiddenComponent: [], };