pull/6/head^2
xiaozhiyong 8 months ago
parent 895d23dd5c
commit d6ba26cf31
  1. 40
      orderList/orderDetails/orderDetails.vue

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

Loading…
Cancel
Save