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 | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/src/views/mes/process-design/route/data.ts b/src/views/mes/process-design/route/data.ts
index 941a2be..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"),
@@ -270,12 +283,12 @@
},
{
fieldName: "waitTime",
- label: "绛夊緟鏃堕棿(鍒�)",
+ label: "绛夊緟鏃堕暱(灏忔椂)",
component: "InputNumber",
componentProps: {
class: "!w-full",
min: 0,
- precision: 0,
+ precision: 2,
},
rules: z.number().default(0),
},
@@ -342,7 +355,7 @@
width: 160,
},
{ field: "prepareTime", title: "鍑嗗鏃堕棿(鍒�)", width: 110 },
- { field: "waitTime", title: "绛夊緟鏃堕棿(鍒�)", width: 110 },
+ { field: "waitTime", title: "绛夊緟鏃堕暱(灏忔椂)", width: 110 },
{
field: "colorCode",
title: "鐢樼壒鍥鹃鑹�",
--
Gitblit v1.9.3