Commit 9364c57f authored by zhengke's avatar zhengke

修改

parent 8ed9416d
......@@ -868,4 +868,15 @@ export function GetReserveClassBalanceSheet(data) {
method: 'post',
data
});
}
/**
* 获取下拉数据
*/
export function GetFinanceIncomeFeeRate(data) {
return request({
url: '/Finance/GetFinanceIncomeFeeRate',
method: 'post',
data
});
}
\ No newline at end of file
......@@ -535,8 +535,15 @@
</tr>
<tr>
<td colspan="1">{{$t('fnc.shouxufei')}}<br /><span class="_font_size12">{{$t('fnc.khyuanbi')}}</span></td>
<td colspan="3"><input class="_border_b_1 w80" type="number" v-model="msg.OriginalFee"
@change="countFee()"></input></td>
<td colspan="3">
<div style="display:flex;">
<input class="_border_b_1 w80" type="number" disabled v-model="msg.OriginalFee"
@change="countFee()"></input>
<el-select v-model="myRate" class="w120" @change="getMyRateArr()">
<el-option :label="x" v-for="x in RateArr" :value="x"></el-option>
</el-select>
</div>
</td>
<td colspan="1">{{$t('fnc.shouxufei')}}<br /><span class="_font_size12">{{$t('fnc.khbweibi')}}</span></td>
<td colspan="3"><span class=" w80" type="number">{{msg.Fee}}</span></td>
</tr>
......@@ -703,6 +710,7 @@
import myFlowChartModule from "../components/FlowChartModule.vue";
import TicketingModule from "../components/TicketingModule.vue";
import {getSchoolDropdown} from '../../../api/school/index'
import {GetFinanceIncomeFeeRate} from '../../../api/finance/index'
import {getDeptList} from '../../../api/system/dept'
import {
UploadSelfFile
......@@ -858,6 +866,9 @@
},
costmode:true,
iscopy:1,//是否是复制1是修改 2 为复制
myRate:0, //用于计算手续费
myTotal:0,
RateArr:[]
}
},
methods: {
......@@ -1121,7 +1132,7 @@
})
}
})
if (this.bankType == 13||this.bankType == 21) {
if (this.bankType == 13) {
this.apipost('Financial_post_GetQRCodeServiceCharge', {
AccountId: i
}, res => {
......@@ -1419,6 +1430,17 @@
this.$set(this.msg.detailList, i, this.msg.detailList[i]);
},
addList(t, i) { // 添加
console.log('进入');
//计算总费用
this.myTotal=0;
this.$nextTick(() => {
if(this.msg.detailList.length>0){
this.msg.detailList.forEach(x=>{
this.myTotal+=x.bTotalPrice
})
this.getMyRateArr();
}
})
this.edit = false;
let list = {};
if (t == 2 && i) {
......@@ -1850,6 +1872,25 @@
})
},
//获取下拉数据
getFeeRate(){
GetFinanceIncomeFeeRate({}).then(res => {
if (res.Code == 1) {
this.RateArr = res.Data.split(',');
this.RateArr.unshift(0);
}
}).catch(() => {
})
},
//改变事件
getMyRateArr(){
if(this.myTotal>0){
let num = this.myRate*this.myTotal;
this.msg.OriginalFee = num.toFixed(2);
this.countFee();
}
},
},
created() {
let that = this;
......@@ -1890,6 +1931,7 @@
this.msg.Cmd = this.$route.query.Cmd ? this.$route.query.Cmd : '';
this.getCompany();
this.getFeeRate();
if (this.$route.query.edit) {
this.edit = this.$route.query.edit;
this.msg.FrID = this.$route.query.FrID;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment