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/transaction/data.ts | 80 +++++++++++++---------------------------
1 files changed, 26 insertions(+), 54 deletions(-)
diff --git a/src/views/wls/transaction/data.ts b/src/views/wls/transaction/data.ts
index ac9e879..e99a36d 100644
--- a/src/views/wls/transaction/data.ts
+++ b/src/views/wls/transaction/data.ts
@@ -5,11 +5,7 @@
import { markRaw } from 'vue';
import { MdmItemSelect } from '#/views/basicData/mdm/components';
-import {
- WmWarehouseAreaSelect,
- WmWarehouseLocationSelect,
- WmWarehouseSelect,
-} from '#/views/wls/warehouse/components';
+import { WmWarehouseSelect } from '#/views/wls/warehouse/components';
/** 涓氬姟绫诲瀷閫夐」 */
const bizTypeOptions = [
@@ -61,40 +57,6 @@
component: markRaw(WmWarehouseSelect),
componentProps: {
placeholder: '璇烽�夋嫨浠撳簱',
- },
- },
- {
- fieldName: 'locationId',
- label: '搴撳尯',
- component: markRaw(WmWarehouseLocationSelect),
- dependencies: {
- triggerFields: ['warehouseId'],
- componentProps: (values) => ({
- warehouseId: values.warehouseId,
- placeholder: '璇烽�夋嫨搴撳尯',
- }),
- trigger: (values, formApi) => {
- if (values.locationId !== undefined) {
- void formApi.setFieldValue('locationId', undefined);
- }
- },
- },
- },
- {
- fieldName: 'areaId',
- label: '搴撲綅',
- component: markRaw(WmWarehouseAreaSelect),
- dependencies: {
- triggerFields: ['warehouseId', 'locationId'],
- componentProps: (values) => ({
- locationId: values.locationId,
- placeholder: '璇烽�夋嫨搴撲綅',
- }),
- trigger: (values, formApi) => {
- if (values.areaId !== undefined) {
- void formApi.setFieldValue('areaId', undefined);
- }
- },
},
},
{
@@ -162,11 +124,6 @@
width: 100,
},
{
- field: 'bizCode',
- title: '涓氬姟鍗曞彿',
- minWidth: 150,
- },
- {
field: 'itemCode',
title: '鐗╂枡缂栫爜',
width: 120,
@@ -177,10 +134,35 @@
minWidth: 150,
},
{
+ field: 'specification',
+ title: '瑙勬牸',
+ minWidth: 120,
+ },
+ {
+ field: 'itemTypeName',
+ title: '绫诲埆',
+ minWidth: 120,
+ },
+ {
+ field: 'bizCode',
+ title: '涓氬姟鍗曞彿',
+ minWidth: 150,
+ },
+ {
field: 'batchCode',
title: '鎵规鍙�',
width: 120,
slots: { default: 'batchCode' },
+ },
+ {
+ field: 'palletCode',
+ title: '鎵樼洏鐮�',
+ minWidth: 150,
+ },
+ {
+ field: 'bagCode',
+ title: '琚嬬爜',
+ minWidth: 180,
},
{
field: 'quantity',
@@ -191,16 +173,6 @@
{
field: 'warehouseName',
title: '浠撳簱',
- width: 100,
- },
- {
- field: 'locationName',
- title: '搴撳尯',
- width: 100,
- },
- {
- field: 'areaName',
- title: '搴撲綅',
width: 100,
},
{
--
Gitblit v1.9.3