From 76f8b79e42378a9743300cc102532a47bfd8df47 Mon Sep 17 00:00:00 2001 From: Rain <904416525@qq.com> Date: Fri, 16 Aug 2024 18:42:44 +0800 Subject: [PATCH] =?UTF-8?q?flx=EF=BC=9A=E4=BF=AE=E6=94=B9=E4=B8=AD?= =?UTF-8?q?=E7=A7=91=E5=AE=89=E4=BF=A1=20=E7=89=A9=E6=96=99=E5=8D=95?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inOutboundManagement/materialOutbound.vue | 4 +- .../purchasingManagement/purchasing.vue | 59 +++++++++++++++---- 2 files changed, 50 insertions(+), 13 deletions(-) diff --git a/src/views/projectFront/inOutboundManagement/materialOutbound.vue b/src/views/projectFront/inOutboundManagement/materialOutbound.vue index 9c9e302e..145bf4c2 100644 --- a/src/views/projectFront/inOutboundManagement/materialOutbound.vue +++ b/src/views/projectFront/inOutboundManagement/materialOutbound.vue @@ -903,7 +903,9 @@ export default { name: this.searchName, specification: this.searchSpecification, unit: this.searchUnit, - unitPrice: this.searchUnitPricr + unitPrice: this.searchUnitPricr, + pageNo: 1, + pageSize: -1, }; getGtMaterialWarehouseDetailPageApi(data).then((res) => { if (res.code == 200) { diff --git a/src/views/projectFront/purchasingManagement/purchasing.vue b/src/views/projectFront/purchasingManagement/purchasing.vue index e15178de..c75f4080 100644 --- a/src/views/projectFront/purchasingManagement/purchasing.vue +++ b/src/views/projectFront/purchasingManagement/purchasing.vue @@ -51,7 +51,7 @@ label="项目计划用量" > @@ -182,8 +186,8 @@ @@ -254,11 +258,14 @@ import { addMaterialPurchaseDemandApi, deleteMaterialPurchaseDemandApi, editMaterialPurchaseDemandApi, - getMaterialPurchaseDemandPageApi + getMaterialPurchaseDemandPageApi, + getGtMaterialWarehouseDetailPageApi,//查询库存物料 } from '@/assets/js/api/materialManagement.js' + export default { mounted() { - this.getList() + this.getList(); + this.inputGetLIst(3); }, data() { return { @@ -316,6 +323,34 @@ export default { } }, methods: { + //获取所有物料 + inputGetLIst(type) { + console.log('type----', type); + if (type == 1) { + this.valType = 'name' + } else if (type == 2) { + this.valType = 'specification' + } else if (type == 3) { + this.valType = 'unit' + } else { + this.valType = 'unitPrice' + } + let data = { + projectSn: this.$store.state.projectSn, + groupBy: this.valType, + name: this.searchName, + specification: this.searchSpecification, + unit: this.searchUnit, + unitPrice: this.searchUnitPricr, + pageNo: 1, + pageSize: -1, + }; + getGtMaterialWarehouseDetailPageApi(data).then((res) => { + if (res.code == 200) { + this.resultList = res.result.records; + } + }); + }, //查询仓库数据 getList() { getMaterialPurchaseDemandPageApi({