From c7a2e09b1bdc1d2228586bdab08f3ab2c4111ab7 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 07 五月 2024 15:23:23 +0800 Subject: [PATCH] 月度统计报表模块 期初,期末,本月入库,本月入库 4个部分主单位对应的数量显示逻辑出现 --- src/views/overview/AddOverviewDialog.vue | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/src/views/overview/AddOverviewDialog.vue b/src/views/overview/AddOverviewDialog.vue index a942362..1bf61aa 100644 --- a/src/views/overview/AddOverviewDialog.vue +++ b/src/views/overview/AddOverviewDialog.vue @@ -477,6 +477,7 @@ @inputContent="inputContent" @addProductClick="addProductClick('鎿嶄綔')" @getSelectArray="getSelectArray" + @selSonLocationClick="selSonLocationClick" @emptyProductClick="emptyProductClick" @clearupProduct="clearupProduct" > @@ -643,6 +644,9 @@ getLogisticCompanyList, printReceipts, } from "@/api/overview/overview"; +import { + getLocationProductAmount +} from "@/api/operate/inventoryAdjustment" import { getSupplierList, getCompanyList, @@ -1337,6 +1341,7 @@ sonLocation: true, isRequird: true, }, + { label: "鍦ㄥ簱鏁伴噺", prop: "inLibraryAmount" }, { label: "鏁伴噺", prop: "amount", inputFloat: true }, { label: "璁¢噺鍗曚綅", prop: "unit" }, { label: "杈呭姪鏁伴噺", prop: "auxiliaryAmount",inputFloatValue:true,isInputFloat:'inputFloatAuxiliaryAmount' }, @@ -1564,6 +1569,21 @@ } }); }, + selSonLocationClick(val, prop, row,scope){ + if(this.workType == 2){ + if(prop=='fromLocationId'){ + getLocationProductAmount({ + locationId:val.value, + productId:row.productId + }).then((res)=>{ + if(res.code==200){ + this.$set(this.tableData[scope.$index],'inLibraryAmount',res.data?res.data.amount:0) + this.$forceUpdate() + } + }) + } + } + }, // 鏂板 addProductClick(value) { console.log(value); -- Gitblit v1.8.0