Commit ab133603 by wangzhihui

流程修复

1 parent e6767cea
......@@ -129,6 +129,10 @@ export const auditStatusStatusList = [
{
confId: '6',
confLabel: '受理失败'
},
{
confId: '7',
confLabel: '批次处理中'
}
]
export const channelObj = {
......
......@@ -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
paymentTotal = (res.data.paymentTotal/100).toFixed(2)
txt = all
? `当前共 ${numberOfRecord}条未处理【积分提现】记录,付款金额共 ${paymentTotal}元,是否确认生成批次?`
: `将对您选择的${numberOfRecord} 条【积分提现】记录生成批次,
......
......@@ -24,7 +24,7 @@
export default {
data() {
return {
loading:false,
loading: false,
isVisible: false,
count: '',
timer: null,
......@@ -48,8 +48,10 @@ export default {
optionLabel: 'channelInfo',
changeAttr: val => {
this.payForm.channel = this.baseData.payChannelList.find(item => item.id === val).channel
this.recordInfo.taxRate = this.baseData.payChannelList.find(item => item.id === val).tax+'%'
this.getAdmin()
this.getPaymentEntityList()
this.calculateAmount()
this.isCodeDisabled = false
clearInterval(this.timer)
this.timer = null
......@@ -156,6 +158,12 @@ export default {
},
mounted() {},
methods: {
calculateAmount() {
let {taxRate,pointTotal} =this.recordInfo,
rate = taxRate.split('%')[0];
//本批次号积分提现总金额+渠道税点(积分总额×税点),保留小数点后 2位
this.recordInfo.paymentTotal = (pointTotal+pointTotal*(rate/100)).toFixed(2)
},
//积分提现获取业务对应的付款渠道
getChannel(transferType) {
let arr = []
......@@ -175,6 +183,8 @@ export default {
if (this.baseData.payChannelList.length > 0) {
this.payForm.paymentChannelId = this.baseData.payChannelList[0].id
this.payForm.channel = this.baseData.payChannelList[0].channel
this.recordInfo.taxRate = this.baseData.payChannelList[0].tax+'%'
this.calculateAmount()
}
this.getPaymentEntityList()
this.getAdmin()
......@@ -228,17 +238,18 @@ export default {
explain: this.payForm.explain,
remark: this.payForm.remark
}
this.$apis.withdraw.applyApprovalOA(params)
.then(res => {
this.$message({
message: res.code == '0' ? '付款审批成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
this.$apis.withdraw
.applyApprovalOA(params)
.then(res => {
this.$message({
message: res.code == '0' ? '付款审批成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
})
.finally(() => {
this.cancelPay()
this.loading = false
})
})
.finally(() => {
this.cancelPay()
this.loading = false
})
}
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!