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" />