From cde1dcaec654d83fed8464fe4e552aad02919bd0 Mon Sep 17 00:00:00 2001 From: liuchen864 <23082234@qq.com> Date: Sat, 25 May 2024 15:41:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=AF=E5=90=A6=E5=8F=AF?= =?UTF-8?q?=E7=94=A8=E4=B8=BA=E6=BB=91=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wms/buttMesManage/mesBarCode/mesBarCode.data.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/wms/buttMesManage/mesBarCode/mesBarCode.data.ts b/src/views/wms/buttMesManage/mesBarCode/mesBarCode.data.ts index 03cf1a684..8c2c419f0 100644 --- a/src/views/wms/buttMesManage/mesBarCode/mesBarCode.data.ts +++ b/src/views/wms/buttMesManage/mesBarCode/mesBarCode.data.ts @@ -6,6 +6,7 @@ export const MesBarCodeRules = reactive({ available: [required], lowerLim: [required], partNumber: [required], + available: [{ required: true, message: '是否可用不能为空', trigger: 'change' }] }) export const MesBarCode = useCrudSchemas(reactive([ @@ -166,9 +167,19 @@ export const MesBarCode = useCrudSchemas(reactive([ label: '是否可用', field: 'available', sort: 'custom', - table: { + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + table: { width: 120 }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + } }, { label: '创建时间',