From ee7ac8df8bce38add1f75baf876b49de94b9e00a Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期五, 16 十月 2026 17:58:33 +0800
Subject: [PATCH] feat(mes): 赋码管理绑定托盘支持未录入批次的袋码
---
src/views/mes/pro/pallet/data.ts | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/views/mes/pro/pallet/data.ts b/src/views/mes/pro/pallet/data.ts
index c7f1ac0..6f8fbac 100644
--- a/src/views/mes/pro/pallet/data.ts
+++ b/src/views/mes/pro/pallet/data.ts
@@ -10,6 +10,7 @@
/** 鍒楄〃鐨勬悳绱㈣〃鍗� */
export function useGridFormSchema(): VbenFormSchema[] {
return [
+ { fieldName: 'businessCode', label: '涓氬姟鐮�', component: 'Input', componentProps: { allowClear: true, placeholder: '璇疯緭鍏ュ嚭鍏ュ簱涓氬姟鐮�' } },
{
fieldName: 'code',
label: '鎵樼洏鐮�',
@@ -53,12 +54,17 @@
/** 鍒楄〃鐨勫瓧娈� */
export function useGridColumns(): VxeTableGridOptions<MesProPalletApi.Pallet>['columns'] {
return [
+ { type: 'checkbox', width: 50 },
+ { field: 'businessCode', title: '涓氬姟鐮侊紙鍑哄叆搴擄級', minWidth: 210 },
{
field: 'code',
title: '鎵樼洏鐮�',
fixed: 'left',
minWidth: 210,
+ slots: { default: 'code' },
},
+ { field: 'itemName', title: '鍝佺鍚嶇О', minWidth: 150 },
+ { field: 'itemCode', title: '鍝佺缂栫爜', minWidth: 150 },
{
field: 'palletNo',
title: '鎵樼洏搴忓彿',
@@ -68,17 +74,14 @@
field: 'batchCode',
title: '鎵规鍙�',
minWidth: 190,
- },
- {
- field: 'capacity',
- title: '鍙琚嬫暟锛堣/鎵樼洏锛�',
- width: 150,
+ slots: { default: 'batchCode' },
},
{
field: 'bagCount',
title: '宸茬粦琚嬬爜鏁伴噺',
width: 120,
},
+ { field: 'inboundTime', title: '鍏ュ簱鐘舵��', width: 100, formatter: ({ cellValue }) => cellValue ? '宸插叆搴�' : '鏈叆搴�' },
{
field: 'status',
title: '鎵樼洏鐘舵��',
@@ -101,7 +104,7 @@
},
{
title: '鎿嶄綔',
- width: 200,
+ width: 350,
fixed: 'right',
slots: { default: 'actions' },
},
--
Gitblit v1.9.3