This commit is contained in:
磷叶 2024-11-28 10:55:34 +08:00
parent 6683722e3a
commit cb6b3e7578
4 changed files with 21 additions and 12 deletions

View File

@ -160,13 +160,13 @@ export const $recharge = {
},
canRefund() {
return (row) => {
return row.status === '2' && row.isFinished;
return row.status === '2';
}
},
canClose() {
return (row) => {
// (支付成功或者押金支付成功) 且 订单未完成
return [RechargeStatus.PAY_SUCCESS, RechargeStatus.DEPOSIT_SUCCESS].includes(row.status) && !row.isFinished;
return [RechargeStatus.PAY_SUCCESS, RechargeStatus.DEPOSIT_SUCCESS, RechargeStatus.REFUNDED, RechargeStatus.REFUNDING].includes(row.status) && !row.isFinished;
}
},
// 允许修复的数据

View File

@ -291,6 +291,9 @@ export default {
],
submitType: [
{type: 'array', required: true, message: "提交材料不能为空", trigger: "change"}
],
reason: [
{ required: true, message: "风控原因不能为空", trigger: "blur" }
]
}
};
@ -342,7 +345,7 @@ export default {
realNameId: null,
unsealSelf: false,
submitType: [],
videoWords: `请录制视频,并按要求念出以下内容:\n【本人XXX身份证XXX正常使用共享开关用于XXX共享使用本人保证合法合规使用如果不正常使用本人愿意承担所有法律责任。`
videoWords: `本人XXX身份证XXX正常使用共享开关用于XXX共享使用本人保证合法合规使用如果不正常使用本人愿意承担所有法律责任。`
};
this.resetForm("form");
},

View File

@ -232,14 +232,15 @@ const defaultSort = {
export default {
name: "RiskInfo",
computed: {
RiskInfoStatus() {
return RiskInfoStatus
}
},
components: { UserLink, RiskInfoVerifyDialog, VideoPreview },
mixins: [$showColumns],
dicts: ['risk_info_status'],
components: { UserLink, RiskInfoVerifyDialog, VideoPreview },
props: {
query: {
type: Object,
default: () => ({})
}
},
data() {
return {
//
@ -310,9 +311,16 @@ export default {
},
openVerify:false,
row: {},
RiskInfoStatus
};
},
created() {
this.queryParams = {
...this.queryParams,
...this.query
}
this.getList();
},
methods: {

View File

@ -50,11 +50,9 @@
<script>
import {
delBill,
refreshPayResult,
rechargeDevice,
closeBill,
fixBill
closeBill
} from '@/api/system/recharge'
import { $recharge, $showColumns, $view } from '@/utils/mixins'
import RefundDialog from '@/views/system/recharge/components/RefundDialog.vue'