Commit 2ce9fa89 authored by youjie's avatar youjie

no message

parent 3ffe7277
...@@ -962,13 +962,17 @@ input[type="number"] { ...@@ -962,13 +962,17 @@ input[type="number"] {
@click="showjiaoyi(item.FrID)"></i> @click="showjiaoyi(item.FrID)"></i>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" content="手续费设置" placement="top" v-if="active==2 && istransaction == true && item.Type==1"> <el-tooltip class="item" content="手续费设置" placement="top" v-if="active==2 && istransaction == true && item.Type==1">
<i class="iconfont icon-zhifupeizhiguanli" <i class="iconfont icon-zhifupeizhiguanli"
@click="showTranTax(item.FrID,'1')"></i> @click="showTranTax(item.FrID,'1')"></i>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" content="付款对象设置" placement="top" v-if="(active==2 || active==3)&& istransaction == true && item.Type==2"> <el-tooltip class="item" content="付款对象设置" placement="top" v-if="(active==2 || active==3)&& istransaction == true && item.Type==2">
<i class="iconfont icon-zhifupeizhiguanli" <i class="iconfont icon-zhifupeizhiguanli"
@click="showTranTax(item.FrID,'2')"></i> @click="showTranTax(item.FrID,'2')"></i>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" content="修改汇率" placement="top" v-if="(active==2 || active==3) && F_Update_CurrencyRate == true">
<i class="iconfont icon-money" style="background-color: #47BF8C;color: white;"
@click="showhuilv(item)"></i>
</el-tooltip>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -1246,7 +1250,35 @@ input[type="number"] { ...@@ -1246,7 +1250,35 @@ input[type="number"] {
<button class="normalBtn" type="primary" @click="goUrlZD">{{$t('pub.sureBtn')}}</button> <button class="normalBtn" type="primary" @click="goUrlZD">{{$t('pub.sureBtn')}}</button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 修改汇率 -->
<el-dialog title="修改汇率" width="400px"
:visible.sync="costmodeHL" center >
<template v-for='(x,y) in trabeListHL'>
<el-form label-width="110px" style="padding: 5px 0;">
费用:{{x.CostTypeName}}
</el-form>
<el-form label-width="110px" style="padding: 5px 0;">
币种:{{x.CurrencyName}}
</el-form>
<el-form label-width="110px" style="padding: 5px 0;">
原币:{{x.OriginalMoney}}
</el-form>
<el-form label-width="110px" style="padding: 5px 0;">
本位币:{{x.Money}}
</el-form>
<el-form label-width="110px" style="padding: 5px 0;">
汇率:
<!-- <span v-if="!bianjiShow">{{x.Rate}}</span> -->
<el-input-number v-model="x.Rate" :min="0" style="width: 240px;" @change="getRate"></el-input-number>
<!-- <span class="iconfont" :class="{'icon-bianji':!bianjiShow,'icon-quxiao1':bianjiShow}" @click="bianjiShow=!bianjiShow"
style="cursor: pointer;color: red;margin-left: 10px;font-size: 13px;"></span> -->
</el-form>
</template>
<div slot="footer" class="dialog-footer">
<el-button class="hollowFixedBtn" @click="costmodeHL=false">{{$t('pub.cancelBtn')}}</el-button>
<el-button class="normalBtn" type="primary" @click="preservetransactionHL()">{{$t('pub.sureBtn')}}</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -1443,7 +1475,10 @@ export default { ...@@ -1443,7 +1475,10 @@ export default {
ClientType:'', ClientType:'',
ClientID:'' ClientID:''
}, },
PaymentSync: false PaymentSync: false,
F_Update_CurrencyRate: false,
costmodeHL:false,
trabeListHL:[],//修改费率下拉数据
}; };
}, },
created() { created() {
...@@ -1458,6 +1493,9 @@ export default { ...@@ -1458,6 +1493,9 @@ export default {
if (ActionMenuCode.indexOf("F_Trademodify") != -1) { if (ActionMenuCode.indexOf("F_Trademodify") != -1) {
this.istransaction = true; this.istransaction = true;
} }
if(ActionMenuCode.indexOf('F_Update_CurrencyRate')!=-1){
this.F_Update_CurrencyRate=true;
}
if (this.$route.query.returnCode) { if (this.$route.query.returnCode) {
this.active = this.$route.query.returnCode; this.active = this.$route.query.returnCode;
this.msg.Conditon = this.$route.query.returnCode; this.msg.Conditon = this.$route.query.returnCode;
...@@ -1516,6 +1554,36 @@ export default { ...@@ -1516,6 +1554,36 @@ export default {
this.czgetList(); this.czgetList();
}, },
methods: { methods: {
getRate(value){
return this.moneyFormatB(value)
},
preservetransactionHL(){//保存费率的修改
let msg = []
this.trabeListHL.forEach(x=>{
let obj ={
FrId:x.FinanceId,
Rate:this.moneyFormatB(x.Rate),
}
msg = obj
})
this.apipost('Financial_post_UpdateFinanceCurrencyRate', msg, res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.costmodeHL = false
this.getPageList()
}else{
this.Error(res.data.message);
}
}, err => {})
},
showhuilv(row){
this.apipost('Financial_get_GetFinanceRate', {FinanceId:row.FrID}, res => {
if (res.data.resultCode == 1) {
this.trabeListHL = res.data.data
this.costmodeHL = true
}
}, err => {})
},
GetAuth() { GetAuth() {
var actionCode = this.$AuthCode.F_Advance_Match; var actionCode = this.$AuthCode.F_Advance_Match;
this.CheckUserAuth(actionCode, res => { this.CheckUserAuth(actionCode, res => {
......
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