Commit 335afc13 authored by zhengke's avatar zhengke

修改

parent 8c65fcec
<style scoped> <style scoped>
@import "./css/cssReset.css"; @import "./css/cssReset.css";
.page_CompanyAccount .query-box li label{display: inline-block;min-width: 80px;text-align: right;font-style: normal;margin: 0 20px 0 0;}
._scrollbar::-webkit-scrollbar{width: 4px;height: 8px;} .page_CompanyAccount .query-box li label {
._scrollbar::-webkit-scrollbar-thumb{border-radius: 4px;box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);background: #c9c9c9;} display: inline-block;
._scrollbar::-webkit-scrollbar-track{box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);border-radius: 4px;background: #EDEDED;} min-width: 80px;
.page_CompanyAccount ._vMG_edit{overflow: auto;display: none;position:absolute;bottom:0;left: 0;font-family: 'PingFangSc-Fine';border-top:3px solid #38425d;background-color:#FFFFFF;padding: 10px;width: 100%;} text-align: right;
.page_CompanyAccount ._vMG_edit ._tit{padding-left: 10px;border-left: 3px solid #E95252; font-size: 16px;color: #000000} font-style: normal;
.page_CompanyAccount ._vMG_edit ._tit span{color: #666666} margin: 0 20px 0 0;
.cm_content{margin:0;padding: 0;overflow-x: auto;} }
._edHeight{height:400px;}
.edHeight{display: block !important;height: 230px;} ._scrollbar::-webkit-scrollbar {
.page_CompanyAccount ._info_box ul{margin-top: 15px} width: 4px;
.page_CompanyAccount ._info_box ul li{float: left; margin-right: 12px;} height: 8px;
.instMg_list_item{width: 296px;height: auto;border-radius: 4px;border: 1px solid #ebebeb;float: left;background:rgba(255,255,255,1);overflow: hidden;margin-right: 15px;margin-bottom: 15px;} }
.instMg_list_item:hover{box-shadow:0px 0px 20px rgba(191,191,191,1);transition: all linear 0.5s;}
._tips{font-size: 12px;color: #666666;padding: 15px 0} ._scrollbar::-webkit-scrollbar-thumb {
._bt{padding: 20px;font-size: 14px;} border-radius: 4px;
._bt_t{border-radius:4px;background-color: #E95252;color: #FFFFFF} box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
._bt_t>p{padding: 20px 0;text-align: center} background: #c9c9c9;
._bt_t>p>span{display: inline-block;padding: 3px 10px;background-color: #DE3535;border-radius: 4px} }
.icon-qiehuan,.icon-ico-renwuyaoqiu{background-color: #E7E7E7;border-radius: 50%;color: #999999;font-size: 12px;width: 18px;height: 18px;display: inline-block;text-align: center;line-height: 19px;cursor: pointer;}
.icon-ico-renwuyaoqiu{font-size: 10px} ._scrollbar::-webkit-scrollbar-track {
.icon-qiehuan:hover,.icon-ico-renwuyaoqiu:hover{background-color: #E95252;color: white;} box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
._bt_b{padding: 15px 0 0 0;border-bottom: 1px solid #EEEEEE} border-radius: 4px;
._bt_b>p{display: flex;justify-content: space-between;padding-bottom: 10px} background: #EDEDED;
._bt_b>P span._name{color: #333333;font-size: 12px;} }
._btn{padding: 20px 30px 0 30px;text-align: center}
._btn span{display: inline-block;font-size: 12px;background-color: #E7E7E7;color: #333333;padding: 5px 20px;border-radius: 14px;cursor: pointer; margin-left: 10px} .page_CompanyAccount ._vMG_edit {
._btn span:hover{background-color: #E95252;color: white} overflow: auto;
.fc_green{color: #47BF8C !important} display: none;
.fc_red{color: #E95252 !important} position: absolute;
.page_CompanyAccount .PingFangSC,._bold{font-weight: bold} bottom: 0;
._no_bold{font-weight: normal} left: 0;
._max_wd{max-width: 80px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;vertical-align:top;display: inline-block} font-family: 'PingFangSc-Fine';
._add_saveBtn{text-align: right;margin-bottom: 10px} border-top: 3px solid #38425d;
._cp_name{width: 185px;display: inline-block;text-overflow: ellipsis; white-space: nowrap;display: inline-block;overflow: hidden;text-align: right} background-color: #FFFFFF;
._underline{text-decoration: underline;cursor: pointer;} padding: 10px;
.page_CompanyAccount .el-button-group .el-button{padding: 4px;} width: 100%;
._yingkui{ }
.page_CompanyAccount ._vMG_edit ._tit {
padding-left: 10px;
border-left: 3px solid #E95252;
font-size: 16px;
color: #000000
}
.page_CompanyAccount ._vMG_edit ._tit span {
color: #666666
}
.cm_content {
margin: 0;
padding: 0;
overflow-x: auto;
}
._edHeight {
height: 400px;
}
.edHeight {
display: block !important;
height: 230px;
}
.page_CompanyAccount ._info_box ul {
margin-top: 15px
}
.page_CompanyAccount ._info_box ul li {
float: left;
margin-right: 12px;
}
.instMg_list_item {
width: 296px;
height: auto;
border-radius: 4px;
border: 1px solid #ebebeb;
float: left;
background: rgba(255, 255, 255, 1);
overflow: hidden;
margin-right: 15px;
margin-bottom: 15px;
}
.instMg_list_item:hover {
box-shadow: 0px 0px 20px rgba(191, 191, 191, 1);
transition: all linear 0.5s;
}
._tips {
font-size: 12px;
color: #666666;
padding: 15px 0
}
._bt {
padding: 20px;
font-size: 14px;
}
._bt_t {
border-radius: 4px;
background-color: #E95252;
color: #FFFFFF
}
._bt_t>p {
padding: 20px 0;
text-align: center
}
._bt_t>p>span {
display: inline-block;
padding: 3px 10px;
background-color: #DE3535;
border-radius: 4px
}
.icon-qiehuan,
.icon-ico-renwuyaoqiu {
background-color: #E7E7E7;
border-radius: 50%;
color: #999999;
font-size: 12px;
width: 18px;
height: 18px;
display: inline-block;
text-align: center;
line-height: 19px;
cursor: pointer;
}
.icon-ico-renwuyaoqiu {
font-size: 10px
}
.icon-qiehuan:hover,
.icon-ico-renwuyaoqiu:hover {
background-color: #E95252;
color: white;
}
._bt_b {
padding: 15px 0 0 0;
border-bottom: 1px solid #EEEEEE
}
._bt_b>p {
display: flex;
justify-content: space-between;
padding-bottom: 10px
}
._bt_b>P span._name {
color: #333333;
font-size: 12px;
}
._btn {
padding: 20px 30px 0 30px;
text-align: center
}
._btn span {
display: inline-block;
font-size: 12px;
background-color: #E7E7E7;
color: #333333;
padding: 5px 20px;
border-radius: 14px;
cursor: pointer;
margin-left: 10px
}
._btn span:hover {
background-color: #E95252;
color: white
}
.fc_green {
color: #47BF8C !important
}
.fc_red {
color: #E95252 !important
}
.page_CompanyAccount .PingFangSC,
._bold {
font-weight: bold
}
._no_bold {
font-weight: normal
}
._max_wd {
max-width: 80px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: top;
display: inline-block
}
._add_saveBtn {
text-align: right;
margin-bottom: 10px
}
._cp_name {
width: 185px;
display: inline-block;
text-overflow: ellipsis;
white-space: nowrap;
display: inline-block;
overflow: hidden;
text-align: right
}
._underline {
text-decoration: underline;
cursor: pointer;
}
.page_CompanyAccount .el-button-group .el-button {
padding: 4px;
}
._yingkui {
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
font-size: 12px; font-size: 12px;
color: #666666; color: #666666;
padding-left: 20px; padding-left: 20px;
} }
.page_CompanyAccount .query-box{
padding: 20px 0 0 ; .page_CompanyAccount .query-box {
padding: 20px 0 0;
} }
.page_PlatformAccount ._wAuto{
.page_PlatformAccount ._wAuto {
width: auto; width: auto;
} }
.edHeight_t{display: block !important;height: 152px;}
.el-date-editor.el-input{width: 100% !important;}
</style>
<template>
<div class='flexOne page_CompanyAccount'>
<div class='query-box'>
<el-form class="_info_box clearfix" label-width="110px">
<el-row>
<el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.accBming')">
<el-input v-model="msg.Alias"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.accType')">
<el-select filterable v-model='msg.TypeId' >
<el-option :label='$t("pub.unlimitedSel")' value='-1'></el-option>
<el-option v-for='item in AccountTypeList'
:label='item.Name'
:value='item.ID'
:key='item.ID'>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35">
<el-form-item label="校区">
<el-select filterable v-model='msg.RB_Branch_Id' >
<el-option :label='$t("pub.unlimitedSel")' value='-1'></el-option>
<el-option v-for='item in CompanyList'
:label='item.SName'
:value='item.SId'
:key='item.SId'>
</el-option>
</el-select>
</el-form-item>
</el-col> .edHeight_t {
<el-col :span="4" :gutter="35"> display: block !important;
<el-form-item label=""> height: 152px;
<div > }
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="resetPageIndex(),getList()" style="line-height: 30px;"/>
<input type="button" class="normalBtn" :value="$t('pub.addBtn')" @click="addShow=true,text=$t('pub.addBtn'),ed=false" style="line-height: 30px;"/>
</div>
</el-form-item>
</el-col>
</el-row>
</el-form>
.el-date-editor.el-input {
width: 100% !important;
}
</style>
<template>
<div class='flexOne page_CompanyAccount'>
<div class='query-box' style="padding-bottom:20px;">
<ul>
<li>
<em>{{$t('fnc.accBming')}}</em>
<el-input v-model="msg.Alias"></el-input>
</li>
<li>
<em>{{$t('fnc.accType')}}</em>
<el-select filterable v-model='msg.TypeId'>
<el-option :label='$t("pub.unlimitedSel")' value='-1'></el-option>
<el-option v-for='item in AccountTypeList' :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
</li>
<li>
<em>校区:</em>
<el-select filterable v-model='msg.RB_Branch_Id'>
<el-option :label='$t("pub.unlimitedSel")' value='-1'></el-option>
<el-option v-for='item in CompanyList' :label='item.SName' :value='item.SId' :key='item.SId'>
</el-option>
</el-select>
</li>
<li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')"
@click="resetPageIndex(),getList()" style="line-height: 30px;" />
<input type="button" class="normalBtn" :value="$t('pub.addBtn')"
@click="addShow=true,text=$t('pub.addBtn'),ed=false" style="line-height: 30px;" />
</li>
</ul>
</div> </div>
<div class="cm_content _scrollbar" :class="addShow==true||addCuren==false?'_edHeight':''"> <div class="cm_content _scrollbar" :class="addShow==true||addCuren==false?'_edHeight':''">
<p class="_tips">{{$t('tips.sxhuilv')}}</p> <p class="_tips">{{$t('tips.sxhuilv')}}</p>
...@@ -118,23 +306,32 @@ ...@@ -118,23 +306,32 @@
<p> <p>
<span class="_name">{{$t('fnc.zhyue')}}</span> <span class="_name">{{$t('fnc.zhyue')}}</span>
<span> <span>
<span v-if="item.IsStandardCurrency!=1">{{item.showB?item.StandardCurrencyCode:item.CurrencyCode}}</span> <span
<span v-else>{{item.StandardCurrencyCode}}</span> v-if="item.IsStandardCurrency!=1">{{item.showB?item.StandardCurrencyCode:item.CurrencyCode}}</span>
<span v-else>{{item.StandardCurrencyCode}}</span>
<!-- <span class="fc_green PingFangSC _underline" @click="item.IsStandardCurrency!=1?goUrl('FineBalance',item.ID,item.Alias):''">{{item.showB?moneyFormat(item.benBalance):moneyFormat(item.Initialbalance)}}</span> --> <!-- <span class="fc_green PingFangSC _underline" @click="item.IsStandardCurrency!=1?goUrl('FineBalance',item.ID,item.Alias):''">{{item.showB?moneyFormat(item.benBalance):moneyFormat(item.Initialbalance)}}</span> -->
<span class="fc_green PingFangSC _underline" @click="goUrlNew(item)">{{item.showB?moneyFormat(item.benBalance):moneyFormat(item.Initialbalance)}}</span> <span class="fc_green PingFangSC _underline"
<span class="iconfont icon-qiehuan" @click="item.showB=!item.showB" v-if="item.IsStandardCurrency!=1"></span> @click="goUrlNew(item)">{{item.showB?moneyFormat(item.benBalance):moneyFormat(item.Initialbalance)}}</span>
<span v-if="item.IsStandardCurrency!=1" class="iconfont icon-ico-renwuyaoqiu"></span> <span class="iconfont icon-qiehuan" @click="item.showB=!item.showB"
</span> v-if="item.IsStandardCurrency!=1"></span>
<span v-if="item.IsStandardCurrency!=1" class="iconfont icon-ico-renwuyaoqiu"></span>
</span>
</p> </p>
<p><span class="_name">{{$t('fnc.zhubizhong')}}</span><span class="_bold"> <p><span class="_name">{{$t('fnc.zhubizhong')}}</span><span class="_bold">
<el-tooltip class="item" effect="dark" :content="item.CurrencyName" placement="top-start"> <el-tooltip class="item" effect="dark" :content="item.CurrencyName" placement="top-start">
<span class="_max_wd">{{item.CurrencyName}}</span> <span class="_max_wd">{{item.CurrencyName}}</span>
</el-tooltip> </el-tooltip>
(<span class="_bold" :class="item.IsStandardCurrency==1?'fc_green':'fc_red'">{{item.IsStandardCurrency==1? $t('fnc.bweibi') : $t('fnc.waibi')}}</span>) <span class="_no_bold" v-if="item.IsStandardCurrency!=1">{{item.CurrentRate}}</span> </span></p> (<span class="_bold"
:class="item.IsStandardCurrency==1?'fc_green':'fc_red'">{{item.IsStandardCurrency==1? $t('fnc.bweibi') : $t('fnc.waibi')}}</span>)
<span class="_no_bold" v-if="item.IsStandardCurrency!=1">{{item.CurrentRate}}</span>
</span></p>
<p><span class="_name">校区</span> <p><span class="_name">校区</span>
<el-tooltip class="item" effect="dark" :content="item.allName==''? $t('active.cl_zanwu'):item.allName" placement="top-end"> <el-tooltip class="item" effect="dark" :content="item.allName==''? $t('active.cl_zanwu'):item.allName"
<span v-if="!item.BranchName.length" class="_cp_name"><span class="_bold" >{{$t('active.cl_zanwu')}} </span></span> placement="top-end">
<span v-else class="_cp_name"><span class="_bold" v-for="(b,bi) in item.BranchName">{{b}} </span></span> <span v-if="!item.BranchName.length" class="_cp_name"><span class="_bold">{{$t('active.cl_zanwu')}}
</span></span>
<span v-else class="_cp_name"><span class="_bold" v-for="(b,bi) in item.BranchName">{{b}}
</span></span>
</el-tooltip> </el-tooltip>
</p> </p>
<!-- <p v-if="item.IsStandardCurrency!=1"> <!-- <p v-if="item.IsStandardCurrency!=1">
...@@ -146,9 +343,14 @@ ...@@ -146,9 +343,14 @@
</div> </div>
<p class="_btn"> <p class="_btn">
<el-button-group> <el-button-group>
<el-button type="primary" @click="editCurency(item.ID),text=$t('pub.updateMsg'),addShow=true,addCuren=true">{{$t('pub.updateMsg')}}</el-button> <el-button type="primary"
<el-button type="success" v-if="item.IsStandardCurrency===0" @click="moneyDate.ProfitLoss=0,cancelEdit(2),addShow=false,addCuren=false,SetProfitLossMsg.AccountID = item.ID,SetProfitLossMsg.CurrencyId=item.CurrencyId,SetProfitLossMsg.initRate=item.CurrentRate,SetProfitLossMsg.Money = item.Initialbalance">{{$t('fnc.tiaohui')}}</el-button> @click="editCurency(item.ID),text=$t('pub.updateMsg'),addShow=true,addCuren=true">
<el-button type="info" v-if="item.IsStandardCurrency===0" @click="goUrl('RemittanceRecord',item.ID,item.Alias,3,item.CurrencyId)">{{$t('fnc.jilu')}}</el-button> {{$t('pub.updateMsg')}}</el-button>
<el-button type="success" v-if="item.IsStandardCurrency===0"
@click="moneyDate.ProfitLoss=0,cancelEdit(2),addShow=false,addCuren=false,SetProfitLossMsg.AccountID = item.ID,SetProfitLossMsg.CurrencyId=item.CurrencyId,SetProfitLossMsg.initRate=item.CurrentRate,SetProfitLossMsg.Money = item.Initialbalance">
{{$t('fnc.tiaohui')}}</el-button>
<el-button type="info" v-if="item.IsStandardCurrency===0"
@click="goUrl('RemittanceRecord',item.ID,item.Alias,3,item.CurrencyId)">{{$t('fnc.jilu')}}</el-button>
<el-button type="danger" @click="financeinfoRemove(item.ID,item.Alias)">{{$t('fnc.xiaohu')}}</el-button> <el-button type="danger" @click="financeinfoRemove(item.ID,item.Alias)">{{$t('fnc.xiaohu')}}</el-button>
</el-button-group> </el-button-group>
</p> </p>
...@@ -159,13 +361,8 @@ ...@@ -159,13 +361,8 @@
{{$t('system.content_noData')}} {{$t('system.content_noData')}}
</div> </div>
<div> <div>
<el-pagination <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
background layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total=total>
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper"
:page-size=msg.pageSize
:total=total>
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
...@@ -176,7 +373,8 @@ ...@@ -176,7 +373,8 @@
</el-col> </el-col>
<el-col :span="4" class="_add_saveBtn"> <el-col :span="4" class="_add_saveBtn">
<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'),addShow=false">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn" type="button"
@click="cancelEdit(),resetForm('addMsg'),addShow=false">{{$t('pub.cancelBtn')}}</button>
</el-col> </el-col>
</el-row> </el-row>
<el-form class="_info_box clearfix" :model="addMsg" ref="addMsg" :rules="rules" label-width="110px"> <el-form class="_info_box clearfix" :model="addMsg" ref="addMsg" :rules="rules" label-width="110px">
...@@ -189,11 +387,8 @@ ...@@ -189,11 +387,8 @@
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.accType')" prop="TypeId"> <el-form-item :label="$t('fnc.accType')" prop="TypeId">
<el-select filterable v-model='addMsg.TypeId' class=""> <el-select filterable v-model='addMsg.TypeId' class="">
<el-option v-for='item in AccountTypeList' <el-option v-for='item in AccountTypeList' :label='item.Name' :value='item.ID' :key='item.ID'>
:label='item.Name'
:value='item.ID'
:key='item.ID'>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -201,38 +396,32 @@ ...@@ -201,38 +396,32 @@
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.zhbizhong')" prop="CurrencyId"> <el-form-item :label="$t('fnc.zhbizhong')" prop="CurrencyId">
<el-select filterable v-model='addMsg.CurrencyId' > <el-select filterable v-model='addMsg.CurrencyId'>
<el-option v-for='item in financeinfoList' <el-option v-for='item in financeinfoList' :label='item.Name' :value='item.ID' :key='item.ID'>
:label='item.Name'
:value='item.ID'
:key='item.ID'>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.csyue')" prop="Initialbalance" > <el-form-item :label="$t('fnc.csyue')" prop="Initialbalance">
<el-input v-model="addMsg.Initialbalance" class=""></el-input> <el-input v-model="addMsg.Initialbalance" class=""></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35" class="_BranchIdS"> <el-col :span="4" :gutter="35" class="_BranchIdS">
<el-form-item label="校区" prop="BranchIdS"> <el-form-item label="校区" prop="BranchIdS">
<el-select filterable v-model='addMsg.BranchIdS'> <el-select filterable v-model='addMsg.BranchIdS'>
<el-option v-for='item in CompanyList' <el-option v-for='item in CompanyList' :label='item.SName' :value='item.SId' :key='item.SId'
:label='item.SName' :disabled="item.disabled">
:value='item.SId'
:key='item.SId'
:disabled="item.disabled">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35" > <el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.fxshangxian')" > <el-form-item :label="$t('fnc.fxshangxian')">
<el-input v-model="addMsg.RiskLimitMoney" type="number" class=""></el-input> <el-input v-model="addMsg.RiskLimitMoney" type="number" class=""></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35" > <el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.fxxiaxian')"> <el-form-item :label="$t('fnc.fxxiaxian')">
<el-input v-model="addMsg.RiskLowerLimitMoney" type="number" class=""></el-input> <el-input v-model="addMsg.RiskLowerLimitMoney" type="number" class=""></el-input>
</el-form-item> </el-form-item>
...@@ -249,8 +438,7 @@ ...@@ -249,8 +438,7 @@
</el-col> </el-col>
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
<el-form-item label="期初应用日期"> <el-form-item label="期初应用日期">
<el-date-picker type="date" v-model="addMsg.BeginTimeStr" <el-date-picker type="date" v-model="addMsg.BeginTimeStr" value-format="yyyy-MM-dd"></el-date-picker>
value-format="yyyy-MM-dd"></el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -262,47 +450,45 @@ ...@@ -262,47 +450,45 @@
<p class="_tit">{{$t('fnc.qmtiaohui')}}</p> <p class="_tit">{{$t('fnc.qmtiaohui')}}</p>
</el-col> </el-col>
<el-col :span="4" class="_add_saveBtn"> <el-col :span="4" class="_add_saveBtn">
<button type="button" class="normalBtn" @click="submitForm('SetProfitLossMsg',2)">{{$t('fnc.qrtijiao')}}</button> <button type="button" class="normalBtn"
<button class="hollowFixedBtn" type="button" @click="cancelEdit(),resetForm('SetProfitLossMsg')">{{$t('pub.cancelBtn')}}</button> @click="submitForm('SetProfitLossMsg',2)">{{$t('fnc.qrtijiao')}}</button>
<button class="hollowFixedBtn" type="button"
@click="cancelEdit(),resetForm('SetProfitLossMsg')">{{$t('pub.cancelBtn')}}</button>
</el-col> </el-col>
</el-row> </el-row>
<el-form class="_info_box clearfix" :model="SetProfitLossMsg" ref="SetProfitLossMsg" :rules="rules" label-width="100px"> <el-form class="_info_box clearfix" :model="SetProfitLossMsg" ref="SetProfitLossMsg" :rules="rules"
label-width="100px">
<el-row> <el-row>
<el-col :span="4" :gutter="35" > <el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.sqhuilv')"> <el-form-item :label="$t('fnc.sqhuilv')">
<el-input v-model="SetProfitLossMsg.initRate" disabled=""></el-input> <el-input v-model="SetProfitLossMsg.initRate" disabled=""></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35" > <el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.qmhuilv')" prop="EndRate"> <el-form-item :label="$t('fnc.qmhuilv')" prop="EndRate">
<el-input v-model="SetProfitLossMsg.EndRate" type="number" @change="Calculation()"></el-input> <el-input v-model="SetProfitLossMsg.EndRate" type="number" @change="Calculation()"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35" > <el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.xzqishu')" prop="TermNum"> <el-form-item :label="$t('fnc.xzqishu')" prop="TermNum">
<el-date-picker <el-date-picker v-model="SetProfitLossMsg.TermNum" value-format="yyyy-MM-dd" type="month" class="_wAuto"
v-model="SetProfitLossMsg.TermNum"
value-format="yyyy-MM-dd"
type="month"
class="_wAuto"
:placeholder="$t('admin.admin_choDate')"> :placeholder="$t('admin.admin_choDate')">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35" v-if="costType.length"> <el-col :span="4" :gutter="35" v-if="costType.length">
<el-form-item :label="$t('fnc.fyleixing')" prop="CostTypeID"> <el-form-item :label="$t('fnc.fyleixing')" prop="CostTypeID">
<el-select filterable v-model='SetProfitLossMsg.CostTypeID'> <el-select filterable v-model='SetProfitLossMsg.CostTypeID'>
<el-option v-for='item in costType' <el-option v-for='item in costType' :label='item.Name' :value='item.ID' :key='item.ID'>
:label='item.Name'
:value='item.ID'
:key='item.ID'>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35" class="_yingkui"> <el-col :span="4" :gutter="35" 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.yingkui')}}<span class="fc_red">{{moneyDate.ProfitLoss}}</span>
<p v-if="moneyDate.ProfitLoss>0">{{$t('fnc.yingli')}}<span class="fc_green">{{moneyDate.ProfitLoss}}</span></p> </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> <p v-if="moneyDate.ProfitLoss==0">{{$t('fnc.yingkui')}}<span class="fc_green">0</span></p>
</el-col> </el-col>
</el-row> </el-row>
...@@ -315,113 +501,152 @@ ...@@ -315,113 +501,152 @@
getSchoolPage getSchoolPage
} from '../../api/school/index' } from '../../api/school/index'
export default { export default {
data(){ data() {
return{ return {
msg:{ msg: {
pageIndex:1, pageIndex: 1,
pageSize:5, pageSize: 5,
TypeId:'-1', TypeId: '-1',
RB_Branch_Id:'-1', RB_Branch_Id: '-1',
Alias:'' Alias: ''
}, },
addMsg:{ addMsg: {
ID:0, ID: 0,
Alias:'', Alias: '',
TypeId:'', TypeId: '',
Initialbalance:'', Initialbalance: '',
CurrencyId:'', CurrencyId: '',
BranchId:'', BranchId: '',
RiskLimitMoney:'', RiskLimitMoney: '',
BranchIdS:0, BranchIdS: 0,
BranchList:[], BranchList: [],
OutCharge:0, OutCharge: 0,
InCharge:0, InCharge: 0,
RiskLowerLimitMoney:'', RiskLowerLimitMoney: '',
AccountStartWBMoney:'', AccountStartWBMoney: '',
AccountStartMoney:'', AccountStartMoney: '',
BeginTimeStr:'', BeginTimeStr: '',
BranchIdSName:'', BranchIdSName: '',
}, },
getCompanyMsg:{ getCompanyMsg: {
RB_Group_Id:'0', RB_Group_Id: '0',
Status:'0', Status: '0',
}, },
DataList:[], DataList: [],
total:0, total: 0,
currentPage:1, currentPage: 1,
loading:true, loading: true,
noData:false, noData: false,
text:'', text: '',
dialogTitle:'', dialogTitle: '',
AccountTypeList:[], AccountTypeList: [],
CompanyList:[], CompanyList: [],
FinancialList:[], FinancialList: [],
financeinfoList:[], financeinfoList: [],
addShow:false, addShow: false,
ed:false, ed: false,
rules: {//表单必填验证 rules: { //表单必填验证
Alias: [ Alias: [{
{ required: true, message: this.$t('rule.qsrzhbieming'), trigger: 'blur' } required: true,
message: this.$t('rule.qsrzhbieming'),
trigger: 'blur'
}],
TypeId: [{
required: true,
message: this.$t('rule.qxzzhleixing'),
trigger: 'change'
}],
Accountholder: [{
required: true,
message: this.$t('rule.qsrkhuren'),
trigger: 'blur'
}],
Openingbank: [{
required: true,
message: this.$t('rule.qsrkhuhang'),
trigger: 'blur'
}],
BackNo: [{
required: true,
message: this.$t('rule.qssrzhhaoma'),
trigger: 'blur'
},
{
pattern: /^[0-9]*$/,
message: this.$t('rule.qsrzqdzhhaoma')
}
],
BranchIdS: [{
required: true,
message: this.$t('rule.qszssgongsi'),
trigger: 'change'
}],
CurrencyId: [{
required: true,
message: this.$t('rule.qxzzhbizhong'),
trigger: 'change'
}],
Initialbalance: [{
required: true,
message: this.$t('rule.qsrcsyue'),
trigger: 'blur'
},
{
pattern: this.$commonUtils.Regex.el_IsdecimalAll,
message: this.$t('rule.qsrzqdyue')
}
], ],
TypeId: [ OutCharge: [{
{ required: true, message: this.$t('rule.qxzzhleixing'), trigger: 'change' } required: true,
],Accountholder: [ message: this.$t('rule.szfzeren'),
{ required: true, message: this.$t('rule.qsrkhuren'), trigger: 'blur' } trigger: 'change'
],Openingbank: [ }, ],
{ required: true, message: this.$t('rule.qsrkhuhang'), trigger: 'blur' } InCharge: [{
],BackNo: [ required: true,
{ required: true, message: this.$t('rule.qssrzhhaoma'), trigger: 'blur' }, message: this.$t('rule.fkfzeren'),
{pattern:/^[0-9]*$/, message: this.$t('rule.qsrzqdzhhaoma')} trigger: 'change'
],BranchIdS: [ }, ],
{ required: true, message: this.$t('rule.qszssgongsi'), trigger: 'change' } CostTypeID: [{
],CurrencyId: [ required: true,
{ required: true, message: this.$t('rule.qxzzhbizhong'), trigger: 'change' } message: this.$t('rule.qxzfyleixing'),
],Initialbalance: [ trigger: 'change'
{ required: true, message: this.$t('rule.qsrcsyue'), trigger: 'blur' }, }, ]
{pattern: this.$commonUtils.Regex.el_IsdecimalAll, message: this.$t('rule.qsrzqdyue')}
],OutCharge:[
{ required: true, message: this.$t('rule.szfzeren'), trigger: 'change' },
],InCharge:[
{ required: true, message: this.$t('rule.fkfzeren'), trigger: 'change' },
],CostTypeID:[
{ required: true, message: this.$t('rule.qxzfyleixing'), trigger: 'change' },
]
}, },
addCuren:true, addCuren: true,
ed:false, ed: false,
loading2:false, loading2: false,
moneyDate:{ moneyDate: {
Money : 0, Money: 0,
LastR : 0, LastR: 0,
currentR : 0, currentR: 0,
LastM : 0, LastM: 0,
currentM : 0, currentM: 0,
ProfitLoss : 0 ProfitLoss: 0
}, },
EmployeeMsg: { EmployeeMsg: {
GroupId:'', GroupId: '',
BranchId:0, BranchId: 0,
DepartmentId:0, DepartmentId: 0,
PostId:0, PostId: 0,
IsLeave:0, IsLeave: 0,
}, },
showEmployeeList:[], showEmployeeList: [],
showEmployeeList2:[], showEmployeeList2: [],
Charge:1, Charge: 1,
SetProfitLossMsg:{ SetProfitLossMsg: {
ID:0, ID: 0,
AccountID:0, AccountID: 0,
EndRate:'', EndRate: '',
TermNum:'', TermNum: '',
CurrencyId:'', CurrencyId: '',
initRate:'', initRate: '',
Money:'', Money: '',
ProfitLoss:0, ProfitLoss: 0,
Source:3, Source: 3,
CostTypeID:'' CostTypeID: ''
}, },
costType:[], costType: [],
schoolMsg:{ schoolMsg: {
pageIndex: 1, pageIndex: 1,
pageSize: 12, pageSize: 12,
rowsPerPage: 12, rowsPerPage: 12,
...@@ -429,55 +654,67 @@ ...@@ -429,55 +654,67 @@
Status: '-1' Status: '-1'
} }
} }
},methods:{ },
goUrlNew (item) { methods: {
let path="CashAccDetail"; goUrlNew(item) {
this.$router.push({ name: path,query:{"TypeId":item.TypeId,'ID':item.ID, blank: "y",}}) let path = "CashAccDetail";
this.$router.push({
name: path,
query: {
"TypeId": item.TypeId,
'ID': item.ID,
blank: "y",
}
})
}, },
regNum(n,t){ // 判断数字 n 值 t 类型 regNum(n, t) { // 判断数字 n 值 t 类型
let reg = /^\d+(\.\d{0,6})?$/ let reg = /^\d+(\.\d{0,6})?$/
if(!n)return 0 if (!n) return 0
if(t==2){ if (t == 2) {
if(reg.test(n)){ if (reg.test(n)) {
return Number(n) return Number(n)
} }
return 0; return 0;
}else if(t==1){ } else if (t == 1) {
if(reg.test(n)){ if (reg.test(n)) {
return Number(n) return Number(n)
} }
return 0 return 0
} }
}, },
Calculation(){ // 计算盈亏 Calculation() { // 计算盈亏
this.SetProfitLossMsg.CostTypeID = ''; this.SetProfitLossMsg.CostTypeID = '';
this.moneyDate.Money = this.regNum(this.SetProfitLossMsg.Money,1) this.moneyDate.Money = this.regNum(this.SetProfitLossMsg.Money, 1)
this.moneyDate.LastR = this.regNum(this.SetProfitLossMsg.initRate,1) this.moneyDate.LastR = this.regNum(this.SetProfitLossMsg.initRate, 1)
this.moneyDate.currentR = this.regNum(this.SetProfitLossMsg.EndRate,2) this.moneyDate.currentR = this.regNum(this.SetProfitLossMsg.EndRate, 2)
this.moneyDate.LastM = 0 this.moneyDate.LastM = 0
this.moneyDate.currentM = 0 this.moneyDate.currentM = 0
this.moneyDate.ProfitLoss = ((this.moneyDate.currentR-this.moneyDate.LastR)*this.moneyDate.Money).toFixed(2); this.moneyDate.ProfitLoss = ((this.moneyDate.currentR - this.moneyDate.LastR) * this.moneyDate.Money).toFixed(
if(this.moneyDate.ProfitLoss>0){ 2);
if (this.moneyDate.ProfitLoss > 0) {
this.getTemplateCostTypeList(1) this.getTemplateCostTypeList(1)
}else if(this.moneyDate.ProfitLoss<0){ } else if (this.moneyDate.ProfitLoss < 0) {
this.getTemplateCostTypeList(2) this.getTemplateCostTypeList(2)
}else{ } else {
this.costType=[]; this.costType = [];
} }
}, },
getTemplateCostTypeList(t){ getTemplateCostTypeList(t) {
this.apipost('financeinfo_post_GetCostTypeList',{Type:t},res=>{ this.apipost('financeinfo_post_GetCostTypeList', {
if(res.data.resultCode==1){ Type: t
this.costType=res.data.data; }, res => {
}else{ if (res.data.resultCode == 1) {
} this.costType = res.data.data;
},err=>{}) } else {}
}, err => {})
}, },
remoteMethod(query) { remoteMethod(query) {
if (query !== '') { if (query !== '') {
this.loadingPeople = true this.loadingPeople = true
this.apipost('admin_Get_Chat_All_SelectEmpName',{EmName:query}, res => { this.apipost('admin_Get_Chat_All_SelectEmpName', {
if(res.data.resultCode == 1) { EmName: query
}, res => {
if (res.data.resultCode == 1) {
this.showEmployeeList = res.data.data this.showEmployeeList = res.data.data
} }
this.loadingPeople = false this.loadingPeople = false
...@@ -489,8 +726,10 @@ ...@@ -489,8 +726,10 @@
remoteMethod2(query) { remoteMethod2(query) {
if (query !== '') { if (query !== '') {
this.loadingPeople = true this.loadingPeople = true
this.apipost('admin_Get_Chat_All_SelectEmpName',{EmName:query}, res => { this.apipost('admin_Get_Chat_All_SelectEmpName', {
if(res.data.resultCode == 1) { EmName: query
}, res => {
if (res.data.resultCode == 1) {
this.showEmployeeList2 = res.data.data this.showEmployeeList2 = res.data.data
} }
this.loadingPeople = false this.loadingPeople = false
...@@ -499,59 +738,73 @@ ...@@ -499,59 +738,73 @@
this.showEmployeeList2 = []; this.showEmployeeList2 = [];
} }
}, },
goUrl (path,id,name,source,CurrencyId) { goUrl(path, id, name, source, CurrencyId) {
this.$router.push({ name: path,query:{"id":id,'name':name,'source':source,'CurrencyId':CurrencyId}}) this.$router.push({
name: path,
query: {
"id": id,
'name': name,
'source': source,
'CurrencyId': CurrencyId
}
})
}, },
disabledOption(){ // 选择公司 如果选择通用则禁用其它选项 disabledOption() { // 选择公司 如果选择通用则禁用其它选项
if(this.addMsg.BranchIdS&&this.addMsg.BranchIdS.length==0){ if (this.addMsg.BranchIdS && this.addMsg.BranchIdS.length == 0) {
this.CompanyList.forEach(y=>{ this.CompanyList.forEach(y => {
y.disabled=false y.disabled = false
}) })
return return
} }
this.addMsg.BranchIdS.forEach(x=>{ this.addMsg.BranchIdS.forEach(x => {
if(x=='-1'){ if (x == '-1') {
this.addMsg.BranchIdS=[] this.addMsg.BranchIdS = []
this.addMsg.BranchIdS.push('-1') this.addMsg.BranchIdS.push('-1')
this.CompanyList.forEach(y=>{ this.CompanyList.forEach(y => {
y.disabled=true y.disabled = true
}) })
} }
}) })
}, },
getCurrentRate(id,index){// 更新汇率 getCurrentRate(id, index) { // 更新汇率
this.apipost('financeinfo_post_GetCurrentRate',{ID:id}, res => { this.apipost('financeinfo_post_GetCurrentRate', {
if(res.data.resultCode == 1) { ID: id
this.tips(res.data.message,'success'); }, res => {
if (res.data.resultCode == 1) {
this.tips(res.data.message, 'success');
} else { } else {
this.tips(res.data.message,'error'); this.tips(res.data.message, 'error');
} }
}, err => {}) }, err => {})
}, },
getfinanceinfoList(){ //获取币种列表 getfinanceinfoList() { //获取币种列表
this.apipost('financeinfo_post_GetList',{Name:''},res=>{ this.apipost('financeinfo_post_GetList', {
if(res.data.resultCode==1){ Name: ''
this.financeinfoList=res.data.data; }, res => {
}else{} if (res.data.resultCode == 1) {
},err=>{}) this.financeinfoList = res.data.data;
} else {}
}, err => {})
}, },
getFinancialList(){ //获取机构列表 getFinancialList() { //获取机构列表
this.apipost('FinancialInstitutions_post_GetList',{},res=>{ this.apipost('FinancialInstitutions_post_GetList', {}, res => {
if(res.data.resultCode==1){ if (res.data.resultCode == 1) {
this.FinancialList=res.data.data; this.FinancialList = res.data.data;
}else{} } else {}
},err=>{}) }, err => {})
}, },
getCompanyList(){ //获取公司列表 getCompanyList() { //获取公司列表
getSchoolPage(this.schoolMsg).then(res => { getSchoolPage(this.schoolMsg).then(res => {
this.CompanyList = res.Data.PageData; this.CompanyList = res.Data.PageData;
}).catch(() => { }).catch(() => {
}) })
}, },
editCurency(id){ // 修改根据ID 获取信息 editCurency(id) { // 修改根据ID 获取信息
this.apipost('BankAccount_post_GetCashAccount',{ID:id}, res => { this.apipost('BankAccount_post_GetCashAccount', {
if(res.data.resultCode == 1) { ID: id
}, res => {
if (res.data.resultCode == 1) {
let data = res.data.data let data = res.data.data
data.BranchIdS = data.BranchList[0].RB_Branch_Id; data.BranchIdS = data.BranchList[0].RB_Branch_Id;
// this.remoteMethod(data.InemName) // this.remoteMethod(data.InemName)
...@@ -559,84 +812,84 @@ ...@@ -559,84 +812,84 @@
this.addMsg = data; this.addMsg = data;
// this.disabledOption(); // this.disabledOption();
} else { } else {
this.tips(res.data.message,'error'); this.tips(res.data.message, 'error');
} }
}, err => {}) }, err => {})
}, },
cancelEdit(t){ // 取消修改、新增 cancelEdit(t) { // 取消修改、新增
this.addMsg ={ this.addMsg = {
ID:0, ID: 0,
Alias:'', Alias: '',
TypeId:'', TypeId: '',
Initialbalance:'', Initialbalance: '',
CurrencyId:'', CurrencyId: '',
BranchId:'', BranchId: '',
RiskLimitMoney:'', RiskLimitMoney: '',
BranchIdS:0, BranchIdS: 0,
BranchList:[], BranchList: [],
OutCharge:0, OutCharge: 0,
InCharge:0, InCharge: 0,
RiskLowerLimitMoney:'', RiskLowerLimitMoney: '',
AccountStartWBMoney:'', AccountStartWBMoney: '',
AccountStartMoney:'', AccountStartMoney: '',
BeginTimeStr:'', BeginTimeStr: '',
} }
this.SetProfitLossMsg={ this.SetProfitLossMsg = {
ID:0, ID: 0,
EndRate:'', EndRate: '',
TermNum:'', TermNum: '',
CurrencyId:'', CurrencyId: '',
initRate:'', initRate: '',
Money:'', Money: '',
AccountID:0, AccountID: 0,
Source:3, Source: 3,
CostTypeID:'' CostTypeID: ''
} }
if(!t){ if (!t) {
this.addShow=false this.addShow = false
this.ed = false this.ed = false
this.addCuren = true this.addCuren = true
} }
this.Charge = 3; this.Charge = 3;
}, },
getAccountTypeList() { //获取账户类型 getAccountTypeList() { //获取账户类型
this.apipost('AccountType_post_GetList',{}, res => { this.apipost('AccountType_post_GetList', {}, res => {
if(res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.AccountTypeList = res.data.data; this.AccountTypeList = res.data.data;
} }
}, err => {}) }, err => {})
}, },
getList(){ //获取列表 getList() { //获取列表
this.loading = true this.loading = true
this.apipost('BankAccount_post_GetCashAccountPageList',this.msg,res=>{ this.apipost('BankAccount_post_GetCashAccountPageList', this.msg, res => {
if(res.data.resultCode==1){ if (res.data.resultCode == 1) {
this.total = res.data.data.count; this.total = res.data.data.count;
let data = res.data.data.pageData; let data = res.data.data.pageData;
if(this.total>0){ if (this.total > 0) {
this.noData =false; this.noData = false;
}else{ } else {
this.noData =true; this.noData = true;
} }
data.forEach(x => { data.forEach(x => {
x.showB = false x.showB = false
x.benBalance = (Number(x.CurrentRate)*x.Initialbalance).toFixed(2) x.benBalance = (Number(x.CurrentRate) * x.Initialbalance).toFixed(2)
let allName = ''; let allName = '';
x.BranchName.forEach(y=>{ x.BranchName.forEach(y => {
allName = allName+y; allName = allName + y;
}) })
x.allName = allName x.allName = allName
}); });
this.DataList = data this.DataList = data
this.loading = false; this.loading = false;
}else{ } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
this.loading = false; this.loading = false;
} }
},err=>{}) }, err => {})
}, },
addInstitutions(){ // 保存 修改、新增 addInstitutions() { // 保存 修改、新增
this.addMsg.BranchList = []; this.addMsg.BranchList = [];
if(!this.addMsg.RiskLimitMoney) { if (!this.addMsg.RiskLimitMoney) {
this.addMsg.RiskLimitMoney = 0; this.addMsg.RiskLimitMoney = 0;
} }
let obj = {}; let obj = {};
...@@ -644,25 +897,25 @@ ...@@ -644,25 +897,25 @@
return item.SId === this.addMsg.BranchIdS; //筛选出匹配数据 return item.SId === this.addMsg.BranchIdS; //筛选出匹配数据
}); });
let msg = { let msg = {
ID:0, ID: 0,
Type:2, Type: 2,
RB_Branch_Id:this.addMsg.BranchIdS, RB_Branch_Id: this.addMsg.BranchIdS,
RB_BranchName:obj.SName RB_BranchName: obj.SName
} }
this.addMsg.BranchList.push(msg); this.addMsg.BranchList.push(msg);
this.apipost('BankAccount_post_SetCashAccount',this.addMsg,res=>{ this.apipost('BankAccount_post_SetCashAccount', this.addMsg, res => {
if(res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.tips('保存成功!','success') this.tips('保存成功!', 'success')
this.getList(); this.getList();
this.initAddMsg(); this.initAddMsg();
this.addShow = false this.addShow = false
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
},err=>{}) }, err => {})
}, },
financeinfoRemove(id,text){//删除 financeinfoRemove(id, text) { //删除
this.$confirm(this.$t('tips.shifoudui')+'“'+text+'”'+ this.$t('tips.zhshanchu'), this.$confirm(this.$t('tips.shifoudui') + '“' + text + '”' + this.$t('tips.zhshanchu'),
this.$t('tips.tips'), { this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'), confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'), cancelButtonText: this.$t('pub.cancelBtn'),
...@@ -676,55 +929,57 @@ ...@@ -676,55 +929,57 @@
}); });
}); });
}, },
deletInstitutions(id){ deletInstitutions(id) {
this.apipost('BankAccount_post_RemoveCashAccount',{ID:id},res=>{ this.apipost('BankAccount_post_RemoveCashAccount', {
if(res.data.resultCode == 1) { ID: id
this.innerVisible=false; }, res => {
if (res.data.resultCode == 1) {
this.innerVisible = false;
this.$message.success(res.data.message) this.$message.success(res.data.message)
}else{ } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
this.getList(); this.getList();
},err=>{}) }, err => {})
}, },
initAddMsg(){//初始化添加、修改数据 initAddMsg() { //初始化添加、修改数据
let newMsg = { let newMsg = {
ID:0, ID: 0,
Alias:'', Alias: '',
TypeId:'', TypeId: '',
Initialbalance:'', Initialbalance: '',
CurrencyId:'', CurrencyId: '',
BranchId:'', BranchId: '',
RiskLimitMoney:'', RiskLimitMoney: '',
BranchIdS:0, BranchIdS: 0,
BranchList:[], BranchList: [],
OutCharge:0, OutCharge: 0,
InCharge:0, InCharge: 0,
RiskLowerLimitMoney:'', RiskLowerLimitMoney: '',
AccountStartWBMoney:'', AccountStartWBMoney: '',
AccountStartMoney:'', AccountStartMoney: '',
BeginTimeStr:'', BeginTimeStr: '',
} }
this.addMsg = newMsg; this.addMsg = newMsg;
}, },
SetProfitLoss(){ //币种调汇 SetProfitLoss() { //币种调汇
this.apipost('FinanceInfo_post_SetProfitLoss',this.SetProfitLossMsg, res => { this.apipost('FinanceInfo_post_SetProfitLoss', this.SetProfitLossMsg, res => {
if(res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.tips(res.data.message,'success'); this.tips(res.data.message, 'success');
this.addShow =false this.addShow = false
this.addCuren = true this.addCuren = true
this.ed =0 this.ed = 0
} else { } else {
this.tips(res.data.message,'error'); this.tips(res.data.message, 'error');
} }
}, err => {}) }, err => {})
}, },
submitForm(addMsg,type) {//提交创建、修改表单 submitForm(addMsg, type) { //提交创建、修改表单
this.$refs[addMsg].validate((valid) => { this.$refs[addMsg].validate((valid) => {
if (valid) { if (valid) {
if(type==1){ if (type == 1) {
this.addInstitutions() this.addInstitutions()
}else{ } else {
this.SetProfitLoss() this.SetProfitLoss()
} }
} else { } else {
...@@ -732,22 +987,22 @@ ...@@ -732,22 +987,22 @@
} }
}); });
}, },
resetPageIndex() {//查询初始化页码 resetPageIndex() { //查询初始化页码
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.currentPage = 1 this.currentPage = 1
}, },
handleCurrentChange(val) {//翻页功能按钮 handleCurrentChange(val) { //翻页功能按钮
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
tips(msg,type) { tips(msg, type) {
this.$message({ this.$message({
message: msg, message: msg,
duration:2000, duration: 2000,
type: type type: type
}); });
}, },
closeChangeMachie(done){ closeChangeMachie(done) {
done(); done();
this.resetForm('addMsg'); this.resetForm('addMsg');
}, },
...@@ -755,16 +1010,16 @@ ...@@ -755,16 +1010,16 @@
this.initAddMsg(); this.initAddMsg();
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
}, },
},mounted(){ },
mounted() {
this.getList() this.getList()
this.getAccountTypeList() this.getAccountTypeList()
let userInfo=this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id=userInfo.Group_Id; //集团ID this.getCompanyMsg.RB_Group_Id = userInfo.Group_Id; //集团ID
this.getCompanyList() this.getCompanyList()
this.getFinancialList() this.getFinancialList()
this.getfinanceinfoList() this.getfinanceinfoList()
} }
} }
</script>
</script>
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