From 1eff6fe0753bfd7c0ac6d107bf9ce2221ebb478c Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 06 八月 2026 09:30:08 +0800
Subject: [PATCH] 新疆_马铃薯 1.人员选择下拉框添加筛选功能

---
 src/views/qualityManagement/finalInspection/index.vue |   78 ++++++++++++++++++++++-----------------
 1 files changed, 44 insertions(+), 34 deletions(-)

diff --git a/src/views/qualityManagement/finalInspection/index.vue b/src/views/qualityManagement/finalInspection/index.vue
index 81d5595..f523928 100644
--- a/src/views/qualityManagement/finalInspection/index.vue
+++ b/src/views/qualityManagement/finalInspection/index.vue
@@ -13,7 +13,7 @@
                         clearable />
             </el-form-item>
           </el-col>
-          <el-col :span="8">
+          <el-col :span="6">
             <el-form-item label="妫�娴嬫棩鏈�"
                           prop="entryDate">
               <el-date-picker v-model="searchForm.entryDate"
@@ -25,12 +25,20 @@
                               @change="changeDaterange" />
             </el-form-item>
           </el-col>
-          <el-col :span="6">
-            <el-form-item label="閿�鍞崟鍙�"
+          <el-col :span="4">
+            <el-form-item label="璁㈠崟鍙�"
                           prop="salesContractNo">
               <el-input v-model="searchForm.salesContractNo"
                         style="width: 240px"
-                        placeholder="璇疯緭鍏ラ攢鍞崟鍙锋悳绱�"
+                        placeholder="璇疯緭鍏ヨ鍗曞彿鎼滅储"
+                        clearable />
+            </el-form-item>
+          </el-col>
+          <el-col :span="4">
+            <el-form-item label="妫�楠屽憳"
+                          prop="checkName">
+              <el-input v-model="searchForm.checkName"
+                        placeholder="璇疯緭鍏ユ楠屽憳鎼滅储"
                         clearable />
             </el-form-item>
           </el-col>
@@ -51,7 +59,7 @@
       <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>
+      <el-button type="danger" plain @click="handleDelete" v-hasPermi="['qualityManagement:finalInspection:remove']">鍒犻櫎</el-button>
     </div>
       <PIMTable rowKey="id"
                 :column="tableColumn"
@@ -69,6 +77,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%"
@@ -80,7 +91,7 @@
                ref="formRef">
         <el-form-item label="妫�楠屽憳锛�"
                       prop="checkName">
-          <el-select v-model="form.checkName"
+          <el-select filterable v-model="form.checkName"
                      placeholder="璇烽�夋嫨"
                      clearable>
             <el-option v-for="item in userList"
@@ -115,6 +126,7 @@
   } from "vue";
   import InspectionFormDia from "@/views/qualityManagement/finalInspection/components/inspectionFormDia.vue";
   import FormDia from "@/views/qualityManagement/finalInspection/components/formDia.vue";
+  import QuickCheckDia from "@/views/qualityManagement/finalInspection/components/quickCheckDia.vue";
   import { ElMessageBox } from "element-plus";
   import {
     downloadQualityInspect,
@@ -122,7 +134,6 @@
     qualityInspectListPage,
     qualityInspectUpdate,
     submitQualityInspect,
-    batchQuickInspect,
   } from "@/api/qualityManagement/rawMaterialInspection.js";
   import FilesDia from "@/views/qualityManagement/finalInspection/components/filesDia.vue";
   import dayjs from "dayjs";
@@ -134,6 +145,7 @@
       productName: "",
       salesContractNo: "",
       workOrderNo: "",
+      checkName: "",
       entryDate: undefined, // 褰曞叆鏃ユ湡
       entryDateStart: undefined,
       entryDateEnd: undefined,
@@ -151,8 +163,13 @@
       width: 120,
     },
     {
-      label: "閿�鍞崟鍙�",
+      label: "璁㈠崟鍙�",
       prop: "salesContractNo",
+      width: 120,
+    },
+    {
+      label: "閿�鍞�诲悎鍚屽彿",
+      prop: "masterContractNo",
       width: 120,
     },
     {
@@ -232,6 +249,22 @@
           return "鏈彁浜�";
         }
       },
+    },
+    {
+      label: "妫�楠岃鍒�",
+      prop: "inspectRule",
+      width: 100,
+      formatData: (val) => val === 0 ? "鍏ㄦ" : val === 1 ? "鎶芥" : ""
+    },
+    {
+      label: "鎶芥姣斾緥(%)",
+      prop: "sampleRatio",
+      width: 120,
+    },
+    {
+      label: "鎶芥鏁伴噺",
+      prop: "sampleQuantity",
+      width: 100,
     },
     {
       dataType: "action",
@@ -322,6 +355,7 @@
   const formDia = ref();
   const filesDia = ref();
   const inspectionFormDia = ref();
+  const quickCheckDia = ref();
   const { proxy } = getCurrentInstance();
   const userStore = useUserStore();
   const userList = ref([]);
@@ -402,32 +436,8 @@
       return;
     }
 
-    const totalCount = selectedRows.value.length;
-    const submittedCount = totalCount - unSubmittedRows.length;
-
-    let confirmMessage = `宸查�夋嫨 ${totalCount} 鏉℃楠屽崟`;
-    if (submittedCount > 0) {
-      confirmMessage += `锛堝叾涓� ${submittedCount} 鏉″凡鎻愪氦锛屽皢鑷姩璺宠繃锛塦;
-    }
-    confirmMessage += `\n\n纭鍚庡皢鑷姩锛歕n路 妫�楠岀粨鏋滆涓�"鍚堟牸"\n路 鍚堟牸鏁伴噺璁句负鎬绘暟\n路 涓嶅悎鏍兼暟閲忚涓� 0\n路 鎻愪氦骞跺叆搴揱;
-
-    ElMessageBox.confirm(confirmMessage, "蹇�熸楠�", {
-      confirmButtonText: "纭",
-      cancelButtonText: "鍙栨秷",
-      type: "warning",
-      dangerouslyUseHTMLString: false,
-    })
-      .then(() => {
-        // 璋冪敤鎵归噺蹇�熸楠屾帴鍙�
-        const ids = unSubmittedRows.map(item => item.id);
-        batchQuickInspect(ids).then(res => {
-          proxy.$modal.msgSuccess(res.msg || "蹇�熸楠屽畬鎴�");
-          getList();
-        });
-      })
-      .catch(() => {
-        proxy.$modal.msg("宸插彇娑�");
-      });
+    const ids = unSubmittedRows.map(item => item.id);
+    quickCheckDia.value?.openDialog(ids, unSubmittedRows);
   };
 
   // 鎵撳紑鏂板妫�楠屽脊妗�

--
Gitblit v1.9.3