Commit 82d18fde authored by youjie's avatar youjie

no message

parent dfdd7e60
......@@ -19,7 +19,7 @@
._benwei{background-color: #2AAEF2!important;color: #0877B0!important}
._benweiA{background-color: #0F80BA!important}
._underline{text-decoration: underline;cursor: pointer;}
.currentManage ._vMG_edit{overflow: auto;display: none;position:absolute;font-family: 'PingFangSc-Fine';bottom:0;left: 0;border-top:1px solid #d1d1d1;background-color:#FFFFFF;padding: 10px;width: 100%;}
.currentManage ._vMG_edit{overflow: auto;display: none;position:absolute;font-family: 'PingFangSc-Fine';bottom:0;left: 0;border-top:1px solid #d1d1d1;background-color:#FFFFFF;padding: 10px;width: 100%;}
.currentManage ._vMG_edit ._tit{padding-left: 10px;border-left: 3px solid #E95252; font-size: 16px;color: #000000}
.currentManage ._vMG_edit ._tit span{color: #666666;font-size: 14px;}
._edHeight{height:400px;}
......@@ -114,7 +114,7 @@
<li>
<span>
<em>{{$t('system.table_currencyCode')}}</em>
<el-input placeholder="" class="w210" v-model="msg.Code"></el-input>
<el-input placeholder="" class="w210" v-model="msg.Code"></el-input>
</span>
</li>
<li>
......@@ -141,7 +141,7 @@
</div>
<div class="cmci_cen">
<p class="clearfix"><span class="fl">{{$t('fnc.benqihuilv')}}</span><span class="fr">{{item.Rate}}</span></p>
<p class="clearfix"><span class="fl">{{$t('fnc.danqgianhuilv')}} <i class="iconfont icon-shuaxin" v-if="item.IsStandardCurrency!=1" @click="getCurrentRate(item.ID,index)"></i></span><span class="fr fc_green">{{item.CurrentRate}}</span></p>
<p class="clearfix"><span class="fl">{{$t('fnc.danqgianhuilv')}} <i class="iconfont icon-shuaxin" v-if="item.IsStandardCurrency!=1" @click="getCurrentRate(item.ID,index)"></i></span><span class="fr fc_green">{{item.CurrentRate}}</span></p>
<p class="clearfix"><span class="fl">{{$t('fnc.zjinyue')}}</span><span class="fr _underline" @click="goUrl('FineBalance',item.ID,item.Name)">{{item.Money}}</span></p>
</div>
<div class="cmci_bot">
......@@ -201,7 +201,7 @@
<el-tooltip class="item" effect="dark" :content="$t('objFill.lishihl')" placement="top-start">
<el-button type="warning" class="iconfont" @click="GoUrlHis('HistoryRateQuery',item)">{{$t('objFill.li')}}</el-button>
</el-tooltip>
</el-button-group>
</td>
</tr>
......@@ -210,61 +210,61 @@
{{$t('system.content_noData')}}
</div>
<div>
<el-pagination
<el-pagination
background
@current-change="handleCurrentChange"
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper"
:page-size=msg.pageSize
:page-size=msg.pageSize
:total=total>
</el-pagination>
</div>
</div>
<div class="_vMG_edit" :class="addShow==true?'edHeight':''">
<p class="_tit">{{$t('fnc.')}}</p>
<p class="_tit">{{$t('fnc.xzengbizhong')}}</p>
<el-form class="_info_box clearfix" :model="addMsg" ref="addMsg" :rules="rules" label-width="100px">
<ul class="clearfix" >
<li>
<el-form-item :label="$t('fnc.b_hbmingcheng')" prop="Name">
<el-input v-model="addMsg.Name" class="w135"></el-input>
</el-form-item>
</el-form-item>
</li>
<li>
<el-form-item :label="$t('fnc.b_hbdaima')" prop="Code">
<el-input v-model="addMsg.Code" class="w135"></el-input>
</el-form-item>
</el-form-item>
</li>
<li v-if="ed==false">
<el-form-item :label="$t('fnc.b_cshuilv')" prop="Rate">
<el-input v-model="addMsg.Rate" class="w135"></el-input>
</el-form-item>
</el-form-item>
</li>
<li v-else>
<el-form-item :label="$t('fnc.b_cshuilv')" prop="Rate">
<el-input v-model="addMsg.Rate" disabled class="w135"></el-input>
</el-form-item>
</el-form-item>
</li>
<li>
<el-form-item :label="$t('objFill.shangtiaohl')" prop="ExchangeRates">
<el-input v-model="addMsg.ExchangeRates" class="w135"></el-input>
</el-form-item>
</el-form-item>
</li>
<li>
<el-form-item :label="$t('fnc.sfbenweibi')+ ':'">
<el-switch v-model="addMsg.IsStandardCurrency"
active-value='1'
inactive-value='0'
active-value='1'
inactive-value='0'
active-color="#4BCA81"
size=mini></el-switch>
</el-form-item>
</el-form-item>
</li>
</ul>
</el-form>
<div>
<ul class="clearfix" style="text-align: right;">
<li class="_add_saveBtn" style="float: initial;" >
<button type="button" class="normalBtn" @click="submitForm('addMsg',1)">{{$t('pub.saveBtn')}}</button>
<button type="button" class="normalBtn" @click="submitForm('addMsg',1)">{{$t('pub.saveBtn')}}</button>
<button class="hollowFixedBtn" type="button" @click="cancelEdit(),resetForm('addMsg')">{{$t('pub.cancelBtn')}}</button>
</li>
</ul>
......@@ -277,12 +277,12 @@
<li>
<el-form-item :label="$t('fnc.b_qchuilv')">
<el-input v-model="SetProfitLossMsg.initRate" disabled="" class="w135"></el-input>
</el-form-item>
</el-form-item>
</li>
<li>
<el-form-item :label="$t('fnc.qmhuilv')" prop="EndRate">
<el-input v-model="SetProfitLossMsg.EndRate" @change="Calculation()" class="w135"></el-input>
</el-form-item>
</el-form-item>
</li>
<li>
<el-form-item :label="$t('fnc.xzqishu')" prop="TermNum">
......@@ -294,20 +294,20 @@
type="month"
:laceholder="$t('admin.admin_choDate')">
</el-date-picker>
</el-form-item>
</el-form-item>
</li>
<li class="_yingkui">
<p v-if="moneyDate.ProfitLoss<0">{{$t('fnc.yingkui')}}<span class="fc_red">{{moneyDate.ProfitLoss}}</span></p>
<p v-if="moneyDate.ProfitLoss>0">{{$t('fnc.yingli')}}<span class="fc_green">{{moneyDate.ProfitLoss}}</span></p>
<p v-if="moneyDate.ProfitLoss==0">{{$t('fnc.yingkui')}}<span class="fc_green">0</span></p>
</li>
</li>
</ul>
</el-form>
<div>
<ul class="clearfix" style="text-align: right;">
<ul class="clearfix" style="text-align: right;">
<li class="_add_saveBtn" style="float: initial;" >
<button type="button" class="normalBtn" @click="submitForm('SetProfitLossMsg',2)">{{$t('fnc.qrtijiao')}}</button>
<button class="hollowFixedBtn" type="button" @click="cancelEdit(),resetForm('SetProfitLossMsg')">{{$t('pub.cancelBtn')}}</button>
<button class="hollowFixedBtn" type="button" @click="cancelEdit(),resetForm('SetProfitLossMsg')">{{$t('pub.cancelBtn')}}</button>
</li>
</ul>
</div>
......@@ -358,7 +358,7 @@
addShow:false,
addCuren:true,
ed:false,
noData:false,
noData:false,
dialogTitle: '',
deleteID:'',
ProfitLossList:[],
......@@ -391,7 +391,7 @@
tableSize:0,
blockSize:0,
}
},created(){
},created(){
let allH,allW,cH,cW;
allH = document.documentElement.clientHeight;
allW = document.documentElement.clientWidth;
......@@ -433,9 +433,9 @@
this.ProfitLossList = res.data.data
// new Date(this.ProfitLossList[0].TermNum).getTime()
} else {
this.tips(res.data.message,'error');
this.tips(res.data.message,'error');
}
}, err => {})
}, err => {})
},
regNum(n,t){ // 判断数字 n 值 t 类型
let reg = /^\d+(\.\d{0,6})?$/
......@@ -444,7 +444,7 @@
if(reg.test(n)){
return Number(n)
}
return 0;
return 0;
}else if(t==1){
if(reg.test(n)){
return Number(n)
......@@ -465,21 +465,21 @@
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
}).then(() => {
}).then(() => {
this.apipost('financeinfo_post_Remove',{ID:id}, res => {
if(res.data.resultCode == 1) {
this.initTableInfo()
this.tips(res.data.message,'success');
this.tips(res.data.message,'success');
} else {
this.tips(res.data.message,'error');
this.tips(res.data.message,'error');
}
}, err => {})
}, err => {})
}).catch(() => {
this.$message({
type: 'info',
message: this.$t('hotel.hotel_HasBeenCancelled')
});
});
});
},
editCurency(id){ // 修改货币信息
this.apipost('financeinfo_post_Get',{ID:id}, res => {
......@@ -489,9 +489,9 @@
this.addShow = true
this.ed = true
} else {
this.tips(res.data.message,'error');
this.tips(res.data.message,'error');
}
}, err => {})
}, err => {})
},
cancelEdit(t){ // 取消修改、新增
this.addMsg = {
......@@ -520,34 +520,34 @@
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
}).then(() => {
}).then(() => {
this.setStandard(id)
}).catch(() => {
this.$message({
type: 'info',
message: this.$t('hotel.hotel_HasBeenCancelled')
});
});
});
},
setStandard(id){ //设置本位币
this.apipost('financeinfo_post_SetStandard',{ID:id}, res => {
if(res.data.resultCode == 1) {
this.tips(res.data.message,'success');
this.tips(res.data.message,'success');
this.initTableInfo();
} else {
this.tips(res.data.message,'error');
this.tips(res.data.message,'error');
}
}, err => {})
}, err => {})
},
getCurrentRate(id,index){// 更新汇率
this.apipost('financeinfo_post_GetCurrentRate',{ID:id}, res => {
if(res.data.resultCode == 1) {
this.tips(res.data.message,'success');
this.tips(res.data.message,'success');
this.initTableInfo()
} else {
this.tips(res.data.message,'error');
this.tips(res.data.message,'error');
}
}, err => {})
}, err => {})
},
initTableInfo(){
this.tableInfo = [];
......@@ -558,9 +558,9 @@
this.total = res.data.data.count;
this.loading2 = false;
if(this.total>0){
this.noData =false;
this.noData =false;
}else{
this.noData =true;
this.noData =true;
}
data.forEach(x=>{
x.YMoney = x.Money
......@@ -570,9 +570,9 @@
})
this.tableInfo = data
} else {
this.tips(res.data.message,'error');
this.tips(res.data.message,'error');
}
}, err => {this.loading2 = false;})
}, err => {this.loading2 = false;})
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
......@@ -585,28 +585,28 @@
SetProfitLoss(){ //币种调汇
this.apipost('FinanceInfo_post_SetProfitLoss',this.SetProfitLossMsg, res => {
if(res.data.resultCode == 1) {
this.tips(res.data.message,'success');
this.tips(res.data.message,'success');
this.initTableInfo();
this.addShow =false
this.addCuren = true
this.ed =0
} else {
this.tips(res.data.message,'error');
this.tips(res.data.message,'error');
}
}, err => {})
},
addFlightmodule(){ //添加币种
this.apipost('financeinfo_post_Set',this.addMsg, res => {
if(res.data.resultCode == 1) {
this.tips(res.data.message,'success');
this.tips(res.data.message,'success');
this.initTableInfo();
this.addShow =false
this.ed =false
this.cancelEdit()
} else {
this.tips(res.data.message,'error');
this.tips(res.data.message,'error');
}
}, err => {})
}, err => {})
},
updateInfo(ID){ //修改模板信息
let msg = {
......@@ -645,13 +645,13 @@
}
this.apipost('currency_post_Remove', msg, res => {
if(res.data.resultCode == 1) {
this.tips(this.$t('tips.shanchuchenggong'),'success');
this.tips(this.$t('tips.shanchuchenggong'),'success');
this.innerVisible = false;
this.initTableInfo();
} else {
this.tips(this.$t('tips.shanchushibai'),'success');
this.tips(this.$t('tips.shanchushibai'),'success');
}
}, err => {})
}, err => {})
},
submitForm(addMsg,type) {//提交创建、修改表单
let that = this;
......@@ -678,7 +678,7 @@
});
},
goUrl (path,id,name) {
this.$router.push({ name: path,query:{"id":id,'name':name} })
this.$router.push({ name: path,query:{"id":id,'name':name} })
}
},
mounted(){
......
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