Commit bd384c2e by wangzhihui

样式修改

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