Commit ab133603 by wangzhihui

流程修复

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