From 5627151c6cd2af634c958629bc57e4c3663f0214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=BB=E7=A0=96-JAVA=5CAdministrator?= <591141169@qq.com> Date: Tue, 26 Mar 2024 11:52:09 +0800 Subject: [PATCH] =?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 --- .../item/adjustRecord/adjustRecord.data.ts | 22 +++++++++++++++++++ .../eam/item/countRecord/countRecord.data.ts | 22 +++++++++++++++++++ src/views/eam/item/countRecord/index.vue | 4 ++-- 3 files changed, 46 insertions(+), 2 deletions(-) diff --git a/src/views/eam/item/adjustRecord/adjustRecord.data.ts b/src/views/eam/item/adjustRecord/adjustRecord.data.ts index af5e7b2..e2f5bb3 100644 --- a/src/views/eam/item/adjustRecord/adjustRecord.data.ts +++ b/src/views/eam/item/adjustRecord/adjustRecord.data.ts @@ -142,6 +142,28 @@ export const AdjustRecordDetail = useCrudSchemas(reactive([ precision: 2 } }, + { + label: '差异数量', + field: 'differenceQty', + sort: 'custom', + isForm: false, + isSearch: true, + table: { + width: 180, + }, + form: { + component: 'InputNumber', + componentProps: { + min: 0, + precision: 2 + } + }, + tableForm: { + type: 'InputNumber', + min: 0, + precision: 2 + } + }, { label: '操作', field: 'action', diff --git a/src/views/eam/item/countRecord/countRecord.data.ts b/src/views/eam/item/countRecord/countRecord.data.ts index d534c5e..002de9a 100644 --- a/src/views/eam/item/countRecord/countRecord.data.ts +++ b/src/views/eam/item/countRecord/countRecord.data.ts @@ -182,6 +182,28 @@ export const CountRecordDetail = useCrudSchemas(reactive([ precision: 2 } }, + { + label: '差异数量', + field: 'differenceQty', + sort: 'custom', + isForm: false, + isSearch: true, + table: { + width: 180, + }, + form: { + component: 'InputNumber', + componentProps: { + min: 0, + precision: 2 + } + }, + tableForm: { + type: 'InputNumber', + min: 0, + precision: 2 + } + }, { label: '操作', field: 'action', diff --git a/src/views/eam/item/countRecord/index.vue b/src/views/eam/item/countRecord/index.vue index b69bd18..0f2a13e 100644 --- a/src/views/eam/item/countRecord/index.vue +++ b/src/views/eam/item/countRecord/index.vue @@ -152,7 +152,7 @@ // 根据状态返回该按钮是否显示 const isShowMainButton = (row, val) => { - if (val.indexOf(row.available) > -1) { + if (val.indexOf(row.status) > -1) { return false } else { return true @@ -162,7 +162,7 @@ // 列表-操作按钮 const butttondata = (row) => { return [ - defaultButtons.mainAdjust(null),// 盘点调整 + defaultButtons.mainAdjust({ hide: isShowMainButton(row, ['CANGENERATE']) }),// 盘点调整 ] }