|
|
|
@ -12,15 +12,16 @@ |
|
|
|
</div> |
|
|
|
<div class="item1"> |
|
|
|
<el-text size="large" style="width:4vw;">所属地区</el-text> |
|
|
|
<el-input v-model="searchForm.markets" placeholder="请输入所属地区" style="width:9vw;" clearable /> |
|
|
|
<el-cascader style="width: 9vw;" v-model="searchForm.markets" :options="market" |
|
|
|
placeholder="请选择所属地区" clearable @change="handleMarketChange" /> |
|
|
|
</div> |
|
|
|
<div class="item1"> |
|
|
|
<el-text size="large" style="width:4vw;">产品名称</el-text> |
|
|
|
<el-cascader v-model="searchForm.goodsName" :options="productList" style="width: 10vw;" /> |
|
|
|
<el-cascader v-model="searchForm.goodsName" :options="productList" style="width: 10vw;" placeholder="请选择产品名称" clearable /> |
|
|
|
</div> |
|
|
|
<div class="item1"> |
|
|
|
<el-text size="large" style="width:4vw;">订单状态</el-text> |
|
|
|
<el-select v-model="searchForm.statuses" style="width:9vw;"> |
|
|
|
<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-select> |
|
|
|
</div> |
|
|
|
@ -28,13 +29,13 @@ |
|
|
|
<div class="condition"> |
|
|
|
<div class="item2"> |
|
|
|
<el-text size="large" style="width:4vw;">付款币种</el-text> |
|
|
|
<el-select v-model="searchForm.paymentCurrency" style="width:9vw;"> |
|
|
|
<el-select v-model="searchForm.paymentCurrency" style="width:9vw;" placeholder="请选择付款币种" clearable> |
|
|
|
<el-option v-for="item in currencies" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div class="item2"> |
|
|
|
<el-text size="large" style="width:4vw;">支付方式</el-text> |
|
|
|
<el-select v-model="searchForm.payType" style="width:9vw;"> |
|
|
|
<el-select v-model="searchForm.payType" style="width:9vw;" placeholder="请选择支付方式" clearable> |
|
|
|
<el-option v-for="item in channelOptions" :key="item.value" :label="item.label" |
|
|
|
:value="item.value" /> |
|
|
|
</el-select> |
|
|
|
@ -42,7 +43,7 @@ |
|
|
|
<div class="item2" style="width: 28.5vw;"> |
|
|
|
<el-text size="large" style="width:4vw;">付款时间</el-text> |
|
|
|
<el-date-picker v-model="dateRange" type="datetimerange" range-separator="至" start-placeholder="起始时间" |
|
|
|
end-placeholder="结束时间" style="width:22vw;" @change="handleDatePickerChange" |
|
|
|
end-placeholder="结束时间" style="width:22vw;" @change="handleDatePickerChange" clearable |
|
|
|
:disabled-date="disabledDate" /> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
@ -324,6 +325,7 @@ const searchForm = ref({ |
|
|
|
const addForm = ref({ |
|
|
|
remark: '' |
|
|
|
}) |
|
|
|
const market = ref([]) |
|
|
|
const showReject = ref(false) |
|
|
|
const showExecutor = ref(false) |
|
|
|
const auditRow = ref({})// 审核回显 |
|
|
|
@ -485,15 +487,15 @@ const getRefund = async function () { |
|
|
|
jwcode: searchForm.value.jwcode, |
|
|
|
name: searchForm.value.name, |
|
|
|
markets: searchForm.value.markets, |
|
|
|
goodsName: searchForm.value.goodsName, |
|
|
|
goodsNames: searchForm.value.goodsName, |
|
|
|
statuses: searchForm.value.statuses,//10:地区财务待审核;12:地区财务驳回; |
|
|
|
// 20:地区负责人待审核;22:地区负责人驳回; |
|
|
|
// 30:总部财务待审核;32:总部财务驳回; |
|
|
|
// 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 |
|
|
|
} |
|
|
|
} |
|
|
|
@ -563,6 +565,35 @@ const handleReject = async function () { |
|
|
|
ElMessage.error(error.message || '审核失败') |
|
|
|
} |
|
|
|
} |
|
|
|
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; |
|
|
|
|
|
|
|
return { |
|
|
|
value: child.name, |
|
|
|
label: child.name, |
|
|
|
children: grandchildren |
|
|
|
}; |
|
|
|
}); |
|
|
|
}; |
|
|
|
market.value = transformTree(result.data) |
|
|
|
console.log('转换后的地区树==============', market.value) |
|
|
|
} catch (error) { |
|
|
|
console.log('请求失败', error) |
|
|
|
} |
|
|
|
} |
|
|
|
const hideReject = function () { |
|
|
|
showReject.value = false |
|
|
|
addForm.value.remark = '' |
|
|
|
@ -745,6 +776,7 @@ const showAudit = function (row) { |
|
|
|
onMounted(() => { |
|
|
|
console.log('???????????????????', adminData.value) |
|
|
|
getRefund() |
|
|
|
getMarket() |
|
|
|
}) |
|
|
|
</script> |
|
|
|
<style scoped lang="scss"> |
|
|
|
|