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/wls/warehouse/data.ts | 39 ++++++++++++++++++++++++++++++++++++++-
1 files changed, 38 insertions(+), 1 deletions(-)
diff --git a/src/views/wls/warehouse/data.ts b/src/views/wls/warehouse/data.ts
index 6eaf201..387ab05 100644
--- a/src/views/wls/warehouse/data.ts
+++ b/src/views/wls/warehouse/data.ts
@@ -5,7 +5,7 @@
import { h } from 'vue';
-import { DICT_TYPE, MesAutoCodeRuleCode } from '@vben/constants';
+import { DICT_TYPE, MesAutoCodeRuleCode, MesWmWarehouseTypeEnum } from '@vben/constants';
import { Button } from 'ant-design-vue';
@@ -101,6 +101,19 @@
},
},
{
+ fieldName: 'type',
+ label: '浠撳簱绫诲瀷',
+ component: 'Select',
+ componentProps: {
+ placeholder: '璇烽�夋嫨浠撳簱绫诲瀷',
+ options: [
+ { label: '鏆傚瓨搴�', value: MesWmWarehouseTypeEnum.TEMP },
+ { label: '鍚堟牸搴�', value: MesWmWarehouseTypeEnum.QUALIFIED },
+ ],
+ },
+ rules: 'required',
+ },
+ {
fieldName: 'frozen',
label: '鏄惁鍐荤粨',
component: 'Switch',
@@ -142,6 +155,19 @@
componentProps: {
allowClear: true,
placeholder: '璇疯緭鍏ヤ粨搴撳悕绉�',
+ },
+ },
+ {
+ fieldName: 'type',
+ label: '浠撳簱绫诲瀷',
+ component: 'Select',
+ componentProps: {
+ allowClear: true,
+ options: [
+ { label: '鏆傚瓨搴�', value: MesWmWarehouseTypeEnum.TEMP },
+ { label: '鍚堟牸搴�', value: MesWmWarehouseTypeEnum.QUALIFIED },
+ ],
+ placeholder: '璇烽�夋嫨浠撳簱绫诲瀷',
},
},
{
@@ -192,6 +218,17 @@
userList.find((user) => user.id === cellValue)?.nickname ?? '',
},
{
+ field: 'type',
+ title: '浠撳簱绫诲瀷',
+ width: 100,
+ formatter: ({ cellValue }) =>
+ cellValue === MesWmWarehouseTypeEnum.TEMP
+ ? '鏆傚瓨搴�'
+ : cellValue === MesWmWarehouseTypeEnum.QUALIFIED
+ ? '鍚堟牸搴�'
+ : '',
+ },
+ {
field: 'frozen',
title: '鍐荤粨',
width: 90,
--
Gitblit v1.9.3