From 6a415a072a98d64d2f95d16eef73b6d7270b8d56 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 30 五月 2026 15:14:25 +0800
Subject: [PATCH] 新疆马铃薯 1.首页问题:挪新系统ui,需要确认一下页面数据完整。 2.协同办公:挪新系统 3.营销管理:客户往来取消回款金额字段,改为点击左侧客户时显示与该客户的所有订单信息,以及发货情况。销售可以选好对应的采购订单方便质量追溯。 4.采购管理:供应商往来同上逻辑,显示是否收货,也加上采购退货和采购报表功能。 5.采购加上设备备件选项,设备备件入库到备件库存。设备,仓储不足时做采购提醒。 6.仓储物流:得区分成品库和原料库(不存在半成品,成品只有一个产品,很好确认),原材料需要有批号,采集原料库需要做好仓库字段,让他们可以区分哪个仓库,然后把数采设备信息做一个实时的显示。总库存显示好当前存在的批次信息。 7.质量:只有不通过才需要填写对应的数据信息。在外侧做好选择通过不通过。过程,出厂检验无法对应到生产订单,那就对应到销售订单。 8.决策分析:基础数据分析和进销存分析,质量数据分析需要重新设计

---
 src/views/qualityManagement/processInspection/index.vue |   67 +++++++++++++++++++++++++++------
 1 files changed, 54 insertions(+), 13 deletions(-)

diff --git a/src/views/qualityManagement/processInspection/index.vue b/src/views/qualityManagement/processInspection/index.vue
index 58d1a3a..85e3811 100644
--- a/src/views/qualityManagement/processInspection/index.vue
+++ b/src/views/qualityManagement/processInspection/index.vue
@@ -30,16 +30,14 @@
                    @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"
@@ -85,6 +83,8 @@
         </div>
       </template>
     </el-dialog>
+
+
   </div>
 </template>
 
@@ -107,6 +107,7 @@
     qualityInspectListPage,
     qualityInspectUpdate,
     submitQualityInspect,
+    batchQuickInspect,
   } from "@/api/qualityManagement/rawMaterialInspection.js";
   import FilesDia from "@/views/qualityManagement/processInspection/components/filesDia.vue";
   import dayjs from "dayjs";
@@ -126,15 +127,11 @@
     },
   });
   const { searchForm } = toRefs(data);
+
   const tableColumn = ref([
     {
       label: "妫�娴嬫棩鏈�",
       prop: "checkTime",
-      width: 120,
-    },
-    {
-      label: "鐢熶骇宸ュ崟鍙�",
-      prop: "workOrderNo",
       width: 120,
     },
     {
@@ -372,6 +369,50 @@
       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 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 openInspectionForm = (type, row) => {
     nextTick(() => {

--
Gitblit v1.9.3