|
@@ -1930,34 +1930,30 @@
|
|
|
source.apsWorkOrderCode ||
|
|
source.apsWorkOrderCode ||
|
|
|
source.workOrderCode ||
|
|
source.workOrderCode ||
|
|
|
'',
|
|
'',
|
|
|
|
|
+ batchNo: source.batchNo || source.batchNum || '',
|
|
|
mesWorkOrderId,
|
|
mesWorkOrderId,
|
|
|
mesWorkOrderCode,
|
|
mesWorkOrderCode,
|
|
|
productionOrderNumber: mesWorkOrderCode,
|
|
productionOrderNumber: mesWorkOrderCode,
|
|
|
workOrderCode: mesWorkOrderCode
|
|
workOrderCode: mesWorkOrderCode
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
- getOrderSchedulingDisplayOrderCode(...sources) {
|
|
|
|
|
|
|
+ getOrderSchedulingDisplayBatchNo(...sources) {
|
|
|
for (const source of sources) {
|
|
for (const source of sources) {
|
|
|
if (!source) continue;
|
|
if (!source) continue;
|
|
|
- const code =
|
|
|
|
|
- source.mesWorkOrderCode ||
|
|
|
|
|
- source.workOrderCode ||
|
|
|
|
|
- source.productionOrderNumber ||
|
|
|
|
|
- source.apsWorkOrderCode ||
|
|
|
|
|
- source.orderCode ||
|
|
|
|
|
- source.code ||
|
|
|
|
|
- source.planCode ||
|
|
|
|
|
- '';
|
|
|
|
|
- if (code) return code;
|
|
|
|
|
|
|
+ const batchNo = source.batchNo || source.batchNum || '';
|
|
|
|
|
+ if (batchNo) return batchNo;
|
|
|
}
|
|
}
|
|
|
return '';
|
|
return '';
|
|
|
},
|
|
},
|
|
|
buildGanttPlanLabel(planInfo = {}, fallbackInfo = {}) {
|
|
buildGanttPlanLabel(planInfo = {}, fallbackInfo = {}) {
|
|
|
- const displayCode = this.getOrderSchedulingDisplayOrderCode(
|
|
|
|
|
|
|
+ const displayBatchNo = this.getOrderSchedulingDisplayBatchNo(
|
|
|
planInfo,
|
|
planInfo,
|
|
|
fallbackInfo
|
|
fallbackInfo
|
|
|
);
|
|
);
|
|
|
- return [displayCode, planInfo.productName || fallbackInfo.productName]
|
|
|
|
|
|
|
+ return [
|
|
|
|
|
+ displayBatchNo,
|
|
|
|
|
+ planInfo.productName || fallbackInfo.productName
|
|
|
|
|
+ ]
|
|
|
.filter(Boolean)
|
|
.filter(Boolean)
|
|
|
.join(' ');
|
|
.join(' ');
|
|
|
},
|
|
},
|
|
@@ -2388,8 +2384,10 @@
|
|
|
matchedPlanInfo,
|
|
matchedPlanInfo,
|
|
|
period
|
|
period
|
|
|
);
|
|
);
|
|
|
- const childDisplayOrderCode =
|
|
|
|
|
- this.getOrderSchedulingDisplayOrderCode(matchedPlanInfo, period);
|
|
|
|
|
|
|
+ const childDisplayBatchNo = this.getOrderSchedulingDisplayBatchNo(
|
|
|
|
|
+ matchedPlanInfo,
|
|
|
|
|
+ period
|
|
|
|
|
+ );
|
|
|
const displayRange = this.getOrderSchedulingFullDayRange(
|
|
const displayRange = this.getOrderSchedulingFullDayRange(
|
|
|
period.startTime,
|
|
period.startTime,
|
|
|
period.endTime
|
|
period.endTime
|
|
@@ -2473,9 +2471,8 @@
|
|
|
taskLabel,
|
|
taskLabel,
|
|
|
text: [
|
|
text: [
|
|
|
taskLabel,
|
|
taskLabel,
|
|
|
- childDisplayOrderCode,
|
|
|
|
|
- matchedPlanInfo.productName,
|
|
|
|
|
- matchedPlanInfo.batchNo
|
|
|
|
|
|
|
+ childDisplayBatchNo,
|
|
|
|
|
+ matchedPlanInfo.productName
|
|
|
]
|
|
]
|
|
|
.filter(Boolean)
|
|
.filter(Boolean)
|
|
|
.join(' / '),
|
|
.join(' / '),
|