From a347a2a38fe8f640ef38392d9933faf8ddfa0efb Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Fri, 12 Jul 2024 13:56:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../invoicing/consumable/information.vue | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/views/invoicing/consumable/information.vue b/src/views/invoicing/consumable/information.vue index b920236..07b4266 100644 --- a/src/views/invoicing/consumable/information.vue +++ b/src/views/invoicing/consumable/information.vue @@ -220,7 +220,8 @@
+ @current-change="paginationChangetype" + @size-change="e => { clickseetableData.size = e; clickseetableData.page = 0; getConsRecord() }" />
@@ -355,7 +356,8 @@ export default { }, downloadLoading: false, uploadLoading: false, - dialogVisible: false + dialogVisible: false, + consRecordItem: '' }; }, mounted() { @@ -412,8 +414,8 @@ export default { this.getTableData(); }, paginationChangetype(e) { - this.tableDatatype.page = e - 1; - this.getTableDatatype(); + this.clickseetableData.page = e - 1; + this.getConsRecord(); }, // 获取信息 async getTableData() { @@ -559,17 +561,21 @@ export default { console.log(error); } }, - //查看查询耗材流水信息 + // 显示耗材记录 async clicksee(item) { - console.log(item); + this.consRecordItem = item this.clickseetypedialogshow = true; - this.clickseetableData.loading = true; + this.getConsRecord() + }, + // 获取耗材记录 + async getConsRecord() { try { + this.clickseetableData.loading = true; const res = await gettbConsInfoFlow({ page: this.clickseetableData.page, size: this.clickseetableData.size, - consId: item.id, - conName: item.conName, + consId: this.consRecordItem.id, + conName: this.consRecordItem.conName, shopId: localStorage.getItem("shopId") }); this.clickseetableData.loading = false;