From a68d8260e9c4a1e8709a1f5ba69430ccb95f70da Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 21 一月 2026 10:59:48 +0800
Subject: [PATCH] 浪潮对接单点登录:能耗管理系统3

---
 src/views/qualityManagement/rawMaterialInspection/index.vue |   72 ++++++++++++++++-------------------
 1 files changed, 33 insertions(+), 39 deletions(-)

diff --git a/src/views/qualityManagement/rawMaterialInspection/index.vue b/src/views/qualityManagement/rawMaterialInspection/index.vue
index 804fed2..6bf0500 100644
--- a/src/views/qualityManagement/rawMaterialInspection/index.vue
+++ b/src/views/qualityManagement/rawMaterialInspection/index.vue
@@ -41,7 +41,7 @@
     <InspectionFormDia ref="inspectionFormDia" @close="handleQuery"></InspectionFormDia>
     <FormDia ref="formDia" @close="handleQuery"></FormDia>
     <files-dia ref="filesDia" @close="handleQuery"></files-dia>
-    <el-dialog v-model="dialogFormVisible" title="缂栬緫妫�楠屽憳" width="70%"
+    <el-dialog v-model="dialogFormVisible" title="缂栬緫妫�楠屽憳" width="30%"
                @close="closeDia">
       <el-form :model="form" label-width="140px" label-position="top" :rules="rules" ref="formRef">
         <el-form-item label="妫�楠屽憳锛�" prop="checkName">
@@ -81,12 +81,9 @@
 const data = reactive({
   searchForm: {
     supplier: "",
-    entryDate: [
-      dayjs().format("YYYY-MM-DD"),
-      dayjs().add(1, "day").format("YYYY-MM-DD"),
-    ], // 褰曞叆鏃ユ湡
-    entryDateStart: dayjs().format("YYYY-MM-DD"),
-    entryDateEnd: dayjs().add(1, "day").format("YYYY-MM-DD"),
+    entryDate: undefined, // 褰曞叆鏃ユ湡
+    entryDateStart: undefined,
+    entryDateEnd: undefined,
   },
   rules: {
     checkName: [{required: true, message: "璇烽�夋嫨", trigger: "change"}],
@@ -144,23 +141,23 @@
       }
     },
   },
-  {
-    label: "鎻愪氦鐘舵��",
-    prop: "inspectState",
-    formatData: (params) => {
-      if (params) {
-        return "宸叉彁浜�";
-      } else {
-        return "鏈彁浜�";
-      }
-    },
-  },
+  // {
+  //   label: "鎻愪氦鐘舵��",
+  //   prop: "inspectState",
+  //   formatData: (params) => {
+  //     if (params) {
+  //       return "宸叉彁浜�";
+  //     } else {
+  //       return "鏈彁浜�";
+  //     }
+  //   },
+  // },
   {
     dataType: "action",
     label: "鎿嶄綔",
     align: "center",
     fixed: "right",
-    width: 250,
+    width: 280,
     operation: [
       {
         name: "缂栬緫",
@@ -168,9 +165,9 @@
         clickFun: (row) => {
           openForm("edit", row);
         },
-        disabled: (row) => {
-          return row.inspectState;
-        }
+				disabled: (row) => {
+					return row.inspectState == 1;
+				}
       },
       {
         name: "闄勪欢",
@@ -179,13 +176,16 @@
           openFilesFormDia(row);
         },
       },
-      {
-        name: "鎻愪氦",
-        type: "text",
-        clickFun: (row) => {
-          submit(row.id);
-        },
-      },
+      // {
+      //   name: "鎻愪氦",
+      //   type: "text",
+      //   clickFun: (row) => {
+      //     submit(row.id);
+      //   },
+			// 	disabled: (row) => {
+			// 		return row.inspectState == 1;
+			// 	}
+      // },
       {
         name: "鍒嗛厤妫�楠屽憳",
         type: "text",
@@ -196,9 +196,9 @@
             proxy.$modal.msgError("妫�楠屽憳宸插瓨鍦�");
           }
         },
-        disabled: (row) => {
-          return row.inspectState;
-        }
+				disabled: (row) => {
+					return row.inspectState == 1 || row.checkName;
+				}
       },
       {
         name: "涓嬭浇",
@@ -269,12 +269,6 @@
 const openForm = (type, row) => {
   nextTick(() => {
     formDia.value?.openDialog(type, row)
-  })
-};
-// 鎵撳紑鏂板妫�楠屽脊妗�
-const openInspectionForm = (type, row) => {
-  nextTick(() => {
-    inspectionFormDia.value?.openDialog(type, row)
   })
 };
 // 鎵撳紑闄勪欢寮规
@@ -368,7 +362,7 @@
 
     const link = document.createElement('a')
     link.href = downloadUrl
-    link.download = '妫�楠屾姤鍛�.docx'
+    link.download = '鍘熸潗鏂欐楠屾姤鍛�.docx'
     document.body.appendChild(link)
     link.click()
 

--
Gitblit v1.9.3