zhongtianhaoyuan 2 years ago
parent
commit
a5adfbc70e

+ 7 - 5
src/views/administrationManagement/dailyReport.vue

@@ -190,6 +190,7 @@ export default {
     },
     //暂缓上报
     postponeSubmission() {
+      let that = this
       if (this.modification.length > 0) {
         this.$confirm('确定暂缓上报选中的条目?', '提示', {
           confirmButtonText: '确定',
@@ -200,13 +201,13 @@ export default {
             dailyReportDeferEscalation({ hyFreightSettlementInfos: this.modification })
               .then(response => {
                 if (response.code == 200) {
-                  this.$notify({
+                  that.$notify({
                     title: '成功',
                     message: '操作成功!',
                     type: 'success'
                   })
                   this.modification = []
-                  this.getList()
+                  that.getList()
                 }
               })
           })
@@ -216,6 +217,7 @@ export default {
     },
     //批量上报
     batchSubmission() {
+      let that = this
       if (this.modification.length > 0) {
         this.$confirm('确定批量上报流水单信息?', '提示', {
           confirmButtonText: '确定',
@@ -226,13 +228,13 @@ export default {
             dailyReportBatchEscalation({ hyFreightSettlementInfos: this.modification })
               .then(response => {
                 if (response.code == 200) {
-                  this.$notify({
+                  that.$notify({
                     title: '成功',
                     message: '上报成功!',
                     type: 'success'
                   })
-                  this.modification = []
-                  this.getList()
+                  that.modification = []
+                  that.getList()
                 }
               })
           })

+ 7 - 5
src/views/parkReportManagement/dailyReport.vue

@@ -192,6 +192,7 @@ export default {
     },
     //暂缓上报
     postponeSubmission() {
+      let that = this
       if (this.modification.length > 0) {
         this.$confirm('确定暂缓上报选中的条目?', '提示', {
           confirmButtonText: '确定',
@@ -202,13 +203,13 @@ export default {
             dailyReportDeferEscalation({ hyFreightSettlementInfos: this.modification })
               .then(response => {
                 if (response.code == 200) {
-                  this.$notify({
+                  that.$notify({
                     title: '成功',
                     message: '操作成功!',
                     type: 'success'
                   })
-                  this.modification = []
-                  this.getList()
+                  that.modification = []
+                  that.getList()
                 }
               })
           })
@@ -218,6 +219,7 @@ export default {
     },
     //批量上报
     batchSubmission() {
+      let that = this
       if (this.modification.length > 0) {
         this.$confirm('确定批量上报流水单信息?', '提示', {
           confirmButtonText: '确定',
@@ -233,8 +235,8 @@ export default {
                     message: '上报成功!',
                     type: 'success'
                   })
-                  this.modification = []
-                  this.getList()
+                  that.modification = []
+                  that.getList()
                 }
               })
           })