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/salesnotice/data.ts | 32 ++++++++++++--------------------
1 files changed, 12 insertions(+), 20 deletions(-)
diff --git a/src/views/wls/salesnotice/data.ts b/src/views/wls/salesnotice/data.ts
index 6818446..c0b807a 100644
--- a/src/views/wls/salesnotice/data.ts
+++ b/src/views/wls/salesnotice/data.ts
@@ -14,8 +14,6 @@
import { z } from '#/adapter/form';
import { generateAutoCode } from '#/api/mes/md/autocode/record';
-import CrmCustomerSelect from '#/components/crm-customer-select.vue';
-import { ErpSaleOrderSelect } from '#/views/erp/sale/order/components';
import { MdItemSelect } from '#/views/mes/md/item/components';
/** 琛ㄥ崟绫诲瀷 */
@@ -83,28 +81,21 @@
rules: 'required',
},
{
- fieldName: 'saleOrderId',
- label: '閿�鍞鍗�',
- component: markRaw(ErpSaleOrderSelect),
+ fieldName: 'saleOrderCode',
+ label: '閿�鍞鍗曠紪鍙�',
+ component: 'Input',
componentProps: {
- placeholder: '璇烽�夋嫨閿�鍞鍗�',
- // 閫夋嫨閿�鍞鍗曞悗锛岃嚜鍔ㄥ洖濉鎴蜂俊鎭�
- onChange: (item: any) => {
- if (item?.customerId && formApi) {
- formApi.setFieldValue('clientId', item.customerId);
- }
- },
+ placeholder: '璇疯緭鍏ラ攢鍞鍗曠紪鍙�',
},
},
{
- fieldName: 'clientId',
+ fieldName: 'clientName',
label: '瀹㈡埛',
- component: markRaw(CrmCustomerSelect),
+ component: 'Input',
componentProps: {
- placeholder: '璇烽�夋嫨瀹㈡埛',
- disabled: true,
+ placeholder: '璇疯緭鍏ュ鎴峰悕绉�',
},
- rules: 'selectRequired',
+ rules: 'required',
},
{
fieldName: 'salesDate',
@@ -186,11 +177,12 @@
},
},
{
- fieldName: 'clientId',
+ fieldName: 'clientName',
label: '瀹㈡埛',
- component: markRaw(CrmCustomerSelect),
+ component: 'Input',
componentProps: {
- placeholder: '璇烽�夋嫨瀹㈡埛',
+ allowClear: true,
+ placeholder: '璇疯緭鍏ュ鎴峰悕绉�',
},
},
];
--
Gitblit v1.9.3