Browse Source

修改bug

lichao 3 years ago
parent
commit
4bbe699018

+ 7 - 0
src/views/businessManagement/deliveryNotice/detailsPageEdit.vue

@@ -975,6 +975,7 @@ export default {
   methods: {
     queryData(id, isCopy = false, type) {
       this.pageLoading = true
+      this.saveLoading = true
       detail(id).then(res => {
         this.form = res.data.data;
         if (this.form.deliveryStatus == '已收货') {
@@ -1116,12 +1117,14 @@ export default {
               this.form.corpsTypeId = this.form.corpsTypeId.join(",")
             }
             this.pageLoading = true
+            this.saveLoading = true
             this.saveActives = ''
             sendOutGoods(this.form).then(res => {
               this.$message.success('收货成功')
               this.queryData(res.data.data.id)
             }).finally(() => {
               this.pageLoading = false
+              this.saveLoading = false
             })
           })
         } else if (type == '到货') {
@@ -1130,6 +1133,7 @@ export default {
           } else {
             this.form.deliveryItemsList = this.goodsShowData.concat(this.giftData)
           }
+          this.saveLoading = true
           this.pageLoading = true
           this.saveActives = ''
           confirmArrival(this.form).then(res => {
@@ -1137,6 +1141,7 @@ export default {
             this.queryData(this.form.id)
           }).catch(() => {
             this.pageLoading = false
+            this.saveLoading = false
           })
         }
       }).finally(() => {
@@ -1750,12 +1755,14 @@ export default {
         this.form.deliveryItemsList = this.goodsShowData.concat(this.giftData)
       }
       this.pageLoading = true
+      this.saveLoading = true
       this.saveActives = ''
       cancelArrival(this.form).then(res => {
         this.$message.success('撤销到货成功')
         this.queryData(this.form.id)
       }).catch(() => {
         this.pageLoading = false
+        this.saveLoading = false
       })
     },
     // 导入销售明细

+ 3 - 0
src/views/businessManagement/purchaseOrder/detailsPageEdit.vue

@@ -895,6 +895,7 @@ export default {
     // 明细查询
     queryData(id, isCopy = false) {
       this.pageLoading = true
+      this.saveLoading = true
       detail(id).then(res => {
         this.form = res.data.data;
         this.browse = this.form.status > 0? true: false
@@ -1723,6 +1724,7 @@ export default {
             checkFlag: 1,
           }
           this.pageLoading = true
+          this.saveLoading = true
           pleaseCheck(data).then(res => {
             this.$message.success('请核成功')
             // this.pageLoading = false
@@ -1730,6 +1732,7 @@ export default {
             this.queryData(this.form.id)
           }).finally(() => {
             this.pageLoading = false
+            this.saveLoading = false
           })
         })
       } else {

+ 7 - 0
src/views/businessManagement/receipt/detailsPageEdit.vue

@@ -828,6 +828,7 @@ export default {
   methods: {
     queryData(id, isCopy = false) {
       this.pageLoading = true
+      this.saveLoading = true
       detail(id).then(res => {
         this.form = res.data.data;
         this.receiveDisabled = this.form.deliveryStatus == '录入'? false: true
@@ -1282,12 +1283,14 @@ export default {
             if (typeof this.form.corpsTypeId == 'object') {
               this.form.corpsTypeId = this.form.corpsTypeId.join(",")
             }
+            this.saveLoading = true
             this.pageLoading = true
             sendInGoods(this.form).then(res => {
               this.$message.success('发货成功')
               this.queryData(res.data.data.id)
             }).finally(() => {
               this.pageLoading = false
+              this.saveLoading = false
             })
           }
         } else {
@@ -1307,11 +1310,13 @@ export default {
             this.form.corpsTypeId = this.form.corpsTypeId.join(",")
           }
           this.pageLoading = true
+          this.saveLoading = true
           revokeInGoods(this.form).then(res => {
             this.$message.success('撤销成功')
             this.queryData(res.data.data.id)
           }).finally(() => {
             this.pageLoading = false
+            this.saveLoading = false
           })
         } else {
           return false;
@@ -1361,11 +1366,13 @@ export default {
                   this.form.corpsTypeId = this.form.corpsTypeId.join(",")
                 }
                 this.pageLoading = true
+                this.saveLoading = true
                 sendInGoods(this.form).then(res => {
                   this.$message.success('发货成功')
                   this.queryData(res.data.data.id)
                 }).finally(() => {
                   this.pageLoading = false
+                  this.saveLoading = false
                 })
               })
             }

+ 7 - 0
src/views/businessManagement/salesOrder/detailsPageEdit.vue

@@ -1756,6 +1756,7 @@ export default {
     },
     queryData(id, isCopy = false){
       this.pageLoading = true
+      this.saveLoading = true
       detail(id).then(async res => {
         this.form = res.data.data;
         this.browse = this.form.status > 0? true: false;
@@ -3503,12 +3504,14 @@ export default {
             checkFlag: 2,
           }
           this.pageLoading = true
+          this.saveLoading = true
           pleaseCheck(data).then(res => {
             this.$message.success('请核成功')
             this.saveActives = ''
             this.queryData(this.form.id)
           }).finally(() => {
             this.pageLoading = false
+            this.saveLoading = false
           })
         })
       }
@@ -3526,12 +3529,14 @@ export default {
             checkFlag: 2,
           }
           this.pageLoading = true
+         this.saveLoading = true
           repealCancel(data).then(res => {
             this.$message.success('撤回成功')
             this.saveActives = ''
             this.queryData(this.form.id)
           }).finally(() => {
             this.pageLoading = false
+            this.saveLoading = false
           })
         })
     },
@@ -3547,12 +3552,14 @@ export default {
           checkFlag: 3
         }
         this.pageLoading = true
+        this.saveLoading = false
         pleaseCheck(data).then(res => {
           this.$message.success('请核成功')
           this.saveActives = ''
           this.queryData(this.form.id)
         }).finally(() => {
           this.pageLoading = false
+          this.saveLoading = true
         })
       }
     },