From 7052a2622d519f0ee81662cb36ee3b0f653bcd3f Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Tue, 9 Jan 2024 10:31:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E7=B4=A2=E8=B5=94=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E8=87=AA=E5=8A=A8=E8=AE=A1=E7=AE=97=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchaseclaimRequestMain/index.vue | 11 ++++++- .../purchaseclaimRequestMain.data.ts | 31 ++++++++++--------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue index 59aa208fb..5539a5f9c 100644 --- a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue +++ b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue @@ -35,7 +35,8 @@ :apiUpdate="PurchaseclaimRequestMainApi.updatePurchaseclaimRequestMain" :apiCreate="PurchaseclaimRequestMainApi.createPurchaseclaimRequestMain" :isBusiness="true" @handleAddTable="handleAddTable" @handleDeleteTable="handleDeleteTable" @searchTableSuccess="searchTableSuccess" - @submitForm="submitForm" /> + @submitForm="submitForm" + @inputStringBlur="inputStringBlur"/> { + console.log("headerItem:",headerItem) + console.log("row:",row) + if(headerItem == 'singlePrice'){ + // 输入完单价离开事件(金额 = 数量 乘以 单价) + row.amount = row.qty * row.singlePrice + } + } /** 初始化 **/ onMounted(async () => { diff --git a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts index 6525476ef..0bfab063a 100644 --- a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts +++ b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts @@ -371,6 +371,13 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive( width: 150 }, }, + { + label: '批次', + field: 'batch', + table: { + width: 150 + }, + }, { label: '物品代码', field: 'itemCode', @@ -409,35 +416,29 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive( } }, { - label: '批次', - field: 'batch', - table: { - width: 150 - }, - }, - { - label: '原因', - field: 'reason', - // dictType: DICT_TYPE.PURCHASE_RETURN_REASON, - dictClass: 'string', + label: '单价', + field: 'singlePrice', table: { width: 150 }, }, { - label: '单价', - field: 'singlePrice', + label: '金额', + field: 'amount', table: { width: 150 }, }, { - label: '金额', - field: 'amount', + label: '原因', + field: 'reason', + // dictType: DICT_TYPE.PURCHASE_RETURN_REASON, + dictClass: 'string', table: { width: 150 }, }, + { label: '单据号', field: 'number',