From a563ea879ef5fb6897e76d2df661e465dce2ab9b Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期一, 01 六月 2026 15:02:27 +0800
Subject: [PATCH] Merge branch 'dev_新疆_大罗素马铃薯new' of http://114.132.189.42:9002/r/product-inventory-management into dev_新疆_大罗素马铃薯new

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

diff --git a/src/views/qualityManagement/processInspection/index.vue b/src/views/qualityManagement/processInspection/index.vue
index 58d1a3a..9fe630a 100644
--- a/src/views/qualityManagement/processInspection/index.vue
+++ b/src/views/qualityManagement/processInspection/index.vue
@@ -2,13 +2,6 @@
   <div class="app-container">
     <div class="search_form mb20">
       <div>
-        <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"
@@ -18,28 +11,18 @@
                         placeholder="璇烽�夋嫨"
                         clearable
                         @change="changeDaterange" />
-        <span style="margin-left: 10px"
-              class="search_title">鐢熶骇宸ュ崟鍙凤細</span>
-        <el-input v-model="searchForm.workOrderNo"
-                  style="width: 240px"
-                  placeholder="璇疯緭鍏ョ敓浜у伐鍗曞彿鎼滅储"
-                  @change="handleQuery"
-                  clearable
-                  :prefix-icon="Search" />
         <el-button type="primary"
                    @click="handleQuery"
                    style="margin-left: 10px">鎼滅储</el-button>
       </div>
-      <div>
-        <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>
     </div>
     <div class="table_list">
+       <div style="margin-bottom: 20px; text-align: right;">
+      <el-button type="primary" @click="openQuickCheck">蹇�熸楠�</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>
       <PIMTable rowKey="id"
                 :column="tableColumn"
                 :tableData="tableData"
@@ -56,6 +39,9 @@
              @close="handleQuery"></FormDia>
     <files-dia ref="filesDia"
                @close="handleQuery"></files-dia>
+    <QuickCheckDia ref="quickCheckDia"
+                   @close="handleQuery"
+                   @success="getList"></QuickCheckDia>
     <el-dialog v-model="dialogFormVisible"
                title="缂栬緫妫�楠屽憳"
                width="30%"
@@ -85,6 +71,8 @@
         </div>
       </template>
     </el-dialog>
+
+
   </div>
 </template>
 
@@ -100,6 +88,7 @@
   } from "vue";
   import InspectionFormDia from "@/views/qualityManagement/processInspection/components/inspectionFormDia.vue";
   import FormDia from "@/views/qualityManagement/processInspection/components/formDia.vue";
+  import QuickCheckDia from "@/views/qualityManagement/processInspection/components/quickCheckDia.vue";
   import { ElMessageBox } from "element-plus";
   import {
     downloadQualityInspect,
@@ -115,7 +104,6 @@
 
   const data = reactive({
     searchForm: {
-      process: "",
       entryDate: undefined, // 褰曞叆鏃ユ湡
       workOrderNo: "",
       entryDateStart: undefined,
@@ -126,6 +114,7 @@
     },
   });
   const { searchForm } = toRefs(data);
+
   const tableColumn = ref([
     {
       label: "妫�娴嬫棩鏈�",
@@ -133,18 +122,13 @@
       width: 120,
     },
     {
-      label: "鐢熶骇宸ュ崟鍙�",
-      prop: "workOrderNo",
-      width: 120,
-    },
-    {
-      label: "宸ュ簭",
-      prop: "process",
-      width: 230,
-    },
-    {
       label: "妫�楠屽憳",
       prop: "checkName",
+    },
+    {
+      label: "閲囪喘鍚堝悓鍙�",
+      prop: "purchaseContractNo",
+			width: 150,
     },
     {
       label: "浜у搧鍚嶇О",
@@ -314,6 +298,7 @@
   const formDia = ref();
   const filesDia = ref();
   const inspectionFormDia = ref();
+  const quickCheckDia = ref();
   const { proxy } = getCurrentInstance();
   const userStore = useUserStore();
   const changeDaterange = value => {
@@ -372,6 +357,26 @@
       formDia.value?.openDialog(type, row);
     });
   };
+
+  // 鎵撳紑蹇�熸楠岀‘璁ゆ
+  const openQuickCheck = () => {
+    // 妫�鏌ユ槸鍚﹂�夋嫨浜嗘暟鎹�
+    if (!selectedRows.value || selectedRows.value.length === 0) {
+      proxy.$modal.msgWarning("璇峰厛閫夋嫨瑕佹楠岀殑鏁版嵁");
+      return;
+    }
+
+    // 杩囨护鍑烘湭鎻愪氦鐨勬暟鎹�
+    const unSubmittedRows = selectedRows.value.filter(item => item.inspectState !== 1);
+    if (unSubmittedRows.length === 0) {
+      proxy.$modal.msgWarning("閫変腑鐨勬暟鎹凡鍏ㄩ儴鎻愪氦锛屾棤闇�閲嶅妫�楠�");
+      return;
+    }
+
+    const ids = unSubmittedRows.map(item => item.id);
+    quickCheckDia.value?.openDialog(ids, unSubmittedRows);
+  };
+
   // 鎵撳紑鏂板妫�楠屽脊妗�
   const openInspectionForm = (type, row) => {
     nextTick(() => {

--
Gitblit v1.9.3