From 173855b299e89930b5ea2ff9a9295fde9d0f55b5 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 07 十一月 2026 08:51:43 +0800
Subject: [PATCH] feat: 同步质检、生产、销售、财务与人事前端功能

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

diff --git a/src/views/mes/qc/template/index.vue b/src/views/mes/qc/template/index.vue
index 4da6615..1fd5385 100644
--- a/src/views/mes/qc/template/index.vue
+++ b/src/views/mes/qc/template/index.vue
@@ -19,9 +19,15 @@
 
 import { useGridColumns, useGridFormSchema } from './data';
 import Form from './modules/form.vue';
+import ProcessBind from './modules/process-bind.vue';
 
 const [FormModal, formModalApi] = useVbenModal({
   connectedComponent: Form,
+  destroyOnClose: true,
+});
+
+const [ProcessBindModal, processBindModalApi] = useVbenModal({
+  connectedComponent: ProcessBind,
   destroyOnClose: true,
 });
 
@@ -43,6 +49,17 @@
 /** 缂栬緫璐ㄦ鏂规 */
 function handleEdit(row: MesQcTemplateApi.Template) {
   formModalApi.setData({ formType: 'update', id: row.id }).open();
+}
+
+/** 缁存姢鏂规閫傜敤鐨勫伐搴� */
+function handleProcessBind(row: MesQcTemplateApi.Template) {
+  processBindModalApi
+    .setData({
+      templateId: row.id,
+      templateName: row.name,
+      types: row.types,
+    })
+    .open();
 }
 
 /** 鍒犻櫎璐ㄦ鏂规 */
@@ -99,6 +116,7 @@
 
 <template>
   <Page auto-content-height><FormModal @success="handleRefresh" />
+    <ProcessBindModal @success="handleRefresh" />
 
     <Grid table-title="璐ㄦ鏂规鍒楄〃">
       <template #toolbar-tools>
@@ -139,6 +157,13 @@
         <TableAction
           :actions="[
             {
+              label: '閫傜敤宸ュ簭',
+              type: 'link',
+              icon: ACTION_ICON.EDIT,
+              auth: ['mes:qc-template:update'],
+              onClick: handleProcessBind.bind(null, row),
+            },
+            {
               label: $t('common.edit'),
               type: 'link',
               icon: ACTION_ICON.EDIT,

--
Gitblit v1.9.3