|
@@ -1,4 +1,4 @@
|
|
|
-import { ref, computed } from "vue";
|
|
|
+import { ref, computed, watch } from "vue";
|
|
|
import { auditorOrderSettlement,sendCode } from "@/api/finance/settlement.js";
|
|
|
import useUserStore from '@/store/modules/user'
|
|
|
import { takeList, paymentList, takeApproval, careatPayment,payoutCheck } from "@/api/finance/withdrawal.js";
|
|
@@ -75,7 +75,7 @@ export default ({ proxy, jlzj_area_type }) => {
|
|
|
rejectReason: data.rejectReason
|
|
|
}
|
|
|
const res = await takeApproval(parmas);
|
|
|
- if (up_res.code === 200) {
|
|
|
+ if (res.code === 200) {
|
|
|
proxy.$modal.msgSuccess("审核成功");
|
|
|
return;
|
|
|
}
|
|
@@ -146,27 +146,28 @@ export default ({ proxy, jlzj_area_type }) => {
|
|
|
payPassword:verifyCode.value
|
|
|
}
|
|
|
const res = await payoutCheck(parmas);
|
|
|
- if (up_res.code === 200) {
|
|
|
+ if (res.code === 200) {
|
|
|
proxy.$modal.msgSuccess("操作成功");
|
|
|
+ verifyCancel();
|
|
|
+ userTableRef.value.resetForm();
|
|
|
return;
|
|
|
}
|
|
|
proxy.$modal.msgSuccess(res.msg);
|
|
|
} catch (error) {
|
|
|
console.log('error', error);
|
|
|
- } finally {
|
|
|
- userTableRef.value.resetForm();
|
|
|
- dialogVerifyRef.value.handleDialog(false);
|
|
|
}
|
|
|
}
|
|
|
const verifyCancel =()=>{
|
|
|
dialogVerify.value = false;
|
|
|
dialogRow.value = {};
|
|
|
verifyCode.value ='';
|
|
|
+ clearInterval(timer);
|
|
|
+ timer = null;
|
|
|
+ code.value = 60;
|
|
|
}
|
|
|
|
|
|
const getVerList = async (data) => {
|
|
|
console.log('dialogRow.value',dialogRow.value);
|
|
|
-
|
|
|
return takeList({ ...data,paymentRecordId: dialogRow.value.volunteerPaymentRecordsId})
|
|
|
}
|
|
|
|
|
@@ -174,7 +175,40 @@ export default ({ proxy, jlzj_area_type }) => {
|
|
|
dialogPlay.value = false;
|
|
|
dialogRow.value = {};
|
|
|
}
|
|
|
-
|
|
|
+ const code = ref(60);
|
|
|
+ let timer=null;
|
|
|
+ watch(()=>code.value,()=>{
|
|
|
+ if(code.value === 0){
|
|
|
+ clearInterval(timer);
|
|
|
+ timer = null;
|
|
|
+ code.value = 60;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ const getCode = async() => {
|
|
|
+ const userStore = useUserStore();
|
|
|
+ console.log("TCL: exportFile -> userStore", userStore)
|
|
|
+ if(code.value < 60){
|
|
|
+ proxy.$modal.msgError('请勿重复获取!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(userStore.phonenumber && code.value === 60){
|
|
|
+ try {
|
|
|
+ const res =await sendCode(userStore.phonenumber);
|
|
|
+ if(res.code === 200){
|
|
|
+ proxy.$modal.msgSuccess(res.msg);
|
|
|
+ timer = setInterval(()=>{
|
|
|
+ code.value--;
|
|
|
+ console.log('定时器');
|
|
|
+
|
|
|
+ },1000)
|
|
|
+ }else{
|
|
|
+ proxy.$modal.msgError(res.msg);
|
|
|
+ }
|
|
|
+ } catch (error) {
|
|
|
+ console.log("TCL: exportFile -> error", error)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
return {
|
|
|
dialogFormRef,
|
|
@@ -185,6 +219,7 @@ export default ({ proxy, jlzj_area_type }) => {
|
|
|
dialogRow,
|
|
|
dialogVerify,
|
|
|
verifyCode,
|
|
|
+ code,
|
|
|
openDialog,
|
|
|
exportFile,
|
|
|
submitForm,
|
|
@@ -193,21 +228,22 @@ export default ({ proxy, jlzj_area_type }) => {
|
|
|
verifyClose,
|
|
|
getVerList,
|
|
|
verifyCancel,
|
|
|
+ getCode,
|
|
|
tabList: [
|
|
|
{
|
|
|
- title: '待审核',
|
|
|
+ title: '每日流失审核',
|
|
|
name: '1'
|
|
|
},
|
|
|
{
|
|
|
- title: '已驳回',
|
|
|
+ title: '审核驳回',
|
|
|
name: '3'
|
|
|
},
|
|
|
{
|
|
|
- title: '待处理',
|
|
|
+ title: '支付宝提现申请单',
|
|
|
name: '2'
|
|
|
},
|
|
|
{
|
|
|
- title: '打款单',
|
|
|
+ title: '打款单记录',
|
|
|
name: '4'
|
|
|
},
|
|
|
],
|
|
@@ -232,17 +268,22 @@ export default ({ proxy, jlzj_area_type }) => {
|
|
|
label: '账户类型',
|
|
|
prop: 'payType',
|
|
|
type: 'dict',
|
|
|
- dict: pay_type
|
|
|
+ dict: pay_type,
|
|
|
+ isSearch: true,
|
|
|
},
|
|
|
{
|
|
|
label: '申请时间',
|
|
|
prop: 'createTime',
|
|
|
+ type: 'date',
|
|
|
+ isSearch: true,
|
|
|
+ keys: ['start', 'end'],
|
|
|
},
|
|
|
{
|
|
|
label: '数据情况',
|
|
|
prop: 'isPay',
|
|
|
type: 'dict',
|
|
|
- dict: is_pay
|
|
|
+ dict: is_pay,
|
|
|
+ isSearch: true,
|
|
|
},
|
|
|
{
|
|
|
label: '审核状态',
|
|
@@ -261,22 +302,28 @@ export default ({ proxy, jlzj_area_type }) => {
|
|
|
{
|
|
|
label: '打款单总金额',
|
|
|
prop: 'totalPaymentAmount',
|
|
|
+ type: 'input',
|
|
|
+ isSearch: true
|
|
|
},
|
|
|
{
|
|
|
label: '实际打款金额',
|
|
|
prop: 'actualPaymentAmount',
|
|
|
+ type: 'input',
|
|
|
+ isSearch: true
|
|
|
},
|
|
|
{
|
|
|
label: '验证状态',
|
|
|
prop: 'isVerified',
|
|
|
type: 'dict',
|
|
|
- dict: is_verified
|
|
|
+ dict: is_verified,
|
|
|
+ isSearch: true
|
|
|
},
|
|
|
{
|
|
|
label: '打款状态',
|
|
|
prop: 'paymentStatus',
|
|
|
type: 'dict',
|
|
|
- dict: payment_status
|
|
|
+ dict: payment_status,
|
|
|
+ isSearch: true
|
|
|
},
|
|
|
{
|
|
|
label: '打款结果',
|
|
@@ -290,10 +337,16 @@ export default ({ proxy, jlzj_area_type }) => {
|
|
|
{
|
|
|
label: '生成时间',
|
|
|
prop: 'createTime',
|
|
|
+ type: 'date',
|
|
|
+ isSearch: true,
|
|
|
+ keys: ['createTimeStart', 'createTimeEnd'],
|
|
|
},
|
|
|
{
|
|
|
label: '打款时间',
|
|
|
prop: 'paymentTime',
|
|
|
+ type: 'date',
|
|
|
+ isSearch: true,
|
|
|
+ keys: ['paymentTimeStart', 'paymentTimeEnd'],
|
|
|
},
|
|
|
]),
|
|
|
dialogColumn:ref([
|
|
@@ -424,23 +477,8 @@ export default ({ proxy, jlzj_area_type }) => {
|
|
|
key: 'details',
|
|
|
func: async(row) => {
|
|
|
console.log(row)
|
|
|
- const userStore = useUserStore();
|
|
|
- console.log("TCL: exportFile -> userStore", userStore)
|
|
|
- if(userStore.phonenumber){
|
|
|
- try {
|
|
|
- const res =await sendCode(userStore.phonenumber);
|
|
|
- if(res.code === 200){
|
|
|
- proxy.$modal.msgSuccess(res.msg);
|
|
|
- }else{
|
|
|
- proxy.$modal.msgError(res.msg);
|
|
|
- }
|
|
|
- } catch (error) {
|
|
|
- console.log("TCL: exportFile -> error", error)
|
|
|
- }finally {
|
|
|
- dialogRow.value = row;
|
|
|
- dialogVerify.value = true;
|
|
|
- }
|
|
|
- }
|
|
|
+ dialogRow.value = row;
|
|
|
+ dialogVerify.value = true;
|
|
|
|
|
|
},
|
|
|
show: (row) => {
|