From 78caa769e452f63288743b8997f7b4c21bb06ce5 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期五, 06 十一月 2026 19:00:38 +0800
Subject: [PATCH] feat(crm,mes): 扩展客户字段与重构批次号生成逻辑
---
src/views/wls/outsourcereceipt/data.ts | 59 +----------------------------------------------------------
1 files changed, 1 insertions(+), 58 deletions(-)
diff --git a/src/views/wls/outsourcereceipt/data.ts b/src/views/wls/outsourcereceipt/data.ts
index 4d336b4..32da8fd 100644
--- a/src/views/wls/outsourcereceipt/data.ts
+++ b/src/views/wls/outsourcereceipt/data.ts
@@ -23,11 +23,7 @@
import { MdItemSelect } from '#/views/mes/md/item/components';
import { MdVendorSelect } from '#/views/mes/md/vendor/components';
import { ProWorkOrderSelect } from '#/views/mes/pro/workorder/components';
-import {
- WmWarehouseAreaSelect,
- WmWarehouseLocationSelect,
- WmWarehouseSelect,
-} from '#/views/wls/warehouse/components';
+import { WmWarehouseSelect } from '#/views/wls/warehouse/components';
/** 琛ㄥ崟绫诲瀷 */
export type FormType = 'create' | 'detail' | 'finish' | 'stock' | 'update';
@@ -415,16 +411,6 @@
minWidth: 100,
},
{
- field: 'locationName',
- title: '搴撳尯鍚嶇О',
- minWidth: 100,
- },
- {
- field: 'areaName',
- title: '搴撲綅鍚嶇О',
- minWidth: 100,
- },
- {
field: 'quantity',
title: '鏁伴噺',
width: 100,
@@ -467,52 +453,9 @@
label: '鍏ュ簱浠撳簱',
component: markRaw(WmWarehouseSelect),
componentProps: {
- // 鍒囨崲浠撳簱鍚庢竻绌哄簱鍖哄拰搴撲綅
- onChange: async () => {
- await formApi?.setValues({
- areaId: undefined,
- locationId: undefined,
- });
- },
placeholder: '璇烽�夋嫨浠撳簱',
},
rules: 'selectRequired',
- },
- {
- fieldName: 'locationId',
- label: '搴撳尯',
- component: markRaw(WmWarehouseLocationSelect),
- componentProps: {
- placeholder: '璇烽�夋嫨搴撳尯',
- },
- rules: 'selectRequired',
- dependencies: {
- triggerFields: ['warehouseId'],
- componentProps: (values) => ({
- // 鍒囨崲搴撳尯鍚庢竻绌哄簱浣�
- onChange: async () => {
- await formApi?.setFieldValue('areaId', undefined);
- },
- placeholder: '璇烽�夋嫨搴撳尯',
- warehouseId: values.warehouseId,
- }),
- },
- },
- {
- fieldName: 'areaId',
- label: '搴撲綅',
- component: markRaw(WmWarehouseAreaSelect),
- componentProps: {
- placeholder: '璇烽�夋嫨搴撲綅',
- },
- rules: 'selectRequired',
- dependencies: {
- triggerFields: ['locationId'],
- componentProps: (values) => ({
- locationId: values.locationId,
- placeholder: '璇烽�夋嫨搴撲綅',
- }),
- },
},
{
fieldName: 'quantity',
--
Gitblit v1.9.3