From 2a3bfb3cb8a3752776affc621474dc61ee021b08 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 21 八月 2026 10:54:00 +0800
Subject: [PATCH] 湟水峡 1.生产工单添加订单号查询条件 2.检验弹框不要分页展示

---
 src/views/productionManagement/productionOrder/index.vue |   88 +++++++++++++++++++++++++++++--------------
 1 files changed, 59 insertions(+), 29 deletions(-)

diff --git a/src/views/productionManagement/productionOrder/index.vue b/src/views/productionManagement/productionOrder/index.vue
index 8d4a8aa..1932e2b 100644
--- a/src/views/productionManagement/productionOrder/index.vue
+++ b/src/views/productionManagement/productionOrder/index.vue
@@ -48,7 +48,7 @@
                      @click="handleQuery">鎼滅储</el-button>
         </el-form-item>
       </el-form>
-      <div>
+      <div class="action-buttons">
         <el-button type="primary" @click="isShowNewModal = true">鏂板</el-button>
         <el-button type="danger" @click="handleDelete">鍒犻櫎</el-button>
         <el-button @click="handleOut">瀵煎嚭</el-button>
@@ -70,6 +70,20 @@
             :color="progressColor(toProgressPercentage(row?.completionStatus))"
             :status="toProgressPercentage(row?.completionStatus) >= 100 ? 'success' : ''"
           />
+        </template>
+        <template #salesContractNo="{ row }">
+          <template v-if="row.salesContractNos && row.salesContractNos.length > 0">
+            <el-tag v-for="(no, idx) in row.salesContractNos" :key="idx" size="small" style="margin: 2px;">{{ no }}</el-tag>
+          </template>
+          <span v-else-if="row.salesContractNo">{{ row.salesContractNo }}</span>
+          <span v-else>-</span>
+        </template>
+        <template #customerName="{ row }">
+          <template v-if="row.customerNames && row.customerNames.length > 0">
+            <el-tag v-for="(name, idx) in row.customerNames" :key="idx" size="small" style="margin: 2px;">{{ name }}</el-tag>
+          </template>
+          <span v-else-if="row.customerName">{{ row.customerName }}</span>
+          <span v-else>-</span>
         </template>
       </PIMTable>
     </div>
@@ -148,11 +162,15 @@
       label: "閿�鍞悎鍚屽彿",
       prop: "salesContractNo",
       width: '150px',
+      dataType: "slot",
+      slot: "salesContractNo",
     },
     {
       label: "瀹㈡埛鍚嶇О",
       prop: "customerName",
       width: '200px',
+      dataType: "slot",
+      slot: "customerName",
     },
     {
       label: "浜у搧鍚嶇О",
@@ -196,12 +214,12 @@
       formatData: val => (val ? dayjs(val).format("YYYY-MM-DD") : ""),
       width: 120,
     },
-    {
-      label: "浜や粯鏃ユ湡",
-      prop: "deliveryDate",
-      formatData: val => (val ? dayjs(val).format("YYYY-MM-DD") : ""),
-      width: 120,
-    },
+    // {
+    //   label: "浜や粯鏃ユ湡",
+    //   prop: "deliveryDate",
+    //   formatData: val => (val ? dayjs(val).format("YYYY-MM-DD") : ""),
+    //   width: 120,
+    // },
     {
       dataType: "action",
       label: "鎿嶄綔",
@@ -224,27 +242,27 @@
             openBindRouteDialog(row);
           },
         },
-        {
-          name: "浜у搧缁撴瀯",
-          type: "text",
-          clickFun: row => {
-            showProductStructure(row);
-          },
-        },
-        {
-          name: "棰嗘枡",
-          type: "text",
-          clickFun: row => {
-            openMaterialDialog(row);
-          },
-        },
-        {
-          name: "棰嗘枡璇︽儏",
-          type: "text",
-          clickFun: row => {
-            openMaterialDetailDialog(row);
-          },
-        },
+        // {
+        //   name: "浜у搧缁撴瀯",
+        //   type: "text",
+        //   clickFun: row => {
+        //     showProductStructure(row);
+        //   },
+        // },
+        // {
+        //   name: "棰嗘枡",
+        //   type: "text",
+        //   clickFun: row => {
+        //     openMaterialDialog(row);
+        //   },
+        // },
+        // {
+        //   name: "棰嗘枡璇︽儏",
+        //   type: "text",
+        //   clickFun: row => {
+        //     openMaterialDetailDialog(row);
+        //   },
+        // },
       ],
     },
   ]);
@@ -400,7 +418,12 @@
     productOrderListPage(params)
       .then(res => {
         tableLoading.value = false;
-        tableData.value = res.data.records;
+        const records = res.data.records || [];
+        records.forEach(row => {
+          row.salesContractNos = row.salesContractNo ? row.salesContractNo.split(',').filter(Boolean) : [];
+          row.customerNames = row.customerName ? row.customerName.split(',').filter(Boolean) : [];
+        });
+        tableData.value = records;
         page.total = res.data.total;
       })
       .catch(() => {
@@ -421,6 +444,7 @@
         path: "/productionManagement/processRouteItem",
         query: {
           id: data.id,
+          bomId: data.bomId,
           processRouteCode: data.processRouteCode || "",
           productName: data.productName || "",
           model: data.model || "",
@@ -504,6 +528,12 @@
   align-items: start;
 }
 
+.action-buttons {
+  display: flex;
+  flex-wrap: nowrap;
+  gap: 8px;
+}
+
 :deep(.yellow) {
   background-color: #FAF0DE;
 }

--
Gitblit v1.9.3