| | |
| | | */ |
| | | export default function (wrap, columns = [], setting) { |
| | | let appType = sessionStorage.getItem('appType') |
| | | let MenuType = '' |
| | | let menu = window.GLOB.customMenu |
| | | // let MenuType = '' |
| | | // let menu = window.GLOB.customMenu |
| | | let laypage = setting && setting.laypage !== 'false' |
| | | |
| | | if (menu.parentId === 'BillPrintTemp') { |
| | | MenuType = 'billPrint' |
| | | } |
| | | // if (menu.parentId === 'BillPrintTemp') { |
| | | // MenuType = 'billPrint' |
| | | // } |
| | | |
| | | let roleList = sessionStorage.getItem('sysRoles') |
| | | |
| | |
| | | precision: 0, |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | field: 'layout', |
| | | label: '卡片布局', |
| | | initval: wrap.layout || 'grid', |
| | | tooltip: appType === 'mob' ? '弹性布局时,滑动加载无效' : '', |
| | | required: false, |
| | | options: [ |
| | | {value: 'grid', label: '栅格布局'}, |
| | | {value: 'flex', label: '弹性布局'}, |
| | | ], |
| | | controlFields: [ |
| | | {field: 'printHeight', values: ['flex']}, |
| | | {field: 'cardFloat', values: ['grid']}, |
| | | ] |
| | | }, |
| | | // { |
| | | // type: 'radio', |
| | | // field: 'layout', |
| | | // label: '卡片布局', |
| | | // initval: wrap.layout || 'grid', |
| | | // tooltip: appType === 'mob' ? '弹性布局时,滑动加载无效' : '', |
| | | // required: false, |
| | | // options: [ |
| | | // {value: 'grid', label: '栅格布局'}, |
| | | // {value: 'flex', label: '弹性布局'}, |
| | | // ], |
| | | // controlFields: [ |
| | | // {field: 'printHeight', values: ['flex']}, |
| | | // {field: 'cardFloat', values: ['grid']}, |
| | | // ] |
| | | // }, |
| | | { |
| | | type: 'radio', |
| | | field: 'pagestyle', |
| | |
| | | {value: 'check square', label: '勾选(方框)'} |
| | | ] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | field: 'cardFloat', |
| | | label: '对齐方式', |
| | | initval: wrap.cardFloat || 'left', |
| | | tooltip: '设置卡片的对齐方式。', |
| | | required: false, |
| | | options: [ |
| | | {value: 'left', label: '左对齐'}, |
| | | {value: 'center', label: '居中'}, |
| | | {value: 'right', label: '右对齐'}, |
| | | ], |
| | | }, |
| | | // { |
| | | // type: 'radio', |
| | | // field: 'cardFloat', |
| | | // label: '对齐方式', |
| | | // initval: wrap.cardFloat || 'left', |
| | | // tooltip: '设置卡片的对齐方式。', |
| | | // required: false, |
| | | // options: [ |
| | | // {value: 'left', label: '左对齐'}, |
| | | // {value: 'center', label: '居中'}, |
| | | // {value: 'right', label: '右对齐'}, |
| | | // ], |
| | | // }, |
| | | { |
| | | type: 'radio', |
| | | field: 'parity', |
| | |
| | | {value: 'true', label: '有'}, |
| | | ], |
| | | }, |
| | | { |
| | | type: 'number', |
| | | field: 'printHeight', |
| | | label: '换算高度', |
| | | initval: wrap.printHeight || '', |
| | | tooltip: '当前数据卡高度相当于几条数据。', |
| | | required: false, |
| | | forbid: MenuType !== 'billPrint' |
| | | }, |
| | | // { |
| | | // type: 'number', |
| | | // field: 'printHeight', |
| | | // label: '换算高度', |
| | | // initval: wrap.printHeight || '', |
| | | // tooltip: '当前数据卡高度相当于几条数据。', |
| | | // required: false, |
| | | // forbid: MenuType !== 'billPrint' |
| | | // }, |
| | | { |
| | | type: 'radio', |
| | | field: 'empty', |