| | |
| | | const multiple = ref(true); |
| | | const total = ref(0); |
| | | const title = ref(""); |
| | | const height = ref(document.documentElement.clientHeight - 270 + "px;") |
| | | const height = ref(document.documentElement.clientHeight - 220 + "px;") |
| | | |
| | | |
| | | const data = reactive({ |
| | |
| | | |
| | | // 表格配置 |
| | | const columns = ref([ |
| | | { type: 'seq', title: '序号', width: 60 }, |
| | | /* { type: 'seq', title: '序号', width: 60 },*/ |
| | | { |
| | | title: '工单号', |
| | | field: 'workOrderNo', |
| | |
| | | { |
| | | title: '工序名称', |
| | | field: 'processName', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: '工序号', |
| | | field: 'routeProcessNumber', |
| | | width: 150, |
| | | field: 'routeProcessNumberTxt', |
| | | width: 100, |
| | | }, |
| | | { |
| | | title: '当前工序号', |
| | | field: 'currentProcessNumber', |
| | | width: 150, |
| | | field: 'currentProcessNumberTxt', |
| | | width: 100, |
| | | }, |
| | | { |
| | | title: '生产数量', |
| | | field: 'productionQuantity', |
| | | width: 100, |
| | | width: 80, |
| | | }, |
| | | { |
| | | title: '标准工时', |
| | | field: 'standardTime', |
| | | width: 100, |
| | | width: 80, |
| | | }, |
| | | { |
| | | title: '工序总工时', |
| | | field: 'processTotalTime', |
| | | width: 100, |
| | | width: 80, |
| | | |
| | | }, |
| | | { |
| | | title: '计划开工日', |
| | | field: 'processPlanStartDaytxt', |
| | | width: 200, |
| | | width: 140, |
| | | type:'html' |
| | | }, |
| | | { |
| | | title: '计划完工日', |
| | | field: 'processPlanEndDaytxt', |
| | | width: 200, |
| | | width: 140, |
| | | type:'html' |
| | | }, |
| | | { |
| | | title: '订单完工日', |
| | | field: 'orderPlanEndDay', |
| | | width: 200, |
| | | width: 120, |
| | | format: 'YYYY-MM-DD' |
| | | } |
| | | ]); |
| | | |
| | |
| | | listValue.forEach(listItem => { |
| | | listItem[`processPlanStartDaytxt`]= listItem.warning? `<font color="red">${listItem.processPlanStartDay}</font>` :listItem.processPlanStartDay; |
| | | listItem[`processPlanEndDaytxt`]= listItem.warning? `<font color="red">${listItem.processPlanEndDay}</font>` :listItem.processPlanEndDay; |
| | | listItem[`routeProcessNumberTxt`]= listItem.routeProcessNumber.toString().padStart(3, '0'); |
| | | listItem[`currentProcessNumberTxt`]= listItem.currentProcessNumber.toString().padStart(3, '0'); |
| | | |
| | | |
| | | }); |
| | | aps_plate_process_statList.value =listValue |
| | | debugger; |
| | | total.value = response.total; |
| | | loading.value = false; |
| | | }); |