|
|
@ -12,8 +12,8 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="item1"> |
|
|
<div class="item1"> |
|
|
<el-text size="large" style="width:4vw;">所属地区</el-text> |
|
|
<el-text size="large" style="width:4vw;">所属地区</el-text> |
|
|
<el-cascader style="width: 9vw;" v-model="searchForm.market" :options="market" |
|
|
|
|
|
placeholder="请选择所属地区" clearable @change="handleMarketChange" /> |
|
|
|
|
|
|
|
|
<el-cascader style="width: 9vw;" v-model="searchForm.market" :options="market" placeholder="请选择所属地区" |
|
|
|
|
|
clearable @change="handleMarketChange" /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="item1"> |
|
|
<div class="item1"> |
|
|
<el-text size="large" style="width:4vw;">产品名称</el-text> |
|
|
<el-text size="large" style="width:4vw;">产品名称</el-text> |
|
|
@ -36,7 +36,8 @@ |
|
|
<div class="item2"> |
|
|
<div class="item2"> |
|
|
<el-text size="large" style="width:4vw;">支付方式</el-text> |
|
|
<el-text size="large" style="width:4vw;">支付方式</el-text> |
|
|
<el-select v-model="searchForm.payType" style="width:9vw;" clearable> |
|
|
<el-select v-model="searchForm.payType" style="width:9vw;" clearable> |
|
|
<el-option v-for="item in channelOptions" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
|
|
|
|
|
<el-option v-for="item in channelOptions" :key="item.value" :label="item.label" |
|
|
|
|
|
:value="item.value" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
<div class="item2" style="width: 28.5vw;"> |
|
|
<div class="item2" style="width: 28.5vw;"> |
|
|
@ -77,8 +78,9 @@ |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
|
{{ |
|
|
{{ |
|
|
[10, 20, 30, 40].includes(scope.row.status) ? '审核中' : |
|
|
[10, 20, 30, 40].includes(scope.row.status) ? '审核中' : |
|
|
[12, 22, 32].includes(scope.row.status) ? '审核驳回' : |
|
|
|
|
|
scope.row.status === 41 ? '退款完成' : scope.row.status |
|
|
|
|
|
|
|
|
[12, 22, 32].includes(scope.row.status) ? '已驳回' : |
|
|
|
|
|
[11].includes(scope.row.status) ? '已撤回' : |
|
|
|
|
|
scope.row.status === 41 ? '退款完成' : scope.row.status |
|
|
}} |
|
|
}} |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -150,7 +152,7 @@ |
|
|
<div class="add-item"> |
|
|
<div class="add-item"> |
|
|
<el-text style="width:4vw;">转账凭证</el-text> |
|
|
<el-text style="width:4vw;">转账凭证</el-text> |
|
|
<img v-if="editRow.voucher" :src="editRow.voucher" |
|
|
<img v-if="editRow.voucher" :src="editRow.voucher" |
|
|
style="width: 100%; height: 100%; object-fit: cover;"> |
|
|
|
|
|
|
|
|
style="width: 80px; height: 80px; object-fit: cover;"> |
|
|
<div v-else> |
|
|
<div v-else> |
|
|
无转账凭证 |
|
|
无转账凭证 |
|
|
</div> |
|
|
</div> |
|
|
@ -163,7 +165,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="right"> |
|
|
<div class="right"> |
|
|
<div class="add-item"> |
|
|
<div class="add-item"> |
|
|
<el-text style="width:4vw;">退款模式</el-text> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;">退款类型</el-text> |
|
|
<el-radio-group v-model="editForm.refundModel"> |
|
|
<el-radio-group v-model="editForm.refundModel"> |
|
|
<el-radio value="0">全部退款</el-radio> |
|
|
<el-radio value="0">全部退款</el-radio> |
|
|
<el-radio value="1">部分退款</el-radio> |
|
|
<el-radio value="1">部分退款</el-radio> |
|
|
@ -183,13 +185,8 @@ |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<ConfirmDialog |
|
|
|
|
|
v-model="showBack" |
|
|
|
|
|
message="撤回该信息!" |
|
|
|
|
|
@confirm="recall" |
|
|
|
|
|
@cancel="showBack = false" |
|
|
|
|
|
@close="showBack = false" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
<ConfirmDialog v-model="showBack" message="撤回该信息!" @confirm="recall" @cancel="showBack = false" |
|
|
|
|
|
@close="showBack = false" /> |
|
|
|
|
|
|
|
|
<el-dialog v-model="showError" overflow draggable class="back-dialog" :style="{ |
|
|
<el-dialog v-model="showError" overflow draggable class="back-dialog" :style="{ |
|
|
backgroundImage: 'url(/src/assets/images/撤回.png)', |
|
|
backgroundImage: 'url(/src/assets/images/撤回.png)', |
|
|
@ -215,6 +212,7 @@ const adminStore = useAdminStore() |
|
|
const { adminData, menuTree } = storeToRefs(adminStore) |
|
|
const { adminData, menuTree } = storeToRefs(adminStore) |
|
|
import { permissionMapping, findMenuById, hasMenuPermission } from "@/utils/menuTreePermission.js" |
|
|
import { permissionMapping, findMenuById, hasMenuPermission } from "@/utils/menuTreePermission.js" |
|
|
import ConfirmDialog from '@/components/dialogs/ConfirmDialog.vue' |
|
|
import ConfirmDialog from '@/components/dialogs/ConfirmDialog.vue' |
|
|
|
|
|
import { pa } from 'element-plus/es/locales.mjs' |
|
|
|
|
|
|
|
|
const dateRange = ref([]) |
|
|
const dateRange = ref([]) |
|
|
const searchForm = ref({ |
|
|
const searchForm = ref({ |
|
|
@ -298,6 +296,7 @@ const getRefund = async function () { |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
tableData.value = result.data.list || [] |
|
|
tableData.value = result.data.list || [] |
|
|
|
|
|
pagination.value.total = result.data.total || 0 |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
ElMessage.error(error.message || '查询失败') |
|
|
ElMessage.error(error.message || '查询失败') |
|
|
} |
|
|
} |
|
|
@ -363,33 +362,33 @@ const submitEdit = async function () { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
const getMarket = 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 currencies = ref([ |
|
|
const currencies = ref([ |
|
|
{ |
|
|
{ |
|
|
@ -662,6 +661,7 @@ onMounted(() => { |
|
|
:deep(.el-table__header th) { |
|
|
:deep(.el-table__header th) { |
|
|
background-color: #F3FAFE !important; |
|
|
background-color: #F3FAFE !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.condition { |
|
|
.condition { |
|
|
width: 82vw; |
|
|
width: 82vw; |
|
|
display: flex; |
|
|
display: flex; |
|
|
|