|
|
|
@ -11,8 +11,8 @@ |
|
|
|
</div> |
|
|
|
<div class="search"> |
|
|
|
<el-text size="large" style="width:4vw;">所属地区</el-text> |
|
|
|
<el-cascader style="width: 9vw;" v-model="searchForm.marketName" :options="market" |
|
|
|
placeholder="请选择所属地区" clearable /> |
|
|
|
<el-cascader style="width: 9vw;" v-model="searchForm.marketName" :options="market" placeholder="请选择所属地区" |
|
|
|
clearable /> |
|
|
|
</div> |
|
|
|
<div class="search"> |
|
|
|
<el-text size="large" style="width:4vw;">产品名称</el-text> |
|
|
|
@ -70,11 +70,14 @@ |
|
|
|
<el-table-column prop="refundCurrency" label="退款币种" width="120" /> |
|
|
|
<el-table-column prop="refundAmount" label="退款金额" width="120" /> |
|
|
|
<el-table-column prop="refundChannels" label="退款途径" width="120" /> |
|
|
|
<el-table-column prop="refundVoucher" label="退款截图" width="120" show-overflow-tooltip> |
|
|
|
<template #default="scope"> |
|
|
|
<img v-if="scope.row.refundVoucher" :src="scope.row.refundVoucher" style="width: 40px; height: 40px;" /> |
|
|
|
<el-table-column prop="refundVoucher" label="退款截图" width="120" > |
|
|
|
<template #default="scope"> |
|
|
|
<el-image v-if="scope.row.refundVoucher" :src="scope.row.refundVoucher" |
|
|
|
:preview-src-list="[scope.row.refundVoucher]" |
|
|
|
style="width: 40px; height: 40px; cursor: pointer;z-index: 99999;" fit="cover" |
|
|
|
/> |
|
|
|
<span v-else>无退款截图</span> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="refundTime" label="退款时间" width="180" /> |
|
|
|
<el-table-column prop="status" label="订单状态" width="120"> |
|
|
|
@ -260,8 +263,8 @@ const getRefund = async function () { |
|
|
|
// 40:执行人待处理;41:执行人已处理,退款完成; |
|
|
|
paymentCurrency: searchForm.value.paymentCurrency, |
|
|
|
payType: searchForm.value.payType, |
|
|
|
startTime: dateRange.value && dateRange.value[0] ? moment(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') : "", |
|
|
|
endtime: dateRange.value && dateRange.value[1] ? moment(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') : "", |
|
|
|
startTime: dateRange.value && dateRange.value[0] ? dayjs(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') : "", |
|
|
|
endtime: dateRange.value && dateRange.value[1] ? dayjs(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') : "", |
|
|
|
adminId: adminData.value.id, |
|
|
|
account: adminData.value.account |
|
|
|
} |
|
|
|
@ -309,33 +312,33 @@ const submitRefund = async function () { |
|
|
|
} |
|
|
|
} |
|
|
|
const getMarket = async function () { |
|
|
|
try { |
|
|
|
const result = await API({ |
|
|
|
try { |
|
|
|
const result = await API({ |
|
|
|
|
|
|
|
url: '/market/selectMarket', |
|
|
|
}) |
|
|
|
console.log('看看地区树', result) |
|
|
|
url: '/market/selectMarket', |
|
|
|
}) |
|
|
|
console.log('看看地区树', result) |
|
|
|
|
|
|
|
const transformTree = (nodes) => { |
|
|
|
const allChildren = nodes.flatMap(node => node.children || []); |
|
|
|
const transformTree = (nodes) => { |
|
|
|
const allChildren = nodes.flatMap(node => node.children || []); |
|
|
|
|
|
|
|
return allChildren.map(child => { |
|
|
|
const grandchildren = child.children && child.children.length |
|
|
|
? transformTree([child]) |
|
|
|
: null; |
|
|
|
return allChildren.map(child => { |
|
|
|
const grandchildren = child.children && child.children.length |
|
|
|
? transformTree([child]) |
|
|
|
: null; |
|
|
|
|
|
|
|
return { |
|
|
|
value: child.name, |
|
|
|
label: child.name, |
|
|
|
children: grandchildren |
|
|
|
return { |
|
|
|
value: child.name, |
|
|
|
label: child.name, |
|
|
|
children: grandchildren |
|
|
|
}; |
|
|
|
}); |
|
|
|
}; |
|
|
|
}); |
|
|
|
}; |
|
|
|
market.value = transformTree(result.data) |
|
|
|
console.log('转换后的地区树==============', market.value) |
|
|
|
} catch (error) { |
|
|
|
console.log('请求失败', error) |
|
|
|
} |
|
|
|
market.value = transformTree(result.data) |
|
|
|
console.log('转换后的地区树==============', market.value) |
|
|
|
} catch (error) { |
|
|
|
console.log('请求失败', error) |
|
|
|
} |
|
|
|
} |
|
|
|
const showEditDialog = (row) => { |
|
|
|
editRow.value = row |
|
|
|
@ -633,6 +636,15 @@ onMounted(() => { |
|
|
|
background-color: #F3FAFE !important; |
|
|
|
} |
|
|
|
|
|
|
|
:deep(.el-image-viewer) { |
|
|
|
z-index: 3000 !important; /* 确保高于固定列和对话框的层级 */ |
|
|
|
} |
|
|
|
|
|
|
|
/* 若固定列仍遮挡,强制提高固定列容器的层级(可选) */ |
|
|
|
:deep(.el-table__fixed), |
|
|
|
:deep(.el-table__fixed-right) { |
|
|
|
z-index: 10 !important; /* 低于预览层的 3000 即可 */ |
|
|
|
} |
|
|
|
|
|
|
|
.condition1 { |
|
|
|
width: 82vw; |
|
|
|
|