Commit 620a2ff6 authored by 黄媛媛's avatar 黄媛媛
parents 83e82a28 de136441
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
</el-col> </el-col>
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.fkduixiang')"> <el-form-item :label="$t('fnc.fkduixiang')">
<el-select filterable v-model='msg.ClientID' > <el-select filterable v-model='msg.ClientID' @change='getClientId(msg.ClientID)'>
<el-option v-for='item in ClientAccountList' <el-option v-for='item in ClientAccountList'
:label='`${item.AccountAlias}(${item.AccountHolder})`' :label='`${item.AccountAlias}(${item.AccountHolder})`'
:value='item.ID' :value='item.ID'
...@@ -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-if="isShowCheckAll" 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,10 @@ export default { ...@@ -416,6 +417,10 @@ export default {
allBPrice:0, allBPrice:0,
allWPrice:0, allWPrice:0,
userInfo:{}, userInfo:{},
//是否全选
isCheckAll:false,
//是否显示全选框
isShowCheckAll:false,
} }
}, },
created(){ created(){
...@@ -448,6 +453,12 @@ export default { ...@@ -448,6 +453,12 @@ export default {
} }
},methods:{ },methods:{
//选择付款对象出现全选框
getClientId(id){
if(id>0){
this.isShowCheckAll=true;
}
},
Export(){ Export(){
let msg=this.msg; let msg=this.msg;
msg.EmployeeId = this.userInfo.EmployeeId; msg.EmployeeId = this.userInfo.EmployeeId;
...@@ -548,7 +559,7 @@ export default { ...@@ -548,7 +559,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 +572,7 @@ export default { ...@@ -561,8 +572,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 +612,7 @@ export default { ...@@ -602,8 +612,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 +846,31 @@ export default { ...@@ -837,6 +846,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;
......
...@@ -1324,6 +1324,7 @@ ...@@ -1324,6 +1324,7 @@
this.isUpdate = this.$route.query.isUpdate; this.isUpdate = this.$route.query.isUpdate;
this.msg.TCIDs = this.$route.query.id; this.msg.TCIDs = this.$route.query.id;
this.NewCombinationNum = this.$route.query.NewCombinationNum; this.NewCombinationNum = this.$route.query.NewCombinationNum;
this.LineId = this.$route.query.lineId ? this.$route.query.lineId : 0
if (this.$route.query.OutBranchId == 1216) { if (this.$route.query.OutBranchId == 1216) {
this.IsShowRMB = true; this.IsShowRMB = true;
} }
......
...@@ -953,7 +953,8 @@ ...@@ -953,7 +953,8 @@
isUpdate: true, isUpdate: true,
OutBranchId:obj.OutBranchId, OutBranchId:obj.OutBranchId,
blank: 'y', blank: 'y',
tab: title tab: title,
lineId: outItem.PriceCommonList[0].LineId
} }
}) })
}, },
......
...@@ -1643,8 +1643,8 @@ ...@@ -1643,8 +1643,8 @@
if (!Diningmap[ai.UseTimeStr]) { if (!Diningmap[ai.UseTimeStr]) {
Diningdest.push({ Diningdest.push({
UseTimeStr: ai.UseTimeStr, UseTimeStr: ai.UseTimeStr,
DiningID: ai.DiningID, DiningID: ai.NewDiningID,
id: ai.DiningID + ai.UseTimeStr, id: ai.NewDiningID + ai.UseTimeStr,
data: [ai] data: [ai]
}); });
Diningmap[ai.UseTimeStr] = ai; Diningmap[ai.UseTimeStr] = ai;
...@@ -1652,7 +1652,7 @@ ...@@ -1652,7 +1652,7 @@
let list = [] let list = []
for (var j = 0; j < Diningdest.length; j++) { for (var j = 0; j < Diningdest.length; j++) {
var dj = Diningdest[j]; var dj = Diningdest[j];
if (dj.UseTimeStr == ai.UseTimeStr && dj.DiningID == ai.DiningID) { if (dj.UseTimeStr == ai.UseTimeStr && dj.NewDiningID == ai.NewDiningID) {
dj.data.push(ai); dj.data.push(ai);
break; break;
} else { } else {
...@@ -1662,8 +1662,8 @@ ...@@ -1662,8 +1662,8 @@
for (let i = 0; i < list.length; i++) { for (let i = 0; i < list.length; i++) {
Diningdest.push({ Diningdest.push({
UseTimeStr: ai.UseTimeStr, UseTimeStr: ai.UseTimeStr,
DiningID: ai.DiningID, DiningID: ai.NewDiningID,
id: ai.DiningID + ai.UseTimeStr, id: ai.NewDiningID + ai.UseTimeStr,
data: [ai] data: [ai]
}); });
} }
......
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