From 874afbfb8eec12fe6ca60565c80f620f68e30d62 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期六, 07 十一月 2026 14:24:29 +0800
Subject: [PATCH] feat(qc): 拆分部门审批流程并支持扫码自动识别

---
 src/views/mes/qc/seedQuality/process-detail.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/mes/qc/seedQuality/process-detail.vue b/src/views/mes/qc/seedQuality/process-detail.vue
index 3d7d05b..8c3577b 100644
--- a/src/views/mes/qc/seedQuality/process-detail.vue
+++ b/src/views/mes/qc/seedQuality/process-detail.vue
@@ -24,6 +24,7 @@
 }>();
 
 const LINE_PROCESS_KEY = 'mes_seed_quality_line_approve';
+const SALES_LINE_PROCESS_KEY = 'mes_seed_quality_sales_line_approve';
 const COMPANY_PROCESS_KEY = 'mes_seed_quality_company_approve';
 const RETURN_PROCESS_KEY = 'mes_seed_return_approve';
 
@@ -100,7 +101,10 @@
 });
 
 const modeLabel = computed(() => {
-  if (mode.value === 'line') return '绉嶅瓙璐ㄦ 路 閮ㄩ棬瀹℃壒';
+  if (mode.value === 'line') {
+    const lineLabel = qcLineLabels[parsedLine.value ?? 0];
+    return parsedLine.value && lineLabel ? `绉嶅瓙璐ㄦ 路 ${lineLabel}瀹℃壒` : '绉嶅瓙璐ㄦ 路 閮ㄩ棬瀹℃壒';
+  }
   if (mode.value === 'company') return '绉嶅瓙璐ㄦ 路 鍏徃璐ㄦ瀹℃壒';
   if (mode.value === 'return') return '缁忛攢鍟嗛��璐� 路 璐ㄦ瀹℃壒';
   return '绉嶅瓙璐ㄦ';
@@ -166,7 +170,7 @@
 
 function detectMode(): DetailMode {
   const key = props.processDefinitionKey;
-  if (key === LINE_PROCESS_KEY) return 'line';
+  if (key === LINE_PROCESS_KEY || key === SALES_LINE_PROCESS_KEY) return 'line';
   if (key === COMPANY_PROCESS_KEY) return 'company';
   if (key === RETURN_PROCESS_KEY) return 'return';
   if (businessKey.value.includes('#')) return 'line';

--
Gitblit v1.9.3