Commit c6866d7b authored by 黄奎's avatar 黄奎

页面修改

parent 5d34ced9
<style>
@import "../../../assets/css/newTravelManager.css";
.TB_comtitle {
color: #333333;
padding-left: 10px;
......@@ -22,9 +23,11 @@
padding: 20px;
height: 200px;
}
.tipTable tr td{
height: 30px!important;
}
.tipTable tr td {
height: 30px !important;
}
.TeamBalancePayment .singeRowTable tr th {
height: 30px;
}
......@@ -144,10 +147,11 @@
.span_all {
margin-left: 15px;
}
.TeamExpectList{
max-height:105px;
overflow:auto;
margin-bottom:0!important;
.TeamExpectList {
max-height: 105px;
overflow: auto;
margin-bottom: 0 !important;
}
</style>
......@@ -157,8 +161,8 @@
<div id="print">
<div class="Team_Details" v-if="isIncomeExpenditure">
<div class="TB_comtitle" style="position:relative;">
<span>团队收支明细</span>
<input type="button" class="normalBtn" style="position:absolute;right:100px;"
<span>团队收支明细</span>
<input type="button" class="normalBtn" style="position:absolute;right:100px;"
@click="goAmoebaDetail(DataList.TeamBalance.TCNUM,TCID)" value="阿米巴结算表" />
</div>
<div class="Team_Content" v-loading="loading">
......@@ -167,8 +171,9 @@
<div class="Team_DList">
<div class="Team_firstTitle">收客情况</div>
<div>团队编号:{{TCID}}
<span class="TC_neibu" style="float: inherit;margin-left: 5px;margin-right: 5px;" v-if="DataList.TeamBalance.StandardCurrencyName"
:class="{'TCneibu':DataList.TeamBalance.StandardCurrencyName=='人民币','TCb2b':DataList.TeamBalance.StandardCurrencyName=='日元',
<span class="TC_neibu" style="float: inherit;margin-left: 5px;margin-right: 5px;"
v-if="DataList.TeamBalance.StandardCurrencyName"
:class="{'TCneibu':DataList.TeamBalance.StandardCurrencyName=='人民币','TCb2b':DataList.TeamBalance.StandardCurrencyName=='日元',
'TCb2c':DataList.TeamBalance.StandardCurrencyName=='新台币','AppPlat':DataList.TeamBalance.StandardCurrencyName=='',
'otherPlat':DataList.TeamBalance.StandardCurrencyName=='',}">{{DataList.TeamBalance.StandardCurrencyName}}结算</span>
</div>
......@@ -205,7 +210,8 @@
<div class="Team_Incontent">
<div>应收:<span>{{moneyFormat(moneyAll.otheryTotalyf)}}</span></div>
<div>实收:<span class="Team_Coins">{{moneyFormat(moneyAll.otheryTotalsf)}}</span></div>
<div>待收:<span class="Team_Coins">{{moneyFormat(moneyAll.otheryTotalyf-moneyAll.otheryTotalsf)}}</span></div>
<div>待收:<span
class="Team_Coins">{{moneyFormat(moneyAll.otheryTotalyf-moneyAll.otheryTotalsf)}}</span></div>
<div>
注:此处不进入'利润'计算,单纯只统计除团费外的其他总收入
</div>
......@@ -254,21 +260,23 @@
</span>提成
</div>
<div class="Team_Incontent" style="margin-bottom:0;">
<div class="TeamExpectList">
<template v-for="(subItem,index) in DataList.ExpectedCutList">
<div style="margin-bottom:5px;">{{subItem.BranchName}} <template></template>{{subItem.expectedCut}}
<span style="margin-left: 5px;font-size: 10px;" v-if="subItem.CurrencyName">{{subItem.CurrencyName}}</span>
<span style="font-size: 10px;color: #ff9c00;margin-left: 5px;" v-if="subItem.StandardMoney">
结算{{subItem.StandardMoney}}{{DataList.TeamBalance.StandardCurrencyName}}
</span>
</div>
</template>
</div>
<div class="TeamExpectList">
<template v-for="(subItem,index) in DataList.ExpectedCutList">
<div style="margin-bottom:5px;">{{subItem.BranchName}}
<template></template>{{subItem.expectedCut}}
<span style="margin-left: 5px;font-size: 10px;"
v-if="subItem.CurrencyName">{{subItem.CurrencyName}}</span>
<span style="font-size: 10px;color: #ff9c00;margin-left: 5px;" v-if="subItem.StandardMoney">
结算{{subItem.StandardMoney}}{{DataList.TeamBalance.StandardCurrencyName}}
</span>
</div>
</template>
</div>
<div>联运成本:<span>¥{{DataList.LYCB}}</span></div>
<div>额外返佣:<span>¥{{DataList.EWFY}}</span></div>
<div>OP提成:<span>¥{{DataList.OpCommMoney}}</span></div>
<div>票务提成:<span>¥{{DataList.AirCommMoney}}</span></div>
</div>
<div>联运成本:<span>¥{{DataList.LYCB}}</span></div>
<div>额外返佣:<span>¥{{DataList.EWFY}}</span></div>
<div>OP提成:<span>¥{{DataList.OpCommMoney}}</span></div>
<div>票务提成:<span>¥{{DataList.AirCommMoney}}</span></div>
</div>
</el-col>
<el-col :span="4">
......@@ -278,7 +286,7 @@
<i class="iconfont icon-qian"></i>
</span>挂账信息
</div>
<div class="Team_Incontent">
<div class="Team_Incontent">
<div>挂账总收入:<span>¥{{moneyFormat(DataList.TeamBalance.GZIncome)}}</span></div>
<div>挂账总支出:<span>¥{{moneyFormat(DataList.TeamBalance.GZExpend)}}</span></div>
<div>冲抵总收入:<span>¥{{moneyFormat(DataList.TeamBalance.CDIncome)}}</span></div>
......@@ -308,21 +316,19 @@
<div class="Team_Incontent">
<div>制单已审核:<span>¥{{moneyFormat(dataInfo.CXMoney)}}</span></div>
<div>制单未审核:<span class="Team_Coins">¥{{moneyFormat(dataInfo.ZDMoney)}}</span></div>
<div>未制单金额:<span class="Team_Coins">¥{{moneyFormat(dataInfo.Money)}}</span></div>
<div>未制单金额:<span class="Team_Coins">¥{{moneyFormat(dataInfo.Money)}}</span></div>
<div>
</div>
</div>
</div>
</el-col>
</el-row>
</div>
</div>
<div class="Team_collection" v-loading="loading">
<div class="clearfix TB_PrintDiv" v-if="auditCoun>0">
<div style="font-size: 15px;margin-top: 10px;">当前有<span style="color: red;margin: 0 2px;">{{auditCoun}}</span>条数据不计入利润</div>
<div style="font-size: 15px;margin-top: 10px;">当前有<span
style="color: red;margin: 0 2px;">{{auditCoun}}</span>条数据不计入利润</div>
<div class="TB_comtitle TB-Title">驳回:
</div>
</div>
......@@ -370,10 +376,13 @@
</template>
</table>
<div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">收入</div>
<div class="TB_comtitle TB-Title">收入
<template v-if="DataList&&DataList.TeamBalance&&DataList.TeamBalance.TCNUM">
{{DataList.TeamBalance.TCNUM}} ({{TCID}})
</template>
</div>
<div v-if="IsHaveAuth" style="padding: 5px 0 0 0;">
<input type="button" value="团队小费" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn"
@click="AddTipDiv" />
<input type="button" value="团队小费" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddTipDiv" />
<input type="button" value="新增" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn"
@click="AddIncomeDetail" />
</div>
......@@ -802,8 +811,9 @@
<span class="span_all">应付:¥{{moneyFormat(moneyAll.ticketyf)}}</span>
<span class="span_all">实付:¥{{moneyFormat(moneyAll.ticketsf)}}</span>
</span>
<input v-if="DataList.TeamBalance.ShouldReceive==0&&EditBtn" type="button" class="hollowFixedBtn" value="设为机票损失" @click="Setloss('','all')" style="height:24px;padding:0 10px"/>
<input v-if="DataList.TeamBalance.ShouldReceive==0&&EditBtn" type="button" class="hollowFixedBtn"
value="设为机票损失" @click="Setloss('','all')" style="height:24px;padding:0 10px" />
</div>
</div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
......@@ -819,8 +829,7 @@
</tr>
<template v-for="item in DataList.FinicePayList">
<!-- <tr v-if='item.OrderSource===4 || isExists(item.CostTypeList,'国际段机票')'> -->
<tr
v-if="(isExists(item.CostTypeList,'国际段机票')
<tr v-if="(isExists(item.CostTypeList,'国际段机票')
|| item.OrderSource===4
|| isExists(item.CostTypeList,'机票退税')
|| isExists(item.CostTypeList,'机票罚金')
......@@ -829,7 +838,9 @@
<td>
<el-checkbox v-model="item.checked"></el-checkbox>
<span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span>
<input v-if="(DataList.TeamBalance.ShouldReceive==0 && isContain(item.CostTypeList))&&EditBtn" type="button" class="hollowFixedBtn" value="设为损失" @click="Setloss(item.FrID,'sigal')" style="height:24px;padding:0 10px"/>
<input v-if="(DataList.TeamBalance.ShouldReceive==0 && isContain(item.CostTypeList))&&EditBtn"
type="button" class="hollowFixedBtn" value="设为损失" @click="Setloss(item.FrID,'sigal')"
style="height:24px;padding:0 10px" />
</td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br /></span></td>
<td>
......@@ -1090,7 +1101,8 @@
<th width="200">当前审核人</th>
</tr>
<template v-for="item in DataList.FinicePayList">
<tr v-if="isExists(item.CostTypeList,'保险费') || isExists(item.CostTypeList,'旅游责任险') || isExists(item.CostTypeList,'团队保险')">
<tr
v-if="isExists(item.CostTypeList,'保险费') || isExists(item.CostTypeList,'旅游责任险') || isExists(item.CostTypeList,'团队保险')">
<td>
<el-checkbox v-model="item.checked"></el-checkbox>
<span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span>
......@@ -1123,7 +1135,7 @@
</template>
</table>
<!-- 团队折让 -->
<div class="clearfix TB_PrintDiv">
<div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">内部结算:
<span v-if="moneyAll.tdzryf>0 || moneyAll.tdzrsf>0">
<span class="span_all">应付:¥{{moneyFormat(moneyAll.tdzryf)}}</span>
......@@ -1196,8 +1208,7 @@
<th width="200">当前审核人</th>
</tr>
<template v-for="item in DataList.newFinicePayList2">
<tr
v-if="NotExists(item.CostTypeList,'领队奖励金')
<tr v-if="NotExists(item.CostTypeList,'领队奖励金')
&&NotExists(item.CostTypeList,'机票折让费')
&&NotExists(item.CostTypeList,'签证费')
&&NotExists(item.CostTypeList,'签证佣金')
......@@ -1498,7 +1509,7 @@
</tr>
</template>
</table>
</div>
<div class="Team_collection">
<div class="clearfix TB_PrintDiv">
......@@ -1515,7 +1526,7 @@
<th>账户名称</th>
<th>收据金额</th>
<th>汇率</th>
<th>本位币</th>
<th>本位币</th>
<th>收据日期</th>
<th>财务单据</th>
<th>单据状态</th>
......@@ -1524,15 +1535,15 @@
<th>操作人/时间</th>
<th>操作</th>
</tr>
<template v-for="(item,i) in dataDocList" >
<template v-for="(item,i) in dataDocList">
<tr :key="i">
<td>{{item.Id}}</td>
<td>{{item.TCNUM}}{{item.TCID}}</td>
<td>
<span v-if="item.Type==1">银行</span>
<span v-if="item.Type==2">平台</span>
<span v-if="item.Type==3">现金</span>
<span v-if="item.Type==4">资金池</span>
<span v-if="item.Type==1">银行</span>
<span v-if="item.Type==2">平台</span>
<span v-if="item.Type==3">现金</span>
<span v-if="item.Type==4">资金池</span>
</td>
<td>{{item.AccountName}}</td>
<td>{{item.WBMoney}}</td>
......@@ -1543,17 +1554,17 @@
<td>{{item.FinanceId}}</td>
<td>{{item.fStatusName}}</td>
<td>
<span v-if="item.Is_Cashier==1"></span>
<span v-if="item.Is_Cashier==0"></span>
<span v-if="item.Is_Cashier==1"></span>
<span v-if="item.Is_Cashier==0"></span>
</td>
<td>{{item.Remark}}</td>
<td>{{item.UpdateBy}}/{{item.UpdateDate}}</td>
<td>
<input v-if="item.FinanceId==0" type="button" value="制单" class="hollowFixedBtn"
@click="goZhidan(item)" />
@click="goZhidan(item)" />
</td>
</tr>
</template>
</table>
......@@ -1582,22 +1593,25 @@
<!-- 团队小费 -->
<el-dialog custom-class="tipdialog" width="500px" title="团队小费" :visible.sync="tipdialog" center>
<table class="singeRowTable tipTable" border="0" cellspacing="0" cellpadding="0" style=" border-spacing:0 10px;" v-loading="tiploading">
<table class="singeRowTable tipTable" border="0" cellspacing="0" cellpadding="0" style=" border-spacing:0 10px;"
v-loading="tiploading">
<tr>
<th class="text_left"> <input type="checkbox" @change="checkAll" v-model="checkd" ></th>
<th class="text_left"> <input type="checkbox" @change="checkAll" v-model="checkd"></th>
<th>订单号</th>
<th>旅客名称</th>
<th>平均小费</th>
<th>财务单据</th>
</tr>
<tr v-for="(item,index) in tipPeopleList" :key="index">
<td class="text_left"> <input type="checkbox" :disabled="item.FinanceId!=0" v-model="checkList" :value="item.GuestId" @change="checkThis"></td>
<td class="text_left"> <input type="checkbox" :disabled="item.FinanceId!=0" v-model="checkList"
:value="item.GuestId" @change="checkThis"></td>
<td>{{item.OrderId}}</td>
<td>{{item.GuestName}}</td>
<td>{{item.Money}}</td>
<td>
<span v-if="item.FinanceId==0">未录入</span>
<span style="text-decoration:underline;cursor:pointer" @click="gourlTip('FinancialDocumentsDetail',id)" v-else>{{item.FinanceId}}</span>
<span style="text-decoration:underline;cursor:pointer" @click="gourlTip('FinancialDocumentsDetail',id)"
v-else>{{item.FinanceId}}</span>
</td>
</tr>
<tr v-if="tipPeopleList.length==0">
......@@ -1607,7 +1621,7 @@
<div slot="footer" class="dialog-footer">
<button @click="tipdialog=false" class="hollowFixedBtn">取消</button>
<button @click="SaveTip" class="normalBtn" type="primary">确定</button>
</div>
</el-dialog>
</div>
......@@ -1616,17 +1630,17 @@
export default {
data() {
return {
isIncomeExpenditure: false,//查看团队收支明细权限
isIncomeExpenditure: false, //查看团队收支明细权限
auditList: [],
auditCoun:0,
ticketList:[],
tipdialog:false,
auditCoun: 0,
ticketList: [],
tipdialog: false,
gridData: [],
TCID: 0,
//数据列表
DataList: {
TeamBalance:{
ShouldReceive:0
TeamBalance: {
ShouldReceive: 0
}
},
OutBranchId: 0,
......@@ -1705,85 +1719,85 @@
otheryTotalsf: 0,
},
HangingList: [],
tipPeopleList:[],
checkList:[],
checkd:false,
tiploading:false,
checkListAll:[],
dateList:[],
dataInfo:{},
datainfoobj:{
pageIndex:1,
pageSize:10,
TCNUM:'',
FinanceId:0,
AccountId:-1,
Type:3,
StartTime:'',
EndTime:'',
tipPeopleList: [],
checkList: [],
checkd: false,
tiploading: false,
checkListAll: [],
dateList: [],
dataInfo: {},
datainfoobj: {
pageIndex: 1,
pageSize: 10,
TCNUM: '',
FinanceId: 0,
AccountId: -1,
Type: 3,
StartTime: '',
EndTime: '',
},
dataDocList:[],
EditBtn:false
dataDocList: [],
EditBtn: false
};
},
methods: {
//查询驳回数据
GetALLPageList(){
GetALLPageList() {
let msg = {
pageIndex:1,
pageSize:5,
FrID:0,
sDate:'',
eDate:'',
Status:'3',
TemplateId:0,
RB_Branch_Id:-1,
RB_Depart_Id:0,
sTradeDate:'',
eTradeDate:'',
ClientType:0,
RemitterName:'',
ClientID:0,
sMoney:'',
eMoney:'',
CurrencyId:0,
CostTypeID:0,
Conditon:0,
TCNUM:this.TCID,
TCID: 0,
TradeWay:0,
Type:'-1',
AccountType:0,
QEndDate:'',
QStartDate:'',
UpdateBy:0,
IsFormRecPayQuery:'1',
KJCostTypeId:0,
IsSelectKJSetCostType:0,
Remark:'', //备注查询
Sort:'2',
EmployeeId:'',
OrderID:0,
}
this.apipost('Financial_post_GetALLPageList',msg,res=>{
if(res.data.resultCode == 1) {
let data = res.data.data.pageData.list;
this.auditList = data
this.auditCoun = this.auditList.length>0?this.auditList.length:0;
}else{
this.loading= false;
this.$message.error(res.data.message);
}
},err=>{})
pageIndex: 1,
pageSize: 5,
FrID: 0,
sDate: '',
eDate: '',
Status: '3',
TemplateId: 0,
RB_Branch_Id: -1,
RB_Depart_Id: 0,
sTradeDate: '',
eTradeDate: '',
ClientType: 0,
RemitterName: '',
ClientID: 0,
sMoney: '',
eMoney: '',
CurrencyId: 0,
CostTypeID: 0,
Conditon: 0,
TCNUM: this.TCID,
TCID: 0,
TradeWay: 0,
Type: '-1',
AccountType: 0,
QEndDate: '',
QStartDate: '',
UpdateBy: 0,
IsFormRecPayQuery: '1',
KJCostTypeId: 0,
IsSelectKJSetCostType: 0,
Remark: '', //备注查询
Sort: '2',
EmployeeId: '',
OrderID: 0,
}
this.apipost('Financial_post_GetALLPageList', msg, res => {
if (res.data.resultCode == 1) {
let data = res.data.data.pageData.list;
this.auditList = data
this.auditCoun = this.auditList.length > 0 ? this.auditList.length : 0;
} else {
this.loading = false;
this.$message.error(res.data.message);
}
}, err => {})
},
goZhidan(item){
let Handmsg={
OtherType:10,
ReFinanceId:item.Id,
TCNUM:'',
goZhidan(item) {
let Handmsg = {
OtherType: 10,
ReFinanceId: item.Id,
TCNUM: '',
};
let arr=[];
let arr = [];
var TCArr = [this.TCID];
let orderObj = {
OrderID: 0,
......@@ -1791,54 +1805,57 @@
Obj: {},
TCIDList: TCArr
}
var msg=JSON.stringify(Handmsg);
var msg = JSON.stringify(Handmsg);
let routeData = this.$router.resolve({
name: 'ChoiceAddFinancialDocuments',
query: {czmsg:msg,'orderObj': JSON.stringify(orderObj)}
query: {
czmsg: msg,
'orderObj': JSON.stringify(orderObj)
}
})
window.open(routeData.href, '_blank')
},
getDocList(){
let obj={
pageIndex:1,
pageSize:999,
TCNUM:this.TCID,
FinanceId:0,
AccountId:-1,
Type:3,
StartTime:'',
EndTime:'',
};
this.apipost('Financial_get_GetFinanceReceiptPageList',obj,res=>{
if(res.data.resultCode==1){
this.dataDocList = res.data.data.pageData;
}else{
this.$message.error(res.data.message);
}
},err=>{})
getDocList() {
let obj = {
pageIndex: 1,
pageSize: 999,
TCNUM: this.TCID,
FinanceId: 0,
AccountId: -1,
Type: 3,
StartTime: '',
EndTime: '',
};
this.apipost('Financial_get_GetFinanceReceiptPageList', obj, res => {
if (res.data.resultCode == 1) {
this.dataDocList = res.data.data.pageData;
} else {
this.$message.error(res.data.message);
}
}, err => {})
},
getdataInfo(){
if(this.dateList && this.dateList.length>0){
this.datainfoobj.StartTime=this.dateList[0];
this.datainfoobj.EndTime=this.dateList[1];
}else{
this.datainfoobj.StartTime='';
this.datainfoobj.EndTime='';
getdataInfo() {
if (this.dateList && this.dateList.length > 0) {
this.datainfoobj.StartTime = this.dateList[0];
this.datainfoobj.EndTime = this.dateList[1];
} else {
this.datainfoobj.StartTime = '';
this.datainfoobj.EndTime = '';
}
this.apipost('Financial_get_GetFinanceReceiptStatistics', this.datainfoobj, res => {
if (res.data.resultCode == 1) {
this.dataInfo = res.data.data;
} else {
this.$message.error(res.data.message);
}
this.apipost('Financial_get_GetFinanceReceiptStatistics',this.datainfoobj,res=>{
if(res.data.resultCode==1){
this.dataInfo = res.data.data;
}else{
this.$message.error(res.data.message);
}
},err=>{})
}, err => {})
},
isContain(list){
isContain(list) {
if(list && list.length==1 && list[0]=="机票罚金"){
return false;
}else{
if (list && list.length == 1 && list[0] == "机票罚金") {
return false;
} else {
return true;
}
},
......@@ -1851,20 +1868,20 @@
});
},
Setloss(ID,type) {
Setloss(ID, type) {
var that = this;
let msg={
FrIDList:[]
let msg = {
FrIDList: []
};
let FrIDList=[];
if(type=='all'){
FrIDList=this.ticketList;
}else{
let FrIDList = [];
if (type == 'all') {
FrIDList = this.ticketList;
} else {
FrIDList.push(ID)
}
msg.FrIDList=FrIDList;
msg.FrIDList = FrIDList;
that.Confirm('是否设为损失,一旦设置,将无法修改!', function () {
that.apipost(
......@@ -1882,7 +1899,7 @@
)
})
},
gourlTip(path,id){
gourlTip(path, id) {
this.$router.push({
name: path,
query: {
......@@ -1891,31 +1908,31 @@
}
});
},
SaveTip(){
if(this.checkList.length==0){
SaveTip() {
if (this.checkList.length == 0) {
this.Error("至少选择一个旅客!");
return;
}
let arr=[];
this.tipPeopleList.forEach(x=>{
this.checkList.forEach(y=>{
if(x.GuestId==y){
let obj={
OrderId:x.OrderId,
GuestId:x.GuestId,
GuestName:x.GuestName,
TCID:this.TCID,
};
arr.push(obj);
}
})
})
sessionStorage.setItem("TipGuestList",JSON.stringify(arr))
var TCArr = [this.TCID];
let arr = [];
this.tipPeopleList.forEach(x => {
this.checkList.forEach(y => {
if (x.GuestId == y) {
let obj = {
OrderId: x.OrderId,
GuestId: x.GuestId,
GuestName: x.GuestName,
TCID: this.TCID,
};
arr.push(obj);
}
})
})
sessionStorage.setItem("TipGuestList", JSON.stringify(arr))
var TCArr = [this.TCID];
let orderObj = {
OrderID: 0,
OrderSource: 8,
tipObj:1,
tipObj: 1,
Obj: {},
TCIDList: TCArr
}
......@@ -1928,42 +1945,44 @@
'orderObj': JSON.stringify(orderObj)
}
});
this.tipdialog=false;
this.tipdialog = false;
},
checkThis(){ // 单选
if(this.checkList.length==this.checkListAll.length){
this.checkd = true
return
}
this.checkd = false
},
checkAll(){ //全选
if(this.checkList.length==this.checkListAll.length){
this.checkList=[]
checkThis() { // 单选
if (this.checkList.length == this.checkListAll.length) {
this.checkd = true
return
}
this.checkList = this.checkListAll;
}
this.checkd = false
},
AddTipDiv(){
this.checkList=[];
this.tiploading=true;
this.apipost('sellorder_post_GetNoEntryTipMoneyGuestList', {TCID:this.TCID}, res => {
this.tiploading=false;
if (res.data.resultCode == 1) {
this.tipPeopleList=res.data.data;
this.tipPeopleList.forEach(x=>{
if(x.FinanceId==0){
this.checkListAll.push(x.GuestId)
}
})
} else {
this.$message.error(res.data.message);
}
}, null)
this.tipdialog=true;
},
checkAll() { //全选
if (this.checkList.length == this.checkListAll.length) {
this.checkList = []
return
}
this.checkList = this.checkListAll;
},
AddTipDiv() {
this.checkList = [];
this.tiploading = true;
this.apipost('sellorder_post_GetNoEntryTipMoneyGuestList', {
TCID: this.TCID
}, res => {
this.tiploading = false;
if (res.data.resultCode == 1) {
this.tipPeopleList = res.data.data;
this.tipPeopleList.forEach(x => {
if (x.FinanceId == 0) {
this.checkListAll.push(x.GuestId)
}
})
} else {
this.$message.error(res.data.message);
}
}, null)
this.tipdialog = true;
},
//判断数组包含字符串
isExists(array, str) {
......@@ -1986,11 +2005,11 @@
return flag;
},
//跳转至阿米巴结算详情
goAmoebaDetail(TCNUM,TCID){
goAmoebaDetail(TCNUM, TCID) {
this.$router.push({
name: "AmoebaDetail",
query: {
TCNUM:TCNUM,
TCNUM: TCNUM,
TCID: TCID,
blank: "y",
tab: "阿米巴结算详情"
......@@ -2083,7 +2102,7 @@
this.moneyAll.baoxiansf = 0;
this.moneyAll.tdzryf = 0;
this.moneyAll.tdzrsf = 0;
this.moneyAll.otheryf = 0;
this.moneyAll.othersf = 0;
this.moneyAll.leaderyf = 0;
......@@ -2091,7 +2110,7 @@
this.moneyAll.Guideyf = 0;
this.moneyAll.Guidesf = 0;
this.moneyAll.otheryTotalyf = 0;
this.moneyAll.otheryTotalyf = 0;
this.moneyAll.otheryTotalsf = 0;
this.loading = true;
let msg = {
......@@ -2102,7 +2121,7 @@
let that = this
if (res.data.resultCode == 1) {
let data = res.data.data;
let objData = function(obj){
let objData = function (obj) {
obj.newFinicePayList1 = []
obj.newFinicePayList2 = []
obj.newFinicePayList = []
......@@ -2111,43 +2130,43 @@
data.FiniceReciveList.forEach(x => {
x.checked = false;
})
this.DataList = data;
data.FinicePayList.forEach(item => {
if((that.isExists(item.CostTypeList,'国际段机票')
|| item.OrderSource===4
|| that.isExists(item.CostTypeList,'机票退税')
|| that.isExists(item.CostTypeList,'机票罚金')
|| that.isExists(item.CostTypeList,'机票税金'))
|| that.isExists(item.CostTypeList,'国内联运段机票')){
if ((that.isExists(item.CostTypeList, '国际段机票') ||
item.OrderSource === 4 ||
that.isExists(item.CostTypeList, '机票退税') ||
that.isExists(item.CostTypeList, '机票罚金') ||
that.isExists(item.CostTypeList, '机票税金')) ||
that.isExists(item.CostTypeList, '国内联运段机票')) {
this.DataList.newFinicePayList1.push(JSON.parse(JSON.stringify(item)))
}else if(that.NotExists(item.CostTypeList,'领队奖励金')
&&that.NotExists(item.CostTypeList,'机票折让费')
&&that.NotExists(item.CostTypeList,'签证费')
&&that.NotExists(item.CostTypeList,'签证佣金')
&& that.NotExists(item.CostTypeList,'地接费(领取)')
&& that.NotExists(item.CostTypeList,'地接费(结算)')
&& that.NotExists(item.CostTypeList,'提成')
&& that.NotExists(item.CostTypeList,'国内联运')
&& that.NotExists(item.CostTypeList,'车资')
&& that.NotExists(item.CostTypeList,'邀请函费用')
&& that.NotExists(item.CostTypeList,'名单表费')
&& that.NotExists(item.CostTypeList,'领队佣金')
&& that.NotExists(item.CostTypeList,'导游佣金')
&&item.OrderSource!==4
&& that.NotExists(item.CostTypeList,'国际段机票')
&& that.NotExists(item.CostTypeList,'机票退税')
&& that.NotExists(item.CostTypeList,'机票罚金')
&& that.NotExists(item.CostTypeList,'机票税金')
&& item.OrderSource!==11
&& that.NotExists(item.CostTypeList,'赔偿')
&& that.NotExists(item.CostTypeList,'保险费')
&& that.NotExists(item.CostTypeList,'旅游责任险')
&& that.NotExists(item.CostTypeList,'团队保险')){
} else if (that.NotExists(item.CostTypeList, '领队奖励金') &&
that.NotExists(item.CostTypeList, '机票折让费') &&
that.NotExists(item.CostTypeList, '签证费') &&
that.NotExists(item.CostTypeList, '签证佣金') &&
that.NotExists(item.CostTypeList, '地接费(领取)') &&
that.NotExists(item.CostTypeList, '地接费(结算)') &&
that.NotExists(item.CostTypeList, '提成') &&
that.NotExists(item.CostTypeList, '国内联运') &&
that.NotExists(item.CostTypeList, '车资') &&
that.NotExists(item.CostTypeList, '邀请函费用') &&
that.NotExists(item.CostTypeList, '名单表费') &&
that.NotExists(item.CostTypeList, '领队佣金') &&
that.NotExists(item.CostTypeList, '导游佣金') &&
item.OrderSource !== 4 &&
that.NotExists(item.CostTypeList, '国际段机票') &&
that.NotExists(item.CostTypeList, '机票退税') &&
that.NotExists(item.CostTypeList, '机票罚金') &&
that.NotExists(item.CostTypeList, '机票税金') &&
item.OrderSource !== 11 &&
that.NotExists(item.CostTypeList, '赔偿') &&
that.NotExists(item.CostTypeList, '保险费') &&
that.NotExists(item.CostTypeList, '旅游责任险') &&
that.NotExists(item.CostTypeList, '团队保险')) {
this.DataList.newFinicePayList2.push(JSON.parse(JSON.stringify(item)))
}
}
})
this.GetALLPageList()//查询驳回数据
this.GetALLPageList() //查询驳回数据
this.DataList.FiniceReciveList.forEach(item => {
if (that.isExists(item.CostTypeList, '团费') || that.isExists(item.CostTypeList, '团款')) {
// 收入 团费
......@@ -2158,11 +2177,11 @@
if (that.isExists(item.CostTypeList, '地接费(结算)')) {
this.moneyAll.dijieys += item.Money;
this.moneyAll.dijiess += item.PayMoney;
}
// 收入 自费
if (that.isExists(item.CostTypeList, '自费') || that.isExists(item.CostTypeList, '自费收支结算')) {
this.moneyAll.zifeiys += item.Money;
this.moneyAll.zifeiss += item.PayMoney;
}
// 收入 自费
if (that.isExists(item.CostTypeList, '自费') || that.isExists(item.CostTypeList, '自费收支结算')) {
this.moneyAll.zifeiys += item.Money;
this.moneyAll.zifeiss += item.PayMoney;
}
// 收入 小费
if (that.isExists(item.CostTypeList, '小费')) {
......@@ -2182,12 +2201,12 @@
.OrderSource !== 7) {
this.moneyAll.otherys += item.Money;
this.moneyAll.otherss += item.PayMoney;
this.moneyAll.otheryTotalyf+= item.Money;
this.moneyAll.otheryTotalsf+=item.PayMoney;
this.moneyAll.otheryTotalyf += item.Money;
this.moneyAll.otheryTotalsf += item.PayMoney;
}
})
this.ticketList=[];
this.ticketList = [];
this.DataList.FinicePayList.forEach(item => {
// 邀请函:
if (that.isExists(item.CostTypeList, '邀请函费用') || that.isExists(item.CostTypeList, '名单表费')) {
......@@ -2201,7 +2220,7 @@
this.moneyAll.cheziyf += item.Money;
this.moneyAll.chezisf += item.PayMoney;
}
// 机票款 数组
if (that.isExists(item.CostTypeList, '国际段机票') || item.OrderSource === 4 || that.isExists(item
.CostTypeList, '机票退税') || that.isExists(item.CostTypeList, '机票罚金') || that.isExists(item
......@@ -2209,9 +2228,9 @@
this.ticketList.push(item.FrID);
this.moneyAll.ticketyf += item.Money;
this.moneyAll.ticketsf += item.PayMoney;
}
// 签证
if (that.isExists(item.CostTypeList, '签证费') || that.isExists(item.CostTypeList, '签证佣金')) {
......@@ -2241,12 +2260,12 @@
this.moneyAll.baoxianyf += item.Money;
this.moneyAll.baoxiansf += item.PayMoney;
}
// 保险费
// 保险费
if (that.isExists(item.CostTypeList, '机票折让费')) {
this.moneyAll.tdzryf += item.Money;
this.moneyAll.tdzrsf += item.PayMoney;
}
// 其他
if (that.NotExists(item.CostTypeList, '签证费') && that.NotExists(item.CostTypeList, '签证佣金') && that
.NotExists(item.CostTypeList, '地接费(领取)') && that.NotExists(item.CostTypeList, '地接费(结算)') && that
......@@ -2273,20 +2292,20 @@
}
})
// if(this.moneyAll.dijieys>0 || this.moneyAll.dijiess>0){
// }
// if(this.moneyAll.zifeiys>0 || this.moneyAll.zifeiss>0){
// this.moneyAll.otheryTotalyf+=this.moneyAll.zifeiys;
// this.moneyAll.otheryTotalsf+=this.moneyAll.zifeiss;
// }
// if(this.moneyAll.xiaofeiys>0 || this.moneyAll.xiaofeiss>0){
// this.moneyAll.otheryTotalyf+=this.moneyAll.xiaofeiys;
// this.moneyAll.otheryTotalsf+=this.moneyAll.xiaofeiss;
// } if(this.moneyAll.yongjinys>0 || this.moneyAll.yongjinss>0){
// this.moneyAll.otheryTotalyf+=this.moneyAll.yongjinys;
// this.moneyAll.otheryTotalsf+=this.moneyAll.yongjinss;
// }
// if(this.moneyAll.dijieys>0 || this.moneyAll.dijiess>0){
// }
// if(this.moneyAll.zifeiys>0 || this.moneyAll.zifeiss>0){
// this.moneyAll.otheryTotalyf+=this.moneyAll.zifeiys;
// this.moneyAll.otheryTotalsf+=this.moneyAll.zifeiss;
// }
// if(this.moneyAll.xiaofeiys>0 || this.moneyAll.xiaofeiss>0){
// this.moneyAll.otheryTotalyf+=this.moneyAll.xiaofeiys;
// this.moneyAll.otheryTotalsf+=this.moneyAll.xiaofeiss;
// } if(this.moneyAll.yongjinys>0 || this.moneyAll.yongjinss>0){
// this.moneyAll.otheryTotalyf+=this.moneyAll.yongjinys;
// this.moneyAll.otheryTotalsf+=this.moneyAll.yongjinss;
// }
}
});
},
......@@ -2402,7 +2421,7 @@
// )
},
//判断数组是否存在 值
isExists(arr,item){
isExists(arr, item) {
var flag = false;
for (var i = 0; i < arr.length; i++) {
if (arr[i] == item) {
......@@ -2426,7 +2445,7 @@
},
mounted() {
this.TCID = this.$route.query.id;
this.datainfoobj.TCNUM=this.$route.query.id;
this.datainfoobj.TCNUM = this.$route.query.id;
this.OutBranchId = this.$route.query.OutBranchId;
this.CloseIncomeBtn = this.$route.query.CloseIncomeBtn;
if (this.$route.query.IsHaveAuth) {
......@@ -2437,7 +2456,7 @@
let userInfo = this.getLocalStorage();
let ActionMenuCode = userInfo.ActionMenuCode;
// 查看团队收支明细权限
if (ActionMenuCode.indexOf('isIncomeExpenditure') != -1){
if (ActionMenuCode.indexOf('isIncomeExpenditure') != -1) {
this.isIncomeExpenditure = true
}
this.checkHasAuth();
......
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