|
|
|
@ -41,8 +41,8 @@ |
|
|
|
<div class="search2" style="width: 25.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:18vw;" clearable |
|
|
|
:disabled-date="disabledDate" :default-time="defaultTime" /> |
|
|
|
end-placeholder="结束时间" style="width:18vw;" clearable :disabled-date="disabledDate" |
|
|
|
:default-time="defaultTime" /> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="medium" @click="getRefund">查询</el-button> |
|
|
|
@ -54,10 +54,10 @@ |
|
|
|
<el-card style="background-color: rgb(231,244,253);height:80vh;"> |
|
|
|
<el-table :data="tableData" style="height:70vh;width:82vw;"> |
|
|
|
<el-table-column type="index" label="序号" width="60" fixed="left"> |
|
|
|
<template #default="scope"> |
|
|
|
{{ scope.$index + 1 + (pagination.pageNum - 1) * pagination.pageSize }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<template #default="scope"> |
|
|
|
{{ scope.$index + 1 + (pagination.pageNum - 1) * pagination.pageSize }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="jwcode" label="Homily ID" width="120" fixed="left" /> |
|
|
|
<el-table-column prop="name" label="姓名" width="120" fixed="left" show-overflow-tooltip /> |
|
|
|
<el-table-column prop="marketName" label="所属地区" width="120" /> |
|
|
|
@ -123,11 +123,12 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<el-pagination v-model:current-page="pagination.pageNum" v-model:page-size="pagination.pageSize" |
|
|
|
@size-change="handlePageSizeChange" @current-change="handleCurrentChange" |
|
|
|
@size-change="handlePageSizeChange" @current-change="handleCurrentChange" |
|
|
|
layout="total, sizes, prev, pager, next, jumper" :total="pagination.total" style="margin-top: 1vh;" /> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
<el-dialog v-model="showEdit" class="edit" overflow draggable style="width: 40vw; background-color: #F3FAFE !important;"> |
|
|
|
<el-dialog v-model="showEdit" class="edit" overflow draggable |
|
|
|
style="width: 40vw; background-color: #F3FAFE !important;"> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div class="left"> |
|
|
|
<div class="dialog-item"> |
|
|
|
@ -175,7 +176,8 @@ |
|
|
|
</div> |
|
|
|
<div class="dialog-item"> |
|
|
|
<el-text style="width:4vw;">转账凭证</el-text> |
|
|
|
<img v-if="editRow.payVoucher" :src="editRow.payVoucher" style="width: 80px; height: 80px; object-fit: cover;"> |
|
|
|
<img v-if="editRow.payVoucher" :src="editRow.payVoucher" |
|
|
|
style="width: 80px; height: 80px; object-fit: cover;"> |
|
|
|
<div v-else> |
|
|
|
无转账凭证 |
|
|
|
</div> |
|
|
|
@ -282,12 +284,20 @@ const getRefund = async function () { |
|
|
|
} |
|
|
|
|
|
|
|
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 |
|
|
|
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' |
|
|
|
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' |
|
|
|
|
|
|
|
if(searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)){ |
|
|
|
ElMessage.error('精网号必须为数字') |
|
|
|
return |
|
|
|
} |
|
|
|
if (searchForm.value.jwcode) { |
|
|
|
const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); |
|
|
|
if (!isPositiveInteger) { |
|
|
|
ElMessage.error('请输入正确的精网号') |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
// 增加精网号长度限制,防止后端400错误 |
|
|
|
if (searchForm.value.jwcode.length > 8) { |
|
|
|
ElMessage.error('精网号长度不能超过8位') |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
const params = { |
|
|
|
pageNum: pagination.value.pageNum, |
|
|
|
@ -295,7 +305,7 @@ const getRefund = async function () { |
|
|
|
cashRecordDTO: { |
|
|
|
jwcode: searchForm.value.jwcode, |
|
|
|
name: searchForm.value.name, |
|
|
|
markets: searchForm.value.markets && searchForm.value.markets.length > 0 ? [searchForm.value.markets[searchForm.value.markets.length - 1]] : [], |
|
|
|
markets: searchForm.value.markets && searchForm.value.markets.length > 0 ? [searchForm.value.markets[searchForm.value.markets.length - 1]] : [], |
|
|
|
goodsName: goodsName, |
|
|
|
statuses: statusesParam.value,//10:地区财务待审核;12:地区财务驳回; |
|
|
|
// 20:地区负责人待审核;22:地区负责人驳回; |
|
|
|
@ -495,12 +505,12 @@ const reset = function () { |
|
|
|
getRefund() |
|
|
|
} |
|
|
|
const handlePageSizeChange = function (val) { |
|
|
|
pagination.value.pageSize = val |
|
|
|
getRefund() |
|
|
|
pagination.value.pageSize = val |
|
|
|
getRefund() |
|
|
|
} |
|
|
|
const handleCurrentChange = function (val) { |
|
|
|
pagination.value.pageNum = val |
|
|
|
getRefund() |
|
|
|
pagination.value.pageNum = val |
|
|
|
getRefund() |
|
|
|
} |
|
|
|
onMounted(() => { |
|
|
|
console.log('???????????????????', adminData.value) |
|
|
|
|