Browse Source

修改bug

695593266@qq.com 1 week ago
parent
commit
82dd4b2aac

+ 9 - 10
src/views/productionPlan/components/newFactoryProductionScheduling.vue

@@ -2855,6 +2855,13 @@
             const childBatchNo =
               matchedPlanInfo.batchNo || period.batchNo || '';
             const childDisplayOrderCode = childBatchNo;
+            const childBarLabel = [
+              taskLabel,
+              childDisplayOrderCode,
+              matchedPlanInfo.productName
+            ]
+              .filter(Boolean)
+              .join(' / ');
             rows.push({
               id: this.buildGanttPeriodTaskId(
                 parentId,
@@ -2921,16 +2928,8 @@
               executionObjectType: item.executionObjectType || '',
               executionObjectName: item.executionObjectName || '',
               type: 5,
-              name:
-                [taskLabel, childPlanLabel].filter(Boolean).join(' / ') ||
-                taskLabel,
-              text: [
-                taskLabel,
-                childDisplayOrderCode,
-                matchedPlanInfo.productName
-              ]
-                .filter(Boolean)
-                .join(' / '),
+              name: childBarLabel || taskLabel,
+              text: childBarLabel,
               executor: childPlanLabel || taskLabel,
               laneLabel: resourceLabel,
               resourceName,