| | |
| | | columns:[ |
| | | {type:'expand',fixed:"left",slots: { content:'content' },width: 50}, |
| | | { type: 'seq',fixed:"left", title: '自序', width: 50 }, |
| | | {field: 'materialCode', title: '物料编码',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, }, |
| | | {field: 'materialName', title: '物料名称', sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'number',title: '数量', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'materialRequisitionProcess', title: '领料工序',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'mainUnit',title: '主单位', sortable: true,showOverflow:"ellipsis"}, |
| | | {field: 'conversionRate', title: '换算率', sortable: true}, |
| | | {field: 'deputyUnit', title: '副单位', sortable: true}, |
| | | {field: 'producer', title: '产地', sortable: true,showOverflow:"ellipsis"}, |
| | | {field: '物料编码', title: '物料编码',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, }, |
| | | {field: '物料名称', title: '物料名称', sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: '数量',title: '数量', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: '领料工序', title: '领料工序',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: '主单位',title: '主单位', sortable: true,showOverflow:"ellipsis"}, |
| | | {field: '换算率', title: '换算率', sortable: true}, |
| | | {field: '副单位', title: '副单位', sortable: true}, |
| | | {field: '产地', title: '产地', sortable: true,showOverflow:"ellipsis"}, |
| | | ],//表头按钮 |
| | | |
| | | toolbarConfig: { |
| | | //表格上方功能按钮 |
| | | buttons: [ |
| | | |
| | | // { |
| | | // name:'产品种类', |
| | | // dropdowns: [ |
| | | // { code: 'other1', name: '种类一', type: 'text', }, |
| | | // { code: 'other2', name: '种类二', type: 'text', }, |
| | | // { code: 'other2', name: '种类三', type: 'text', }, |
| | | // ] |
| | | // }, |
| | | {code: 'print_lck', name: '添加一行' }, |
| | | {code: 'print_lck', name: '减少一行' }, |
| | | {code: 'print_lck', name: '保存',status:'primary' ,icon:'vxe-icon-save'}, |
| | |
| | | }, |
| | | data: [ |
| | | { |
| | | materialCode: '70020000000000000000000004', |
| | | materialName: '预洗剂7600TRO-DS', |
| | | number: '4', |
| | | materialRequisitionProcess: '制镜', |
| | | mainUnit:'L', |
| | | conversionRate:'0.001000', |
| | | deputyUnit:'ml', |
| | | producer:'四川', |
| | | //物料编码 |
| | | 物料编码: '70020000000000000000000004', |
| | | //物料名称 |
| | | 物料名称: '预洗剂7600TRO-DS', |
| | | //数量 |
| | | 数量: '4', |
| | | //领料工序 |
| | | 领料工序: '制镜', |
| | | //主单位 |
| | | 主单位:'L', |
| | | //换算率 |
| | | 换算率:'0.001000', |
| | | //副单位 |
| | | 副单位:'ml', |
| | | //产地 |
| | | 产地:'四川', |
| | | }, |
| | | { |
| | | materialCode: '70020000000000000000000004', |
| | | materialName: '预洗剂7600TRO-DS', |
| | | number: '4', |
| | | materialRequisitionProcess: '制镜', |
| | | mainUnit:'L', |
| | | conversionRate:'0.001000', |
| | | deputyUnit:'ml', |
| | | producer:'四川', |
| | | }, |
| | | |
| | | { |
| | | materialCode: '70020000000000000000000004', |
| | | materialName: '预洗剂7600TRO-DS', |
| | | number: '4', |
| | | materialRequisitionProcess: '制镜', |
| | | mainUnit:'L', |
| | | conversionRate:'0.001000', |
| | | deputyUnit:'ml', |
| | | producer:'四川', |
| | | //物料编码 |
| | | 物料编码: '70020000000000000000000004', |
| | | //物料名称 |
| | | 物料名称: '预洗剂7600TRO-DS', |
| | | //数量 |
| | | 数量: '4', |
| | | //领料工序 |
| | | 领料工序: '制镜', |
| | | //主单位 |
| | | 主单位:'L', |
| | | //换算率 |
| | | 换算率:'0.001000', |
| | | //副单位 |
| | | 副单位:'ml', |
| | | //产地 |
| | | 产地:'四川', |
| | | }, |
| | | { |
| | | materialCode: '70020000000000000000000004', |
| | | materialName: '预洗剂7600TRO-DS', |
| | | number: '4', |
| | | materialRequisitionProcess: '制镜', |
| | | mainUnit:'L', |
| | | conversionRate:'0.001000', |
| | | deputyUnit:'ml', |
| | | producer:'四川', |
| | | //物料编码 |
| | | 物料编码: '70020000000000000000000004', |
| | | //物料名称 |
| | | 物料名称: '预洗剂7600TRO-DS', |
| | | //数量 |
| | | 数量: '4', |
| | | //领料工序 |
| | | 领料工序: '制镜', |
| | | //主单位 |
| | | 主单位:'L', |
| | | //换算率 |
| | | 换算率:'0.001000', |
| | | //副单位 |
| | | 副单位:'ml', |
| | | //产地 |
| | | 产地:'四川', |
| | | }, |
| | | { |
| | | //物料编码 |
| | | 物料编码: '70020000000000000000000004', |
| | | //物料名称 |
| | | 物料名称: '预洗剂7600TRO-DS', |
| | | //数量 |
| | | 数量: '4', |
| | | //领料工序 |
| | | 领料工序: '制镜', |
| | | //主单位 |
| | | 主单位:'L', |
| | | //换算率 |
| | | 换算率:'0.001000', |
| | | //副单位 |
| | | 副单位:'ml', |
| | | //产地 |
| | | 产地:'四川', |
| | | }, |
| | | ],//table body实际数据 |
| | | //脚部求和 |
| | | footerMethod ({ columns, data }) {//页脚函数 |
| | | let footList=['number'] |
| | | let footList=['数量'] |
| | | return[ |
| | | columns.map((column, columnIndex) => { |
| | | if (columnIndex === 0) { |
| | |
| | | |
| | | }) |
| | | |
| | | //产品种类下拉框 |
| | | const value = ref('') |
| | | const options = [ |
| | | { |