Commit bd384c2e by wangzhihui

样式修改

1 parent 9aa7c14c
......@@ -4,7 +4,7 @@
<div class="wrap edit-box">
<div>
<p class="edit-title">订单信息</p>
<el-form label-width="150px" :inline="true">
<el-form label-width="120px" :inline="true">
<el-row v-for="(item, index) in withdrawDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item">
<span v-if="subItem.addHtml">
......@@ -21,7 +21,7 @@
</div>
<div>
<p class="edit-title">付款信息</p>
<el-form label-width="154px" :inline="true">
<el-form label-width="120px" :inline="true">
<el-row v-for="(item, index) in paymentDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item">
<span v-if="subItem.addHtml">
......@@ -217,7 +217,7 @@ export default {
}
.detail-txt {
display: inline-block;
width: 136px;
width: 190px;
}
.edit-title {
font-weight: 600;
......
......@@ -856,7 +856,7 @@ export default {
}
} else {
if (!this.ids || this.ids.length == 0) {
this.$message.error('请选择需要生成批次的【提现积分】记录')
this.$message.error('请选择需要生成批次的【积分提现】记录')
return
}
//批量生成批次
......
......@@ -48,7 +48,7 @@ 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.recordInfo.taxRate = this.baseData.payChannelList.find(item => item.id === val).tax + '%'
this.getAdmin()
this.getPaymentEntityList()
this.calculateAmount()
......@@ -160,11 +160,11 @@ export default {
mounted() {},
methods: {
calculateAmount() {
let {taxRate,pointTotal} =this.recordInfo,
rate = taxRate.split('%')[0];
let { taxRate, pointTotal } = this.recordInfo,
rate = taxRate.split('%')[0]
console.log(rate)
//本批次号积分提现总金额+渠道税点(积分总额×税点),保留小数点后 2位
this.recordInfo.paymentTotal = (pointTotal+pointTotal*(rate/100)).toFixed(2)
this.recordInfo.paymentTotal = (pointTotal + pointTotal * (rate / 100)).toFixed(2)
},
//积分提现获取业务对应的付款渠道
getChannel(transferType) {
......@@ -185,7 +185,7 @@ 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.recordInfo.taxRate = this.baseData.payChannelList[0].tax + '%'
this.calculateAmount()
}
this.getPaymentEntityList()
......@@ -239,17 +239,19 @@ export default {
explain: this.payForm.explain,
remark: this.payForm.remark
}
params.approver=this.baseData.adminList.find(item=>item.adminId ==this.payForm.approverId).name
params.approver = this.baseData.adminList.find(item => item.adminId == this.payForm.approverId).name
this.$apis.withdraw
.applyApprovalOA(params)
.then(res => {
if (res.code == '0') {
this.cancelPay()
}
this.$message({
message: res.code == '0' ? '付款审批成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
})
.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!