Browse Source

退款订单显示原订单信息

milestone-20260402-现金4期
zhangrenyuan 5 hours ago
parent
commit
b46d4c6f27
  1. 47
      src/views/moneyManage/financialAccount/cashFlow.vue

47
src/views/moneyManage/financialAccount/cashFlow.vue

@ -519,10 +519,51 @@ const formDataRow = ref({
// //
const showDetail=ref(false) const showDetail=ref(false)
const showRecordDetail = async (row) => { const showRecordDetail = async (row) => {
showDetail.value=true
formDataRow.value={
//
formDataRow.value = {
...row, ...row,
handlingCharge:row.handlingCharge || 0
handlingCharge: row && row.handlingCharge ? row.handlingCharge : 0
}
showDetail.value = true;
try {
let realOrderCode = row && row.orderCode ? String(row.orderCode) : '';
// 退 TK
if (realOrderCode.startsWith('TK')) {
realOrderCode = realOrderCode.replace(/^TK/, '');
}
// 退
if (realOrderCode && realOrderCode !== row.orderCode) {
const params = {
pageNum: 1,
pageSize: 10,
fundsDTO: {
jwcode: '',
localMarket: [],
startTime: '',
endTime: '',
payType: '',
orderCode: realOrderCode,
statuses: [],
markets: [],
}
}
const res = await Moneyfunds(params)
if (res.code == 200 && res.data && res.data.list && res.data.list.length > 0) {
const originalOrder = res.data.list.find(item => item.orderCode === realOrderCode)
if (originalOrder) {
//
formDataRow.value = {
...originalOrder,
handlingCharge: originalOrder.handlingCharge || 0
}
}
}
}
} catch (error) {
console.error('获取原订单详情失败:', error)
} }
} }
const paymentCurrency = ref([ const paymentCurrency = ref([

Loading…
Cancel
Save