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 |   79 +++++++++++++++++++++++++--------------
 1 files changed, 51 insertions(+), 28 deletions(-)

diff --git a/src/views/productionManagement/productionOrder/index.vue b/src/views/productionManagement/productionOrder/index.vue
index 721b656..1932e2b 100644
--- a/src/views/productionManagement/productionOrder/index.vue
+++ b/src/views/productionManagement/productionOrder/index.vue
@@ -71,6 +71,20 @@
             :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>
     <el-dialog v-model="bindRouteDialogVisible"
@@ -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(() => {

--
Gitblit v1.9.3