From f984f80ff5d6c36af7860a17d762fe92731e28bd Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期六, 07 十一月 2026 19:16:04 +0800
Subject: [PATCH] feat(feedback): 优化报工审批流程并增加报工人校验

---
 src/views/mes/qc/pendinginspect/index.vue |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/views/mes/qc/pendinginspect/index.vue b/src/views/mes/qc/pendinginspect/index.vue
index 486e3ad..30a3f0d 100644
--- a/src/views/mes/qc/pendinginspect/index.vue
+++ b/src/views/mes/qc/pendinginspect/index.vue
@@ -8,6 +8,7 @@
 
 import { Page, useVbenModal } from '@vben/common-ui';
 import { MesQcTypeEnum } from '@vben/constants';
+import { Alert, Tag } from 'ant-design-vue';
 
 import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
 import { getPendingInspectPage } from '#/api/mes/qc/pendinginspect';
@@ -141,7 +142,18 @@
     <OqcFormModal @success="handleRefresh" />
     <RqcFormModal @success="handleRefresh" />
 
+    <Alert
+      class="mb-4"
+      type="info"
+      show-icon
+      message="浠庡緟妫�浠诲姟鍒涘缓妫�楠屽崟"
+      description="璇峰厛涓虹墿鏂欓厤缃苟鍚敤瀵瑰簲绫诲瀷鐨勮川妫�鏂规銆傛湭鏄剧ず銆屽彲妫�楠屻�嶇殑鐗╂枡鏃犳硶鍒涘缓妫�楠屽崟銆傜敓浜ц繃绋嬫楠屽畬鎴愬悗锛岀郴缁熶細鍥炲啓鎶ュ伐骞跺鐞嗗悎鏍间骇鍑恒��"
+    />
     <Grid table-title="寰呮浠诲姟鍒楄〃">
+      <template #canInspect="{ row }">
+        <Tag v-if="row.canInspect" color="success">鍙楠�</Tag>
+        <Tag v-else color="error">鏈厤缃ā鏉�</Tag>
+      </template>
       <template #actions="{ row }">
         <TableAction
           :actions="[
@@ -150,6 +162,7 @@
               type: 'link',
               icon: ACTION_ICON.ADD,
               auth: ['mes:qc-iqc:create'],
+              disabled: row.canInspect === false,
               ifShow: row.qcType === MesQcTypeEnum.IQC,
               onClick: handleCreateIqc.bind(null, row),
             },
@@ -158,6 +171,7 @@
               type: 'link',
               icon: ACTION_ICON.ADD,
               auth: ['mes:qc-ipqc:create'],
+              disabled: row.canInspect === false,
               ifShow: row.qcType === MesQcTypeEnum.IPQC,
               onClick: handleCreateIpqc.bind(null, row),
             },
@@ -166,6 +180,7 @@
               type: 'link',
               icon: ACTION_ICON.ADD,
               auth: ['mes:qc-oqc:create'],
+              disabled: row.canInspect === false,
               ifShow: row.qcType === MesQcTypeEnum.OQC,
               onClick: handleCreateOqc.bind(null, row),
             },
@@ -174,6 +189,7 @@
               type: 'link',
               icon: ACTION_ICON.ADD,
               auth: ['mes:qc-rqc:create'],
+              disabled: row.canInspect === false,
               ifShow: row.qcType === MesQcTypeEnum.RQC,
               onClick: handleCreateRqc.bind(null, row),
             },

--
Gitblit v1.9.3