From fd6abd7553ea3a994ff4bbc843ea61b9eb2f6fc7 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 31 三月 2026 11:48:04 +0800
Subject: [PATCH] 打印销售台账增加UID码

---
 src/views/qualityManagement/rawMaterialInspection/index.vue |   31 ++++++++++++++++++++++++++++++-
 1 files changed, 30 insertions(+), 1 deletions(-)

diff --git a/src/views/qualityManagement/rawMaterialInspection/index.vue b/src/views/qualityManagement/rawMaterialInspection/index.vue
index f50ddb8..c03608a 100644
--- a/src/views/qualityManagement/rawMaterialInspection/index.vue
+++ b/src/views/qualityManagement/rawMaterialInspection/index.vue
@@ -98,6 +98,11 @@
     width: 120
   },
   {
+    label: "閲囪喘璁㈠崟鍙�",
+    prop: "purchaseContractNo",
+    width: 120
+  },
+  {
     label: "渚涘簲鍟�",
     prop: "supplier",
     width: 230
@@ -113,6 +118,10 @@
   {
     label: "瑙勬牸鍨嬪彿",
     prop: "model",
+  },
+  {
+    label: "UID鐮�",
+    prop: "uidNo",
   },
   {
     label: "鍗曚綅",
@@ -158,7 +167,7 @@
     label: "鎿嶄綔",
     align: "center",
     fixed: "right",
-    width: 280,
+    width: 340,
     operation: [
       {
         name: "缂栬緫",
@@ -170,6 +179,20 @@
 					// 宸叉彁浜ゅ垯绂佺敤
 					if (row.inspectState == 1) return true;
 					// 濡傛灉妫�楠屽憳鏈夊�硷紝鍙湁褰撳墠鐧诲綍鐢ㄦ埛鑳界紪杈�
+					if (row.checkName) {
+						return row.checkName !== userStore.nickName;
+					}
+					return false;
+				}
+      },
+      {
+        name: "濉啓妫�楠岃褰�",
+        type: "text",
+        clickFun: (row) => {
+          openInspectionForm("edit", row);
+        },
+				disabled: (row) => {
+					if (row.inspectState == 1) return true;
 					if (row.checkName) {
 						return row.checkName !== userStore.nickName;
 					}
@@ -285,6 +308,12 @@
     formDia.value?.openDialog(type, row)
   })
 };
+// 鎵撳紑鏂板妫�楠屽脊妗�
+const openInspectionForm = (type, row) => {
+  nextTick(() => {
+    inspectionFormDia.value?.openDialog(type, row)
+  })
+};
 // 鎵撳紑闄勪欢寮规
 const openFilesFormDia = (type, row) => {
   nextTick(() => {

--
Gitblit v1.9.3