Commit b86c0861 authored by 华国豪's avatar 华国豪 🙄
parents 510c0407 e7ade6b1
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
</tr> </tr>
<tr> <tr>
<th width="120">入住时间</th> <th width="120">入住时间</th>
<th width="200">选择酒店</th> <th width="200">选择酒店</th>
<th width="120">机位数(Y/E/F)</th> <th width="120">机位数(Y/E/F)</th>
<th width="120">占床/不占床</th> <th width="120">占床/不占床</th>
...@@ -38,9 +37,6 @@ ...@@ -38,9 +37,6 @@
<td v-if="childIndex==0&&subIndex==0" :rowspan="5*item.HotelOrderList.length" class="tdCenter"> <td v-if="childIndex==0&&subIndex==0" :rowspan="5*item.HotelOrderList.length" class="tdCenter">
{{item.UseTimeStr}} {{item.UseTimeStr}}
</td> </td>
<!-- <td v-if="childIndex==0" :rowspan="5" class="tdCenter">
<el-checkbox v-model='subItem.IsChecked'></el-checkbox>
</td> -->
<td v-if="childIndex==0" :rowspan="5" class="tdLeft"> <td v-if="childIndex==0" :rowspan="5" class="tdLeft">
<p class="link" style="word-break: normal;" @click="goUrlR('HotelManagement',HotelId.HotelId,'酒店管理')"> <p class="link" style="word-break: normal;" @click="goUrlR('HotelManagement',HotelId.HotelId,'酒店管理')">
{{subItem.HotelName}}</p> {{subItem.HotelName}}</p>
...@@ -67,7 +63,9 @@ ...@@ -67,7 +63,9 @@
{{subItem.HouseStatistics.HouseTypeList[childIndex].HouseGuestNum}} {{subItem.HouseStatistics.HouseTypeList[childIndex].HouseGuestNum}}
</td> </td>
<td v-if="childIndex==0" :rowspan="5" class="tdLeft"> <td v-if="childIndex==0" :rowspan="5" class="tdLeft">
{{subItem.NewHotelName}}
<template v-if="subItem.HotelName!=subItem.NewHotelName" ><span style="color:red;">{{subItem.NewHotelName}}</span></template>
<template v-else>{{subItem.NewHotelName}}</template>
</td> </td>
<td class="tdCenter"> <td class="tdCenter">
{{childItem.HouseTypeCount}} {{childItem.HouseTypeCount}}
...@@ -153,6 +151,7 @@ ...@@ -153,6 +151,7 @@
this.Loading = false; this.Loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.DataList = res.data.data.HotelOrderListReport; this.DataList = res.data.data.HotelOrderListReport;
console.log("this.DataList",this.DataList)
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -126,8 +126,9 @@ ...@@ -126,8 +126,9 @@
<table class="hotelTable"> <table class="hotelTable">
<tr> <tr>
<td width="70" style="text-align:center;" colspan="2"> <td width="70" style="text-align:center;" colspan="2">
<span style="color:red">{{subItem.NewHotelName}}</span> <span style="color:green">{{subItem.NewHotelName}}</span>
<el-popover placement="right" width="540" trigger="click" v-model="subItem.isShowPop"> <el-popover placement="right" width="540" trigger="click" v-model="subItem.isShowPop"
v-if="subItem.OPState!=1">
<comCheckHotel :ref="'comCheckHotel'+index+subIndex+''" v-on:childHotel="childHotelList" <comCheckHotel :ref="'comCheckHotel'+index+subIndex+''" v-on:childHotel="childHotelList"
:UseDate="item.UseTimeStr"> :UseDate="item.UseTimeStr">
</comCheckHotel> </comCheckHotel>
...@@ -137,6 +138,9 @@ ...@@ -137,6 +138,9 @@
酒店选择 酒店选择
</el-button> </el-button>
</el-popover> </el-popover>
<template v-else>
<br /> <span class="Hotel_red">OP-指定,不能更换酒店.</span>
</template>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -193,7 +197,8 @@ ...@@ -193,7 +197,8 @@
<!-- 单价/每人 --> <!-- 单价/每人 -->
<td> <td>
<el-input @keyup.native="checkInteger(childItem,'UnitPrice')" class='w60 tcenter' <el-input @keyup.native="checkInteger(childItem,'UnitPrice')" class='w60 tcenter'
@input="calculationPrice(subItem)" v-model='childItem.UnitPrice' :disabled="IsEditHotel==0?true:false"> @input="calculationPrice(subItem)" v-model='childItem.UnitPrice'
:disabled="IsEditHotel==0?true:false">
</el-input> </el-input>
</td> </td>
<!-- 免减人数 --> <!-- 免减人数 -->
...@@ -208,9 +213,10 @@ ...@@ -208,9 +213,10 @@
</td> </td>
<!--返佣--> <!--返佣-->
<td> <td>
<p class="pHouseStyle link" > <p class="pHouseStyle link">
<el-input class='w40' maxlength="2" @keyup.native="checkInteger(childItem,'RebateRatio')" <el-input class='w40' maxlength="2" @keyup.native="checkInteger(childItem,'RebateRatio')"
v-model='childItem.RebateRatio' @input="calculationPrice(subItem)" :disabled="IsEditHotel==0?true:false" ></el-input> % v-model='childItem.RebateRatio' @input="calculationPrice(subItem)"
:disabled="IsEditHotel==0?true:false"></el-input> %
<span style="display:none;" class="spanlink" @click="goUrl('HotelInfo',childItem,'酒店管理')">设置</span> <span style="display:none;" class="spanlink" @click="goUrl('HotelInfo',childItem,'酒店管理')">设置</span>
</p> </p>
</td> </td>
...@@ -224,7 +230,8 @@ ...@@ -224,7 +230,8 @@
<tr> <tr>
<td width="70" style="text-align:right;">订房状态:</td> <td width="70" style="text-align:right;">订房状态:</td>
<td> <td>
<el-select class='w135 sel' v-model='subItem.DMCState' :placeholder="$t('pub.pleaseSel')" :disabled="IsEditHotel==0?true:false"> <el-select class='w135 sel' v-model='subItem.DMCState' :placeholder="$t('pub.pleaseSel')"
:disabled="IsEditHotel==0?true:false">
<el-option label='请选择' :value='0'></el-option> <el-option label='请选择' :value='0'></el-option>
<el-option label='确定' :value='1'></el-option> <el-option label='确定' :value='1'></el-option>
<el-option label='暂定' :value='2'></el-option> <el-option label='暂定' :value='2'></el-option>
...@@ -237,7 +244,8 @@ ...@@ -237,7 +244,8 @@
<tr> <tr>
<td width="70" style="text-align:right;">确认时间:</td> <td width="70" style="text-align:right;">确认时间:</td>
<td> <td>
<el-date-picker v-model='subItem.SureTime' class='w135' value-format="yyyy-MM-dd" type="date" :disabled="IsEditHotel==0?true:false"></el-date-picker> <el-date-picker v-model='subItem.SureTime' class='w135' value-format="yyyy-MM-dd" type="date"
:disabled="IsEditHotel==0?true:false"></el-date-picker>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -246,7 +254,8 @@ ...@@ -246,7 +254,8 @@
<tr> <tr>
<td width="70" style="text-align:right;">税入/税别:</td> <td width="70" style="text-align:right;">税入/税别:</td>
<td> <td>
<el-select class='w135 sel' v-model='subItem.TaxType' :placeholder="$t('pub.pleaseSel')" @change="calculationPrice(subItem)" :disabled="IsEditHotel==0?true:false"> <el-select class='w135 sel' v-model='subItem.TaxType' :placeholder="$t('pub.pleaseSel')"
@change="calculationPrice(subItem)" :disabled="IsEditHotel==0?true:false">
<el-option label='请选择' :value='0'></el-option> <el-option label='请选择' :value='0'></el-option>
<el-option label='税入' :value='1'></el-option> <el-option label='税入' :value='1'></el-option>
<el-option label='税别' :value='2'></el-option> <el-option label='税别' :value='2'></el-option>
...@@ -259,7 +268,8 @@ ...@@ -259,7 +268,8 @@
<tr> <tr>
<td width="70" style="text-align:right;color:red">付款方式:</td> <td width="70" style="text-align:right;color:red">付款方式:</td>
<td> <td>
<el-select class='w135 sel' v-model='subItem.DMCPayType' :placeholder="$t('pub.pleaseSel')" :disabled="IsEditHotel==0?true:false"> <el-select class='w135 sel' v-model='subItem.DMCPayType' :placeholder="$t('pub.pleaseSel')"
:disabled="IsEditHotel==0?true:false">
<el-option label='请选择' :value='0'></el-option> <el-option label='请选择' :value='0'></el-option>
<el-option label='现付' :value='1'></el-option> <el-option label='现付' :value='1'></el-option>
<el-option label='签单' :value='2'></el-option> <el-option label='签单' :value='2'></el-option>
...@@ -275,7 +285,8 @@ ...@@ -275,7 +285,8 @@
<tr style="display:none;"> <tr style="display:none;">
<td width="70" style="text-align:right;">报账付款方式:</td> <td width="70" style="text-align:right;">报账付款方式:</td>
<td> <td>
<el-select class='w135 sel' v-model='subItem.PayStyle' :placeholder="$t('pub.pleaseSel')" :disabled="IsEditHotel==0?true:false"> <el-select class='w135 sel' v-model='subItem.PayStyle' :placeholder="$t('pub.pleaseSel')"
:disabled="IsEditHotel==0?true:false">
<el-option label='请选择' :value='0'></el-option> <el-option label='请选择' :value='0'></el-option>
<el-option label='现付' :value='1' v-if="subItem.PayStyleExt==1"></el-option> <el-option label='现付' :value='1' v-if="subItem.PayStyleExt==1"></el-option>
<el-option label='签单' :value='2' v-if="subItem.PayStyleExt==2"></el-option> <el-option label='签单' :value='2' v-if="subItem.PayStyleExt==2"></el-option>
...@@ -292,7 +303,8 @@ ...@@ -292,7 +303,8 @@
<tr v-show="subItem.PayStyle==6"> <tr v-show="subItem.PayStyle==6">
<td width="70" style="text-align:right;">付款团号:</td> <td width="70" style="text-align:right;">付款团号:</td>
<td> <td>
<el-input class='w135' v-model='subItem.PayTypeTCNUM' :disabled="IsEditHotel==0?true:false"></el-input> <el-input class='w135' v-model='subItem.PayTypeTCNUM' :disabled="IsEditHotel==0?true:false">
</el-input>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -340,30 +352,34 @@ ...@@ -340,30 +352,34 @@
</td> </td>
<!-- 操作 --> <!-- 操作 -->
<td v-if="childIndex==0" :rowspan="5"> <td v-if="childIndex==0" :rowspan="5">
<!--v-if="subItem.OPState!=1"-->
<template v-if="subItem.OPState==1"> <template v-if="subItem.OPState==1">
<span class="Hotel_red">OP选房确认</span> <span class="Hotel_red">OP-指定</span>
</template> </template>
<template v-if="IsOperation!=1"> <template v-if="IsOperation!=1">
<el-tooltip class="item" effect="dark" content="保存" placement="top-start"> <el-tooltip class="item" effect="dark" content="保存" placement="top-start">
<el-button icon="iconfont icon-baocun1" @click="SaveSingle(subItem)" type="primary"></el-button> <el-button icon="iconfont icon-baocun1" @click="SaveSingle(subItem)" type="primary"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="新增" placement="top-start"> <el-tooltip class="item" effect="dark" content="新增" v-if="subItem.OPState!=1" placement="top-start">
<el-button @click='AddHotel(item,subIndex)' icon="iconfont icon-tianjia" type="primary"></el-button> <el-button @click='AddHotel(item,subIndex)' icon="iconfont icon-tianjia" type="primary"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip v-if="item.HotelOrderList.length>1" class="item" effect="dark" content="删除" <el-tooltip v-if="item.HotelOrderList.length>1 && subItem.OPState!=1" class="item" effect="dark"
placement="top-start"> content="删除" placement="top-start">
<el-button type="primary" icon="iconfont icon-shanchu" @click='DeleteHotel(item,subIndex)'> <el-button type="primary" icon="iconfont icon-shanchu" @click='DeleteHotel(item,subIndex)'>
</el-button> </el-button>
</el-tooltip> </el-tooltip>
</template> </template>
<el-popover width="200" trigger="click" popper-class="Bus_HotelPop"> <el-popover width="200" trigger="click" popper-class="Bus_HotelPop">
<commonHotelLog :ref="'comHotelLog'+index+subIndex+''"> </commonHotelLog> <commonHotelLog :ref="'comHotelLog'+index+subIndex+''"> </commonHotelLog>
<div slot="reference" class="w80" style="cursor:pointer;text-decoration:underline;" @click="GetHotelLog(subItem,index,subIndex)">日志</div> <div slot="reference" class="w80" style="cursor:pointer;text-decoration:underline;"
@click="GetHotelLog(subItem,index,subIndex)">日志</div>
</el-popover>
<br />
<el-popover width="700" trigger="click" popper-class="DMC_HotelPop">
<commonPHInfo :name='"dmccomPriceHotelInfo"+index+subIndex'
:ref='"dmccomPriceHotelInfo"+index+subIndex'></commonPHInfo>
<span slot="reference" class="price" style="cursor:pointer;text-decoration:underline;"
@click="GetHotelUsePriceList(subItem.HotelId,item.UseTimeStr,index,subIndex)">库存情况</span>
</el-popover> </el-popover>
<!--<template v-else>
<span class="Hotel_red">OP选房确认</span>
</template> -->
</td> </td>
</tr> </tr>
</template> </template>
...@@ -376,6 +392,7 @@ ...@@ -376,6 +392,7 @@
import moment from 'moment' import moment from 'moment'
import comCheckHotel from "../commonPage/comCheckHotel.vue"; import comCheckHotel from "../commonPage/comCheckHotel.vue";
import commonHotelLog from "../commonPage/commonHotelLog.vue"; import commonHotelLog from "../commonPage/commonHotelLog.vue";
import commonPHlInfo from "../commonPage/commonPriceHotelInfo.vue";
export default { export default {
data() { data() {
return { return {
...@@ -409,7 +426,7 @@ ...@@ -409,7 +426,7 @@
findex: 0, findex: 0,
childIndex: 0, childIndex: 0,
//修改酒店价格,付款方式权限[0-不能修改,1-有权限修改] //修改酒店价格,付款方式权限[0-不能修改,1-有权限修改]
IsEditHotel:0, IsEditHotel: 0,
//0-可以操作,1-已制单,不能操作 //0-可以操作,1-已制单,不能操作
IsOperation: 1, IsOperation: 1,
} }
...@@ -417,12 +434,18 @@ ...@@ -417,12 +434,18 @@
components: { components: {
comCheckHotel, comCheckHotel,
commonHotelLog, commonHotelLog,
commonPHInfo: commonPHlInfo
}, },
methods: { methods: {
//调用子组件方法
GetHotelUsePriceList(HotelId, UseDay, index, hotelSubIndex) {
let str = `dmccomPriceHotelInfo${index}${hotelSubIndex}`;
this.$refs[str][0].getHotelPriceList(HotelId, UseDay);
},
//调用子组件获取日志方法 //调用子组件获取日志方法
GetHotelLog(subItem,index,hotelSubIndex) { GetHotelLog(subItem, index, hotelSubIndex) {
let str = `comHotelLog${index}${hotelSubIndex}` let str = `comHotelLog${index}${hotelSubIndex}`
this.$refs[str][0].getHotelLogsList(subItem.TCID,subItem.HotelId,subItem.CheckInDateStr); this.$refs[str][0].getHotelLogsList(subItem.TCID, subItem.HotelId, subItem.CheckInDateStr);
}, },
childHotelList(ckedObj) { childHotelList(ckedObj) {
this.list.forEach(x => { this.list.forEach(x => {
...@@ -436,9 +459,9 @@ ...@@ -436,9 +459,9 @@
this.list[this.findex].HotelOrderList[this.childIndex].NewHotelId = ckedObj.ID; this.list[this.findex].HotelOrderList[this.childIndex].NewHotelId = ckedObj.ID;
this.list[this.findex].HotelOrderList[this.childIndex].PayStyle = ckedObj.PayStyle; this.list[this.findex].HotelOrderList[this.childIndex].PayStyle = ckedObj.PayStyle;
this.list[this.findex].HotelOrderList[this.childIndex].PayStyleExt = ckedObj.PayStyle; this.list[this.findex].HotelOrderList[this.childIndex].PayStyleExt = ckedObj.PayStyle;
this.list[this.findex].HotelOrderList[this.childIndex].OrderDetailsList.forEach(subItem=>{ this.list[this.findex].HotelOrderList[this.childIndex].OrderDetailsList.forEach(subItem => {
subItem.UnitPrice=ckedObj.CostPrice; subItem.UnitPrice = ckedObj.CostPrice;
subItem.RebateRatio=ckedObj.RebateRatio; subItem.RebateRatio = ckedObj.RebateRatio;
}); });
this.calculationPrice(this.list[this.findex].HotelOrderList[this.childIndex]); this.calculationPrice(this.list[this.findex].HotelOrderList[this.childIndex]);
}, },
...@@ -571,7 +594,7 @@ ...@@ -571,7 +594,7 @@
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.IsOperation = res.data.data.IsOperation; this.IsOperation = res.data.data.IsOperation;
this.IsEditHotel=res.data.data.IsEditHotel; this.IsEditHotel = res.data.data.IsEditHotel;
let list = res.data.data.HotelOrderListReport; let list = res.data.data.HotelOrderListReport;
this.CreateBy = res.data.data.CreateBy; this.CreateBy = res.data.data.CreateBy;
this.CreateByPhoto = res.data.data.CreateByPhoto; this.CreateByPhoto = res.data.data.CreateByPhoto;
...@@ -609,12 +632,10 @@ ...@@ -609,12 +632,10 @@
let totalPrice = 0; let totalPrice = 0;
obj.OrderDetailsList.forEach(item => { obj.OrderDetailsList.forEach(item => {
//税别 //税别
if(obj.TaxType==2) if (obj.TaxType == 2) {
{ totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 + 0.08 - item.RebateRatio /
totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1+0.08- item.RebateRatio / 100); 100);
} } else {
else
{
totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 - item.RebateRatio / 100); totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 - item.RebateRatio / 100);
} }
}) })
...@@ -685,9 +706,8 @@ ...@@ -685,9 +706,8 @@
if (y.BookNum == "") { if (y.BookNum == "") {
y.BookNum = 0; y.BookNum = 0;
} }
if(y.RebateRatio=="") if (y.RebateRatio == "") {
{ y.RebateRatio = 0;
y.RebateRatio=0;
} }
}) })
}); });
...@@ -728,9 +748,8 @@ ...@@ -728,9 +748,8 @@
if (y.BookNum == "") { if (y.BookNum == "") {
y.BookNum = 0; y.BookNum = 0;
} }
if(y.RebateRatio=="") if (y.RebateRatio == "") {
{ y.RebateRatio = 0;
y.RebateRatio=0;
} }
}) })
}); });
...@@ -854,6 +873,9 @@ ...@@ -854,6 +873,9 @@
color: red; color: red;
} }
.roomReservationsDetailsTalbe .hotelTable { .roomReservationsDetailsTalbe .hotelTable {
border: none; border: none;
} }
......
...@@ -1105,7 +1105,8 @@ ...@@ -1105,7 +1105,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="参团类型" prop="GroupType"> <el-form-item label="参团类型" prop="GroupType">
<el-select v-model='addMsg.GroupType' filterable :placeholder="$t('pub.pleaseSel')" @change="gettypechange(addMsg.GroupType)"> <el-select v-model='addMsg.GroupType' filterable :placeholder="$t('pub.pleaseSel')"
@change="gettypechange(addMsg.GroupType)">
<el-option v-for="item in ctlxList" :label='item.Name' :value='item.Id' :key='item.Id' <el-option v-for="item in ctlxList" :label='item.Name' :value='item.Id' :key='item.Id'
v-if="item.Id!=5"> v-if="item.Id!=5">
</el-option> </el-option>
...@@ -1193,7 +1194,7 @@ ...@@ -1193,7 +1194,7 @@
<el-input v-model='addMsg.Unit_Price' @change="getTotalPrice(3)"></el-input> <el-input v-model='addMsg.Unit_Price' @change="getTotalPrice(3)"></el-input>
</el-form-item> </el-form-item>
</template> </template>
<el-form-item label="高于本团单价" v-show="addMsg.GroupType != 4" > <el-form-item label="高于本团单价" v-show="addMsg.GroupType != 4">
<el-switch v-model="HightUnitPrice" active-value="1" inactive-value="2"></el-switch> <el-switch v-model="HightUnitPrice" active-value="1" inactive-value="2"></el-switch>
</el-form-item> </el-form-item>
...@@ -1223,7 +1224,8 @@ ...@@ -1223,7 +1224,8 @@
<el-col :span="4"> <el-col :span="4">
<p v-if='IsChildrenTour==2' style="color: #E95252; font-size: 12px; line-height: 40px; text-align: center;"> <p v-if='IsChildrenTour==2' style="color: #E95252; font-size: 12px; line-height: 40px; text-align: center;">
本团不支持儿童出游!</p> 本团不支持儿童出游!</p>
<el-form-item v-if='IsChildrenTour==1' label="儿童不占床" prop="ChirdNoNeedBedNum" v-show="addMsg.GroupType !== '4'"> <el-form-item v-if='IsChildrenTour==1' label="儿童不占床" prop="ChirdNoNeedBedNum"
v-show="addMsg.GroupType !== '4'">
<el-input v-model='addMsg.ChirdNoNeedBedNum' @keyup.native="checkInteger(addMsg,'ChirdNoNeedBedNum')" <el-input v-model='addMsg.ChirdNoNeedBedNum' @keyup.native="checkInteger(addMsg,'ChirdNoNeedBedNum')"
@input='getNumber();getHouseNo();getTotalPrice()'></el-input> @input='getNumber();getHouseNo();getTotalPrice()'></el-input>
</el-form-item> </el-form-item>
...@@ -1496,12 +1498,15 @@ ...@@ -1496,12 +1498,15 @@
@click="goTeamBalance(ConfigData.Config.TCID,ConfigData.Config.OutBranchId)" value="团报" /> @click="goTeamBalance(ConfigData.Config.TCID,ConfigData.Config.OutBranchId)" value="团报" />
<input type="button" class="normalBtn" @click="getOrderInfo()" <input type="button" class="normalBtn" @click="getOrderInfo()"
:value="'出团通知书('+(SetNoticeMsg.OutNotice==1?'OK':'暂定')+')'" /> :value="'出团通知书('+(SetNoticeMsg.OutNotice==1?'OK':'暂定')+')'" v-if="isShow===true" />
<template v-if="isShow===true">
<input type="button" @click="CancelLeader" v-if="ConfigData.Leader!=null&&ConfigData.Leader.LeaderId>0" <input type="button" @click="CancelLeader" v-if="ConfigData.Leader!=null&&ConfigData.Leader.LeaderId>0"
class="normalBtn" value="重选领队" /> class="normalBtn" value="重选领队" />
<input type="button" class="normalBtn" v-else <input type="button" class="normalBtn" v-else
@click="showSetLeader=true,isShowLayerRemarks = false,isShowLayer = false" value="设置领队" /> @click="showSetLeader=true,isShowLayerRemarks = false,isShowLayer = false" value="设置领队" />
<input type="button" class="normalBtn" @click="goUrl('TravelPassengerList',msg.TCID,'旅客名单')" value="旅客名单" /> <input type="button" class="normalBtn" @click="goUrl('TravelPassengerList',msg.TCID,'旅客名单')" value="旅客名单" />
</template>
</div> </div>
</div> </div>
...@@ -1562,7 +1567,7 @@ ...@@ -1562,7 +1567,7 @@
slot="reference">{{item.GuestNum}}/{{item.YSeatNum>0? item.YSeatNum+'Y ':''}}{{item.ESeatNum>0? item.ESeatNum+'E ':''}}{{item.FSeatNum>0? item.FSeatNum+'F ':''}}</span> slot="reference">{{item.GuestNum}}/{{item.YSeatNum>0? item.YSeatNum+'Y ':''}}{{item.ESeatNum>0? item.ESeatNum+'E ':''}}{{item.FSeatNum>0? item.FSeatNum+'F ':''}}</span>
<span v-if='item.GuestNumStatus==3' style="color:#666; " class="personNo nowrap" <span v-if='item.GuestNumStatus==3' style="color:#666; " class="personNo nowrap"
slot="reference">{{item.GuestNum}}/{{item.YSeatNum>0? item.YSeatNum+'Y ':''}}{{item.ESeatNum>0? item.ESeatNum+'E ':''}}{{item.FSeatNum>0? item.FSeatNum+'F ':''}}</span> slot="reference">{{item.GuestNum}}/{{item.YSeatNum>0? item.YSeatNum+'Y ':''}}{{item.ESeatNum>0? item.ESeatNum+'E ':''}}{{item.FSeatNum>0? item.FSeatNum+'F ':''}}</span>
<br/> <br />
<span v-if="item.RefuseVisaNum>0" style="color:red"> <span v-if="item.RefuseVisaNum>0" style="color:red">
(拒签 {{item.RefuseVisaNum}}人) (拒签 {{item.RefuseVisaNum}}人)
</span> </span>
...@@ -1644,7 +1649,7 @@ ...@@ -1644,7 +1649,7 @@
<td> <td>
</td> </td>
<td class="RL-BTNlist" rowspan="2"> <td class="RL-BTNlist" rowspan="2">
<el-button-group> <el-button-group v-if="isShow===true">
<el-tooltip class="item" effect="dark" content="修改备注" placement="top-start"> <el-tooltip class="item" effect="dark" content="修改备注" placement="top-start">
<el-button type="primary" style='background:green; border-color:green' <el-button type="primary" style='background:green; border-color:green'
icon="iconfont icon-bianji-smal" @click='getRemarks(item)'></el-button> icon="iconfont icon-bianji-smal" @click='getRemarks(item)'></el-button>
...@@ -1701,9 +1706,9 @@ ...@@ -1701,9 +1706,9 @@
<span style="color:blue !important" v-for="(childItem) in item.GuestList" <span style="color:blue !important" v-for="(childItem) in item.GuestList"
@click="goUrl('TravelPassengerList',msg.TCID,childItem.OrderId,'旅客名单')">{{childItem.userName}}</span> @click="goUrl('TravelPassengerList',msg.TCID,childItem.OrderId,'旅客名单')">{{childItem.userName}}</span>
</p> </p>
<!-- <p class="RL-redType RL-remarkCon" v-else>--> <!-- <p class="RL-redType RL-remarkCon" v-else>-->
<!-- <span>暂无名单</span>--> <!-- <span>暂无名单</span>-->
<!-- </p>--> <!-- </p>-->
<span>房间信息:{{item.OrderGuestHouseStr}}</span> <span>房间信息:{{item.OrderGuestHouseStr}}</span>
<span v-if="item.TipMoney" style="color:red">(小费:{{item.TipMoney}})</span> <span v-if="item.TipMoney" style="color:red">(小费:{{item.TipMoney}})</span>
</td> </td>
...@@ -1753,7 +1758,8 @@ ...@@ -1753,7 +1758,8 @@
</div> </div>
<p v-if="childItem.IsChargeLossOrders==1" style="color:red"></p> <p v-if="childItem.IsChargeLossOrders==1" style="color:red"></p>
<div class="fbold over_ellipsis" style="width: 120px;cursor:pointer;" :title="childItem.OrderId"> <div class="fbold over_ellipsis" style="width: 120px;cursor:pointer;" :title="childItem.OrderId">
<span style="font-weight: 100;" v-if="childItem.scoreNum >= 0" @click='goInvetig("investigationList", childItem.tcid, childItem.orderId)'>(评分{{childItem.scoreNum}})</span>{{childItem.OrderId}} <span style="font-weight: 100;" v-if="childItem.scoreNum >= 0"
@click='goInvetig("investigationList", childItem.tcid, childItem.orderId)'>(评分{{childItem.scoreNum}})</span>{{childItem.OrderId}}
<el-tooltip class="item" effect="dark" content="通过小程序确认单报名" placement="top" <el-tooltip class="item" effect="dark" content="通过小程序确认单报名" placement="top"
v-show="childItem.OrderForm==4"> <i class="iconfont icon-xiaochengxu" v-show="childItem.OrderForm==4"> <i class="iconfont icon-xiaochengxu"
style="font-size:22px;color:red;"></i></el-tooltip> style="font-size:22px;color:red;"></i></el-tooltip>
...@@ -1810,7 +1816,7 @@ ...@@ -1810,7 +1816,7 @@
slot="reference">{{childItem.GuestNum}}/{{childItem.YSeatNum>0? childItem.YSeatNum+'Y ':''}}{{childItem.ESeatNum>0? childItem.ESeatNum+'E ':''}}{{childItem.FSeatNum>0? childItem.FSeatNum+'F ':''}}</span> slot="reference">{{childItem.GuestNum}}/{{childItem.YSeatNum>0? childItem.YSeatNum+'Y ':''}}{{childItem.ESeatNum>0? childItem.ESeatNum+'E ':''}}{{childItem.FSeatNum>0? childItem.FSeatNum+'F ':''}}</span>
<span v-if='childItem.GuestNumStatus==3' style="color:#666; " class="personNo nowrap" <span v-if='childItem.GuestNumStatus==3' style="color:#666; " class="personNo nowrap"
slot="reference">{{childItem.GuestNum}}/{{childItem.YSeatNum>0? childItem.YSeatNum+'Y ':''}}{{childItem.ESeatNum>0? childItem.ESeatNum+'E ':''}}{{childItem.FSeatNum>0? childItem.FSeatNum+'F ':''}}</span> slot="reference">{{childItem.GuestNum}}/{{childItem.YSeatNum>0? childItem.YSeatNum+'Y ':''}}{{childItem.ESeatNum>0? childItem.ESeatNum+'E ':''}}{{childItem.FSeatNum>0? childItem.FSeatNum+'F ':''}}</span>
<br/> <br />
<span v-if="childItem.RefuseVisaNum>0" style="color:red"> <span v-if="childItem.RefuseVisaNum>0" style="color:red">
(拒签 {{childItem.RefuseVisaNum}}人) (拒签 {{childItem.RefuseVisaNum}}人)
</span> </span>
...@@ -1901,7 +1907,7 @@ ...@@ -1901,7 +1907,7 @@
</td> </td>
<td class="RL-BTNlist" rowspan="2"> <td class="RL-BTNlist" rowspan="2">
<el-button-group> <el-button-group v-if="isShow===true">
<el-tooltip class="item" effect="dark" content="修改" placement="top-start"> <el-tooltip class="item" effect="dark" content="修改" placement="top-start">
<el-button type="primary" style='background:#00C6FF; border-color:#00C6FF' <el-button type="primary" style='background:#00C6FF; border-color:#00C6FF'
icon="iconfont icon-bianji-smal" @click='getDetail(childItem)'></el-button> icon="iconfont icon-bianji-smal" @click='getDetail(childItem)'></el-button>
...@@ -1957,7 +1963,8 @@ ...@@ -1957,7 +1963,8 @@
@click='deleteItem(childItem)'> @click='deleteItem(childItem)'>
删除 删除
</div> </div>
<div v-if="childItem.ScoreNum >= 0" @click='goInvetig("investigationList", childItem.tcid, childItem.OrderId)'>查看旅客调查</div> <div v-if="childItem.ScoreNum >= 0"
@click='goInvetig("investigationList", childItem.tcid, childItem.OrderId)'>查看旅客调查</div>
</div> </div>
<el-button slot="reference" type="primary" <el-button slot="reference" type="primary"
style='background:#297BEF; border-color:#297BEF;border-top-left-radius: 0;border-bottom-left-radius: 0;' style='background:#297BEF; border-color:#297BEF;border-top-left-radius: 0;border-bottom-left-radius: 0;'
...@@ -1974,9 +1981,9 @@ ...@@ -1974,9 +1981,9 @@
<span style="color:blue !important" v-for="(fourthItem) in childItem.GuestList" <span style="color:blue !important" v-for="(fourthItem) in childItem.GuestList"
@click="goUrl('TravelPassengerList',msg.TCID,fourthItem.OrderId,'旅客名单')">{{fourthItem.userName}}</span> @click="goUrl('TravelPassengerList',msg.TCID,fourthItem.OrderId,'旅客名单')">{{fourthItem.userName}}</span>
</span> </span>
<!-- <span class="RL-redType RL-remarkCon" v-else>--> <!-- <span class="RL-redType RL-remarkCon" v-else>-->
<!-- <span>暂无名单</span>--> <!-- <span>暂无名单</span>-->
<!-- </span>--> <!-- </span>-->
<span style="display: block">房间信息:{{childItem.OrderGuestHouseStr}}</span> <span style="display: block">房间信息:{{childItem.OrderGuestHouseStr}}</span>
<span v-if="childItem.TipMoney" style="color:red">(小费:{{childItem.TipMoney}}</span> <span v-if="childItem.TipMoney" style="color:red">(小费:{{childItem.TipMoney}}</span>
</td> </td>
...@@ -2003,6 +2010,7 @@ ...@@ -2003,6 +2010,7 @@
<span class="RL-redType RL-remarkCon" <span class="RL-redType RL-remarkCon"
style="width:80%;display:inline-block;">{{childItem.OP_Remarks ? childItem.OP_Remarks : '无'}}</span> style="width:80%;display:inline-block;">{{childItem.OP_Remarks ? childItem.OP_Remarks : '无'}}</span>
</div> </div>
<template v-if="isShow==true">
<div style="float:right;" v-if="childItem.IsCanClear==0"> <div style="float:right;" v-if="childItem.IsCanClear==0">
<input type="button" value="确认订单" class="rgsureBtn" @click="clearSeat(childItem,1)" <input type="button" value="确认订单" class="rgsureBtn" @click="clearSeat(childItem,1)"
style="display:block;" /> style="display:block;" />
...@@ -2015,6 +2023,7 @@ ...@@ -2015,6 +2023,7 @@
<div class="rgComTips">该订单<span style="color:green">已确认</span></div> <div class="rgComTips">该订单<span style="color:green">已确认</span></div>
<div class="rgComTips">会被系统清位</div> <div class="rgComTips">会被系统清位</div>
</div> </div>
</template>
</td> </td>
<td colspan="4" style="height: 40px;cursor: pointer;" <td colspan="4" style="height: 40px;cursor: pointer;"
@click="goUrlSFD('SalesFinancialDetail', '销售财务单据', childItem)"> @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', childItem)">
...@@ -2150,7 +2159,7 @@ ...@@ -2150,7 +2159,7 @@
slot="reference">{{item.GuestNum}}/{{item.YSeatNum>0? item.YSeatNum+'Y ':''}}{{item.ESeatNum>0? item.ESeatNum+'E ':''}}{{item.FSeatNum>0? item.FSeatNum+'F ':''}}</span> slot="reference">{{item.GuestNum}}/{{item.YSeatNum>0? item.YSeatNum+'Y ':''}}{{item.ESeatNum>0? item.ESeatNum+'E ':''}}{{item.FSeatNum>0? item.FSeatNum+'F ':''}}</span>
<span v-if='item.GuestNumStatus==3' style="color:#666;" class="personNo" <span v-if='item.GuestNumStatus==3' style="color:#666;" class="personNo"
slot="reference">{{item.GuestNum}}/{{item.YSeatNum>0? item.YSeatNum+'Y ':''}}{{item.ESeatNum>0? item.ESeatNum+'E ':''}}{{item.FSeatNum>0? item.FSeatNum+'F ':''}}</span> slot="reference">{{item.GuestNum}}/{{item.YSeatNum>0? item.YSeatNum+'Y ':''}}{{item.ESeatNum>0? item.ESeatNum+'E ':''}}{{item.FSeatNum>0? item.FSeatNum+'F ':''}}</span>
<br/> <br />
<span v-if="item.RefuseVisaNum>0" style="color:red"> <span v-if="item.RefuseVisaNum>0" style="color:red">
(拒签 {{item.RefuseVisaNum}}人) (拒签 {{item.RefuseVisaNum}}人)
</span> </span>
...@@ -2293,9 +2302,9 @@ ...@@ -2293,9 +2302,9 @@
<span style="color:blue !important" v-for="(childItem) in item.GuestList" <span style="color:blue !important" v-for="(childItem) in item.GuestList"
@click="goUrl('TravelPassengerList',msg.TCID,childItem.OrderId,'旅客名单')">{{childItem.userName}}</span> @click="goUrl('TravelPassengerList',msg.TCID,childItem.OrderId,'旅客名单')">{{childItem.userName}}</span>
</span> </span>
<!-- <span class="RL-redType RL-remarkCon" v-else>--> <!-- <span class="RL-redType RL-remarkCon" v-else>-->
<!-- <span>暂无名单</span>--> <!-- <span>暂无名单</span>-->
<!-- </span>--> <!-- </span>-->
<span v-if="item.TipMoney" style="color:red">(小费:{{item.TipMoney}})</span> <span v-if="item.TipMoney" style="color:red">(小费:{{item.TipMoney}})</span>
</td> </td>
</tr> </tr>
...@@ -2688,13 +2697,14 @@ ...@@ -2688,13 +2697,14 @@
export default { export default {
data() { data() {
return { return {
IsHaveAuth: 0, //是否有权限
// 修改应收总额 // 修改应收总额
Ysze: false, Ysze: false,
addMsg_form: {}, addMsg_form: {},
IsUpdateOrderMoney: false, IsUpdateOrderMoney: false,
outerVisible: false, outerVisible: false,
//收损金额 //收损金额
shousunDialog:false, shousunDialog: false,
//弹窗 //弹窗
OrderLoading: false, OrderLoading: false,
...@@ -3090,7 +3100,7 @@ ...@@ -3090,7 +3100,7 @@
}, },
SuperiorPeople: [], SuperiorPeople: [],
IsBackStatus: 1, IsBackStatus: 1,
Unit_Price:0 Unit_Price: 0
}; };
}, },
components: { components: {
...@@ -3099,13 +3109,13 @@ ...@@ -3099,13 +3109,13 @@
commonShouSun: commonShouSun commonShouSun: commonShouSun
}, },
methods: { methods: {
closeShouSunDialog(){ closeShouSunDialog() {
this.shousunDialog=false; this.shousunDialog = false;
}, },
//点击设置收损 //点击设置收损
SetShouSunClick(OrderId){ SetShouSunClick(OrderId) {
this.shousunDialog=true; this.shousunDialog = true;
this.$nextTick(()=>{ this.$nextTick(() => {
this.$refs.childShou.getShouSunList(OrderId); this.$refs.childShou.getShouSunList(OrderId);
}) })
}, },
...@@ -3114,7 +3124,7 @@ ...@@ -3114,7 +3124,7 @@
OrderId: this.lianyunFYId, OrderId: this.lianyunFYId,
IsBackStatus: this.IsBackStatus IsBackStatus: this.IsBackStatus
} }
this.apipost('sellorder_post_SetOrderUnionBackMoney', msg, res=>{ this.apipost('sellorder_post_SetOrderUnionBackMoney', msg, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.$message.success(res.data.message) this.$message.success(res.data.message)
this.getList() this.getList()
...@@ -3217,10 +3227,10 @@ ...@@ -3217,10 +3227,10 @@
this.IsBirdDiscount = x.IsBirdDiscount; this.IsBirdDiscount = x.IsBirdDiscount;
this.OpSetLossPeople = x.OpSetLossPeople; this.OpSetLossPeople = x.OpSetLossPeople;
this.OpSetLossMoney = x.OpSetLossMoney; this.OpSetLossMoney = x.OpSetLossMoney;
if(this.addMsg.GroupType == 4){ if (this.addMsg.GroupType == 4) {
this.HightUnitPrice = '1' this.HightUnitPrice = '1'
this.Unit_Price = x.Unit_Price this.Unit_Price = x.Unit_Price
}else { } else {
this.HightUnitPrice = '2' this.HightUnitPrice = '2'
this.Unit_Price = this.addObj.SingleDMCPrice this.Unit_Price = this.addObj.SingleDMCPrice
} }
...@@ -3836,9 +3846,9 @@ ...@@ -3836,9 +3846,9 @@
Number(this.addMsg.OldPeopleNum)) * Number(this.addMsg.OldPeopleNum)) *
(Number(this.stratPrice) + Number(this.returnPrice)); (Number(this.stratPrice) + Number(this.returnPrice));
let dandijie let dandijie
if(this.addMsg.GroupType == 4){ if (this.addMsg.GroupType == 4) {
dandijie = this.addMsg.Unit_Price * Number(this.addMsg.AirticketNum); dandijie = this.addMsg.Unit_Price * Number(this.addMsg.AirticketNum);
}else { } else {
dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum); dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum);
} }
this.addMsg.PreferPrice = this.addMsg.PreferPrice =
...@@ -3896,9 +3906,9 @@ ...@@ -3896,9 +3906,9 @@
Number(this.addMsg.OldPeopleNum)) * Number(this.addMsg.OldPeopleNum)) *
(Number(this.stratPrice) + Number(this.returnPrice)); (Number(this.stratPrice) + Number(this.returnPrice));
let dandijie let dandijie
if(this.addMsg.GroupType == 4){ if (this.addMsg.GroupType == 4) {
dandijie = this.addMsg.Unit_Price * Number(this.addMsg.AirticketNum); dandijie = this.addMsg.Unit_Price * Number(this.addMsg.AirticketNum);
}else { } else {
dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum); dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum);
} }
this.addMsg.PreferPrice = this.addMsg.PreferPrice =
...@@ -4578,7 +4588,7 @@ ...@@ -4578,7 +4588,7 @@
"leader_Get_GetPriceLeaderInfo", msg, "leader_Get_GetPriceLeaderInfo", msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.LeaderHolidyList=res.data.data.holidyList; this.LeaderHolidyList = res.data.data.holidyList;
this.LeaderInfoList = res.data.data; this.LeaderInfoList = res.data.data;
this.beforeInfo.DuringHoliday = ""; this.beforeInfo.DuringHoliday = "";
this.beforeInfo.date = ""; this.beforeInfo.date = "";
...@@ -4887,9 +4897,9 @@ ...@@ -4887,9 +4897,9 @@
// }, // },
// err => {}) // err => {})
}, },
gettypechange(type){ gettypechange(type) {
//切换参团类型时 把值初始化 //切换参团类型时 把值初始化
if(type == 4){ if (type == 4) {
this.addMsg.Unit_Price = this.Unit_Price; //成交单价 this.addMsg.Unit_Price = this.Unit_Price; //成交单价
this.HightUnitPrice = '1'; this.HightUnitPrice = '1';
this.addMsg.AirticketNum = 0; this.addMsg.AirticketNum = 0;
...@@ -4905,7 +4915,7 @@ ...@@ -4905,7 +4915,7 @@
this.addMsg.VisaNum = 0; this.addMsg.VisaNum = 0;
this.addMsg.PredictRoomNum = 0; this.addMsg.PredictRoomNum = 0;
this.addMsg.YSeatNum = 0; this.addMsg.YSeatNum = 0;
}else { } else {
this.HightUnitPrice = '2'; this.HightUnitPrice = '2';
this.addMsg.AirticketNum = 0; this.addMsg.AirticketNum = 0;
this.addMsg.ManNum = 0; this.addMsg.ManNum = 0;
...@@ -4922,26 +4932,26 @@ ...@@ -4922,26 +4932,26 @@
this.addMsg.YSeatNum = 0; this.addMsg.YSeatNum = 0;
}; };
if (this.addMsg.CustomerType == 1) { if (this.addMsg.CustomerType == 1) {
if(this.addMsg.GroupType==4){ if (this.addMsg.GroupType == 4) {
this.addMsg.TC_Price = this.addObj.SingleDMCPrice; this.addMsg.TC_Price = this.addObj.SingleDMCPrice;
}else { } else {
this.addMsg.TC_Price = this.addObj.B2BMemberPrice; this.addMsg.TC_Price = this.addObj.B2BMemberPrice;
this.addMsg.Unit_Price = this.addObj.B2BMemberPrice; this.addMsg.Unit_Price = this.addObj.B2BMemberPrice;
} }
} }
if (this.addMsg.CustomerType == 2) { if (this.addMsg.CustomerType == 2) {
if(this.addMsg.GroupType==4){ if (this.addMsg.GroupType == 4) {
this.addMsg.TC_Price = this.addObj.SingleDMCPrice; this.addMsg.TC_Price = this.addObj.SingleDMCPrice;
}else { } else {
this.addMsg.TC_Price = this.addObj.B2BPrice this.addMsg.TC_Price = this.addObj.B2BPrice
this.addMsg.Unit_Price = this.addObj.B2BPrice; this.addMsg.Unit_Price = this.addObj.B2BPrice;
} }
} }
if (this.addMsg.CustomerType == 3) { if (this.addMsg.CustomerType == 3) {
if(this.addMsg.GroupType==4){ if (this.addMsg.GroupType == 4) {
this.addMsg.TC_Price = this.addObj.SingleDMCPrice; this.addMsg.TC_Price = this.addObj.SingleDMCPrice;
}else { } else {
this.addMsg.TC_Price = this.addObj.B2CMemberPrice this.addMsg.TC_Price = this.addObj.B2CMemberPrice
this.addMsg.Unit_Price = this.addObj.B2CMemberPrice; this.addMsg.Unit_Price = this.addObj.B2CMemberPrice;
} }
...@@ -4950,9 +4960,9 @@ ...@@ -4950,9 +4960,9 @@
} }
if (this.addMsg.CustomerType == 4) { if (this.addMsg.CustomerType == 4) {
if(this.addMsg.GroupType==4){ if (this.addMsg.GroupType == 4) {
this.addMsg.TC_Price = this.addObj.SingleDMCPrice; this.addMsg.TC_Price = this.addObj.SingleDMCPrice;
}else { } else {
this.addMsg.TC_Price = this.addObj.B2CPrice this.addMsg.TC_Price = this.addObj.B2CPrice
this.addMsg.Unit_Price = this.addObj.B2CPrice; this.addMsg.Unit_Price = this.addObj.B2CPrice;
...@@ -4964,7 +4974,8 @@ ...@@ -4964,7 +4974,8 @@
}, },
getTypePrice2() { getTypePrice2() {
let maxPeopleNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNoNeedBedNum) + Number(this.addMsg.ChirdNeedBedNum) + Number(this.addMsg.OldPeopleNum) + Number(this.addMsg.AirticketNum) ) let maxPeopleNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNoNeedBedNum) + Number(this.addMsg
.ChirdNeedBedNum) + Number(this.addMsg.OldPeopleNum) + Number(this.addMsg.AirticketNum))
this.Unit_PriceList = []; this.Unit_PriceList = [];
this.apipost('sellorder_post_GetLessPrice', { this.apipost('sellorder_post_GetLessPrice', {
"TCID": this.addMsg.TCID, "TCID": this.addMsg.TCID,
......
...@@ -490,7 +490,7 @@ ...@@ -490,7 +490,7 @@
<span class="TCL-greenType">{{item.ClearOrderHour}}小时</span> <span class="TCL-greenType">{{item.ClearOrderHour}}小时</span>
</p> </p>
<p v-if="item.LineID==14 && item.HotelOrderListReports && item.HotelOrderListReports.length>0 "> <p v-if="item.LineID==14 && item.HotelOrderListReports && item.HotelOrderListReports.length>0 ">
<el-popover width="850" trigger="click" popper-class="TC_HotelPop"> <el-popover width="980" trigger="click" popper-class="TC_HotelPop">
<commonHotelInfo :HotelObj="item.HotelOrderListReports" :showHotelObj="showHotelObj" <commonHotelInfo :HotelObj="item.HotelOrderListReports" :showHotelObj="showHotelObj"
:TCID="item.TCID" :TCID="item.TCID"
:DMCNum="item.DMCNum" :TCNUM="item.TCNUM" :DMCNum="item.DMCNum" :TCNUM="item.TCNUM"
......
...@@ -30,51 +30,64 @@ ...@@ -30,51 +30,64 @@
<td> <td>
公司团号 公司团号
</td> </td>
<td :colspan="4" style="text-align:left;"> <td :colspan="5" style="text-align:left;">
<span style="padding-left:5px;">{{TCNUM}} ({{TCID}})</span> <span style="padding-left:5px;">{{TCNUM}} ({{TCID}})</span>
</td> </td>
<td> <td>
地接团号 地接团号
</td> </td>
<td :colspan="showHotelObj.ShowTaxType?5:3" style="text-align:left;"> <td :colspan="showHotelObj.ShowTaxType?6:4" style="text-align:left;">
<span style="padding-left:5px;">{{DMCNum}}</span> <span style="padding-left:5px;">{{DMCNum}}</span>
</td> </td>
</tr> </tr>
<tr> <tr>
<th width="120">日期</th> <th width="120">日期</th>
<th style="width:150px;">酒店</th> <th width="150">酒店</th>
<th style="width:150px;">更换酒店</th> <th width="150">更换酒店</th>
<th style="width:100px;">状态</th> <th width="120">酒店状态</th>
<th style="width:150px;" v-if="showHotelObj.showPrice">使用数量/价格</th> <th width="120">OP状态</th>
<th style="width:100px;" v-if="showHotelObj.showPay">付款方式</th> <th width="120">地接状态</th>
<th style="width:100px;" v-if="showHotelObj.ShowTaxType">税入/税别</th> <th width="110" v-if="showHotelObj.showPrice">数量<br />价格</th>
<th style="width:120px;" v-if="showHotelObj.ShowRebateRatio">返佣比例</th> <th width="120" v-if="showHotelObj.showPay">付款方式<br/>返佣比例</th>
<th style="width:130px" v-if="showHotelObj.showZhan">占房时间</th> <th width="130" v-if="showHotelObj.showZhan">占房时间</th>
<th style="width:100px" v-if="showHotelObj.showZhan">确认时间</th> <th width="100" v-if="showHotelObj.showZhan">确认时间</th>
<th style="width:80px;" v-if="showHotelObj.showPrice"> <th width="70" v-if="showHotelObj.showPrice">
日志 日志
</th> </th>
</tr> </tr>
<template v-for="(hotelItem,index) in HotelObj"> <template v-for="(hotelItem,index) in HotelObj">
<tr v-for="(hotelSubItem,hotelSubIndex) in hotelItem.SubList"> <tr v-for="(hotelSubItem,hotelSubIndex) in hotelItem.SubList">
<td width="120" v-if="hotelSubIndex==0" :rowspan="hotelItem.SubList.length"> <td width="120" v-if="hotelSubIndex==0" :rowspan="hotelItem.SubList.length" style="white-space:nowrap; ">
{{hotelItem.UseDay}} {{hotelItem.UseDay}}
</td> </td>
<td style="text-align:left;padding-left:3px;"> <td style="text-align:left;padding-left:3px;">
<template v-if="hotelSubItem.HotelName!=hotelSubItem.NewHotelName && hotelSubItem.NewHotelName!=''">
<span style="text-decoration:line-through"> {{hotelSubItem.HotelName}}</span>
</template>
<template v-else>
{{hotelSubItem.HotelName}} {{hotelSubItem.HotelName}}
</template>
</td> </td>
<td style="text-align:left;padding-left:3px;color:red"> <td style="text-align:left;padding-left:3px;color:red">
{{hotelSubItem.HotelName!=hotelSubItem.NewHotelName?""+hotelSubItem.NewHotelName:""}} {{hotelSubItem.HotelName!=hotelSubItem.NewHotelName?""+hotelSubItem.NewHotelName:""}}
</td> </td>
<td style="text-align:left;padding-left:3px;"> <td>
<template v-if="hotelSubItem.OPState==1||hotelSubItem.DMCState==1">
<a style="color:green">保证入住</a>
</template>
</td>
<td>
<span v-if="hotelSubItem.HotelName!='温馨的家'"> <span v-if="hotelSubItem.HotelName!='温馨的家'">
<template v-if="hotelSubItem.OPState==1"> <template v-if="hotelSubItem.OPState==1">
<a style="color:green">OP-指定</a> <a style="color:green">OP-指定</a>
</template> </template>
<template v-else-if="hotelSubItem.OPState==2 && hotelSubItem.DMCState==0 "> <template v-else-if="hotelSubItem.OPState==2">
<a style="color:red">OP-暂定</a> <a style="color:red">OP-暂定</a>
</template> </template>
<template v-else> </span>
</td>
<td>
<span v-if="hotelSubItem.HotelName!='温馨的家'">
<template v-if="hotelSubItem.DMCState==1"> <template v-if="hotelSubItem.DMCState==1">
<a style="color:green">地接-OK</a> <a style="color:green">地接-OK</a>
</template> </template>
...@@ -84,26 +97,22 @@ ...@@ -84,26 +97,22 @@
<template v-else-if="hotelSubItem.DMCState==0"> <template v-else-if="hotelSubItem.DMCState==0">
<a style="color:red">地接-未操作</a> <a style="color:red">地接-未操作</a>
</template> </template>
</template>
</span> </span>
</td> </td>
<td v-if="showHotelObj.showPrice"> <td v-if="showHotelObj.showPrice">
<a v-if="(hotelSubItem.OPState==1|| hotelSubItem.OPState==2 || hotelSubItem.DMCState==1 )"> <a v-if="(hotelSubItem.OPState==1|| hotelSubItem.OPState==2 || hotelSubItem.DMCState==1 )">
{{hotelSubItem.UseCount>0? hotelSubItem.UseCount+" 间" :""}} {{hotelSubItem.UseCount>0? hotelSubItem.UseCount+" 间" :""}}
<br />
{{hotelSubItem.CostPriceNew>0?" 价格:"+hotelSubItem.CostPriceNew:(hotelSubItem.CostPrice!=0?" 价格:"+hotelSubItem.CostPrice:"")}} {{hotelSubItem.CostPriceNew>0?" 价格:"+hotelSubItem.CostPriceNew:(hotelSubItem.CostPrice!=0?" 价格:"+hotelSubItem.CostPrice:"")}}
</a> </a>
</td> </td>
<td v-if="showHotelObj.showPay"> <td v-if="showHotelObj.showPay">
{{hotelSubItem.PayTypeStr}} {{hotelSubItem.PayTypeStr}} <template v-if="hotelSubItem.TaxType==1">税入</template>
</td>
<td v-if="showHotelObj.ShowTaxType">
<template v-if="hotelSubItem.TaxType==1">税入</template>
<template v-if="hotelSubItem.TaxType==2">税别</template> <template v-if="hotelSubItem.TaxType==2">税别</template>
</td>
<td v-if="showHotelObj.ShowRebateRatio">
{{hotelSubItem.RebateRatio}} {{hotelSubItem.RebateRatio}}
</td> </td>
<td v-if="showHotelObj.showZhan">
<td v-if="showHotelObj.showZhan" style="white-space:nowrap; ">
<template v-if="hotelSubItem.OPState==1||(hotelSubItem.OPState==2 && hotelSubItem.DMCState==0)"> <template v-if="hotelSubItem.OPState==1||(hotelSubItem.OPState==2 && hotelSubItem.DMCState==0)">
{{hotelSubItem.CreateDateStr}} {{hotelSubItem.CreateDateStr}}
</template> </template>
......
<style>
</style>
<template>
<div class="commonPriceHotelInfo">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="singeRowTable" v-loading="loading">
<tr>
<th width="100">日期</th>
<th width="135">占房时间</th>
<th width="120">团期</th>
<th width="80">总库存</th>
<th width="80">使用库存</th>
<th width="80">状态</th>
</tr>
<template v-if="HotelPriceList.length>0">
<tr v-for="(item,index) in HotelPriceList">
<td>
{{item.UseTimeStr}}
</td>
<td>
{{item.CreateTimeStr}}
</td>
<td>
{{item.TCNUM}}
</td>
<td>
{{item.Inventory}}
</td>
<td>
{{item.LastUseNum}}
</td>
<td>
<template v-if="item.Status==1"><span style="color:green;">OK</span></template>
<template v-else><span style="color:red;">暂定</span></template>
</td>
</tr>
</template>
<template v-else>
<tr>
<td colspan="6">
<span style="color:red;"> 暂无库存使用记录.</span>
</td>
</tr>
</template>
</table>
</div>
</template>
<script>
export default {
data() {
return {
loading: false,
HotelPriceList: [],
queryMsg: {
HotelId: 0,
UseTime: "",
}
};
},
methods: {
//获取日志
getHotelPriceList(HotelId, timeStr) {
this.HotelPriceList = [];
this.loading = true;
if (HotelId) {
this.queryMsg.HotelId = HotelId;
}
if (timeStr) {
this.queryMsg.UseTime = timeStr;
}
this.apipost('travel_get_GetHotelUsePriceListService', this.queryMsg, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.HotelPriceList = res.data.data;
}
}, err => {})
},
},
mounted() {}
};
</script>
...@@ -305,7 +305,7 @@ ...@@ -305,7 +305,7 @@
<span class="colorE95252" v-else>{{item.HotelResult=='-1'?"x":"O"}}</span> <span class="colorE95252" v-else>{{item.HotelResult=='-1'?"x":"O"}}</span>
</div> </div>
<p v-if="item.LineId==14 && item.PriceHotelResult && item.PriceHotelResult.length>0"> <p v-if="item.LineId==14 && item.PriceHotelResult && item.PriceHotelResult.length>0">
<el-popover width="920" trigger="click" popper-class="DMC_HotelPop"> <el-popover width="1100" trigger="click" popper-class="DMC_HotelPop">
<commonHotelInfo :HotelObj="item.PriceHotelResult" :showHotelObj="showHotelObj" :TCID="item.TCID" <commonHotelInfo :HotelObj="item.PriceHotelResult" :showHotelObj="showHotelObj" :TCID="item.TCID"
:DMCNum="item.DMCNum" :TCNUM="item.TCNUMS" :DMCNum="item.DMCNum" :TCNUM="item.TCNUMS"
@SetShouPeiShu="SetShouPeiShu(item.TCID,item.ShouPeiStatus)"></commonHotelInfo> @SetShouPeiShu="SetShouPeiShu(item.TCID,item.ShouPeiStatus)"></commonHotelInfo>
......
...@@ -810,7 +810,7 @@ ...@@ -810,7 +810,7 @@
<th width="240">酒店情况</th> <th width="240">酒店情况</th>
<th width="100">占房时间</th> <th width="100">占房时间</th>
<th width="100">更换酒店</th> <th width="100">更换酒店</th>
<th width="60">操作</th> <th width="120">操作</th>
</tr> </tr>
<template v-for="(subItem,subIndex) in priceData.PriceHotelList"> <template v-for="(subItem,subIndex) in priceData.PriceHotelList">
<tr v-for="(childItem,childIndex) in subItem.SubList"> <tr v-for="(childItem,childIndex) in subItem.SubList">
...@@ -859,6 +859,12 @@ ...@@ -859,6 +859,12 @@
<span v-if="childItem.UseCount>0 && subItem.SubList.length==1"> <span v-if="childItem.UseCount>0 && subItem.SubList.length==1">
<span style="color:red;white-space:nowrap;cursor:pointer;" @click="DeleteStock(subItem)">删除</span> <span style="color:red;white-space:nowrap;cursor:pointer;" @click="DeleteStock(subItem)">删除</span>
</span> </span>
<span >
<el-popover width="700" trigger="click" popper-class="DMC_HotelPop">
<commonPHInfo :name='"comPriceHotelInfo"+subIndex+childIndex' :ref='"comPriceHotelInfo"+subIndex+childIndex' ></commonPHInfo>
<span slot="reference" class="price" style="cursor:pointer;text-decoration:underline;" @click="GetHotelUsePriceList(childItem.HotelId,subItem.UseDay,subIndex,childIndex)">库存情况</span>
</el-popover>
</span>
</td> </td>
</tr> </tr>
</template> </template>
...@@ -913,6 +919,7 @@ ...@@ -913,6 +919,7 @@
</div> </div>
</template> </template>
<script> <script>
import commonPHlInfo from "../../commonPage/commonPriceHotelInfo.vue";
import TravelPriceFlightList from "../TravelGroupControl/TravelPriceFlightList.vue"; import TravelPriceFlightList from "../TravelGroupControl/TravelPriceFlightList.vue";
export default { export default {
props: ["priceList", "priceIsDirect", "OfferList", "PostConfig", "modifyTcid", "TeamType"], props: ["priceList", "priceIsDirect", "OfferList", "PostConfig", "modifyTcid", "TeamType"],
...@@ -1008,6 +1015,12 @@ ...@@ -1008,6 +1015,12 @@
}; };
}, },
methods: { methods: {
//调用子组件方法
GetHotelUsePriceList(HotelId,UseDay,index,hotelSubIndex)
{
let str = `comPriceHotelInfo${index}${hotelSubIndex}`;
this.$refs[str][0].getHotelPriceList(HotelId, UseDay);
},
//点击折叠 //点击折叠
fold() { fold() {
if (this.isFold == "") { if (this.isFold == "") {
...@@ -1736,7 +1749,8 @@ ...@@ -1736,7 +1749,8 @@
} }
}, },
components: { components: {
TravelPriceFlightList: TravelPriceFlightList TravelPriceFlightList: TravelPriceFlightList,
commonPHInfo:commonPHlInfo
} }
}; };
......
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