|
|
@ -12,17 +12,18 @@ |
|
|
</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.markets" :options="market" |
|
|
|
|
|
placeholder="请选择所属地区" clearable @change="handleMarketChange" /> |
|
|
|
|
|
|
|
|
<el-cascader style="width: 9vw;" v-model="searchForm.markets" :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> |
|
|
<el-cascader v-model="searchForm.goodsName" :options="productList" style="width: 10vw;" placeholder="请选择产品名称" clearable /> |
|
|
|
|
|
|
|
|
<el-cascader v-model="searchForm.goodsName" :options="productList" style="width: 10vw;" |
|
|
|
|
|
placeholder="请选择产品名称" clearable /> |
|
|
</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-select v-model="searchForm.statuses" style="width:9vw;" placeholder="请选择订单状态" clearable> |
|
|
<el-select v-model="searchForm.statuses" style="width:9vw;" placeholder="请选择订单状态" clearable> |
|
|
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
|
|
|
|
|
<el-option v-for="item in statusList" :label="item" :value="item" :key="item" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -74,9 +75,10 @@ |
|
|
<el-table-column prop="status" label="订单状态" width="120"> |
|
|
<el-table-column prop="status" label="订单状态" width="120"> |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
|
{{ |
|
|
{{ |
|
|
[30, 40].includes(scope.row.status) ? '审核中' : |
|
|
|
|
|
scope.row.status === 32 ? '审核驳回' : |
|
|
|
|
|
scope.row.status === 41 ? '退款完成' : scope.row.status |
|
|
|
|
|
|
|
|
[30].includes(scope.row.status) ? '待审核' : |
|
|
|
|
|
[40].includes(scope.row.status) ? '审核通过' : |
|
|
|
|
|
scope.row.status === 32 ? '已驳回' : |
|
|
|
|
|
scope.row.status === 41 ? '退款成功' : scope.row.status |
|
|
}} |
|
|
}} |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -103,7 +105,7 @@ |
|
|
<div class="top"> |
|
|
<div class="top"> |
|
|
<el-button @click="" class="smallTitle" size="small">退款申请信息</el-button> |
|
|
<el-button @click="" class="smallTitle" size="small">退款申请信息</el-button> |
|
|
<div class="top-item"> |
|
|
<div class="top-item"> |
|
|
<el-text style="width:4vw;" size="small">退款类型</el-text> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">退款方式</el-text> |
|
|
<el-select v-model="auditRow.refundModel" size="small" style="width:10vw;" disabled> |
|
|
<el-select v-model="auditRow.refundModel" size="small" style="width:10vw;" disabled> |
|
|
<el-option label="全部退款" :value="0"></el-option> |
|
|
<el-option label="全部退款" :value="0"></el-option> |
|
|
<el-option label="部分退款" :value="1"></el-option> |
|
|
<el-option label="部分退款" :value="1"></el-option> |
|
|
@ -438,12 +440,7 @@ const channelOptions = ref([{ |
|
|
label: 'Ipay88-Link平台' |
|
|
label: 'Ipay88-Link平台' |
|
|
} |
|
|
} |
|
|
]) |
|
|
]) |
|
|
const statusList = ref([ |
|
|
|
|
|
{ value: 30, label: '待审核' }, |
|
|
|
|
|
{ value: 40, label: '审核通过' }, |
|
|
|
|
|
{ value: 32, label: '审核驳回' }, |
|
|
|
|
|
{ value: 41, label: '退款完成' } |
|
|
|
|
|
]) |
|
|
|
|
|
|
|
|
const statusList = ref(['待审核', '审核通过', '已驳回', '退款成功']) |
|
|
const executorList = ref([ |
|
|
const executorList = ref([ |
|
|
{ |
|
|
{ |
|
|
value: '305485', |
|
|
value: '305485', |
|
|
@ -485,7 +482,18 @@ const getRefund = async function () { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
try { |
|
|
try { |
|
|
searchForm.value.statuses = [30, 32, 40, 41] // 默认:看不到进度没到这里的 |
|
|
|
|
|
|
|
|
const statusParam = ref([30, 32, 40, 41])// 默认:看不到进度没到这里的 |
|
|
|
|
|
if (searchForm.value.statuses === '待审核') { |
|
|
|
|
|
statusParam.value = [30] |
|
|
|
|
|
} else if (searchForm.value.statuses === '审核通过') { |
|
|
|
|
|
statusParam.value = [40] |
|
|
|
|
|
} else if (searchForm.value.statuses === '已驳回') { |
|
|
|
|
|
statusParam.value = [32] |
|
|
|
|
|
} else if (searchForm.value.statuses === '退款成功') { |
|
|
|
|
|
statusParam.value = [41] |
|
|
|
|
|
} else { |
|
|
|
|
|
statusParam.value = [30, 32, 40, 41] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const params = { |
|
|
const params = { |
|
|
pageNum: pagination.value.pageNum, |
|
|
pageNum: pagination.value.pageNum, |
|
|
@ -495,10 +503,7 @@ const getRefund = async function () { |
|
|
name: searchForm.value.name, |
|
|
name: searchForm.value.name, |
|
|
markets: searchForm.value.markets, |
|
|
markets: searchForm.value.markets, |
|
|
goodsNames: searchForm.value.goodsName, |
|
|
goodsNames: searchForm.value.goodsName, |
|
|
statuses: searchForm.value.statuses,//10:地区财务待审核;12:地区财务驳回; |
|
|
|
|
|
// 20:地区负责人待审核;22:地区负责人驳回; |
|
|
|
|
|
// 30:总部财务待审核;32:总部财务驳回; |
|
|
|
|
|
// 40:执行人待处理;41:执行人已处理,退款完成; |
|
|
|
|
|
|
|
|
statuses: statusParam.value, |
|
|
paymentCurrency: searchForm.value.paymentCurrency, |
|
|
paymentCurrency: searchForm.value.paymentCurrency, |
|
|
payType: searchForm.value.payType, |
|
|
payType: searchForm.value.payType, |
|
|
startTime: dateRange.value && dateRange.value[0] ? dayjs(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') : "", |
|
|
startTime: dateRange.value && dateRange.value[0] ? dayjs(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') : "", |
|
|
@ -559,7 +564,7 @@ const handleReject = async function () { |
|
|
rejectReason: addForm.value.remark, |
|
|
rejectReason: addForm.value.remark, |
|
|
headFinance: adminData.value.adminName, |
|
|
headFinance: adminData.value.adminName, |
|
|
auditId: auditRow.value.auditId, |
|
|
auditId: auditRow.value.auditId, |
|
|
orderCode:auditRow.value.orderCode |
|
|
|
|
|
|
|
|
orderCode: auditRow.value.orderCode |
|
|
} |
|
|
} |
|
|
const result = await API({ |
|
|
const result = await API({ |
|
|
url: '/Money/finalReview', |
|
|
url: '/Money/finalReview', |
|
|
@ -577,33 +582,33 @@ const handleReject = async function () { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
const getMarket = async function () { |
|
|
const getMarket = async function () { |
|
|
try { |
|
|
|
|
|
const result = await API({ |
|
|
|
|
|
|
|
|
|
|
|
url: '/market/selectMarket', |
|
|
|
|
|
}) |
|
|
|
|
|
console.log('看看地区树', result) |
|
|
|
|
|
|
|
|
|
|
|
const transformTree = (nodes) => { |
|
|
|
|
|
const allChildren = nodes.flatMap(node => node.children || []); |
|
|
|
|
|
|
|
|
|
|
|
return allChildren.map(child => { |
|
|
|
|
|
const grandchildren = child.children && child.children.length |
|
|
|
|
|
? transformTree([child]) |
|
|
|
|
|
: null; |
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
const result = await API({ |
|
|
|
|
|
|
|
|
return { |
|
|
|
|
|
value: child.id, |
|
|
|
|
|
label: child.name, |
|
|
|
|
|
children: grandchildren |
|
|
|
|
|
|
|
|
url: '/market/selectMarket', |
|
|
|
|
|
}) |
|
|
|
|
|
console.log('看看地区树', result) |
|
|
|
|
|
|
|
|
|
|
|
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 { |
|
|
|
|
|
value: child.id, |
|
|
|
|
|
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 hideReject = function () { |
|
|
const hideReject = function () { |
|
|
showReject.value = false |
|
|
showReject.value = false |
|
|
@ -612,7 +617,7 @@ const hideReject = function () { |
|
|
const reset = function () { |
|
|
const reset = function () { |
|
|
searchForm.value = { |
|
|
searchForm.value = { |
|
|
jwcode: '', |
|
|
jwcode: '', |
|
|
market: [], |
|
|
|
|
|
|
|
|
markets: [], |
|
|
statuses: [] |
|
|
statuses: [] |
|
|
} |
|
|
} |
|
|
dateRange.value = [] |
|
|
dateRange.value = [] |
|
|
@ -639,7 +644,7 @@ const showStep = function (row) { |
|
|
isReject.value = reject |
|
|
isReject.value = reject |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
console.log('步骤条状态',currentStep.value) |
|
|
|
|
|
|
|
|
console.log('步骤条状态', currentStep.value) |
|
|
showSteps.value = true |
|
|
showSteps.value = true |
|
|
} |
|
|
} |
|
|
const productList = [ |
|
|
const productList = [ |
|
|
@ -776,12 +781,12 @@ const showAudit = function (row) { |
|
|
showAudit2.value = true |
|
|
showAudit2.value = true |
|
|
} |
|
|
} |
|
|
const defaultTime = [ |
|
|
const defaultTime = [ |
|
|
new Date(2000, 1, 1, 0, 0, 0), |
|
|
|
|
|
new Date(2000, 2, 1, 23, 59, 59), |
|
|
|
|
|
|
|
|
new Date(2000, 1, 1, 0, 0, 0), |
|
|
|
|
|
new Date(2000, 2, 1, 23, 59, 59), |
|
|
] |
|
|
] |
|
|
const disabledDate = (time) => { |
|
|
const disabledDate = (time) => { |
|
|
const limitDate = new Date(2025, 0, 1); |
|
|
|
|
|
return time.getTime() < limitDate.getTime(); |
|
|
|
|
|
|
|
|
const limitDate = new Date(2025, 0, 1); |
|
|
|
|
|
return time.getTime() < limitDate.getTime(); |
|
|
} |
|
|
} |
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
console.log('???????????????????', adminData.value) |
|
|
console.log('???????????????????', adminData.value) |
|
|
|