廖井涛
2024-01-22 2ad00b6623beac3b504105beba9cb56143f7db13
north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue
@@ -66,24 +66,23 @@
    {type:'expand',fixed:"left",slots: { content:'content' },width: 50},
    { type: 'checkbox',fixed:"left", title: '选择', width: 80 },
    { type: 'seq',fixed:"left", title: '自序', width: 50 },
    {field: 'id', title: '排产编号', sortable: true, width: 120 },
    {field: 'salesOrderNo', title: '销售单号',slots: { filter: 'num1_filter' }, sortable: true, width: 100 },
    {field: 'customerName', title: '客户名称', sortable: true, width: 110},
    {field: 'EntryName', title: '项目名称', sortable: true , width: 100},
    {field: 'serialNumber', title: '序号', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }, width: 90},
    {field: 'productName', title: '产品名称', sortable: true, width: 140},
    {field: 'width', title: '宽', sortable: true , width: 70},
    {field: 'height', title: '高', sortable: true , width: 70},
    {field: 'number', title: '数量', sortable: true , width: 70},
    {field: 'area', title: '面积', sortable: true , width: 90},
    {field: 'productionSchedulingQuantity' , width: 120,editRender: { name: 'input', attrs: { placeholder: '' } }, title: '排产数量', sortable: true},
    {field: 'availableQuantity', title: '已排产数量', sortable: true , width: 120},
    {field: 'availableQuantityArea', title: '已排产面积', sortable: true , width: 120},
    {field: 'usedQuantity', title: '未排产数量', sortable: true , width: 120},
    {field: 'usedQuantityArea', title: '未排产面积', sortable: true , width: 120},
    {field: 'shape', title: '形状', sortable: true , width: 80},
    {field: 'notes', title: '备注', sortable: true , width: 120},
    {field: '排产编号', title: '排产编号', sortable: true, width: 120 },
    {field: '销售单号', title: '销售单号',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, width: 100 },
    {field: '客户名称', title: '客户名称', filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, width: 110},
    {field: '项目名称', title: '项目名称', filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, width: 120},
    {field: '序号', title: '序号', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }, width: 90},
    {field: '产品名称', title: '产品名称', filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, width: 140},
    {field: '宽', title: '宽', filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, width: 90},
    {field: '高', title: '高',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true , width: 90},
    {field: '数量', title: '数量', sortable: true , width: 70},
    {field: '面积', title: '面积', sortable: true , width: 90},
    {field: '排产数量' , width: 120,editRender: { name: 'input', attrs: { placeholder: '' } }, title: '排产数量', sortable: true},
    {field: '已排产数量', title: '已排产数量', sortable: true , width: 120},
    {field: '已排产面积', title: '已排产面积', sortable: true , width: 120},
    {field: '未排产数量', title: '未排产数量', sortable: true , width: 120},
    {field: '未排产面积', title: '未排产面积', sortable: true , width: 120},
    {field: '形状', title: '形状', sortable: true , width: 80},
    {field: '备注', title: '备注', sortable: true , width: 120},
  ],//表头按钮
  toolbarConfig: {
@@ -99,66 +98,66 @@
  },
  data:  [
    {
      id:"PC20230100001",
      salesOrderNo: 'NG231207',
      customerName:'XXX公司',
      EntryName:"XXXX公园",
      serialNumber: '1',
      productName: '6mm超白Low-E(外)+A12+6mm超白平钢(内)',
      width: '2000',
      height: '1000',
      number: '10',
      area: '20000',
      productionSchedulingQuantity: '',
      availableQuantity: '10000',
      availableQuantityArea: '10000',
      usedQuantity: '',
      usedQuantityArea: '',
      shape: '矩形',
      notes: '备注'
      排产编号:"PC20230100001",
      销售单号: 'NG231207',
      客户名称:'XXX公司',
      项目名称:"XXXX公园",
      序号: '1',
      产品名称: '6mm超白Low-E(外)+A12+6mm超白平钢(内)',
      宽: '2000',
      高: '1000',
      数量: '10',
      面积: '20000',
      排产数量: '',
      已排产数量: '10000',
      已排产面积: '10000',
      未排产数量: '',
      未排产面积: '',
      形状: '矩形',
      备注: '备注'
    },
    {
      id:"PC20230100001",
      salesOrderNo: 'NG231207',
      customerName:'XXX公司',
      EntryName:"XXXX公园",
      serialNumber: '1',
      productName: '12mm超白Low-E(外)+A12+12mm超白平钢(内)',
      width: '2000',
      height: '1000',
      number: '10',
      area: '20000',
      productionSchedulingQuantity: '',
      availableQuantity: '10000',
      availableQuantityArea: '10000',
      usedQuantity: '123',
      usedQuantityArea: '123',
      shape: '矩形',
      notes: '备注'
      排产编号:"PC20230100001",
      销售单号: 'NG231207',
      客户名称:'XXX公司',
      项目名称:"XXXX公园",
      序号: '1',
      产品名称: '6mm超白Low-E(外)+A12+6mm超白平钢(内)',
      宽: '2000',
      高: '1000',
      数量: '10',
      面积: '20000',
      排产数量: '',
      已排产数量: '10000',
      已排产面积: '10000',
      未排产数量: '',
      未排产面积: '',
      形状: '矩形',
      备注: '备注'
    },
    {
      id:"",
      salesOrderNo: 'NG231207',
      customerName:'XXX公司',
      EntryName:"XXXX公园",
      serialNumber: '1',
      productName: '8mm超白Low-E(外)+A12+8mm超白平钢(内)',
      width: '2000',
      height: '1000',
      number: '10',
      area: '20000',
      productionSchedulingQuantity: '',
      availableQuantity: '10000',
      availableQuantityArea: '10000',
      usedQuantity: '',
      usedQuantityArea: '',
      shape: '矩形',
      notes: '备注'
      排产编号:"PC20230100001",
      销售单号: 'NG231207',
      客户名称:'XXX公司',
      项目名称:"XXXX公园",
      序号: '1',
      产品名称: '6mm超白Low-E(外)+A12+6mm超白平钢(内)',
      宽: '2000',
      高: '1000',
      数量: '10',
      面积: '20000',
      排产数量: '',
      已排产数量: '10000',
      已排产面积: '10000',
      未排产数量: '',
      未排产面积: '',
      形状: '矩形',
      备注: '备注'
    },
  ],//table body实际数据
  //脚部求和
  footerMethod ({ columns, data }) {//页脚函数
    let footList=['number','productionSchedulingQuantity','availableQuantity','availableQuantityArea','usedQuantity','area','usedQuantityArea']
    let footList=['数量','面积','排产数量','已排产数量','已排产面积','未排产数量','未排产面积']
    return[
      columns.map((column, columnIndex) => {
        if (columnIndex === 0) {