Commit 9364c57f authored by zhengke's avatar zhengke

修改

parent 8ed9416d
...@@ -868,4 +868,15 @@ export function GetReserveClassBalanceSheet(data) { ...@@ -868,4 +868,15 @@ export function GetReserveClassBalanceSheet(data) {
method: 'post', method: 'post',
data data
}); });
}
/**
* 获取下拉数据
*/
export function GetFinanceIncomeFeeRate(data) {
return request({
url: '/Finance/GetFinanceIncomeFeeRate',
method: 'post',
data
});
} }
\ No newline at end of file
...@@ -535,8 +535,15 @@ ...@@ -535,8 +535,15 @@
</tr> </tr>
<tr> <tr>
<td colspan="1">{{$t('fnc.shouxufei')}}<br /><span class="_font_size12">{{$t('fnc.khyuanbi')}}</span></td> <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" <td colspan="3">
@change="countFee()"></input></td> <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="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> <td colspan="3"><span class=" w80" type="number">{{msg.Fee}}</span></td>
</tr> </tr>
...@@ -703,6 +710,7 @@ ...@@ -703,6 +710,7 @@
import myFlowChartModule from "../components/FlowChartModule.vue"; import myFlowChartModule from "../components/FlowChartModule.vue";
import TicketingModule from "../components/TicketingModule.vue"; import TicketingModule from "../components/TicketingModule.vue";
import {getSchoolDropdown} from '../../../api/school/index' import {getSchoolDropdown} from '../../../api/school/index'
import {GetFinanceIncomeFeeRate} from '../../../api/finance/index'
import {getDeptList} from '../../../api/system/dept' import {getDeptList} from '../../../api/system/dept'
import { import {
UploadSelfFile UploadSelfFile
...@@ -858,6 +866,9 @@ ...@@ -858,6 +866,9 @@
}, },
costmode:true, costmode:true,
iscopy:1,//是否是复制1是修改 2 为复制 iscopy:1,//是否是复制1是修改 2 为复制
myRate:0, //用于计算手续费
myTotal:0,
RateArr:[]
} }
}, },
methods: { methods: {
...@@ -1121,7 +1132,7 @@ ...@@ -1121,7 +1132,7 @@
}) })
} }
}) })
if (this.bankType == 13||this.bankType == 21) { if (this.bankType == 13) {
this.apipost('Financial_post_GetQRCodeServiceCharge', { this.apipost('Financial_post_GetQRCodeServiceCharge', {
AccountId: i AccountId: i
}, res => { }, res => {
...@@ -1419,6 +1430,17 @@ ...@@ -1419,6 +1430,17 @@
this.$set(this.msg.detailList, i, this.msg.detailList[i]); this.$set(this.msg.detailList, i, this.msg.detailList[i]);
}, },
addList(t, 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; this.edit = false;
let list = {}; let list = {};
if (t == 2 && i) { if (t == 2 && i) {
...@@ -1850,6 +1872,25 @@ ...@@ -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() { created() {
let that = this; let that = this;
...@@ -1890,6 +1931,7 @@ ...@@ -1890,6 +1931,7 @@
this.msg.Cmd = this.$route.query.Cmd ? this.$route.query.Cmd : ''; this.msg.Cmd = this.$route.query.Cmd ? this.$route.query.Cmd : '';
this.getCompany(); this.getCompany();
this.getFeeRate();
if (this.$route.query.edit) { if (this.$route.query.edit) {
this.edit = this.$route.query.edit; this.edit = this.$route.query.edit;
this.msg.FrID = this.$route.query.FrID; 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