Commit c6866d7b authored by 黄奎's avatar 黄奎

页面修改

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