|
|
@ -15,7 +15,7 @@ |
|
|
<el-cascader v-model="searchForm.goodsName" :options="productList" style="width: 10vw;" |
|
|
<el-cascader v-model="searchForm.goodsName" :options="productList" style="width: 10vw;" |
|
|
placeholder="请选择产品名称" clearable /> |
|
|
placeholder="请选择产品名称" clearable /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="item1"> |
|
|
|
|
|
|
|
|
<div class="item1" v-if="adminData.markets === '总部'"> |
|
|
<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="请选择所属地区" |
|
|
<el-cascader style="width: 9vw;" v-model="searchForm.markets" :options="market" placeholder="请选择所属地区" |
|
|
clearable @change="handleMarketChange" /> |
|
|
clearable @change="handleMarketChange" /> |
|
|
@ -116,9 +116,17 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
<div class="top-item"> |
|
|
<div class="top-item"> |
|
|
|
|
|
<el-text style="width:4vw;" size="small">永久金币</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.permanentGold" size="small" style="width:10vw;" disabled /> 个 |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="top-item"> |
|
|
|
|
|
<el-text style="width:4vw;" size="small">免费金币</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.freeGold" size="small" style="width:10vw;" disabled /> 个 |
|
|
|
|
|
</div> |
|
|
|
|
|
<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.refundReason" size="small" style="width:10vw;" |
|
|
|
|
|
:rows="3" maxlength="100" show-word-limit type="textarea" disabled /> |
|
|
|
|
|
|
|
|
<el-input v-model="auditRow.refundReason" size="small" style="width:10vw;" :rows="3" maxlength="100" |
|
|
|
|
|
show-word-limit type="textarea" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<el-button @click="" class="smallTitle" size="small">原订单信息</el-button> |
|
|
<el-button @click="" class="smallTitle" size="small">原订单信息</el-button> |
|
|
@ -138,20 +146,20 @@ |
|
|
<el-input v-model="auditRow.marketName" size="small" style="width:10vw;" disabled /> |
|
|
<el-input v-model="auditRow.marketName" 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-input v-model="auditRow.paymentAmount" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">付款币种</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.paymentCurrency" 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-input v-model="auditRow.receivedAmount" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">付款金额</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.paymentAmount" 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-input v-model="auditRow.payType" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">付款时间</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.payTime" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="center-item"> |
|
|
<div class="center-item"> |
|
|
<el-text style="width:4vw;">转账凭证</el-text> |
|
|
<el-text style="width:4vw;">转账凭证</el-text> |
|
|
<img v-if="auditRow.voucher" :src="auditRow.voucher" |
|
|
|
|
|
|
|
|
<img v-if="auditRow.payVoucher" :src="auditRow.payVoucher" |
|
|
style="width: 80px; height: 80px; object-fit: cover;"> |
|
|
style="width: 80px; height: 80px; object-fit: cover;"> |
|
|
<div v-else> |
|
|
<div v-else> |
|
|
无转账凭证 |
|
|
无转账凭证 |
|
|
@ -168,28 +176,28 @@ |
|
|
<el-input v-model="auditRow.activity" size="small" style="width:10vw;" disabled /> |
|
|
<el-input v-model="auditRow.activity" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-item"> |
|
|
<div class="right-item"> |
|
|
<el-text style="width:4vw;" size="small">付款币种</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.paymentCurrency" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">支付方式</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.payType" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-item"> |
|
|
<div class="right-item"> |
|
|
<el-text style="width:4vw;" size="small">到账币种</el-text> |
|
|
<el-text style="width:4vw;" size="small">到账币种</el-text> |
|
|
<el-input v-model="auditRow.receivedCurrency" size="small" style="width:10vw;" disabled /> |
|
|
<el-input v-model="auditRow.receivedCurrency" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-item"> |
|
|
<div class="right-item"> |
|
|
<el-text style="width:4vw;" size="small">手续费</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.handlingCharge" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">到账金额</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.receivedAmount" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-item"> |
|
|
<div class="right-item"> |
|
|
<el-text style="width:4vw;" size="small">付款时间</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.payTime" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">到账时间</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.receivedTime" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-item"> |
|
|
<div class="right-item"> |
|
|
<el-text style="width:4vw;" size="small">提交人</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.submitter" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">手续费</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.handlingCharge" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-item"> |
|
|
<div class="right-item"> |
|
|
<el-text style="width:4vw;" size="small">到账时间</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.receivedTime" size="small" style="width:10vw;" disabled /> |
|
|
|
|
|
|
|
|
<el-text style="width:4vw;" size="small">提交人</el-text> |
|
|
|
|
|
<el-input v-model="auditRow.submitter" size="small" style="width:10vw;" disabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-item"> |
|
|
<div class="right-item"> |
|
|
<el-text style="width:4vw;" size="small">备注</el-text> |
|
|
<el-text style="width:4vw;" size="small">备注</el-text> |
|
|
@ -267,7 +275,8 @@ |
|
|
<template #icon> |
|
|
<template #icon> |
|
|
<img v-if="currentStep === 4" src="@/assets/images/refund-rejected.png" alt="已驳回"> |
|
|
<img v-if="currentStep === 4" src="@/assets/images/refund-rejected.png" alt="已驳回"> |
|
|
<img v-else-if="currentStep === 3" src="@/assets/images/refund-approving.png" alt="待审核"> |
|
|
<img v-else-if="currentStep === 3" src="@/assets/images/refund-approving.png" alt="待审核"> |
|
|
<img v-else-if="currentStep > 3 && currentStep != 4" src="@/assets/images/refund-approved.png" alt="已审核"> |
|
|
|
|
|
|
|
|
<img v-else-if="currentStep > 3 && currentStep != 4" |
|
|
|
|
|
src="@/assets/images/refund-approved.png" alt="已审核"> |
|
|
<img v-else-if="currentStep < 3" src="@/assets/images/refund-waiting.png" alt="未开始"> |
|
|
<img v-else-if="currentStep < 3" src="@/assets/images/refund-waiting.png" alt="未开始"> |
|
|
</template> |
|
|
</template> |
|
|
</el-step> |
|
|
</el-step> |
|
|
@ -281,7 +290,8 @@ |
|
|
<template #icon> |
|
|
<template #icon> |
|
|
<img v-if="currentStep === 6" src="@/assets/images/refund-rejected.png" alt="已驳回"> |
|
|
<img v-if="currentStep === 6" src="@/assets/images/refund-rejected.png" alt="已驳回"> |
|
|
<img v-else-if="currentStep === 5" src="@/assets/images/refund-approving.png" alt="待审核"> |
|
|
<img v-else-if="currentStep === 5" src="@/assets/images/refund-approving.png" alt="待审核"> |
|
|
<img v-else-if="currentStep > 5 && currentStep != 6" src="@/assets/images/refund-approved.png" alt="已审核"> |
|
|
|
|
|
|
|
|
<img v-else-if="currentStep > 5 && currentStep != 6" |
|
|
|
|
|
src="@/assets/images/refund-approved.png" alt="已审核"> |
|
|
<img v-else-if="currentStep < 5" src="@/assets/images/refund-waiting.png" alt="未开始"> |
|
|
<img v-else-if="currentStep < 5" src="@/assets/images/refund-waiting.png" alt="未开始"> |
|
|
</template> |
|
|
</template> |
|
|
</el-step> |
|
|
</el-step> |
|
|
@ -352,6 +362,18 @@ import { permissionMapping, findMenuById, hasMenuPermission } from "@/utils/menu |
|
|
import moment from 'moment' |
|
|
import moment from 'moment' |
|
|
import { productList } from '@/views/moneyManage/receiveDetail/utils/staticData.js' |
|
|
import { productList } from '@/views/moneyManage/receiveDetail/utils/staticData.js' |
|
|
|
|
|
|
|
|
|
|
|
const startsWith1 = (mainStr, prefix) => { |
|
|
|
|
|
// 处理前缀为空字符串的情况(空字符串是所有字符串的前缀) |
|
|
|
|
|
if (prefix === '') { |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
|
|
|
// 处理主字符串长度小于前缀长度的情况 |
|
|
|
|
|
if (mainStr.length < prefix.length) { |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
// 比较主字符串开头与前缀相同长度的部分 |
|
|
|
|
|
return mainStr.substring(0, prefix.length) === prefix; |
|
|
|
|
|
} |
|
|
const currentStep = ref(0)// 进度图 |
|
|
const currentStep = ref(0)// 进度图 |
|
|
const searchForm = ref({ |
|
|
const searchForm = ref({ |
|
|
jwcode: '', |
|
|
jwcode: '', |
|
|
@ -521,6 +543,10 @@ const getRefund = async function () { |
|
|
statusParam.value = [30, 32, 40, 41] |
|
|
statusParam.value = [30, 32, 40, 41] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (searchForm.value.goodsName) { |
|
|
|
|
|
searchForm.value.goodsName = searchForm.value.goodsName[searchForm.value.goodsName.length - 1] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const params = { |
|
|
const params = { |
|
|
pageNum: pagination.value.pageNum, |
|
|
pageNum: pagination.value.pageNum, |
|
|
pageSize: pagination.value.pageSize, |
|
|
pageSize: pagination.value.pageSize, |
|
|
@ -528,7 +554,7 @@ const getRefund = async function () { |
|
|
jwcode: searchForm.value.jwcode, |
|
|
jwcode: searchForm.value.jwcode, |
|
|
name: searchForm.value.name, |
|
|
name: searchForm.value.name, |
|
|
markets: searchForm.value.markets, |
|
|
markets: searchForm.value.markets, |
|
|
goodsNames: searchForm.value.goodsName, |
|
|
|
|
|
|
|
|
goodsName: searchForm.value.goodsName, |
|
|
statuses: statusParam.value, |
|
|
statuses: statusParam.value, |
|
|
paymentCurrency: searchForm.value.paymentCurrency, |
|
|
paymentCurrency: searchForm.value.paymentCurrency, |
|
|
payType: searchForm.value.payType, |
|
|
payType: searchForm.value.payType, |
|
|
@ -660,6 +686,10 @@ const exportExcel = async function () { |
|
|
statusParam.value = [30, 32, 40, 41] |
|
|
statusParam.value = [30, 32, 40, 41] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (searchForm.value.goodsName) { |
|
|
|
|
|
searchForm.value.goodsName = searchForm.value.goodsName[searchForm.value.goodsName.length - 1] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const params = { |
|
|
const params = { |
|
|
pageNum: pagination.value.pageNum, |
|
|
pageNum: pagination.value.pageNum, |
|
|
pageSize: pagination.value.pageSize, |
|
|
pageSize: pagination.value.pageSize, |
|
|
@ -667,7 +697,7 @@ const exportExcel = async function () { |
|
|
jwcode: searchForm.value.jwcode, |
|
|
jwcode: searchForm.value.jwcode, |
|
|
name: searchForm.value.name, |
|
|
name: searchForm.value.name, |
|
|
markets: searchForm.value.markets, |
|
|
markets: searchForm.value.markets, |
|
|
goodsNames: searchForm.value.goodsName, |
|
|
|
|
|
|
|
|
goodsName: searchForm.value.goodsName, |
|
|
statuses: statusParam.value, |
|
|
statuses: statusParam.value, |
|
|
paymentCurrency: searchForm.value.paymentCurrency, |
|
|
paymentCurrency: searchForm.value.paymentCurrency, |
|
|
payType: searchForm.value.payType, |
|
|
payType: searchForm.value.payType, |
|
|
@ -680,7 +710,7 @@ const exportExcel = async function () { |
|
|
const res = await API({ url: '/export/exportFinance', data: params }) |
|
|
const res = await API({ url: '/export/exportFinance', data: params }) |
|
|
if (res.code === 200) { |
|
|
if (res.code === 200) { |
|
|
ElMessage.success('导出成功') |
|
|
ElMessage.success('导出成功') |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
ElMessage.error(res.msg || '导出失败') |
|
|
ElMessage.error(res.msg || '导出失败') |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -798,6 +828,14 @@ const disabledDate = (time) => { |
|
|
const limitDate = new Date(2025, 0, 1); |
|
|
const limitDate = new Date(2025, 0, 1); |
|
|
return time.getTime() < limitDate.getTime(); |
|
|
return time.getTime() < limitDate.getTime(); |
|
|
} |
|
|
} |
|
|
|
|
|
const handlePageSizeChange = function (val) { |
|
|
|
|
|
pagination.value.pageSize = val |
|
|
|
|
|
getRefund() |
|
|
|
|
|
} |
|
|
|
|
|
const handleCurrentChange = function (val) { |
|
|
|
|
|
pagination.value.pageNum = val |
|
|
|
|
|
getRefund() |
|
|
|
|
|
} |
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
console.log('???????????????????', adminData.value) |
|
|
console.log('???????????????????', adminData.value) |
|
|
getRefund() |
|
|
getRefund() |
|
|
@ -855,7 +893,7 @@ onMounted(() => { |
|
|
|
|
|
|
|
|
.top { |
|
|
.top { |
|
|
width: 30vw; |
|
|
width: 30vw; |
|
|
height: 17vh; |
|
|
|
|
|
|
|
|
height: 22vh; |
|
|
|
|
|
|
|
|
.top-item { |
|
|
.top-item { |
|
|
display: flex; |
|
|
display: flex; |
|
|
|