From b937241a2c20f62f45b31b232b6cebdec03d41d7 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 31 三月 2026 15:57:42 +0800
Subject: [PATCH] fix: 销售批号

---
 src/views/productionManagement/productionOrder/index.vue |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/src/views/productionManagement/productionOrder/index.vue b/src/views/productionManagement/productionOrder/index.vue
index 8c254da..788d5d6 100644
--- a/src/views/productionManagement/productionOrder/index.vue
+++ b/src/views/productionManagement/productionOrder/index.vue
@@ -102,6 +102,13 @@
       :order-data="currentOrderData"
       @save="handleSaveClearanceRecord"
     />
+
+    <!-- 棰嗘枡寮规 -->
+    <material-requisition-dialog
+      v-model="materialRequisitionVisible"
+      :order-data="currentOrderData"
+      @confirm="handleQuery"
+    />
   </div>
 </template>
 
@@ -123,6 +130,7 @@
 
 const NewProductOrder = defineAsyncComponent(() => import("@/views/productionManagement/productionOrder/New.vue"));
 const ClearanceRecordDialog = defineAsyncComponent(() => import("@/views/productionManagement/productionOrder/ClearanceRecordDialog.vue"));
+const MaterialRequisitionDialog = defineAsyncComponent(() => import("@/views/productionManagement/productionOrder/MaterialRequisitionDialog.vue"));
 
 const {proxy} = getCurrentInstance();
 
@@ -148,6 +156,11 @@
   {
     label: "UID鐮�",
     prop: "uidNo",
+    width: '120px',
+  },
+  {
+    label: "鎵瑰彿",
+    prop: "batchNo",
     width: '120px',
   },
   {
@@ -244,6 +257,14 @@
           handleClearanceRecord(row);
         },
       },
+      {
+        name: "棰嗘枡",
+        type: "text",
+        showHide: row => !row.isEnd,
+        clickFun: row => {
+          handleMaterialRequisition(row);
+        },
+      },
     ],
   },
 ]);
@@ -310,6 +331,9 @@
 // 娓呭満璁板綍寮规
 const clearanceDialogVisible = ref(false);
 const currentOrderData = ref({});
+
+// 棰嗘枡寮规
+const materialRequisitionVisible = ref(false);
 const bindForm = reactive({
   orderId: null,
   routeId: null,
@@ -412,6 +436,7 @@
         processRouteCode: data.processRouteCode || "",
         productName: data.productName || "",
         model: data.model || "",
+        uidNo: data.uidNo || "",
         bomNo: data.bomNo || "",
         description: data.description || "",
         orderId,
@@ -432,6 +457,7 @@
       bomNo: row.bomNo || "",
       productName: row.productCategory || "",
       productModelName: row.specificationModel || "",
+      uidNo: row.uidNo || "",
       orderId: row.id,
       type: "order",
     },
@@ -525,6 +551,13 @@
     proxy.$modal.msgError("娓呭満璁板綍淇濆瓨澶辫触");
   }
 };
+
+// 鎵撳紑棰嗘枡寮规
+const handleMaterialRequisition = (row) => {
+  currentOrderData.value = row;
+  materialRequisitionVisible.value = true;
+};
+
 onMounted(() => {
   getList();
 });

--
Gitblit v1.9.3