|
@@ -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 {
|