From 0a60e2e2591baad3c2043312cc5a9d95e0b6b8ab Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Fri, 10 May 2024 17:22:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A4=87=E4=BB=B6=E5=8F=B0=E8=B4=A6?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=95=B0=E9=87=8F=E5=A4=A7=E4=BA=8E0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/eam/item/itemAccounts/itemAccounts.data.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/eam/item/itemAccounts/itemAccounts.data.ts b/src/views/eam/item/itemAccounts/itemAccounts.data.ts index 74d496b..65331bf 100644 --- a/src/views/eam/item/itemAccounts/itemAccounts.data.ts +++ b/src/views/eam/item/itemAccounts/itemAccounts.data.ts @@ -18,10 +18,10 @@ export const ItemAccountsRules = reactive({ areaNumber: [required], type: [required], locationNumber: [required], - qty: [ - required, - { validator: validateNumber, message: '数量不能等于0', trigger: 'blur' }, - ], + // qty: [ + // required, + // { validator: validateNumber, message: '数量不能等于0', trigger: 'blur' }, + // ], }) export const ItemAccounts = useCrudSchemas( From b41b1639ef3ce41b5287348a60bdd21f7ed5f514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=BB=E7=A0=96-JAVA=5CAdministrator?= <591141169@qq.com> Date: Fri, 10 May 2024 17:27:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/eam/basic/item/item.data.ts | 11 +++++-- .../countadjustPlan/countadjustPlan.data.ts | 30 ++++++------------- 2 files changed, 17 insertions(+), 24 deletions(-) diff --git a/src/views/eam/basic/item/item.data.ts b/src/views/eam/basic/item/item.data.ts index bf5e788..9cfcd4b 100644 --- a/src/views/eam/basic/item/item.data.ts +++ b/src/views/eam/basic/item/item.data.ts @@ -17,6 +17,9 @@ export const ItemRules = reactive({ minInventory: [ { required: true, message: '请输入最高库存', trigger: 'blur' } ], + classification: [ + { required: true, message: '请输入ABC分类', trigger: 'blur' } + ], }) export const ItemSearchTable = useCrudSchemas(reactive([ @@ -143,10 +146,12 @@ export const Item = useCrudSchemas(reactive([ label: 'ABC分类', field: 'classification', sort: 'custom', - isSearch: false, + dictType: DICT_TYPE.CLASSIFICATION, + dictClass: 'string', + isTable: true, table: { - width: 110 - }, + width: 100 + } , }, { label: '使用地点', diff --git a/src/views/eam/item/countadjustPlan/countadjustPlan.data.ts b/src/views/eam/item/countadjustPlan/countadjustPlan.data.ts index c1e5d3c..b0afde7 100644 --- a/src/views/eam/item/countadjustPlan/countadjustPlan.data.ts +++ b/src/views/eam/item/countadjustPlan/countadjustPlan.data.ts @@ -7,7 +7,9 @@ export const CountadjustPlanRules = reactive({ classification: [ { required: true, message: '请选择盘点类型', trigger: 'blur' } ], - + type: [ + { required: true, message: '请选择库位类型', trigger: 'blur' } + ], }) export const CountadjustPlan = useCrudSchemas(reactive([ @@ -42,29 +44,15 @@ export const CountadjustPlan = useCrudSchemas(reactive([ } }, { - label: '是否账内库', - field: 'isInAccount', - dictType: DICT_TYPE.TRUE_FALSE, + label: '库存类型', + field: 'type', + sort: 'custom', + dictType: DICT_TYPE.ITEM_ACCOUNT_LOCATION_TYPE, dictClass: 'string', - isSearch: false, isTable: true, - sort: 'custom', table: { - width: 140 - }, - tableForm: { - type: 'Select', - inactiveValue: 'FALSE', - disabled: true - }, - form: { - component: 'Switch', - value: 'TRUE', - componentProps: { - inactiveValue: 'FALSE', - activeValue: 'TRUE' - } - } + width: 100 + } , }, { label: '操作',