From 1c760ada1de34d71c4443f7db52aae0838d18865 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Thu, 8 Jun 2023 16:32:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inout/InvoiceCkeck.vue | 2 +- src/views/inout/InvoiceRegistration.vue | 5 +++-- src/views/inout/InvoiceRegistrationDetermine.vue | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/inout/InvoiceCkeck.vue b/src/views/inout/InvoiceCkeck.vue index ebd3e756..0ad3bc2d 100644 --- a/src/views/inout/InvoiceCkeck.vue +++ b/src/views/inout/InvoiceCkeck.vue @@ -484,7 +484,7 @@ export default { components: {AcceptOrder, DialogInvoice, InvoiceRegister, ElImageViewer}, methods: { onSubmit() { - if (this.invoiceRow == null) { + if (this.invoiceRow == null || this.invoiceRow.length==0) { this.$message.error("请选择要登记的物资! "); return false; } diff --git a/src/views/inout/InvoiceRegistration.vue b/src/views/inout/InvoiceRegistration.vue index 89574429..3a7df040 100644 --- a/src/views/inout/InvoiceRegistration.vue +++ b/src/views/inout/InvoiceRegistration.vue @@ -321,7 +321,7 @@ > @@ -860,13 +860,14 @@ export default { if (response.code == 20000) { if(response.data.length == 0){ this.getList(); + }else { + this.getCodeDetailList(); } this.getBizDetailListInv(this.subRow); this.$message({ type: "success", message: "删除成功!", }); - this.getCodeDetailList(); } }) .catch(() => { diff --git a/src/views/inout/InvoiceRegistrationDetermine.vue b/src/views/inout/InvoiceRegistrationDetermine.vue index c50b9e3c..64cd4c51 100644 --- a/src/views/inout/InvoiceRegistrationDetermine.vue +++ b/src/views/inout/InvoiceRegistrationDetermine.vue @@ -127,7 +127,7 @@ :total="codeTotal" :page.sync="codeQuery.page" :limit.sync="codeQuery.limit" - @pagination="getOrderDetails" + @pagination="getCodeDetailList" />