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/miscissue/data.ts | 50 ++------------------------------------------------
1 files changed, 2 insertions(+), 48 deletions(-)
diff --git a/src/views/wls/miscissue/data.ts b/src/views/wls/miscissue/data.ts
index 5018e10..7c85a4b 100644
--- a/src/views/wls/miscissue/data.ts
+++ b/src/views/wls/miscissue/data.ts
@@ -14,11 +14,7 @@
import { generateAutoCode } from '#/api/mes/md/autocode/record';
import { getRangePickerDefaultProps } from '#/utils';
import { WmMaterialStockSelect } from '#/views/wls/materialstock/components';
-import {
- WmWarehouseAreaSelect,
- WmWarehouseLocationSelect,
- WmWarehouseSelect,
-} from '#/views/wls/warehouse/components';
+import { WmWarehouseSelect } from '#/views/wls/warehouse/components';
/** 琛ㄥ崟绫诲瀷 */
export type FormType = 'create' | 'detail' | 'finish' | 'update';
@@ -302,16 +298,6 @@
title: '浠撳簱',
minWidth: 120,
},
- {
- field: 'locationName',
- title: '搴撳尯',
- minWidth: 120,
- },
- {
- field: 'areaName',
- title: '搴撲綅',
- minWidth: 120,
- },
...(editable
? [
{
@@ -349,13 +335,11 @@
label: '搴撳瓨鐗╄祫',
component: markRaw(WmMaterialStockSelect),
componentProps: {
- // 閫夋嫨搴撳瓨鐗╄祫鍚庯紝鑷姩鍥炲~鐗╂枡銆佹壒娆″彿銆佷粨搴撲綅缃拰鏈�澶у彲鍑哄簱鏁伴噺
+ // 閫夋嫨搴撳瓨鐗╄祫鍚庯紝鑷姩鍥炲~鐗╂枡銆佹壒娆″彿銆佷粨搴撳拰鏈�澶у彲鍑哄簱鏁伴噺
onChange: async (stock?: MesWmMaterialStockApi.MaterialStock) => {
await formApi?.setValues({
- areaId: stock?.areaId,
batchCode: stock?.batchCode,
itemId: stock?.itemId,
- locationId: stock?.locationId,
quantityMax: stock?.quantity,
warehouseId: stock?.warehouseId,
});
@@ -406,36 +390,6 @@
component: markRaw(WmWarehouseSelect),
componentProps: {
disabled: true,
- },
- },
- {
- fieldName: 'locationId',
- label: '搴撳尯',
- component: markRaw(WmWarehouseLocationSelect),
- componentProps: {
- disabled: true,
- },
- dependencies: {
- triggerFields: ['warehouseId'],
- componentProps: (values) => ({
- disabled: true,
- warehouseId: values.warehouseId,
- }),
- },
- },
- {
- fieldName: 'areaId',
- label: '搴撲綅',
- component: markRaw(WmWarehouseAreaSelect),
- componentProps: {
- disabled: true,
- },
- dependencies: {
- triggerFields: ['locationId'],
- componentProps: (values) => ({
- disabled: true,
- locationId: values.locationId,
- }),
},
},
{
--
Gitblit v1.9.3