Forráskód Böngészése

往来账款异常修复

dudm 3 éve
szülő
commit
5a8be5e565

+ 7 - 2
front-vue/src/views/service/bill/addBill.vue

@@ -775,7 +775,9 @@ export default {
     const companyId = this.companyId;
     const type = this.companyType;
     const payDate = this.payDate;
-    this.form.zbiPayDate = payDate
+    if(payDate){
+      this.form.zbiPayDate = payDate
+    }
     getOwnCompany()
       .then((response) => {
         this.company = response.data;
@@ -842,7 +844,6 @@ export default {
       });
       if (
         this.invoice &&
-        this.invoice.ziiId &&
         this.invoice.ziiCheckStt != "1"
       ) {
         queryDouble(this.invoice).then((response) => {
@@ -854,7 +855,11 @@ export default {
           });
           // this.invoice = this.fileList[0] ? this.fileList[0] : {};
           loading.close();
+        }).catch((response) => {
+          loading.close();
         });
+      }else{
+          loading.close();
       }
     },
     //去验真

+ 4 - 1
front-vue/src/views/service/bill/billAdd.vue

@@ -809,7 +809,6 @@ export default {
       });
       if (
         this.invoice &&
-        this.invoice.ziiId &&
         this.invoice.ziiCheckStt != "1"
       ) {
         queryDouble(this.invoice).then((response) => {
@@ -821,7 +820,11 @@ export default {
           });
           // this.invoice = this.fileList[0] ? this.fileList[0] : {};
           loading.close();
+        }).catch((response) => {
+          loading.close();
         });
+      }else{
+          loading.close();
       }
     },
     //去验真

+ 4 - 1
front-vue/src/views/service/bill/billEdit.vue

@@ -896,7 +896,6 @@ export default {
       });
       if (
         this.invoice &&
-        this.invoice.ziiId &&
         this.invoice.ziiCheckStt != "1"
       ) {
         queryDouble(this.invoice).then((response) => {
@@ -908,7 +907,11 @@ export default {
           });
           // this.invoice = this.fileList[0] ? this.fileList[0] : {};
           loading.close();
+        }).catch((response) => {
+          loading.close();
         });
+      }else{
+          loading.close();
       }
     },
     //去验真

+ 4 - 1
front-vue/src/views/service/bill/editBill.vue

@@ -909,7 +909,6 @@ export default {
       });
       if (
         this.invoice &&
-        this.invoice.ziiId &&
         this.invoice.ziiCheckStt != "1"
       ) {
         queryDouble(this.invoice).then((response) => {
@@ -921,7 +920,11 @@ export default {
           });
           // this.invoice = this.fileList[0] ? this.fileList[0] : {};
           loading.close();
+        }).catch((response) => {
+          loading.close();
         });
+      }else{
+          loading.close();
       }
     },
     //去验真