From cd8b52bdf89a4d1101f72e0ece9f4df22a3d3f7a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 15 十月 2026 16:03:32 +0800
Subject: [PATCH] feat(mdm): 物料列表隐藏辅单位与销售价列

---
 src/views/mes/pro/route/data.ts |   40 ++++++++++++++++++++++++++++++++++++++--
 1 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/src/views/mes/pro/route/data.ts b/src/views/mes/pro/route/data.ts
index d59d436..f4bf910 100644
--- a/src/views/mes/pro/route/data.ts
+++ b/src/views/mes/pro/route/data.ts
@@ -18,6 +18,7 @@
 
 import { z } from '#/adapter/form';
 import { generateAutoCode } from '#/api/mes/md/autocode/record';
+import { getTemplatePage } from '#/api/mes/pro/processdesign/template';
 import {
   MdItemSelect,
   MdProductBomSelect,
@@ -166,7 +167,7 @@
       field: 'createTime',
       title: '鍒涘缓鏃堕棿',
       width: 180,
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
     },
     {
       title: '鎿嶄綔',
@@ -216,15 +217,50 @@
       rules: 'selectRequired',
     },
     {
+      fieldName: 'paramTemplateId',
+      label: '宸ヨ壓鍙傛暟妯℃澘',
+      component: 'ApiSelect',
+      componentProps: {
+        api: () => getTemplatePage({ pageNo: 1, pageSize: 100 }),
+        labelField: 'templateName',
+        valueField: 'id',
+        resultField: 'list',
+        allowClear: true,
+        placeholder: '璇烽�夋嫨宸ヨ壓鍙傛暟妯℃澘',
+      },
+    },
+    {
+      fieldName: 'yieldRate',
+      label: '鏀剁巼',
+      component: 'InputNumber',
+      componentProps: {
+        class: '!w-full',
+        min: 0.0001,
+        max: 1,
+        step: 0.01,
+        precision: 4,
+        placeholder: '浜у嚭/鎶曞叆锛屽 0.98',
+      },
+    },
+    {
       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'),
         placeholder: '璇烽�夋嫨',
       },
-      rules: z.number().default(3),
+      rules: z.number().optional(),
     },
     {
       fieldName: 'colorCode',

--
Gitblit v1.9.3