|
|
@ -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.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> |
|
|
@ -43,7 +43,7 @@ |
|
|
<div class="item2" style="width: 28.5vw;"> |
|
|
<div class="item2" style="width: 28.5vw;"> |
|
|
<el-text size="large" style="width:4vw;">付款时间</el-text> |
|
|
<el-text size="large" style="width:4vw;">付款时间</el-text> |
|
|
<el-date-picker v-model="dateRange" type="datetimerange" range-separator="至" start-placeholder="起始时间" |
|
|
<el-date-picker v-model="dateRange" type="datetimerange" range-separator="至" start-placeholder="起始时间" |
|
|
end-placeholder="结束时间" style="width:22vw;" @change="handleDatePickerChange" clearable |
|
|
|
|
|
|
|
|
end-placeholder="结束时间" style="width:22vw;" @change="handleDatePickerChange" clearable |
|
|
:disabled-date="disabledDate" :default-time="defaultTime" /> |
|
|
:disabled-date="disabledDate" :default-time="defaultTime" /> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
@ -105,11 +105,10 @@ |
|
|
<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-input v-model="auditRow.refundModel" size="small" style="width:10vw;" disabled> |
|
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
{{ scope.row.refundModel === 0 ? '全部退款' : '部分退款' }} |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
|
|
|
<el-select v-model="auditRow.refundModel" size="small" style="width:10vw;" disabled> |
|
|
|
|
|
<el-option label="全部退款" :value="0"></el-option> |
|
|
|
|
|
<el-option label="部分退款" :value="1"></el-option> |
|
|
|
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
<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> |
|
|
@ -130,7 +129,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="center-item"> |
|
|
<div class="center-item"> |
|
|
<el-text style="width:4vw;" size="small">所属地区</el-text> |
|
|
<el-text style="width:4vw;" size="small">所属地区</el-text> |
|
|
<el-input v-model="auditRow.marketName" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-input v-model="auditRow.market" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="center-item"> |
|
|
<div class="center-item"> |
|
|
<el-text style="width:4vw;" size="small">产品名称</el-text> |
|
|
<el-text style="width:4vw;" size="small">产品名称</el-text> |
|
|
@ -734,33 +733,33 @@ const productList = [ |
|
|
|
|
|
|
|
|
] |
|
|
] |
|
|
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.name, |
|
|
|
|
|
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.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 showStep = function (row) { |
|
|
const showStep = function (row) { |
|
|
if (!hasMenuPermission(menuTree.value, permissionMapping.refundFinanceProgShow)) { |
|
|
if (!hasMenuPermission(menuTree.value, permissionMapping.refundFinanceProgShow)) { |
|
|
@ -771,27 +770,27 @@ const showStep = function (row) { |
|
|
currentStep.value = 1; |
|
|
currentStep.value = 1; |
|
|
if (row.status === 41) { |
|
|
if (row.status === 41) { |
|
|
executor.value = row.executorName |
|
|
executor.value = row.executorName |
|
|
console.log('执行人',executor.value) |
|
|
|
|
|
|
|
|
console.log('执行人', executor.value) |
|
|
currentStep.value = 6; |
|
|
currentStep.value = 6; |
|
|
} else { |
|
|
} else { |
|
|
if (row.areaServise !== null && row.areaServise !== '') { |
|
|
if (row.areaServise !== null && row.areaServise !== '') { |
|
|
submitterName.value = row.areaServise |
|
|
submitterName.value = row.areaServise |
|
|
console.log('提交人',submitterName.value) |
|
|
|
|
|
|
|
|
console.log('提交人', submitterName.value) |
|
|
currentStep.value = 2; |
|
|
currentStep.value = 2; |
|
|
} |
|
|
} |
|
|
if (row.areaFinance !== null && row.areaFinance !== '') { |
|
|
if (row.areaFinance !== null && row.areaFinance !== '') { |
|
|
areaFinance.value = row.areaFinance |
|
|
areaFinance.value = row.areaFinance |
|
|
console.log('地区财务',areaFinance.value) |
|
|
|
|
|
|
|
|
console.log('地区财务', areaFinance.value) |
|
|
currentStep.value = 3; |
|
|
currentStep.value = 3; |
|
|
} |
|
|
} |
|
|
if (row.areaCharge !== null && row.areaCharge !== '') { |
|
|
if (row.areaCharge !== null && row.areaCharge !== '') { |
|
|
areaCharge.value = row.areaCharge |
|
|
areaCharge.value = row.areaCharge |
|
|
console.log('地区负责人',areaCharge.value) |
|
|
|
|
|
|
|
|
console.log('地区负责人', areaCharge.value) |
|
|
currentStep.value = 4; |
|
|
currentStep.value = 4; |
|
|
} |
|
|
} |
|
|
if (row.headFinance !== null && row.headFinance !== '') { |
|
|
if (row.headFinance !== null && row.headFinance !== '') { |
|
|
headFinance.value = row.headFinance |
|
|
headFinance.value = row.headFinance |
|
|
console.log('总部财务',headFinance.value) |
|
|
|
|
|
|
|
|
console.log('总部财务', headFinance.value) |
|
|
currentStep.value = 5; |
|
|
currentStep.value = 5; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -816,12 +815,12 @@ const hideReject = function () { |
|
|
addForm.value.remark = '' |
|
|
addForm.value.remark = '' |
|
|
} |
|
|
} |
|
|
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) |
|
|
@ -870,7 +869,7 @@ onMounted(() => { |
|
|
|
|
|
|
|
|
.top { |
|
|
.top { |
|
|
width: 30vw; |
|
|
width: 30vw; |
|
|
height: 17vh; |
|
|
|
|
|
|
|
|
height: 19vh; |
|
|
|
|
|
|
|
|
.top-item { |
|
|
.top-item { |
|
|
display: flex; |
|
|
display: flex; |
|
|
|