From 8f8dcdae7e40ba4e94a363aa8eb91c7665810bc3 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 31 八月 2026 15:29:17 +0800
Subject: [PATCH] fix: 新疆-绿能 1.报工自动生成产品入库单 + 勾选入库 + 不合格仓库兜底

---
 src/views/mes/process-design/route/data.ts |   29 +++++++++++++++++++++--------
 1 files changed, 21 insertions(+), 8 deletions(-)

diff --git a/src/views/mes/process-design/route/data.ts b/src/views/mes/process-design/route/data.ts
index 3c76624..5c310bb 100644
--- a/src/views/mes/process-design/route/data.ts
+++ b/src/views/mes/process-design/route/data.ts
@@ -166,7 +166,10 @@
 }
 
 /** 宸ヨ壓璺嚎宸ュ簭鏄庣粏琛ㄥ崟 */
-export function useRouteProcessFormSchema(processOptions: Array<{ label: string; value: number }>): VbenFormSchema[] {
+export function useRouteProcessFormSchema(
+  processOptions: Array<{ label: string; value: number }>,
+  onProcessChange?: (processId?: number) => void,
+): VbenFormSchema[] {
   return [
     {
       fieldName: "id",
@@ -198,6 +201,7 @@
         options: processOptions,
         placeholder: "璇烽�夋嫨宸ュ簭",
         showSearch: true,
+        onChange: onProcessChange,
       },
       rules: "selectRequired",
     },
@@ -205,6 +209,15 @@
       fieldName: "linkType",
       label: "涓庝笅閬撳伐搴忓叧绯�",
       component: "Select",
+      help: () =>
+        h(
+          "div",
+          {
+            style:
+              "white-space: pre-line; max-width: 320px; line-height: 1.6;",
+          },
+          "0=寮�濮�-寮�濮�(SS)锛氭湰宸ュ簭寮�濮嬪悗锛屼笅閬撳伐搴忔墠鑳藉紑濮嬶紙鍙噸鍙犲苟琛屽紑宸ワ級\n1=缁撴潫-缁撴潫(FF)锛氫笅閬撳伐搴忓繀椤荤瓑鍒版湰宸ュ簭缁撴潫鎵嶈兘缁撴潫锛堝苟琛屼絾鍚屾瀹屽伐锛塡n2=寮�濮�-缁撴潫(SF)锛氭湰宸ュ簭寮�濮嬪悗锛屼笅閬撳伐搴忔墠鑳界粨鏉焅n3=缁撴潫-寮�濮�(FS)锛氭湰宸ュ簭缁撴潫鍚庯紝涓嬮亾宸ュ簭鎵嶈兘寮�濮嬶紙榛樿鍊硷級",
+        ),
       componentProps: {
         allowClear: true,
         options: getDictOptions(DICT_TYPE.MES_PRO_LINK_TYPE, "number"),
@@ -248,10 +261,11 @@
       rules: z.boolean().default(true),
     },
     {
-      fieldName: "outputItemId",
+      fieldName: "outputItemIds",
       label: "浜у嚭浜у搧",
       component: markRaw(MdItemSelect),
       componentProps: {
+        multiple: true,
         placeholder: "鐣欑┖鍒欓粯璁や负宸ュ崟鎴愬搧",
       },
       formItemClass: "col-span-2",
@@ -269,12 +283,12 @@
     },
     {
       fieldName: "waitTime",
-      label: "绛夊緟鏃堕棿(鍒�)",
+      label: "绛夊緟鏃堕暱(灏忔椂)",
       component: "InputNumber",
       componentProps: {
         class: "!w-full",
         min: 0,
-        precision: 0,
+        precision: 2,
       },
       rules: z.number().default(0),
     },
@@ -336,13 +350,12 @@
       },
     },
     {
-      field: "outputItemName",
+      field: "outputItemNames",
       title: "浜у嚭浜у搧",
-      width: 140,
-      slots: { default: "outputItemName" },
+      width: 160,
     },
     { field: "prepareTime", title: "鍑嗗鏃堕棿(鍒�)", width: 110 },
-    { field: "waitTime", title: "绛夊緟鏃堕棿(鍒�)", width: 110 },
+    { field: "waitTime", title: "绛夊緟鏃堕暱(灏忔椂)", width: 110 },
     {
       field: "colorCode",
       title: "鐢樼壒鍥鹃鑹�",

--
Gitblit v1.9.3