Commit 7b847975 authored by liudong1993's avatar liudong1993
parents 1c683af8 f9a33e36
...@@ -124,7 +124,12 @@ ...@@ -124,7 +124,12 @@
if(x.Type==1){ if(x.Type==1){
this.collectList.push(x); this.collectList.push(x);
}else{ }else{
this.payList.push(x); if(this.active===2){
if(x.Id!=11){
this.payList.push(x);
}
}else{
this.payList.push(x);}
} }
}); });
} }
......
...@@ -117,12 +117,12 @@ ...@@ -117,12 +117,12 @@
</style> </style>
<template> <template>
<div class="flexOne TeamBalancePayment" v-if="isShow" v-loading="loading"> <div class="flexOne TeamBalancePayment" v-loading="loading">
<div id="print"> <div id="print">
<div class="Team_Details"> <div class="Team_Details">
<div class="TB_comtitle">团队收支明细</div> <div class="TB_comtitle">团队收支明细</div>
<div class="Team_Content"> <div class="Team_Content" v-loading="loading">
<el-row :gutter="12"> <el-row :gutter="12" v-if="DataList&&DataList.TeamBalance">
<el-col :span="4"> <el-col :span="4">
<div class="Team_DList"> <div class="Team_DList">
<div class="Team_firstTitle">收客情况</div> <div class="Team_firstTitle">收客情况</div>
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
</el-row> </el-row>
</div> </div>
</div> </div>
<div class="Team_collection"> <div class="Team_collection" v-loading="loading">
<div class="clearfix TB_PrintDiv"> <div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">收入</div> <div class="TB_comtitle TB-Title">收入</div>
<input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddIncomeDetail" /> <input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddIncomeDetail" />
...@@ -459,7 +459,7 @@ ...@@ -459,7 +459,7 @@
</template> </template>
</table> </table>
</div> </div>
<div class="Team_collection"> <div class="Team_collection" v-loading="loading">
<div class="clearfix TB_PrintDiv"> <div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">成本</div> <div class="TB_comtitle TB-Title">成本</div>
<input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddOutDetail" /> <input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddOutDetail" />
...@@ -573,7 +573,8 @@ ...@@ -573,7 +573,8 @@
<th width="200">当前审核人</th> <th width="200">当前审核人</th>
</tr> </tr>
<template v-for="item in DataList.FinicePayList"> <template v-for="item in DataList.FinicePayList">
<tr v-if='item.OrderSource===4'> <!-- <tr v-if='item.OrderSource===4 || isExists(item.CostTypeList,'国际段机票')'> -->
<tr v-if="isExists(item.CostTypeList,'国际段机票') || item.OrderSource===4">
<td> <td>
<el-checkbox v-model="item.checked"></el-checkbox> <el-checkbox v-model="item.checked"></el-checkbox>
<span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span> <span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span>
...@@ -839,7 +840,7 @@ ...@@ -839,7 +840,7 @@
</td> </td>
</tr> </tr>
</template> </template>
</table> </table>
<div class="clearfix TB_PrintDiv"> <div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">其他:</div> <div class="TB_comtitle TB-Title">其他:</div>
</div> </div>
...@@ -855,7 +856,7 @@ ...@@ -855,7 +856,7 @@
<th width="200">当前审核人</th> <th width="200">当前审核人</th>
</tr> </tr>
<template v-for="item in DataList.FinicePayList"> <template v-for="item in DataList.FinicePayList">
<tr v-if="NotExists(item.CostTypeList,'签证费') && NotExists(item.CostTypeList,'地接费(领取)') && NotExists(item.CostTypeList,'提成') && NotExists(item.CostTypeList,'国内联运')&& NotExists(item.CostTypeList,'车资') && NotExists(item.CostTypeList,'邀请函费用') && NotExists(item.CostTypeList,'名单表') && NotExists(item.CostTypeList,'领队佣金') && NotExists(item.CostTypeList,'导游佣金') &&item.OrderSource!==4 && item.OrderSource!==11 && NotExists(item.CostTypeList,'赔偿')"> <tr v-if="NotExists(item.CostTypeList,'签证费') && NotExists(item.CostTypeList,'地接费(领取)') && NotExists(item.CostTypeList,'提成') && NotExists(item.CostTypeList,'国内联运')&& NotExists(item.CostTypeList,'车资') && NotExists(item.CostTypeList,'邀请函费用') && NotExists(item.CostTypeList,'名单表') && NotExists(item.CostTypeList,'领队佣金') && NotExists(item.CostTypeList,'导游佣金') &&item.OrderSource!==4 && NotExists(item.CostTypeList,'国际段机票') && item.OrderSource!==11 && NotExists(item.CostTypeList,'赔偿')">
<td> <td>
<el-checkbox v-model="item.checked"></el-checkbox> <el-checkbox v-model="item.checked"></el-checkbox>
<span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span> <span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span>
...@@ -888,8 +889,7 @@ ...@@ -888,8 +889,7 @@
</template> </template>
</table> </table>
</div> </div>
<div class="Team_collection" v-loading="loading">
<div class="Team_collection">
<div class="clearfix TB_PrintDiv"> <div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">非成本</div> <div class="TB_comtitle TB-Title">非成本</div>
<input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddOutDetail" /> <input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddOutDetail" />
...@@ -989,17 +989,15 @@ ...@@ -989,17 +989,15 @@
</template> </template>
</table> </table>
</div> </div>
</div> </div>
<div class="Team_BtnList"> <div class="Team_BtnList">
<input type="button" @click="zhaunBox" value="单据转团" class="hollowFixedBtn" /> <input type="button" @click="zhaunBox" value="单据转团" class="hollowFixedBtn" />
<input type="button" v-if="!CloseIncomeBtn" @click="UpdateBrakeAccountStatus" :value="DataList.TeamBalance.BrakeAccountStatus === 0 ? '关闭收支操作' : '开启收支操作'" <input type="button" v-if="!CloseIncomeBtn" @click="UpdateBrakeAccountStatus" :value="(DataList&&DataList.TeamBalance&&DataList.TeamBalance.BrakeAccountStatus === 0) ? '关闭收支操作' : '开启收支操作'"
class="hollowFixedBtn" /> class="hollowFixedBtn" />
<input type="button" value="导出" @click="ExportExcle" class="normalBtn" /> <input type="button" value="导出" @click="ExportExcle" class="normalBtn" />
<input type="button" value="打印" @click.prevent="doPrint" class="normalBtn" /> <input type="button" value="打印" @click.prevent="doPrint" class="normalBtn" />
</div> </div>
<el-dialog custom-class='w350' title="合并单据" :visible.sync="zhuanLoading" center :before-close="initZhuanMsg"> <el-dialog custom-class='w350' title="合并单据" :visible.sync="zhuanLoading" center :before-close="initZhuanMsg">
<!--zhaunMsg.TCNUM-->
<el-form label-width="110px"> <el-form label-width="110px">
<el-form-item label="转出团号:" class="w280"> <el-form-item label="转出团号:" class="w280">
<el-input v-model="zhuanMsg.TCNUM"></el-input> <el-input v-model="zhuanMsg.TCNUM"></el-input>
...@@ -1019,7 +1017,6 @@ ...@@ -1019,7 +1017,6 @@
TCID: 0, TCID: 0,
//数据列表 //数据列表
DataList: "", DataList: "",
isShow: false,
OutBranchId: 0, OutBranchId: 0,
ishowBtn: true, ishowBtn: true,
CloseIncomeBtn: false, CloseIncomeBtn: false,
...@@ -1034,26 +1031,22 @@ ...@@ -1034,26 +1031,22 @@
}, },
methods: { methods: {
//判断数组包含字符串 //判断数组包含字符串
isExists(array,str) isExists(array, str) {
{ var flag = false;
var flag=false; array.forEach(item => {
array.forEach(item=>{ if (item == str && !flag) {
if(item==str && !flag) flag = true;
{ }
flag=true;
}
}); });
return flag; return flag;
}, },
//判断数组不包含字符串 //判断数组不包含字符串
NotExists(array,str) NotExists(array, str) {
{ var flag = true;
var flag=true; array.forEach(item => {
array.forEach(item=>{ if (item == str && flag) {
if(item==str && flag) flag = false;
{ }
flag=false;
}
}); });
return flag; return flag;
}, },
...@@ -1119,7 +1112,6 @@ ...@@ -1119,7 +1112,6 @@
this.apipost("travel_get_GetTeamBalanceSheet", msg, res => { this.apipost("travel_get_GetTeamBalanceSheet", msg, res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.isShow = true;
let data = res.data.data; let data = res.data.data;
data.FiniceReciveList.forEach(x => { data.FiniceReciveList.forEach(x => {
x.checked = false; x.checked = false;
...@@ -1169,7 +1161,8 @@ ...@@ -1169,7 +1161,8 @@
//导出EXCEL //导出EXCEL
ExportExcle() { ExportExcle() {
let msg = { let msg = {
TCID: this.TCID TCID: this.TCID,
uid:this.getLocalStorage().EmployeeId
}; };
this.GetLocalFile( this.GetLocalFile(
"travel_get_GetTeamBalanceSheetExport", "travel_get_GetTeamBalanceSheetExport",
...@@ -1208,5 +1201,4 @@ ...@@ -1208,5 +1201,4 @@
this.getList(); this.getList();
} }
}; };
</script>
</script> \ No newline at end of file
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