Commit d287609b authored by 华国豪's avatar 华国豪 🙄

领队报账

parent c9277772
......@@ -18,8 +18,8 @@
<th>备注</th>
</tr>
<template v-for='(item,index) in dataList'>
<!-- <template v-for="(subItem,subIndex) in item.ScenicStatisticsList"> -->
<tr v-for="(childItem,childIndex) in item.ReimburseList.ReimburseDetailsList">
<template v-if="item.ReimburseList && item.ReimburseList.length">
<tr v-for="(childItem,childIndex) in item.ReimburseList.ReimburseDetailsList" >
<td v-if="childIndex==0" :rowspan="item.ReimburseList.ReimburseDetailsList.length">{{item.CheckInDateStr}}</td>
<td v-if="childIndex==0" :rowspan="item.ReimburseList.ReimburseDetailsList.length">
{{item.HotelName}}
......@@ -52,7 +52,11 @@
{{item.ReimburseList.Remarks}}
</td>
</tr>
<!-- </template> -->
</template>
<tr v-else>
<td colspan="9">暂无数据</td>
</tr>
</template>
</table>
......
......@@ -1646,8 +1646,10 @@
</el-tooltip>
<el-tooltip class="item" effect="dark" content="已出中段" placement="top-start"
v-show="item.TicketState==0">
<el-button type="primary" class="iconfont icon-zhongzhuan" @click="UpdateTicketState(item.ID,2)">
<el-button type="primary" class="iconfont icon-zhongzhuan" @click="ZhongDuanPNR = true, ZhongDuanID= item.ID">
</el-button>
<!-- <el-button type="primary" class="iconfont icon-zhongzhuan" @click="UpdateTicketState(item.ID,2)">
</el-button> -->
</el-tooltip>
<el-tooltip class="item" effect="dark" content="出票完成" placement="top-start"
v-show="item.TicketState!=1">
......@@ -2149,7 +2151,17 @@
</div>
</el-form>
<el-dialog custom-class="w400" :title="importFileTitle" :visible.sync="ZhongDuanPNR" center>
<el-form label-width="110px">
<el-form-item label="中段PNR">
<el-input v-model="MidpiecePNR"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="dialogFormVisible=false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="UpdateTicketState(ZhongDuanID, 2)">{{$t('pub.sureBtn')}}</button>
</div>
</el-dialog>
<el-dialog custom-class="w700" :title="importFileTitle" :visible.sync="outerVisible" center>
<el-upload v-if="uploadDoc" ref="ticketUpload" drag class="upload-demo" :action="getImportFileUrl()"
:on-success="handleAvatarSuccess">
......@@ -2186,6 +2198,9 @@
}
}
return {
MidpiecePNR: '',
ZhongDuanID: 0,
ZhongDuanPNR: false,
outerVisible1: false,
//导入文件弹窗标题
importFileTitle: "批量导入",
......@@ -2857,7 +2872,8 @@
this.apipost(
"AirTicket_get_UpdateTicketState", {
ID: ID,
TicketState: TicketState
TicketState: TicketState,
MidpiecePNR: this.MidpiecePNR
},
res => {
if (res.data.resultCode == 1) {
......@@ -2866,6 +2882,7 @@
} else {
this.Warning(res.data.message);
}
this.ZhongDuanPNR=false
},
err => {}
);
......
......@@ -224,7 +224,7 @@ input[type="number"] {
<td v-if="childIndex==0" :rowspan="subItem.TicketPriceList.length">
{{scenicTotalPrice(subItem, subItem.TicketPriceList)}}
</td>
<td v-if="childIndex==0 && subIndex ==0" :rowspan="item.data.length*subItem.TicketPriceList.length">
<td v-if="childIndex==0" :rowspan="subItem.TicketPriceList.length">
{{subItem.TradingTotalPrice}}
</td>
......@@ -436,7 +436,7 @@ input[type="number"] {
<td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
{{item.CheckInDateStr}}
</td>
<td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
<td v-if="subIndex==0 && childIndex == 0" :rowspan="item.row">
{{subItem.HotelName}}
</td>
<td>
......@@ -488,11 +488,11 @@ input[type="number"] {
<td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
{{hotelTotalPrice(subItem.OrderDetailsList)}}
</td>
<td v-if="childIndex==0 && subIndex ==0" :rowspan="subItem.OrderDetailsList.length * item.data.length">{{subItem.TradingTotalPrice}}</td>
<td v-if="subIndex==0 && childIndex == 0" :rowspan="item.row">{{subItem.TradingTotalPrice}}</td>
<td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
{{subItem.Remarks}}
</td>
<td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length"><span class="cursorpointer text-decoratio" @click="godetail('hotel', subItem)">明细</span></td>
<td v-if="childIndex==0 && subIndex ==0" :rowspan="item.row"><span class="cursorpointer text-decoratio" @click="godetail('hotel', subItem)">明细</span></td>
</tr>
</template>
</template>
......@@ -1677,6 +1677,7 @@ export default {
ScenicList.push(res.data.data.ScenicList[i].ScenicStatisticsList[o])
}
}
console.log(ScenicList)
var Scenicmap = {},
Scenicdest = [];
for(var i = 0; i < ScenicList.length; i++){
......@@ -1691,13 +1692,13 @@ export default {
}else{
for(var j = 0; j < Scenicdest.length; j++){
var dj = Scenicdest[j];
if(dj.UseTimeStr == ai.UseTimeStr && dj.TicketID == ai.TicketID){
dj.data.push(ai);
break;
if(dj.UseTimeStr == ai.UseTimeStr){
dj.data.push(ai);
break;
}
}
}
}
}
this.ScenicDataList = Scenicdest
//酒
let HotelList = []
......@@ -1726,7 +1727,14 @@ export default {
}
}
}
}
}
for(var i = 0; i < Hoteldest.length; i++){
let row = 0;
for(var l = 0; l < Hoteldest[i].data.length; l++){
row = row + Hoteldest[i].data[l].OrderDetailsList.length
}
Hoteldest[i].row = row
}
this.HotelDataList = Hoteldest
} else {
this.$message.error(res.data.message);
......
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