Commit f5426d03 by wangzhihui

优化

1 parent 78547bc0
......@@ -92,7 +92,7 @@ export default {
{
label: '提现时间',
prop: 'createdDate',
width: 170
width: 180
},
{
label: '收款人姓名',
......
......@@ -117,7 +117,7 @@ export default {
{
label: '提现时间',
prop: 'createdDate',
width: 170
width: 180
},
{
label: '收款人姓名',
......
......@@ -785,7 +785,7 @@ export default {
this.$apis.withdraw.generateBatchCount(params).then(res => {
if (res.code == 0) {
numberOfRecord = res.data.numberOfRecord
paymentTotal = (res.data.paymentTotal/100).toFixed(2)
paymentTotal = res.data.paymentTotal
txt = all
? `当前共 ${numberOfRecord}条未处理【积分提现】记录,付款金额共 ${paymentTotal}元,是否确认生成批次?`
: `将对您选择的${numberOfRecord} 条【积分提现】记录生成批次,
......
......@@ -33,7 +33,7 @@ export default {
paymentChannelId: '',
paymentSubjectId: '',
explain: '',
approver: '',
approverId: '',
phone: '',
captcha: '',
remark: ''
......@@ -89,7 +89,7 @@ export default {
},
{
label: '管理员',
name: 'approver',
name: 'approverId',
type: 'select',
optionsName: 'adminList',
optionId: 'adminId',
......@@ -123,7 +123,7 @@ export default {
}
],
payRule: {
approver: [{ required: true, message: '请选择管理员', trigger: 'change' }],
approverId: [{ required: true, message: '请选择管理员', trigger: 'change' }],
paymentChannelId: [{ required: true, message: '请选择付款渠道', trigger: 'change' }],
paymentSubjectId: [{ required: true, message: '请选择付款主体', trigger: 'change' }],
captcha: [{ required: true, message: '请输入验证码', trigger: 'blur' }],
......@@ -218,8 +218,8 @@ export default {
phone: item.phone
}
})
this.$utils.getOptionsList(this, 'payFormData', false, 'approver')
this.payForm.approver = this.baseData.adminList[0].adminId
this.$utils.getOptionsList(this, 'payFormData', false, 'approverId')
this.payForm.approverId = this.baseData.adminList[0].adminId
this.payForm.phone = this.baseData.adminList[0].phone
}
})
......@@ -234,11 +234,11 @@ export default {
id: this.recordInfo.id,
paymentChannelId: this.payForm.paymentChannelId,
paymentSubjectId: this.payForm.paymentSubjectId,
approver: this.payForm.approver,
captcha: this.payForm.captcha,
explain: this.payForm.explain,
remark: this.payForm.remark
}
params.approver=this.baseData.adminList.find(item=>item.adminId ==this.payForm.approverId).name
this.$apis.withdraw
.applyApprovalOA(params)
.then(res => {
......@@ -260,7 +260,7 @@ export default {
paymentChannelId: '',
paymentSubjectId: '',
explain: '',
approver: '',
approverId: '',
phone: '',
captcha: '',
remark: ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!