From ed734ca4fdca10506e44115110a005e870089001 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 2 Jan 2024 13:43:37 +0800 Subject: [PATCH] bug --- .../itemManage/itembasic/itembasic.data.ts | 52 ++++++++++--------- .../inventoryManage/balance/balance.data.ts | 20 +++---- 2 files changed, 38 insertions(+), 34 deletions(-) diff --git a/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts b/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts index 2edc82652..bc7eea5ab 100644 --- a/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts +++ b/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts @@ -437,76 +437,80 @@ export const rules = reactive({ { validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} ], name: [ - { required: true, message: '请输入名称', trigger: 'blur' } + { required: true, message: '请输入名称', trigger: 'blur' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' }, ], desc1: [ - { required: true, message: '请输入描述1', trigger: 'blur' } + { required: true, message: '请输入描述1', trigger: 'blur' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' }, ], desc2: [ - { required: true, message: '请输入描述2', trigger: 'blur' } + { required: true, message: '请输入描述2', trigger: 'blur' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' }, ], status: [ - { required: true, message: '请选择状态', trigger: 'change' } + { required: true, message: '请选择状态', trigger: 'change' }, ], uom: [ - { required: true, message: '请选择计量单位', trigger: 'change' } + { required: true, message: '请选择计量单位', trigger: 'change' }, ], altUom: [ - { required: true, message: '请选择替代计量单位', trigger: 'change' } + { required: true, message: '请选择替代计量单位', trigger: 'change' }, ], isStdPack: [ - { required: true, message: '请选择是否标包', trigger: 'change' } + { required: true, message: '请选择是否标包', trigger: 'change' }, ], enableBuy: [ - { required: true, message: '请选择是否可采购', trigger: 'change' } + { required: true, message: '请选择是否可采购', trigger: 'change' }, ], enableMake: [ - { required: true, message: '请选择是否可制造', trigger: 'change' } + { required: true, message: '请选择是否可制造', trigger: 'change' }, ], enableOutsourcing: [ - { required: true, message: '请选择是否可委外加工', trigger: 'change' } + { required: true, message: '请选择是否可委外加工', trigger: 'change' }, ], isRecycled: [ - { required: true, message: '请选择回收件', trigger: 'change' } + { required: true, message: '请选择回收件', trigger: 'change' }, ], isPhantom: [ - { required: true, message: '请选择虚零件', trigger: 'change' } + { required: true, message: '请选择虚零件', trigger: 'change' }, ], abcClass: [ - { required: true, message: '请选择ABC类', trigger: 'change' } + { required: true, message: '请选择ABC类', trigger: 'change' }, ], type: [ - { required: true, message: '请选择类型', trigger: 'change' } + { required: true, message: '请选择类型', trigger: 'change' }, ], category: [ - { required: true, message: '请选择种类', trigger: 'change' } + { required: true, message: '请选择种类', trigger: 'change' }, ], itemGroup: [ - { required: true, message: '请选择分组', trigger: 'change' } + { required: true, message: '请选择分组', trigger: 'change' }, ], color: [ - { required: true, message: '请选择颜色', trigger: 'change' } + { required: true, message: '请选择颜色', trigger: 'change' }, ], configuration: [ - { required: true, message: '请选择配置', trigger: 'change' } + { required: true, message: '请选择配置', trigger: 'change' }, ], project: [ - { required: true, message: '请输入项目', trigger: 'blur' } + { required: true, message: '请输入项目', trigger: 'blur' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' }, ], eqLevel: [ - { required: true, message: '请选择质量等级', trigger: 'change' } + { required: true, message: '请选择质量等级', trigger: 'change' }, ], validityDays: [ - { required: true, message: '请输入有效天数', trigger: 'change' } + { required: true, message: '请输入有效天数', trigger: 'change' }, ], available: [ - { required: true, message: '请选择是否可用', trigger: 'change' } + { required: true, message: '请选择是否可用', trigger: 'change' }, ], activeTime: [ - { required: true, message: '请输入生效时间', trigger: 'change' } + { required: true, message: '请输入生效时间', trigger: 'change' }, ], expireTime: [ - { required: true, message: '请输入失效时间', trigger: 'change' } + { required: true, message: '请输入失效时间', trigger: 'change' }, ], }) console.log(Itembasic) \ No newline at end of file diff --git a/src/views/wms/inventoryManage/balance/balance.data.ts b/src/views/wms/inventoryManage/balance/balance.data.ts index 1f3c460fb..f82587a6d 100644 --- a/src/views/wms/inventoryManage/balance/balance.data.ts +++ b/src/views/wms/inventoryManage/balance/balance.data.ts @@ -54,8 +54,8 @@ export const Balance = useCrudSchemas(reactive([ { label: '计量单位', field: 'uom', - dictType: DICT_TYPE.UOM, - dictClass: 'string', + // dictType: DICT_TYPE.UOM, + // dictClass: 'string', isTable: true, sort: 'custom', table: { @@ -82,8 +82,8 @@ export const Balance = useCrudSchemas(reactive([ { label: '库存状态', field: 'inventoryStatus', - dictType: DICT_TYPE.INVENTORY_STATUS, - dictClass: 'string', + // dictType: DICT_TYPE.INVENTORY_STATUS, + // dictClass: 'string', isTable: true, sort: 'custom', table: { @@ -109,8 +109,8 @@ export const Balance = useCrudSchemas(reactive([ { label: 'ERP库位代码', field: 'erpLocationCode', - dictType: DICT_TYPE.ERP_LOCATION, - dictClass: 'string', + // dictType: DICT_TYPE.ERP_LOCATION, + // dictClass: 'string', isTable: true, sort: 'custom', table: { @@ -256,8 +256,8 @@ export const Balance = useCrudSchemas(reactive([ { label: '是否冻结', field: 'frozen', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', + // dictType: DICT_TYPE.TRUE_FALSE, + // dictClass: 'string', isTable: true, sort: 'custom', table: { @@ -275,8 +275,8 @@ export const Balance = useCrudSchemas(reactive([ { label: '冻结原因', field: 'frozenReason', - dictType: DICT_TYPE.FROZEN_REASON, - dictClass: 'string', + // dictType: DICT_TYPE.FROZEN_REASON, + // dictClass: 'string', isTable: true, sort: 'custom', table: {