Commit eebccb63 authored by zhengke's avatar zhengke

增加全选

parent 82b59095
...@@ -135,9 +135,9 @@ ...@@ -135,9 +135,9 @@
</ul> </ul>
</div> </div>
<div class="cm_content"> <div class="cm_content">
<table class="po_content singeRowTable" style="border:1px solid #E6E6E6;" cellspacing="0" cellpadding="0" v-loading="loading"> <table class="po_content singeRowTable" style="border:1px solid #E6E6E6;" cellspacing="0" cellpadding="0" v-loading="loadingTable">
<tr> <tr>
<th></th> <th><input type="checkbox" v-model="isCheckAll" @change="checkAllOrder()"/></th>
<th>{{$t('system.query_company')}}</th> <th>{{$t('system.query_company')}}</th>
<th>{{$t('fnc.danhao')}}</th> <th>{{$t('fnc.danhao')}}</th>
<th>{{$t('fnc.a_zhaiyao')}}</th> <th>{{$t('fnc.a_zhaiyao')}}</th>
...@@ -376,6 +376,7 @@ export default { ...@@ -376,6 +376,7 @@ export default {
ClientAccountList:[], ClientAccountList:[],
GetCostTypeList:[], GetCostTypeList:[],
CompanyList:[], CompanyList:[],
loadingTable:false,
loading:false, loading:false,
date:'', date:'',
accType:'', accType:'',
...@@ -416,6 +417,8 @@ export default { ...@@ -416,6 +417,8 @@ export default {
allBPrice:0, allBPrice:0,
allWPrice:0, allWPrice:0,
userInfo:{}, userInfo:{},
//是否全选
isCheckAll:false,
} }
}, },
created(){ created(){
...@@ -548,7 +551,7 @@ export default { ...@@ -548,7 +551,7 @@ export default {
}, },
getList(){ //获取列表 getList(){ //获取列表
this.checkList=[]; this.checkList=[];
// this.loading = true this.loadingTable = true
if( this.msg.ClientID == '' ){ if( this.msg.ClientID == '' ){
this.msg.ClientID = 0; this.msg.ClientID = 0;
} }
...@@ -561,8 +564,7 @@ export default { ...@@ -561,8 +564,7 @@ export default {
} }
this.allMoney = ''; this.allMoney = '';
this.apipost('Financial_post_GetAccountDetailList',this.msg,res=>{ this.apipost('Financial_post_GetAccountDetailList',this.msg,res=>{
this.loadingTable = false
this.loading = false;
if(res.data.resultCode==1){ if(res.data.resultCode==1){
let data = res.data.data; let data = res.data.data;
if(data.length){ if(data.length){
...@@ -602,8 +604,7 @@ export default { ...@@ -602,8 +604,7 @@ export default {
this.msg.ClientID = ''; this.msg.ClientID = '';
} }
}else{ }else{
this.$message.error(res.data.message) this.Error(res.data.message)
this.loading = false;
if( this.msg.ClientID == 0 ){ if( this.msg.ClientID == 0 ){
this.msg.ClientID = ''; this.msg.ClientID = '';
} }
...@@ -837,6 +838,31 @@ export default { ...@@ -837,6 +838,31 @@ export default {
}) })
} }
}, },
//点击全选
checkAllOrder(){
this.checkList=[]
if(this.isCheckAll){
this.DataList.forEach(x=>{
x.check=true;
})
}else{
this.DataList.forEach(x=>{
x.check=false;
})
}
this.DataList.forEach((x,index)=>{
if(x.check){
this.checkList[index] = {
FinanceId:x.FinanceId,
Type:x.Type,
ClientID:x.ClientID,
ClientType:x.ClientType,
OriginalMoney:x.OriginalMoney,
Money:x.Money,
}
}
})
},
addChuNaFun(){ // 添加出纳按钮点击事件 addChuNaFun(){ // 添加出纳按钮点击事件
let count = 0; let count = 0;
let allBPrice = 0; let allBPrice = 0;
......
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