| | |
| | | import React from 'react' |
| | | import MenuUtils from '@/utils/utils-custom.js' |
| | | |
| | | /** |
| | |
| | | bookids.push(item.uuid) |
| | | } |
| | | }) |
| | | |
| | | let menulist = sessionStorage.getItem('fstMenuList') |
| | | if (menulist) { |
| | | try { |
| | | menulist = JSON.parse(menulist) |
| | | } catch (e) { |
| | | menulist = [] |
| | | } |
| | | } else { |
| | | menulist = [] |
| | | } |
| | | |
| | | modules = modules.filter(item => !bookids.includes(item.value)) |
| | | |
| | |
| | | {field: 'voucherType', values: ['createVoucher', 'checkVoucher']}, |
| | | {field: 'voucherTypeText', values: ['createVoucher', 'checkVoucher']}, |
| | | {field: 'voucherSign', values: ['createVoucher', 'checkVoucher']}, |
| | | {field: 'printTemp', values: ['createVoucher', 'checkVoucher']}, |
| | | {field: 'supModule', values: ['checkTemp', 'checkVoucher']}, |
| | | {field: 'attachStatus', values: ['createVoucher', 'checkVoucher']}, |
| | | ] |
| | | }, |
| | | { |
| | |
| | | options: modules, |
| | | allowClear: true, |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | field: 'attachStatus', |
| | | label: '附件状态', |
| | | initval: wrap.attachStatus || 0, |
| | | tooltip: '添加或修改凭证时,上传附件的状态。', |
| | | required: true, |
| | | options: [ |
| | | {value: 0, label: '待审核'}, |
| | | {value: 10, label: '已审核'}, |
| | | ] |
| | | }, |
| | | { |
| | | type: 'printTemps', |
| | | field: 'printTemp', |
| | | label: '打印模板', |
| | | initval: wrap.printTemp || '', |
| | | help: (record) => { |
| | | if (record.printTemp) { |
| | | return <span onClick={() => { |
| | | sessionStorage.setItem('mk-print-temp', record.printTemp) |
| | | window.open('#/hs') |
| | | |
| | | setTimeout(() => { |
| | | sessionStorage.removeItem('mk-print-temp') |
| | | }, 50) |
| | | }} style={{color: '#1890ff', cursor: 'pointer', fontSize: '13px'}}>#查看模板</span> |
| | | } |
| | | return '' |
| | | }, |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'number', |
| | | field: 'space', |
| | | label: '留白', |
| | | initval: wrap.space || 0, |
| | | tooltip: '表格主体部分两端的空白距离,表格在编辑时两端会有添加和删除图标。', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'cascader', |
| | | field: 'linkmenu', |
| | | label: '刷新菜单', |
| | | initval: wrap.linkmenu || [], |
| | | tooltip: '点击保存时需要刷新的菜单。', |
| | | required: false, |
| | | allowClear: true, |
| | | options: menulist |
| | | } |
| | | ] |
| | | |
| | | return wrapForm |