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