Commit c138e214 authored by 黄媛媛's avatar 黄媛媛

机票

parent 947b0e5f
......@@ -725,6 +725,8 @@
<span class="span_all">应付:¥{{moneyFormat(moneyAll.ticketyf)}}</span>
<span class="span_all">实付:¥{{moneyFormat(moneyAll.ticketsf)}}</span>
</span>
<input v-if="DataList.TeamBalance.ShouldReceive==0" 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">
......@@ -745,6 +747,7 @@
<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)" 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>
......@@ -1450,11 +1453,16 @@
export default {
data() {
return {
ticketList:[],
tipdialog:false,
gridData: [],
TCID: 0,
//数据列表
DataList: [],
DataList: {
TeamBalance:{
ShouldReceive:0
}
},
OutBranchId: 0,
ishowBtn: true,
CloseIncomeBtn: false,
......@@ -1539,6 +1547,44 @@
};
},
methods: {
isContain(list){
if(list.CostTypeList && list.CostTypeList.length==1 && list.CostTypeList[0]=="机票罚金"){
return false;
}else{
return true;
}
},
Setloss(ID,type) {
var that = this;
let msg={
FrIDList:[]
};
let FrIDList=[];
if(type=='all'){
FrIDList=this.ticketList;
}else{
FrIDList.push(ID)
}
msg.FrIDList=FrIDList;
that.Confirm('是否设为损失,一旦设置,将无法修改?', function () {
that.apipost(
'Financial_get_SetFinanceAirLossCostType',
msg,
res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message)
that.getList()
} else {
that.Error(res.data.message)
}
},
null
)
})
},
gourlTip(path,id){
this.$router.push({
name: path,
......@@ -1808,6 +1854,7 @@ this.moneyAll.otheryTotalsf+=item.PayMoney;
})
this.ticketList=[];
this.DataList.FinicePayList.forEach(item => {
// 邀请函:
if (that.isExists(item.CostTypeList, '邀请函费用') || that.isExists(item.CostTypeList, '名单表费')) {
......@@ -1821,14 +1868,17 @@ this.moneyAll.otheryTotalsf+=item.PayMoney;
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
.CostTypeList, '机票税金') || that.isExists(item.CostTypeList, '国内联运段机票')) {
this.ticketList.push(item.FrID);
this.moneyAll.ticketyf += item.Money;
this.moneyAll.ticketsf += item.PayMoney;
}
// 签证
if (that.isExists(item.CostTypeList, '签证费') || that.isExists(item.CostTypeList, '签证佣金')) {
......
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