Browse Source

撤回的开票申请可批量发起

huangguoce 3 tuần trước cách đây
mục cha
commit
8d0ca9c4a4
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      src/views/cw/invoice/InvoiceList.vue

+ 2 - 4
src/views/cw/invoice/InvoiceList.vue

@@ -1049,7 +1049,7 @@ export default {
       let selectedRows = this.$refs.invoiceTable.getCheckboxRecords()
       // 校验
       for (const row of selectedRows) {
-        if ((row.status != '0' && row.status != '1')) {
+        if ((row.status != '0' && row.status != '1' && row.status != '3')) {
           this.$message.error('所选数据中存在已发起开票申请流程的数据,请重新选择')
           return
         }
@@ -1067,7 +1067,6 @@ export default {
           financeInvoiceService.batchInvoicePush(selectedRows).then((data) => {
             if (data) {
               if (data.length > 0) {
-                console.log(123);
                 let message = '操作完成</br>';
                 data.forEach((item) => {
                   message += item + '</br>';
@@ -1084,10 +1083,9 @@ export default {
                 this.refreshList()
               }
             } else {
-              loading.close();
+              this.refreshList()
             }
           }).catch((e) => {
-            console.log(e);
             this.$message.error('操作失败,请重试')
             this.refreshList()
           })