|
|
@@ -54,63 +54,44 @@ export const getColumns = (vm) => {
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'productionPlanNo',
|
|
|
- label: '生产计划编号',
|
|
|
+ prop: 'preSaleOrderNo',
|
|
|
+ label: '预销售订单号',
|
|
|
width: 170,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'productionWorkOrderNo',
|
|
|
- label: '生产工单号',
|
|
|
+ prop: 'productionPlanNo',
|
|
|
+ label: '生产计划编号',
|
|
|
width: 170,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'processProgress',
|
|
|
- label: '工序进度',
|
|
|
- width: 120,
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'productionNo',
|
|
|
- label: '生产编号',
|
|
|
- width: 120,
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'preSaleOrderNo',
|
|
|
- label: '预销售订单号',
|
|
|
+ prop: 'productionWorkOrderNo',
|
|
|
+ label: '生产工单号',
|
|
|
width: 170,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'orderStatus',
|
|
|
- label: '订单状态',
|
|
|
- width: 120,
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- formatter: (row) => {
|
|
|
- return vm.orderObj[row.orderStatus] || '';
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'productionStatus',
|
|
|
- label: '生产状态',
|
|
|
- width: 120,
|
|
|
+ prop: 'materialProductionOrderNo',
|
|
|
+ label: '生产订单号 \n(编码+图号)',
|
|
|
+ width: 180,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row) => {
|
|
|
- if (!row.productionStatus) {
|
|
|
- return '';
|
|
|
+ if (row.imgCode && row.materialCode) {
|
|
|
+ return row.materialCode + '-' + row.imgCode;
|
|
|
}
|
|
|
- return vm.productionStatus[row.productionStatus][row.productionStatus];
|
|
|
+
|
|
|
+ if (row.materialCode) {
|
|
|
+ return row.materialCode;
|
|
|
+ }
|
|
|
+ return '';
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
prop: 'customerCode',
|
|
|
label: '客户代号',
|
|
|
@@ -126,41 +107,78 @@ export const getColumns = (vm) => {
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'productName',
|
|
|
- label: '产品描述',
|
|
|
+ prop: 'productCode',
|
|
|
+ label: '主机编码',
|
|
|
width: 150,
|
|
|
align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- height: 50
|
|
|
+ showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'productCode',
|
|
|
- label: '产品编码',
|
|
|
+ prop: 'productName',
|
|
|
+ label: '主机名称',
|
|
|
width: 150,
|
|
|
align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ height: 50
|
|
|
},
|
|
|
{
|
|
|
prop: 'productQuantity',
|
|
|
- label: '订单数量',
|
|
|
+ label: '主机\n订单数量',
|
|
|
width: 80,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
prop: 'productUnitName',
|
|
|
- label: '单位',
|
|
|
+ label: '主机单位',
|
|
|
width: 80,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'productWeight',
|
|
|
- label: '重量(kg)',
|
|
|
+ prop: 'materialWeight',
|
|
|
+ label: '主机\n重量(kg)',
|
|
|
width: 100,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: 'processProgress',
|
|
|
+ label: '工序进度',
|
|
|
+ width: 120,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'productionNo',
|
|
|
+ label: '生产编号',
|
|
|
+ width: 120,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'orderStatus',
|
|
|
+ label: '订单状态',
|
|
|
+ width: 120,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ formatter: (row) => {
|
|
|
+ return vm.orderObj[row.orderStatus] || '';
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'productionStatus',
|
|
|
+ label: '生产状态',
|
|
|
+ width: 120,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ formatter: (row) => {
|
|
|
+ if (!row.productionStatus) {
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+ return vm.productionStatus[row.productionStatus][row.productionStatus];
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
prop: 'customerExpectDeliveryDate',
|
|
|
label: '客户期望交期',
|
|
|
@@ -170,42 +188,32 @@ export const getColumns = (vm) => {
|
|
|
},
|
|
|
{
|
|
|
prop: 'productionDeliveryDate',
|
|
|
- label: '生产计划完成交期',
|
|
|
+ label: '生产计划交期',
|
|
|
width: 150,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: 'productionCycle',
|
|
|
+ label: '生产周期(天)',
|
|
|
+ width: 120,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
{
|
|
|
prop: 'materialCode',
|
|
|
- label: '材料编码',
|
|
|
+ label: '编码',
|
|
|
width: 170,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
prop: 'materialName',
|
|
|
- label: '材料描述',
|
|
|
+ label: '名称',
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
- {
|
|
|
- prop: 'materialProductionOrderNo',
|
|
|
- label: '生产订单号(图号 + 编码)',
|
|
|
- width: 180,
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- formatter: (row) => {
|
|
|
- if (row.imgCode && row.materialCode) {
|
|
|
- return row.materialCode + '-' + row.imgCode;
|
|
|
- }
|
|
|
-
|
|
|
- if (row.materialCode) {
|
|
|
- return row.materialCode;
|
|
|
- }
|
|
|
- return '';
|
|
|
- }
|
|
|
- },
|
|
|
{
|
|
|
prop: 'materialQuantity',
|
|
|
label: '数量',
|
|
|
@@ -221,44 +229,37 @@ export const getColumns = (vm) => {
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'materialWeight',
|
|
|
+ prop: 'productWeight',
|
|
|
label: '重量(kg)',
|
|
|
width: 100,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
- {
|
|
|
- prop: 'productionCycle',
|
|
|
- label: '生产周期(天)',
|
|
|
- width: 120,
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
{
|
|
|
slot: 'firstProcessDeliveryTime',
|
|
|
prop: 'firstProcessDeliveryTime',
|
|
|
- label: '首工序实际下达时间',
|
|
|
+ label: '首工序\n预计完成时间',
|
|
|
width: 160,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
prop: 'firstProcessCompleteTime',
|
|
|
- label: '首工序预计完成时间',
|
|
|
+ label: '首工序\n实际下达时间',
|
|
|
width: 160,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
prop: 'productEstimatedCompletionTime',
|
|
|
- label: '成品预计完成时间',
|
|
|
+ label: '成品\n预计完成时间',
|
|
|
width: 160,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
prop: 'productActualCompletionTime',
|
|
|
- label: '成品实际完成时间',
|
|
|
+ label: '成品\n实际完成时间',
|
|
|
width: 160,
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|