Browse Source

修改委托提交错误问题

caojunjie 3 years ago
parent
commit
74f7aa64e5
1 changed files with 11 additions and 5 deletions
  1. 11 5
      src/views/landTransportation/placeAnOrder/detailPage.vue

+ 11 - 5
src/views/landTransportation/placeAnOrder/detailPage.vue

@@ -1777,8 +1777,14 @@ export default {
       }
     },
     //刷新数据
-    refreshData() {
-      detailDelegationList({id: this.id, kind: '1'}).then(res => {
+    refreshData(id) {
+      let ids = ''
+      if (id){
+        ids = id
+      }else {
+        ids = this.id
+      }
+      detailDelegationList({id: ids, kind: '1'}).then(res => {
         this.goodsForm = res.data.data
         this.tableData = res.data.data.orderAddressList
         this.entrustList = res.data.data.itemList
@@ -2037,10 +2043,10 @@ export default {
                   orderFeeList: this.collectionList.concat(this.paymentList)
                 }).then(res => {
                   saveDelegationList({
-                    id: this.goodsForm.id
-                  }).then(res => {
+                    id: res.data.data
+                  }).then(() => {
                     this.$message.success('提交成功');
-                    this.refreshData()
+                    this.refreshData(res.data.data)
                   })
                 })
               } else {