Browse Source

上报后更新列表

zhongtianhaoyuan 2 years ago
parent
commit
ad87dcdb0b

+ 4 - 3
src/views/administrationManagement/driverInformationReporting.vue

@@ -277,6 +277,7 @@
     methods: {
       //上报
       escalation(){
+        let that =this
         if(this.musterList.length == 0){
           this.$message.error("请勾选要上报的条目")
           return
@@ -289,13 +290,13 @@
           report({hyDriverInfoList:this.musterList})
           .then((response) => {
              if (response.code == 200) {
-              this.$notify({
+              that.$notify({
                 title: "成功",
                 message: "司机信息上报成功!",
                 type: "success",
               });
-              this.musterList = []
-              this.getList();
+              that.musterList = []
+              that.getList();
             }
           })
         })

+ 4 - 3
src/views/administrationManagement/vehicleInformationReporting.vue

@@ -294,6 +294,7 @@
     methods: {
       //上报
       escalation(){
+        let that =this
         if(this.musterList.length == 0){
           this.$message.error("请勾选要上报的条目")
           return
@@ -306,13 +307,13 @@
           carReport({hyDriverCarInfoList:this.musterList})
           .then((response) => {
              if (response.code == 200) {
-              this.$notify({
+              that.$notify({
                 title: "成功",
                 message: "车辆上报成功!",
                 type: "success",
               });
-              this.musterList = []
-              this.getList();
+              that.musterList = []
+              that.getList();
             }
           })
         })

+ 4 - 3
src/views/administrationManagement/waybillReporting.vue

@@ -219,6 +219,7 @@ export default {
     },
     //批量上报
     batchSubmission() {
+      let that = this
       if (this.modification.length > 0) {
         this.$confirm('确定批量上报运单信息?', '提示', {
           confirmButtonText: '确定',
@@ -229,13 +230,13 @@ export default {
             batchEscalation({ orderInfoList: this.modification })
               .then(response => {
                 if (response.code == 200) {
-                  this.$notify({
+                  that.$notify({
                     title: '成功',
                     message: '上报成功!',
                     type: 'success'
                   })
-                  this.modification = []
-                  this.getList()
+                  that.modification = []
+                  that.getList()
                 }
               })
           })

+ 1 - 1
src/views/parkReportManagement/dailyReport.vue

@@ -230,7 +230,7 @@ export default {
             dailyReportBatchEscalation({ hyFreightSettlementInfos: this.modification })
               .then(response => {
                 if (response.code == 200) {
-                  this.$notify({
+                  that.$notify({
                     title: '成功',
                     message: '上报成功!',
                     type: 'success'

+ 4 - 3
src/views/parkReportManagement/driverInformationReporting.vue

@@ -279,6 +279,7 @@
     methods: {
       //上报
       escalation(){
+        let that =this
         if(this.musterList.length == 0){
           this.$message.error("请勾选要上报的条目")
           return
@@ -291,13 +292,13 @@
           report({hyDriverInfoList:this.musterList})
           .then((response) => {
              if (response.code == 200) {
-              this.$notify({
+              that.$notify({
                 title: "成功",
                 message: "司机信息上报成功!",
                 type: "success",
               });
-              this.musterList = []
-              this.getList();
+              that.musterList = []
+              that.getList();
             }
           })
         })

+ 4 - 3
src/views/parkReportManagement/vehicleInformationReporting.vue

@@ -288,6 +288,7 @@
     methods: {
       //上报
       escalation(){
+        let that = this
         if(this.musterList.length == 0){
           this.$message.error("请勾选要上报的条目")
           return
@@ -300,13 +301,13 @@
           carReport({hyDriverCarInfoList:this.musterList})
           .then((response) => {
              if (response.code == 200) {
-              this.$notify({
+              that.$notify({
                 title: "成功",
                 message: "车辆上报成功!",
                 type: "success",
               });
-              this.musterList = []
-              this.getList();
+              that.musterList = []
+              that.getList();
             }
           })
         })

+ 2 - 1
src/views/parkReportManagement/waybillReporting.vue

@@ -220,6 +220,7 @@ export default {
     },
     //批量上报
     batchSubmission() {
+      let that =this
       if (this.modification.length > 0) {
         this.$confirm('确定批量上报运单信息?', '提示', {
           confirmButtonText: '确定',
@@ -236,7 +237,7 @@ export default {
                     type: 'success'
                   })
                   this.modification = []
-                  this.getList()
+                  that.getList()
                 }
               })
           })