chenlu
2024-01-05 243c0592bd8708b2ab56ee937d0d4357d2b06dda
north-glass-erp/northglass-erp/src/views/pp/Replenish/AddReplenish.vue
@@ -62,33 +62,33 @@
  },//表头参数
  columns:[
    {type:'expand',fixed:"left",slots: { content:'content' },width: 50},
    { type: 'seq',fixed:"left", title: '自序', width: 50 },
    { type: 'checkbox',fixed:"left", title: '选择', width: 80 },
    {field: 'salesOrderNo', width: 120, title: '销售单号',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, },
    {field: 'processCardNo',width: 120, title: '流程卡号', sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }},
    {field: 'entryName', width: 130,title: '项目名称', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }},
    {field: 'productName',width: 120, title: '产品名称',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true},
    {field: 'reportingWorkNo', width: 100,title: '报工编号', sortable: true,showOverflow:"ellipsis"},
    {field: 'serialNumber', width: 70,title: '序号', sortable: true},
    {field: 'singlePieceName',width: 100, title: '单片名称', sortable: true},
    {field: 'floorNumber',width: 120, title: '楼层编号', sortable: true,showOverflow:"ellipsis"},
    {field: 'marking', width: 80,title: '标记', sortable: true},
    {field: 'pieces',width: 90, title: '片标记', sortable: true},
    {field: 'processCardNumber',width: 120, title: '流程卡数量', sortable: true},
    {field: 'width',width: 80, title: '宽', sortable: true},
    {field: 'height',width: 80, title: '高', sortable: true},
    {field: 'area',width: 80, title: '面积', sortable: true},
    {field: 'shape',width: 80, title: '形状', sortable: true},
    {field: 'numberBroken',width: 120, title: '次破数量', sortable: true},
    {field: 'reasonType',width: 120, title: '次破类型', sortable: true},
    {field: 'reasonDamage',width: 120, title: '次破原因', sortable: true},
    {field: 'responsibilityDevice',width: 120, title: '责任设备', sortable: true},
    {field: 'reportingProcess',width: 120, title: '报工工序', sortable: true},
    {field: 'responsibilityProcess',width: 120, title: '责任工序', sortable: true},
    {field: 'responsibilityTeams',width: 120, title: '责任班组', sortable: true},
    {field: 'responsibilityPersonnel',width: 120, title: '责任人员', sortable: true},
    {field: 'qualityInspector',width: 100, title: '质检员', sortable: true}
    { type: 'seq',fixed:"left", title: '自序', width: 50 },
    {field: '报工时间', width: 120,title: '报工时间', sortable: true},
    {field: '销售单号', width: 120, title: '销售单号',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, },
    {field: '流程卡号',width: 120, title: '流程卡号', sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }},
    {field: '项目名称', width: 130,title: '项目名称', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }},
    {field: '产品名称',width: 120, title: '产品名称',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true},
    {field: '报工编号', width: 100,title: '报工编号', sortable: true,showOverflow:"ellipsis"},
    {field: '序号', width: 70,title: '序号', sortable: true},
    {field: '单片名称',width: 100, title: '单片名称', sortable: true},
    {field: '楼层编号',width: 120, title: '楼层编号', sortable: true,showOverflow:"ellipsis"},
    {field: '标记', width: 80,title: '标记', sortable: true},
    {field: '片标记',width: 90, title: '片标记', sortable: true},
    {field: '流程卡数量',width: 120, title: '流程卡数量', sortable: true},
    {field: '宽',width: 80, title: '宽', sortable: true},
    {field: '高',width: 80, title: '高', sortable: true},
    {field: '面积',width: 80, title: '面积', sortable: true},
    {field: '形状',width: 80, title: '形状', sortable: true},
    {field: '次破数量',width: 120, title: '次破数量', sortable: true},
    {field: '次破类型',width: 120, title: '次破类型', sortable: true},
    {field: '次破原因',width: 120, title: '次破原因', sortable: true},
    {field: '责任设备',width: 120, title: '责任设备', sortable: true},
    {field: '报工工序',width: 120, title: '报工工序', sortable: true},
    {field: '责任工序',width: 120, title: '责任工序', sortable: true},
    {field: '责任班组',width: 120, title: '责任班组', sortable: true},
    {field: '责任人员',width: 120, title: '责任人员', sortable: true},
    {field: '质检员',width: 100, title: '质检员', sortable: true}
  ],//表头按钮
  toolbarConfig: {
@@ -103,125 +103,144 @@
  },
  data:  [
    {
      reportingWorkTime:'2021-01-01',
      salesOrderNo:'NG23010101',
      processCardNo:'NG23010101A01',
      entryName:'xxxx',
      productName:"xxxxxxxxx",
      reportingWorkNo:"BG2301010001",
      floorNumber:"D4-010-01",
      area:'23.11',
      reportingProcess:'钢化',
      qualityInspector:"张三",
      serialNumber:'1',
      singlePieceName: '6mm白玻平钢(外)',
      marking: '1',
      pieces: '(外)',
      processCardNumber: '11',
      width: '575',
      height:"2241",
      shape: '普形',
      upCompletedQuantity: '12',
      completedQuantity: '1',
      numberBroken:'2',
      reasonType: '机器',
      reasonDamage:'气泡超标',
      responsibilityProcess:'中空',
      responsibilityTeams:'中空一班',
      responsibilityPersonnel:'',
      responsibilityDevice:'中空3#线',
      报工时间:'2021-01-01',
      销售单号:'NG23010101',
      流程卡号:'NG23010101A01',
      项目名称:'xxxx',
      产品名称:"xxxxxxxxx",
      报工编号:"BG2301010001",
      楼层编号:"D4-010-01",
      面积:'23.11',
      报工工序:'钢化',
      质检员:"张三",
      序号:'1',
      单片名称: '6mm白玻平钢(外)',
      标记: '1',
      片标记: '(外)',
      流程卡数量: '11',
      宽: '575',
      高:"2241",
      形状: '普形',
      次破数量: '12',
      次破类型: '机器',
      次破原因:'气泡超标',
      责任工序:'中空',
      责任班组:'中空一班',
      责任人员:'',
      责任设备:'中空3#线',
    },
    {
      reportingWorkTime:'2021-01-01',
      salesOrderNo:'NG23010101',
      processCardNo:'NG23010101A01',
      entryName:'xxxx',
      productName:"xxxxxxxxx",
      reportingWorkNo:"BG2301010001",
      floorNumber:"D4-010-01",
      area:'23.11',
      reportingProcess:'钢化',
      qualityInspector:"张三",
      serialNumber:'1',
      singlePieceName: '6mm白玻平钢(外)',
      marking: '1',
      pieces: '(外)',
      processCardNumber: '11',
      width: '575',
      height:"2241",
      shape: '普形',
      upCompletedQuantity: '12',
      completedQuantity: '1',
      numberBroken:'2',
      reasonType: '机器',
      reasonDamage:'气泡超标',
      responsibilityProcess:'中空',
      responsibilityTeams:'中空一班',
      responsibilityPersonnel:'',
      responsibilityDevice:'中空3#线',
      报工时间:'2021-01-01',
      销售单号:'NG23010101',
      流程卡号:'NG23010101A01',
      项目名称:'xxxx',
      产品名称:"xxxxxxxxx",
      报工编号:"BG2301010001",
      楼层编号:"D4-010-01",
      面积:'23.11',
      报工工序:'钢化',
      质检员:"张三",
      序号:'1',
      单片名称: '6mm白玻平钢(外)',
      标记: '1',
      片标记: '(外)',
      流程卡数量: '11',
      宽: '575',
      高:"2241",
      形状: '普形',
      次破数量: '12',
      次破类型: '机器',
      次破原因:'气泡超标',
      责任工序:'中空',
      责任班组:'中空一班',
      责任人员:'',
      责任设备:'中空3#线',
    },
    {
      reportingWorkTime:'2021-01-01',
      salesOrderNo:'NG23010101',
      processCardNo:'NG23010101A01',
      entryName:'xxxx',
      productName:"xxxxxxxxx",
      reportingWorkNo:"BG2301010001",
      floorNumber:"D4-010-01",
      area:'23.11',
      reportingProcess:'钢化',
      qualityInspector:"张三",
      serialNumber:'1',
      singlePieceName: '6mm白玻平钢(外)',
      marking: '1',
      pieces: '(外)',
      processCardNumber: '11',
      width: '575',
      height:"2241",
      shape: '普形',
      upCompletedQuantity: '12',
      completedQuantity: '1',
      numberBroken:'2',
      reasonType: '机器',
      reasonDamage:'气泡超标',
      responsibilityProcess:'中空',
      responsibilityTeams:'中空一班',
      responsibilityPersonnel:'',
      responsibilityDevice:'中空3#线',
      报工时间:'2021-01-01',
      销售单号:'NG23010101',
      流程卡号:'NG23010101A01',
      项目名称:'xxxx',
      产品名称:"xxxxxxxxx",
      报工编号:"BG2301010001",
      楼层编号:"D4-010-01",
      面积:'23.11',
      报工工序:'钢化',
      质检员:"张三",
      序号:'1',
      单片名称: '6mm白玻平钢(外)',
      标记: '1',
      片标记: '(外)',
      流程卡数量: '11',
      宽: '575',
      高:"2241",
      形状: '普形',
      次破数量: '12',
      次破类型: '机器',
      次破原因:'气泡超标',
      责任工序:'中空',
      责任班组:'中空一班',
      责任人员:'',
      责任设备:'中空3#线',
    },
    {
      reportingWorkTime:'2021-01-01',
      salesOrderNo:'NG23010101',
      processCardNo:'NG23010101A01',
      entryName:'xxxx',
      productName:"xxxxxxxxx",
      reportingWorkNo:"BG2301010001",
      floorNumber:"D4-010-01",
      area:'23.11',
      reportingProcess:'钢化',
      qualityInspector:"张三",
      serialNumber:'1',
      singlePieceName: '6mm白玻平钢(外)',
      marking: '1',
      pieces: '(外)',
      processCardNumber: '11',
      width: '575',
      height:"2241",
      shape: '普形',
      upCompletedQuantity: '12',
      completedQuantity: '1',
      numberBroken:'2',
      reasonType: '机器',
      reasonDamage:'气泡超标',
      responsibilityProcess:'中空',
      responsibilityTeams:'中空一班',
      responsibilityPersonnel:'',
      responsibilityDevice:'中空3#线',
      报工时间:'2021-01-01',
      销售单号:'NG23010101',
      流程卡号:'NG23010101A01',
      项目名称:'xxxx',
      产品名称:"xxxxxxxxx",
      报工编号:"BG2301010001",
      楼层编号:"D4-010-01",
      面积:'23.11',
      报工工序:'钢化',
      质检员:"张三",
      序号:'1',
      单片名称: '6mm白玻平钢(外)',
      标记: '1',
      片标记: '(外)',
      流程卡数量: '11',
      宽: '575',
      高:"2241",
      形状: '普形',
      次破数量: '12',
      次破类型: '机器',
      次破原因:'气泡超标',
      责任工序:'中空',
      责任班组:'中空一班',
      责任人员:'',
      责任设备:'中空3#线',
    },
    {
      报工时间:'2021-01-01',
      销售单号:'NG23010101',
      流程卡号:'NG23010101A01',
      项目名称:'xxxx',
      产品名称:"xxxxxxxxx",
      报工编号:"BG2301010001",
      楼层编号:"D4-010-01",
      面积:'23.11',
      报工工序:'钢化',
      质检员:"张三",
      序号:'1',
      单片名称: '6mm白玻平钢(外)',
      标记: '1',
      片标记: '(外)',
      流程卡数量: '11',
      宽: '575',
      高:"2241",
      形状: '普形',
      次破数量: '12',
      次破类型: '机器',
      次破原因:'气泡超标',
      责任工序:'中空',
      责任班组:'中空一班',
      责任人员:'',
      责任设备:'中空3#线',
    },
  ],//table body实际数据
  //脚部求和
  footerMethod ({ columns, data }) {//页脚函数
    let footList=['processCardNumber','numberBroken']
    let footList=['流程卡数量','面积','次破数量']
    return[
      columns.map((column, columnIndex) => {
        if (columnIndex === 0) {