From 6ebcfebf58fe23ea401de1050b15ba85e41763a9 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 17 十月 2026 18:36:52 +0800
Subject: [PATCH] feat(wls): 仓储物流单据跨模块关联字段改为手工填写
---
src/views/wls/packages/data.ts | 37 +++++++++++++++++--------------------
1 files changed, 17 insertions(+), 20 deletions(-)
diff --git a/src/views/wls/packages/data.ts b/src/views/wls/packages/data.ts
index 3c0b502..5fa1c2e 100644
--- a/src/views/wls/packages/data.ts
+++ b/src/views/wls/packages/data.ts
@@ -8,17 +8,14 @@
import {
DICT_TYPE,
MesAutoCodeRuleCode,
- MesProWorkOrderStatusEnum,
} from '@vben/constants';
import { Button } from 'ant-design-vue';
import { generateAutoCode } from '#/api/mes/md/autocode/record';
import { getSimpleUserList } from '#/api/system/user';
-import { MdClientSelect } from '#/views/mes/md/client/components';
import { MdItemSelect } from '#/views/mes/md/item/components';
import { MdUnitMeasureSelect } from '#/views/mes/md/unitmeasure/components';
-import { ProWorkOrderSelect } from '#/views/mes/pro/workorder/components';
/** 琛ㄥ崟绫诲瀷 */
export type FormType = 'create' | 'detail' | 'update';
@@ -78,7 +75,7 @@
componentProps: {
format: 'YYYY-MM-DD',
placeholder: '璇烽�夋嫨瑁呯鏃ユ湡',
- valueFormat: 'x',
+ valueFormat: 'YYYY-MM-DD',
},
rules: 'required',
},
@@ -111,11 +108,11 @@
},
},
{
- fieldName: 'clientId',
+ fieldName: 'clientName',
label: '瀹㈡埛',
- component: markRaw(MdClientSelect),
+ component: 'Input',
componentProps: {
- placeholder: '璇烽�夋嫨瀹㈡埛',
+ placeholder: '璇疯緭鍏ュ鎴峰悕绉�',
},
},
{
@@ -224,11 +221,12 @@
},
},
{
- fieldName: 'clientId',
+ fieldName: 'clientName',
label: '瀹㈡埛',
- component: markRaw(MdClientSelect),
+ component: 'Input',
componentProps: {
- placeholder: '璇烽�夋嫨瀹㈡埛',
+ allowClear: true,
+ placeholder: '璇疯緭鍏ュ鎴峰悕绉�',
},
},
{
@@ -418,14 +416,12 @@
export function useLineFormSchema(): VbenFormSchema[] {
return [
{
- fieldName: 'workOrderId',
- label: '鐢熶骇璁㈠崟',
- component: markRaw(ProWorkOrderSelect),
+ fieldName: 'workOrderCode',
+ label: '鐢熶骇璁㈠崟鍙�',
+ component: 'Input',
componentProps: {
- placeholder: '璇烽�夋嫨鐢熶骇璁㈠崟',
- status: MesProWorkOrderStatusEnum.CONFIRMED,
+ placeholder: '璇疯緭鍏ョ敓浜ц鍗曞彿',
},
- rules: 'selectRequired',
},
{
fieldName: 'itemId',
@@ -455,7 +451,7 @@
componentProps: {
format: 'YYYY-MM-DD',
placeholder: '璇烽�夋嫨鏈夋晥鏈�',
- valueFormat: 'x',
+ valueFormat: 'YYYY-MM-DD',
},
},
{
@@ -546,11 +542,12 @@
},
},
{
- fieldName: 'clientId',
+ fieldName: 'clientName',
label: '瀹㈡埛',
- component: markRaw(MdClientSelect),
+ component: 'Input',
componentProps: {
- placeholder: '璇烽�夋嫨瀹㈡埛',
+ allowClear: true,
+ placeholder: '璇疯緭鍏ュ鎴峰悕绉�',
},
},
{
--
Gitblit v1.9.3