Commit 47202a82 authored by liudong1993's avatar liudong1993

1

parent b419b8f4
...@@ -125,12 +125,33 @@ ...@@ -125,12 +125,33 @@
<div class='query-box'> <div class='query-box'>
<el-form class="_info_box clearfix" label-width="110px"> <el-form class="_info_box clearfix" label-width="110px">
<el-row style="padding: 10px 0 0 0;"> <el-row style="padding: 10px 0 0 0;">
<!-- <el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.zhanghuleixing')">
<el-select filterable v-model='accType' @change="getAccountList(msg.BankType),msg.BankId=''">
<el-option v-for='item in AccList'
: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="$t('tips.jiaoyifangshi')">
<el-select filterable v-model='msg.BankType'
@change="getAccountList(msg.BankType),msg.BankId=''">
<el-option value="0" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in BranchAccountList' :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-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.zhanghuleixing')"> <el-form-item :label="$t('fnc.zhanghuleixing')">
<el-select filterable v-model='msg.BankId' <el-select filterable v-model='msg.BankId'
@change="getList"> @change="getList">
<el-option v-for='item in AccList' <el-option v-for='item in accountList'
:label='item.Name' :label='item.Alias'
:value='item.ID' :value='item.ID'
:key='item.ID'> :key='item.ID'>
</el-option> </el-option>
...@@ -149,9 +170,11 @@ ...@@ -149,9 +170,11 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<div>
<span>注:和工与和中信需每日维护银行流水得到期末余额,其他账户则根据财务单据自动计算期末余额</span>
</div>
<ul> <ul>
<li> <li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList()"/> <input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList()"/>
...@@ -254,11 +277,20 @@ export default { ...@@ -254,11 +277,20 @@ export default {
BankId:1, BankId:1,
StartDate:'', StartDate:'',
EndDate:'', EndDate:'',
BankType:1
}, },
AccList: [ AccList: [
{Name: '和工',ID: 1}, {Name: '公帐账户',ID: 3},
{Name: '中信',ID: 35}, {Name: '私帐账户',ID: 4},
{Name: '现金账户',ID: 8},
{Name: '微信支付宝',ID: 13},
],
BranchAccountList:[
{Name: '银行',ID: 1},
{Name: '现金',ID: 3},
], ],
accountList:[],
accType:0,
loadingTable:false, loadingTable:false,
DateList: [], DateList: [],
SubjectList: [], SubjectList: [],
...@@ -305,7 +337,8 @@ export default { ...@@ -305,7 +337,8 @@ export default {
this.msg.EndDate=mon1; this.msg.EndDate=mon1;
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.userId = userInfo.EmployeeId; this.userId = userInfo.EmployeeId;
this.getSubjectList() this.getSubjectList();
this.getAccountList(1);
this.getList(); this.getList();
}, },
methods:{ methods:{
...@@ -315,7 +348,8 @@ export default { ...@@ -315,7 +348,8 @@ export default {
name: "AccountStatementDetail", name: "AccountStatementDetail",
query: { query: {
ID: this.msg.BankId, ID: this.msg.BankId,
TypeId: 3, Type: this.msg.BankType,
TypeId: 0,
sTradeDate: item.StartDate, sTradeDate: item.StartDate,
eTradeDate: item.StartDate, eTradeDate: item.StartDate,
SubjectId: row.SubjectId>0?row.SubjectId:-2, SubjectId: row.SubjectId>0?row.SubjectId:-2,
...@@ -458,6 +492,42 @@ export default { ...@@ -458,6 +492,42 @@ export default {
this.titleEnd = this.msg.EndDate.slice(5,7)>9?this.msg.EndDate.slice(5,7):this.msg.EndDate.slice(6,7) this.titleEnd = this.msg.EndDate.slice(5,7)>9?this.msg.EndDate.slice(5,7):this.msg.EndDate.slice(6,7)
this.getList() this.getList()
}, },
getAccountList(i){
if(i===1){
this.bankaccount_post_GetListS()
}
if(i===3){
this.BankAccount_post_GetCashAccountList()
}
},
BankAccount_post_GetCashAccountList(){ // 获取现金账户
let msg = {
TypeId:this.accType,
BranchId:-1,
Alias:''
};
this.apipost('BankAccount_post_GetCashAccountList',msg, res => {
if(res.data.resultCode === 1) {
let data = res.data.data;
data.forEach(x=>{
x.allName = x.Alias;
});
this.accountList = data;
}
}, err => {})
},
bankaccount_post_GetListS(){ // 获取银行账户
this.apipost('bankaccount_post_GetList',{TypeId:this.accType}, res => {
if(res.data.resultCode === 1) {
let data = res.data.data;
data.forEach(x=>{
x.allName = x.Alias+' '+x.BackNo;
});
this.accountList = data;
}
}, err => {})
},
}, },
mounted(){ mounted(){
......
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
<th>{{$t('fnc.yueacc')}}</th> <th>{{$t('fnc.yueacc')}}</th>
</tr> </tr>
<tr> <tr>
<td :colspan="10">{{$t('fnc.a_qcyue')}}</td> <td :colspan="11">{{$t('fnc.a_qcyue')}}</td>
<td>{{moneyFormat(StartMoney)}}</td> <td>{{moneyFormat(StartMoney)}}</td>
</tr> </tr>
<tr v-for="(item,index) in DataList"> <tr v-for="(item,index) in DataList">
...@@ -198,7 +198,7 @@ ...@@ -198,7 +198,7 @@
<td>{{ moneyFormat(item.EndMoney) }}</td> <td>{{ moneyFormat(item.EndMoney) }}</td>
</tr> </tr>
<tr> <tr>
<td :colspan="8">{{$t('fnc.a_heji')}}{{$t('hotel.hotel_totalRoom')}}{{ DataList.length }} {{$t('hotel.hotel_item')}}</td> <td :colspan="9">{{$t('fnc.a_heji')}}{{$t('hotel.hotel_totalRoom')}}{{ DataList.length }} {{$t('hotel.hotel_item')}}</td>
<td>{{ InMoney == 0 ? '-' : moneyFormat(InMoney) }}</td> <td>{{ InMoney == 0 ? '-' : moneyFormat(InMoney) }}</td>
<td>{{ OutMoney == 0 ? '-' : moneyFormat(OutMoney) }}</td> <td>{{ OutMoney == 0 ? '-' : moneyFormat(OutMoney) }}</td>
<td>{{ moneyFormat(allMoney) }}</td> <td>{{ moneyFormat(allMoney) }}</td>
...@@ -342,7 +342,12 @@ export default { ...@@ -342,7 +342,12 @@ export default {
Type:this.Type, Type:this.Type,
AccountId:this.AccountId AccountId:this.AccountId
}) })
this.bankaccount_post_GetList(); if(this.$route.query.Type){this.Type=parseInt(this.$route.query.Type)}
if(this.Type==1){
this.bankaccount_post_GetList();
}else if(this.Type==3){
this.BankAccount_post_GetCashAccountList();
}
this.getList(); this.getList();
} }
......
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