From 829b168a2b9b8deaa23a5fcb023d7d3702a023f4 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 20 十月 2026 11:33:26 +0800
Subject: [PATCH] fix(mobile): 修复移动端托盘生成逻辑和界面提示
---
src/views/mes/pro/bagCode/data.ts | 36 ++++++++++++++++++++++++++++++++----
1 files changed, 32 insertions(+), 4 deletions(-)
diff --git a/src/views/mes/pro/bagCode/data.ts b/src/views/mes/pro/bagCode/data.ts
index caacb5f..ba43066 100644
--- a/src/views/mes/pro/bagCode/data.ts
+++ b/src/views/mes/pro/bagCode/data.ts
@@ -2,8 +2,12 @@
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { MesProBagCodeApi } from '#/api/mes/pro/bagCode';
+import { markRaw } from 'vue';
+
import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
+
+import { MdmItemSelect } from '#/views/basicData/mdm/components';
import { getRangePickerDefaultProps } from '#/utils';
@@ -12,12 +16,16 @@
return [
{
fieldName: 'code',
- label: '琚嬬爜',
+ label: '杩芥函鐮�',
component: 'Input',
componentProps: {
allowClear: true,
- placeholder: '璇疯緭鍏ヨ鐮侊紙浜岀淮鐮佸唴瀹癸級',
+ placeholder: '璇疯緭鍏ヨ拷婧爜',
},
+ },
+ {
+ fieldName: 'businessCode', label: '涓氬姟鐮�', component: 'Input',
+ componentProps: { allowClear: true, placeholder: '璇疯緭鍏ュ嚭鍏ュ簱涓氬姟鐮�' },
},
{
fieldName: 'batchCode',
@@ -35,6 +43,14 @@
componentProps: {
allowClear: true,
placeholder: '璇疯緭鍏ョ敓鎴愮粍缂栧彿',
+ },
+ },
+ {
+ fieldName: 'itemId',
+ label: '鍝佺',
+ component: markRaw(MdmItemSelect),
+ componentProps: {
+ placeholder: '璇烽�夋嫨鍝佺锛堜骇鍝佸搧绉嶏級',
},
},
{
@@ -65,10 +81,11 @@
{ type: 'checkbox', width: 50 },
{
field: 'code',
- title: '琚嬬爜锛堜簩缁寸爜鍐呭锛�',
+ title: '杩芥函鐮�',
fixed: 'left',
minWidth: 220,
},
+ { field: 'businessCode', title: '涓氬姟鐮侊紙鍑哄叆搴擄級', minWidth: 210 },
{
field: 'bagNo',
title: '琚嬪簭鍙�',
@@ -77,12 +94,22 @@
{
field: 'uuid',
title: '鐢熸垚缁�',
- minWidth: 150,
+ minWidth: 300,
},
{
field: 'batchCode',
title: '鎵规鍙�',
minWidth: 190,
+ },
+ {
+ field: 'itemCode',
+ title: '鍝佺缂栫爜',
+ width: 120,
+ },
+ {
+ field: 'itemName',
+ title: '鍝佺鍚嶇О',
+ width: 140,
},
{
field: 'lineCode',
@@ -99,6 +126,7 @@
title: '缁戝畾鎵樼洏鐮�',
minWidth: 190,
},
+ { field: 'inboundTime', title: '鍏ュ簱鐘舵��', width: 100, formatter: ({ cellValue }) => cellValue ? '宸插叆搴�' : '鏈叆搴�' },
{
field: 'status',
title: '琚嬬爜鐘舵��',
--
Gitblit v1.9.3