Commit 06320ca7 authored by liudong1993's avatar liudong1993

1

parent efde8c89
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
<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="loading">
<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>团队订单</th> <th>团队订单</th>
<th>{{$t('fnc.danhao')}}</th> <th>{{$t('fnc.danhao')}}</th>
...@@ -233,7 +233,7 @@ ...@@ -233,7 +233,7 @@
</tr> </tr>
<tr v-for=" ( item , index ) in DataList "> <tr v-for=" ( item , index ) in DataList ">
<td> <td>
<input v-if="item.CallBackReFrId<=0" type="checkbox" :disabled="item.disabled" v-model="item.check" @change="addCheckbox(item,index)"> <input v-if="item.CallBackReFrId<=0 && item.CostTypeName !='资金调拨'" type="checkbox" :disabled="item.disabled" v-model="item.check" @change="addCheckbox(item,index)">
</td> </td>
<td>{{ item.BName }}</td> <td>{{ item.BName }}</td>
<td>{{ item.OrderID }}</td> <td>{{ item.OrderID }}</td>
...@@ -588,6 +588,8 @@ export default { ...@@ -588,6 +588,8 @@ export default {
userInfo:{}, userInfo:{},
//上传数组 //上传数组
saveMsg:[], saveMsg:[],
//是否全选
isCheckAll:false,
} }
},created(){ },created(){
this.userInfo = this.getLocalStorage(); this.userInfo = this.getLocalStorage();
...@@ -1026,6 +1028,31 @@ export default { ...@@ -1026,6 +1028,31 @@ export default {
this.allLoading = false this.allLoading = false
},null) },null)
}, },
//点击全选
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&&x.CallBackReFrId<=0 && x.CostTypeName !='资金调拨'){
this.checkList[index] = {
FinanceId:x.FinanceId,
Type:x.Type,
ClientID:x.ClientID,
ClientType:x.ClientType,
OriginalMoney:x.OriginalMoney,
Money:x.Money,
}
}
})
},
addCheckbox(obj,index){ addCheckbox(obj,index){
this.DataList.forEach((x)=>{ // 循环改变check disabled 状态 this.DataList.forEach((x)=>{ // 循环改变check disabled 状态
if(x.FinanceId===obj.FinanceId){ if(x.FinanceId===obj.FinanceId){
......
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