From 556bf43ff1b3d2a3f72d26a541dd589b2efee39d Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 17 三月 2026 17:39:56 +0800
Subject: [PATCH] 1.不合格处理印铜工序,只能选择报废 2.不合格处理增加隔离选项,并添加备注

---
 src/views/qualityManagement/finalInspection/index.vue |   37 +++++++++++++++++++++++++++++++++----
 1 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/src/views/qualityManagement/finalInspection/index.vue b/src/views/qualityManagement/finalInspection/index.vue
index 17e74b1..2a2360b 100644
--- a/src/views/qualityManagement/finalInspection/index.vue
+++ b/src/views/qualityManagement/finalInspection/index.vue
@@ -19,7 +19,7 @@
         >
       </div>
       <div>
-        <el-button type="primary" @click="openForm('add')">鏂板</el-button>
+<!--        <el-button type="primary" @click="openForm('add')">鏂板</el-button>-->
         <el-button @click="handleOut">瀵煎嚭</el-button>
         <el-button type="danger" plain @click="handleDelete">鍒犻櫎</el-button>
       </div>
@@ -62,7 +62,7 @@
 
 <script setup>
 import { Search } from "@element-plus/icons-vue";
-import {onMounted, ref} from "vue";
+import {onMounted, ref, reactive, toRefs, getCurrentInstance, nextTick} from "vue";
 import InspectionFormDia from "@/views/qualityManagement/finalInspection/components/inspectionFormDia.vue";
 import FormDia from "@/views/qualityManagement/finalInspection/components/formDia.vue";
 import {ElMessageBox} from "element-plus";
@@ -75,6 +75,7 @@
 import FilesDia from "@/views/qualityManagement/finalInspection/components/filesDia.vue";
 import dayjs from "dayjs";
 import {userListNoPage} from "@/api/system/user.js";
+import useUserStore from "@/store/modules/user";
 
 const data = reactive({
   searchForm: {
@@ -92,6 +93,11 @@
   {
     label: "妫�娴嬫棩鏈�",
     prop: "checkTime",
+    width: 120
+  },
+  {
+    label: "鐢熶骇宸ュ崟鍙�",
+    prop: "workOrderNo",
     width: 120
   },
   {
@@ -113,6 +119,16 @@
   {
     label: "鏁伴噺",
     prop: "quantity",
+    width: 100
+  },
+  {
+    label: "涓嶈壇鏁伴噺",
+    prop: "defectiveQuantity",
+    width: 100
+  },
+  {
+    label: "涓嶈壇鍘熷洜",
+    prop: "defectiveReason",
     width: 100
   },
   {
@@ -159,7 +175,13 @@
           openForm("edit", row);
         },
 				disabled: (row) => {
-					return row.inspectState == 1;
+					// 宸叉彁浜ゅ垯绂佺敤
+					if (row.inspectState == 1) return true;
+					// 濡傛灉妫�楠屽憳鏈夊�硷紝鍙湁褰撳墠鐧诲綍鐢ㄦ埛鑳界紪杈�
+					if (row.checkName) {
+						return row.checkName !== userStore.nickName;
+					}
+					return false;
 				}
       },
       {
@@ -176,7 +198,13 @@
 					submit(row.id);
 				},
 				disabled: (row) => {
-					return row.inspectState == 1;
+					// 宸叉彁浜ゅ垯绂佺敤
+					if (row.inspectState == 1) return true;
+					// 濡傛灉妫�楠屽憳鏈夊�硷紝鍙湁褰撳墠鐧诲綍鐢ㄦ埛鑳芥彁浜�
+					if (row.checkName) {
+						return row.checkName !== userStore.nickName;
+					}
+					return false;
 				}
 			},
 			{
@@ -216,6 +244,7 @@
 const filesDia = ref()
 const inspectionFormDia = ref()
 const { proxy } = getCurrentInstance()
+const userStore = useUserStore()
 const userList = ref([]);
 const form = ref({
 	checkName: ""

--
Gitblit v1.9.3