From b5b1383e459be437f5038e02fbbd0aefce4f986e Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期四, 02 四月 2026 10:17:06 +0800
Subject: [PATCH] 固费消纳量API接入,更新图表数据处理

---
 src/views/productionManagement/productionOrder/index.vue |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/views/productionManagement/productionOrder/index.vue b/src/views/productionManagement/productionOrder/index.vue
index 4760456..3827f39 100644
--- a/src/views/productionManagement/productionOrder/index.vue
+++ b/src/views/productionManagement/productionOrder/index.vue
@@ -96,6 +96,10 @@
         <template #completeQuantity="{ row }">
           {{ row.completeQuantity || '-' }}<span style="color:rgb(42, 169, 146)"> 鏂�</span>
         </template>
+        <template #strength="{ row }">
+          <el-tag v-if="row.strength"
+                  :type="row.strength === 'A3.5' ? 'primary' : 'warning'">{{ row.strength }}</el-tag>
+        </template>
       </PIMTable>
     </div>
     <el-dialog v-model="bindRouteDialogVisible"
@@ -208,7 +212,7 @@
                   </div>
                   <div class="info-item">
                     <div class="info-label">宸蹭笅鍙戞柟鏁�</div>
-                    <div class="info-value">{{ item.assignedQuantity ? `${item.assignedQuantity}` : 0 }}<span style="color:rgba(214, 134, 22, 0.76)"> 鏂�</span></div>
+                    <div class="info-value">{{ item.totalAssignedQuantity ? `${item.totalAssignedQuantity}` : 0 }}<span style="color:rgba(214, 134, 22, 0.76)"> 鏂�</span></div>
                   </div>
                   <div class="info-item">
                     <div class="info-label">灏哄</div>
@@ -329,7 +333,9 @@
       label: "寮哄害",
       prop: "strength",
       width: "120px",
-      dataType: "tag",
+      dataType: "slot",
+      slot: "strength",
+      // formatData: val => (val ? val : ""),
     },
     {
       label: "鐗╂枡缂栫爜",
@@ -533,7 +539,7 @@
     },
     {
       label: "宸蹭笅鍙戞柟鏁�",
-      prop: "assignedQuantity",
+      prop: "totalAssignedQuantity",
       width: "150px",
       className: "spec-cell",
       formatData: cell => (cell ? `${cell}鏂筦 : 0),
@@ -864,6 +870,7 @@
                   volume: plan.volume,
                   status: plan.status,
                   assignedQuantity: plan.assignedQuantity,
+                  totalAssignedQuantity: plan.totalAssignedQuantity,
                   length: plan.length,
                   width: plan.width,
                   height: plan.height,

--
Gitblit v1.9.3