|
|
@ -188,31 +188,31 @@ |
|
|
|
refundMap: new Map([ |
|
|
|
refundMap: new Map([ |
|
|
|
[ |
|
|
|
[ |
|
|
|
['FUYOU'], { |
|
|
|
['FUYOU'], { |
|
|
|
interface: serve.fuyouRefund, |
|
|
|
serveTarget: serve.fuyouRefund, |
|
|
|
type: 'post' |
|
|
|
type: 'post' |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
[ |
|
|
|
[ |
|
|
|
['ZHIZHU', 'NEWHOPE', 'MUYUAN', 'G7CLUSTER-CAHNGJIU'], { |
|
|
|
['ZHIZHU', 'NEWHOPE', 'MUYUAN', 'G7CLUSTER-CAHNGJIU'], { |
|
|
|
interface: serve.orderRefund, |
|
|
|
serveTarget: serve.orderRefund, |
|
|
|
type: 'post' |
|
|
|
type: 'post' |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
[ |
|
|
|
[ |
|
|
|
['SHUNFENG'], { |
|
|
|
['SHUNFENG'], { |
|
|
|
interface: serve.sfRefund, |
|
|
|
serveTarget: serve.sfRefund, |
|
|
|
type: 'post' |
|
|
|
type: 'post' |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
[ |
|
|
|
[ |
|
|
|
['ANNENG'], { |
|
|
|
['ANNENG'], { |
|
|
|
interface: serve.refund, |
|
|
|
serveTarget: serve.refund, |
|
|
|
type: 'get' |
|
|
|
type: 'get' |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
[ |
|
|
|
[ |
|
|
|
['YIGUANYOU', 'ANTU'], { |
|
|
|
['YIGUANYOU', 'ANTU'], { |
|
|
|
interface: serve.unifiedRefund, |
|
|
|
serveTarget: serve.unifiedRefund, |
|
|
|
type: 'post' |
|
|
|
type: 'post' |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
@ -226,11 +226,16 @@ |
|
|
|
this.id = JSON.parse(e.jsData).id |
|
|
|
this.id = JSON.parse(e.jsData).id |
|
|
|
this.getList(this.id) |
|
|
|
this.getList(this.id) |
|
|
|
} |
|
|
|
} |
|
|
|
console.log('refundMap', this.refundMap) |
|
|
|
// console.log('refundMap', this.refundMap) |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
refundff() { |
|
|
|
refundff() { |
|
|
|
let {createSource} = this.details |
|
|
|
let { |
|
|
|
|
|
|
|
createSource, |
|
|
|
|
|
|
|
id |
|
|
|
|
|
|
|
} = this.details |
|
|
|
|
|
|
|
// console.log('this.details', this.details) |
|
|
|
|
|
|
|
createSource = 'FUYOU' |
|
|
|
if(!createSource) { |
|
|
|
if(!createSource) { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title:"createSource 为空", |
|
|
|
title:"createSource 为空", |
|
|
@ -239,9 +244,24 @@ |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
let keys = this.refundMap.keys() |
|
|
|
let keys = this.refundMap.keys() |
|
|
|
console.log(keys) |
|
|
|
let result = null |
|
|
|
// console.log(this.details) |
|
|
|
for (let key of keys) { |
|
|
|
// console.log('refundff') |
|
|
|
if (key.includes(createSource)) { |
|
|
|
|
|
|
|
result = this.refundMap.get(key) |
|
|
|
|
|
|
|
// console.log('result', result) |
|
|
|
|
|
|
|
break |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (result) { |
|
|
|
|
|
|
|
let { |
|
|
|
|
|
|
|
type, |
|
|
|
|
|
|
|
serveTarget |
|
|
|
|
|
|
|
} = result |
|
|
|
|
|
|
|
let params = type === 'post' ? {} : id |
|
|
|
|
|
|
|
serveTarget(params).then(res => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
codeFn() { |
|
|
|
codeFn() { |
|
|
|
if (this.details.orderWfStatus == 0) { |
|
|
|
if (this.details.orderWfStatus == 0) { |
|
|
|