From 94ee31388ed0012d2c65437bd164e6878f4c635d Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 10 四月 2026 13:31:48 +0800
Subject: [PATCH] 新疆大罗素 1.设备保养、设备维修、设备巡检新增时可以多选设备 2.设备台账添加区域维护字段 3.添加环境页面实时展示设备数据

---
 src/views/qualityManagement/processInspection/index.vue |   49 ++++++++++++++++++++++++++++++++++---------------
 1 files changed, 34 insertions(+), 15 deletions(-)

diff --git a/src/views/qualityManagement/processInspection/index.vue b/src/views/qualityManagement/processInspection/index.vue
index cebda55..bd071a7 100644
--- a/src/views/qualityManagement/processInspection/index.vue
+++ b/src/views/qualityManagement/processInspection/index.vue
@@ -2,15 +2,15 @@
   <div class="app-container">
     <div class="search_form">
       <div>
-        <span class="search_title">宸ュ簭锛�</span>
-        <el-input
-            v-model="searchForm.process"
-            style="width: 240px"
-            placeholder="璇疯緭鍏ュ伐搴忔悳绱�"
-            @change="handleQuery"
-            clearable
-            :prefix-icon="Search"
-        />
+<!--        <span class="search_title">宸ュ簭锛�</span>-->
+<!--        <el-input-->
+<!--            v-model="searchForm.process"-->
+<!--            style="width: 240px"-->
+<!--            placeholder="璇疯緭鍏ュ伐搴忔悳绱�"-->
+<!--            @change="handleQuery"-->
+<!--            clearable-->
+<!--            :prefix-icon="Search"-->
+<!--        />-->
         <span  style="margin-left: 10px" class="search_title">妫�娴嬫棩鏈燂細</span>
         <el-date-picker  v-model="searchForm.entryDate" value-format="YYYY-MM-DD" format="YYYY-MM-DD" type="daterange"
                          placeholder="璇烽�夋嫨" clearable @change="changeDaterange" />
@@ -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/processInspection/components/inspectionFormDia.vue";
 import FormDia from "@/views/qualityManagement/processInspection/components/formDia.vue";
 import {ElMessageBox} from "element-plus";
@@ -75,6 +75,7 @@
 import FilesDia from "@/views/qualityManagement/processInspection/components/filesDia.vue";
 import dayjs from "dayjs";
 import {userListNoPage} from "@/api/system/user.js";
+import useUserStore from "@/store/modules/user";
 
 const data = reactive({
   searchForm: {
@@ -95,10 +96,15 @@
     width: 120
   },
   {
-    label: "宸ュ簭",
-    prop: "process",
-    width: 230
+    label: "鐢熶骇宸ュ崟鍙�",
+    prop: "workOrderNo",
+    width: 120
   },
+  // {
+  //   label: "宸ュ簭",
+  //   prop: "process",
+  //   width: 230
+  // },
   {
     label: "妫�楠屽憳",
     prop: "checkName",
@@ -164,7 +170,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;
 				}
       },
       {
@@ -181,7 +193,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;
 				}
 			},
 			{
@@ -226,6 +244,7 @@
 const filesDia = ref()
 const inspectionFormDia = ref()
 const { proxy } = getCurrentInstance()
+const userStore = useUserStore()
 const changeDaterange = (value) => {
   searchForm.value.entryDateStart = undefined;
   searchForm.value.entryDateEnd = undefined;

--
Gitblit v1.9.3