Commit 4367a769 authored by huangyuanyuan's avatar huangyuanyuan
parents 606f9bd5 d1f163c0
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
} }
</script> </script>
<style> <style>
@import "//at.alicdn.com/t/font_635492_l8xc381dki8.css"; @import "//at.alicdn.com/t/font_635492_b8jianjuawm.css";
@import "./assets/css/Semibold.css"; @import "./assets/css/Semibold.css";
@import "./assets/css/global/config.css"; @import "./assets/css/global/config.css";
@import "./assets/css/fileIcon.css"; @import "./assets/css/fileIcon.css";
......
...@@ -1125,7 +1125,7 @@ export default { ...@@ -1125,7 +1125,7 @@ export default {
list = JSON.parse(JSON.stringify(this.msg.detailList[i-1])); list = JSON.parse(JSON.stringify(this.msg.detailList[i-1]));
this.detailList.Rate=list.Rate; this.detailList.Rate=list.Rate;
this.msg.detailList.forEach((x,o)=>{ this.msg.detailList.forEach((x,o)=>{
x.Rate = list.Rate; x.Rate = list.Rate ? list.Rate : x.Rate;
this.Calculation(2,o+1); this.Calculation(2,o+1);
this.Calculation(1); this.Calculation(1);
}) })
...@@ -1133,7 +1133,7 @@ export default { ...@@ -1133,7 +1133,7 @@ export default {
list = JSON.parse(JSON.stringify(this.detailList)); list = JSON.parse(JSON.stringify(this.detailList));
this.detailList.Rate=list.Rate; this.detailList.Rate=list.Rate;
this.msg.detailList.forEach((x,o)=>{ this.msg.detailList.forEach((x,o)=>{
x.Rate = list.Rate; x.Rate = list.Rate ? list.Rate : x.Rate;
this.Calculation(2,o+1); this.Calculation(2,o+1);
this.Calculation(1); this.Calculation(1);
}) })
...@@ -1353,6 +1353,7 @@ export default { ...@@ -1353,6 +1353,7 @@ export default {
x.bTotalPriceTo = this.$commonUtils.addCommas(num); x.bTotalPriceTo = this.$commonUtils.addCommas(num);
x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 10; x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 10;
x.show = false; x.show = false;
this.detailList.Rate = x.Rate
this.msg.detailList.push(x); this.msg.detailList.push(x);
this.coinGetList.forEach(y=>{ this.coinGetList.forEach(y=>{
if(y.ID==x.CurrencyId){ if(y.ID==x.CurrencyId){
...@@ -1438,7 +1439,7 @@ export default { ...@@ -1438,7 +1439,7 @@ export default {
}) })
} }
if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length>0) { if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length>0) {
Status=true; Status=true;
this.orderObj.companyIDList.forEach(x=>{ this.orderObj.companyIDList.forEach(x=>{
data.forEach(y=>{ data.forEach(y=>{
if (y.disabled === false){ if (y.disabled === false){
......
...@@ -124,11 +124,11 @@ ...@@ -124,11 +124,11 @@
<!-- <tr> <!-- <tr>
<td>应收总额</td> <td>应收总额</td>
<td class="w600 font-weight cursorpointer"> <td class="w600 font-weight cursorpointer">
<span @click="goUrlO(orderList.OrderId)">{{orderList.PreferPrice}}</span> <span @click="goUrlO(orderList.OrderId)">{{orderList.PreferPrice}}</span>
</td> </td>
<td>待收金额</td> <td>待收金额</td>
<td class="w600 font-weight cursorpointer"> <td class="w600 font-weight cursorpointer">
<span @click="goUrlO(orderList.OrderId)">{{orderList.DueInMoney}}</span> <span @click="goUrlO(orderList.OrderId)">{{orderList.DueInMoney}}</span>
</td> </td>
</tr> --> </tr> -->
<tr class="page_iisMgadd_bank"> <tr class="page_iisMgadd_bank">
...@@ -146,14 +146,23 @@ ...@@ -146,14 +146,23 @@
<td>到账日期</td> <td>到账日期</td>
<td>{{orderList.TradeDateStr}}</td> <td>{{orderList.TradeDateStr}}</td>
</tr> </tr>
<tr> <tr>
<td>团号</td> <td>团号</td>
<td colspan="3" class="w600 text-align-left">{{msg.TCID}}</td> <td>{{msg.TCID}}</td>
</tr>
<tr>
<td>订单号</td> <td>订单号</td>
<td colspan="3" class="w600 text-align-left">{{msg.OrderId}}</td> <td>{{msg.OrderId}}</td>
</tr> </tr>
<!-- <tr>-->
<!-- <td>团号</td>-->
<!-- <td colspan="3" class="w600 text-align-left">{{msg.TCID}}</td>-->
<!-- </tr>-->
<!-- <tr>-->
<!-- <td>订单号</td>-->
<!-- <td colspan="3" class="w600 text-align-left">{{msg.OrderId}}</td>-->
<!-- </tr>-->
<tr> <tr>
<td rowspan="6">开具内容</td> <td rowspan="6">开具内容</td>
<td> <td>
...@@ -216,12 +225,25 @@ ...@@ -216,12 +225,25 @@
<el-input placeholder type="number" v-model="msg.BankNo"></el-input> <el-input placeholder type="number" v-model="msg.BankNo"></el-input>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>备注</td> <td>备注</td>
<td colspan="3"> <td>
<el-input type="textarea" placeholder v-model="msg.Remarks"></el-input> <el-input type="textarea" placeholder v-model="msg.Remarks"></el-input>
</td> </td>
<td>预计到账时间</td>
<td>
<el-date-picker v-model='msg.AccountingDate' class="w230" value-format="yyyy-MM-dd" type="date"
placeholder="选择日期"></el-date-picker>
</td>
</tr> </tr>
<!-- <tr>-->
<!-- <td>备注</td>-->
<!-- <td colspan="3">-->
<!-- <el-input type="textarea" placeholder v-model="msg.Remarks"></el-input>-->
<!-- </td>-->
<!-- </tr>-->
</table> </table>
<div> <div>
<div> <div>
...@@ -289,6 +311,7 @@ export default { ...@@ -289,6 +311,7 @@ export default {
IsDefaultInfo: 1, IsDefaultInfo: 1,
ApplyPics: [], ApplyPics: [],
ID: 0, ID: 0,
AccountingDate:''
}, },
DepartName: "", DepartName: "",
emName: "", emName: "",
......
...@@ -246,11 +246,11 @@ ...@@ -246,11 +246,11 @@
<tr> <tr>
<td>应收总额</td> <td>应收总额</td>
<td class="w600 font-weight cursorpointer"> <td class="w600 font-weight cursorpointer">
<span @click="goUrlO(detail.OrderId)">{{detail.PreferPrice}}</span> <span @click="goUrlO(detail.OrderId)">{{detail.PreferPrice}}</span>
</td> </td>
<td>待收金额</td> <td>待收金额</td>
<td class="w600 font-weight cursorpointer"> <td class="w600 font-weight cursorpointer">
<span @click="goUrlO(detail.OrderId)">{{detail.DueInMoney}}</span> <span @click="goUrlO(detail.OrderId)">{{detail.DueInMoney}}</span>
</td> </td>
</tr> </tr>
<tr class="page_iisMgdetail_bank"> <tr class="page_iisMgdetail_bank">
...@@ -271,21 +271,21 @@ ...@@ -271,21 +271,21 @@
</tr> </tr>
<tr> <tr>
<td>{{$t('ios.tuanhao')}}</td> <td>{{$t('ios.tuanhao')}}</td>
<td colspan="3" class="w600 text-align-left font-weight cursorpointer" @click="goUrlT('productQuery', detail.TCNUM, '产品查询')"> <td class="text-align-left font-weight cursorpointer" @click="goUrlT('productQuery', detail.TCNUM, '产品查询')">
{{detail.TCNUM}}({{detail.TCID}}) {{detail.TCNUM}}({{detail.TCID}})
</td> </td>
</tr>
<tr>
<td>{{$t('ios.ddanhao')}}</td> <td>{{$t('ios.ddanhao')}}</td>
<td colspan="3" class="w600 text-align-left font-weight cursorpointer"> <td class="text-align-left font-weight cursorpointer">
<span @click="goUrlO(detail.OrderId)">{{detail.OrderId}}</span> <span @click="goUrlO(detail.OrderId)">{{detail.OrderId}}</span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>{{$t('ios.cwdanju')}}</td> <td>{{$t('ios.cwdanju')}}</td>
<td colspan="3" class="w600 text-align-left font-weight cursorpointer"> <td colspan="3" class="w600 text-align-left font-weight cursorpointer">
<template v-for="item in orderList.FrIDs"> <template v-for="item in orderList.FrIDs">
<span @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', detail.OrderId, detail.TCNUM, detail.TCID)">{{item}}</span> <span @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', detail.OrderId, detail.TCNUM, detail.TCID)">{{item}}</span>
</template> </template>
<span v-if="orderList.FrIDs && orderList.FrIDs.length<1">{{$t('ios.zanwu')}}</span> <span v-if="orderList.FrIDs && orderList.FrIDs.length<1">{{$t('ios.zanwu')}}</span>
</td> </td>
...@@ -329,9 +329,13 @@ ...@@ -329,9 +329,13 @@
</tr> </tr>
<tr> <tr>
<td>{{$t('hotel.hotel_remark')}}</td> <td>{{$t('hotel.hotel_remark')}}</td>
<td colspan="3"> <td>
{{detail.Remarks}} {{detail.Remarks}}
</td> </td>
<td>预计到账时间</td>
<td style="width: 190px;">
{{detail.AccountingDate}}
</td>
</tr> </tr>
</table> </table>
<el-dialog :title="$t('pub.hintMsg')" width="400px" :visible.sync="dialogFormVisible2" center :before-close="closeChangeMachie" > <el-dialog :title="$t('pub.hintMsg')" width="400px" :visible.sync="dialogFormVisible2" center :before-close="closeChangeMachie" >
...@@ -422,7 +426,7 @@ ...@@ -422,7 +426,7 @@
</div> </div>
<div class="shangchuanfujian"><button class="hollowFixedBtn" @click="upLoadFuJian">上传附件</button></div> <div class="shangchuanfujian"><button class="hollowFixedBtn" @click="upLoadFuJian">上传附件</button></div>
</div> </div>
</div> </div>
<div class="querenhan"> <div class="querenhan">
<p >确认函</p> <p >确认函</p>
<div style="width:100%;" > <div style="width:100%;" >
...@@ -462,7 +466,7 @@ ...@@ -462,7 +466,7 @@
<script> <script>
export default { export default {
data() { data() {
return { return {
detail: {}, detail: {},
orderList: {}, orderList: {},
loading: true, loading: true,
...@@ -518,7 +522,7 @@ export default { ...@@ -518,7 +522,7 @@ export default {
let path = "/Upload/Temporary/" let path = "/Upload/Temporary/"
this.$message.info('上传中...') this.$message.info('上传中...')
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0); let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
this.saveMsg.push({ this.saveMsg.push({
Type: fileTypeNumber, Type: fileTypeNumber,
Content: x.data.FilePath, Content: x.data.FilePath,
...@@ -569,7 +573,7 @@ export default { ...@@ -569,7 +573,7 @@ export default {
this.$router.push({ name: 'enrollTotal', query: { id: OrderId, blank: 'y', tab: '报名统计'} }); this.$router.push({ name: 'enrollTotal', query: { id: OrderId, blank: 'y', tab: '报名统计'} });
}, },
goUrlT: function (path, obj, title){ // 跳转团页面 goUrlT: function (path, obj, title){ // 跳转团页面
this.$router.push({ name:path,query:{"id":obj,blank:'y',tab:title}}) this.$router.push({ name:path,query:{"id":obj,blank:'y',tab:title}})
}, },
goSaleFinacial: function () { // 跳转销售财务单据 goSaleFinacial: function () { // 跳转销售财务单据
let obj = { let obj = {
...@@ -604,7 +608,7 @@ export default { ...@@ -604,7 +608,7 @@ export default {
}); });
},1000) },1000)
} }
} }
}, null) }, null)
}, },
......
...@@ -116,10 +116,19 @@ ...@@ -116,10 +116,19 @@
<td v-if="childIndex==0" :rowspan="5"> <td v-if="childIndex==0" :rowspan="5">
<table class="hotelTable"> <table class="hotelTable">
<tr> <tr>
<td width="70" style="text-align:right;">酒店</td> <td width="70" style="text-align:center;" colspan="2">
<td> <span style="color:red">{{subItem.NewHotelName}}</span>
<!--:disabled="subItem.OPState==1"--> <el-popover placement="right" width="500" trigger="click" v-model="subItem.isShowPop">
<el-select class='w120 sel' v-model='subItem.NewHotelId' filterable <comCheckHotel :ref="'comCheckHotel'+index+subIndex+''" v-on:childHotel="childHotelList" :UseDate="item.UseTimeStr">
</comCheckHotel>
<el-button size="small" type="danger" :data-index="'comCheckHotel'+index+subIndex+''"
slot="reference" style="cursor:pointer;"
@click="getChildHotel(index,subIndex),subItem.isShowPop=true">
酒店选择
</el-button>
</el-popover>
<!-- <el-select class='w120 sel' v-model='subItem.NewHotelId' filterable
:placeholder="$t('pub.pleaseSel')" @visible-change='getHotelList(subItem)' :placeholder="$t('pub.pleaseSel')" @visible-change='getHotelList(subItem)'
@change='sendValue(subItem)'> @change='sendValue(subItem)'>
<el-option v-for='itemHotel in subItem.hotelList' :label='itemHotel.Name' :value='itemHotel.ID' <el-option v-for='itemHotel in subItem.hotelList' :label='itemHotel.Name' :value='itemHotel.ID'
...@@ -127,14 +136,14 @@ ...@@ -127,14 +136,14 @@
<span style="float: left">{{itemHotel.Name}}</span> <span style="float: left">{{itemHotel.Name}}</span>
<span style="float: right; color:red; font-size: 13px">{{itemHotel.Inventory }}</span> <span style="float: right; color:red; font-size: 13px">{{itemHotel.Inventory }}</span>
</el-option> </el-option>
</el-select> </el-select> -->
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2" style="height:5px;"></td> <td colspan="2" style="height:5px;"></td>
</tr> </tr>
<tr> <tr>
<td width="70" style="text-align:right;"> <td width="70" style="text-align:right;">
供应商 供应商
</td> </td>
<td> <td>
...@@ -282,7 +291,7 @@ ...@@ -282,7 +291,7 @@
<el-tooltip class="item" effect="dark" content="新增" placement="top-start"> <el-tooltip class="item" effect="dark" content="新增" 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||index==0" class="item" effect="dark" content="删除" <el-tooltip v-if="item.HotelOrderList.length>1" class="item" effect="dark" content="删除"
placement="top-start"> 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>
...@@ -300,6 +309,7 @@ ...@@ -300,6 +309,7 @@
</div> </div>
</template> </template>
<script> <script>
import comCheckHotel from "../commonPage/comCheckHotel.vue";
export default { export default {
data() { data() {
return { return {
...@@ -327,9 +337,36 @@ ...@@ -327,9 +337,36 @@
IsOperation: '', IsOperation: '',
//供应商列表 //供应商列表
SupplierList: [], SupplierList: [],
ckedHotelId: 0,
ckedHotelName: '',
showHotelList: false,
findex: 0,
childIndex: 0,
} }
}, },
components: {
comCheckHotel
},
methods: { methods: {
childHotelList(ckedObj) {
this.list.forEach(x => {
x.HotelOrderList.forEach(y => {
y.isShowPop = false;
})
})
this.list[this.findex].HotelOrderList[this.childIndex].Address = ckedObj.Address;
this.list[this.findex].HotelOrderList[this.childIndex].NewHotelName = ckedObj.Name;
this.list[this.findex].HotelOrderList[this.childIndex].Tel = ckedObj.Tel;
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].PayStyleExt = ckedObj.PayStyle;
},
getChildHotel(index, subIndex) {
this.findex = index;
this.childIndex = subIndex;
let str = `comCheckHotel${index}${subIndex}`
this.$refs[str][0].getCheckHotel();
},
getItem(index, subIndex) { getItem(index, subIndex) {
this.checkedIndex = index this.checkedIndex = index
this.checkedsubIndex = subIndex this.checkedsubIndex = subIndex
...@@ -465,6 +502,8 @@ ...@@ -465,6 +502,8 @@
if (subItem.ReserveNo == '' || subItem.ReserveNo == null) { if (subItem.ReserveNo == '' || subItem.ReserveNo == null) {
subItem.ReserveNo = this.$route.query.NewCombinationNum; subItem.ReserveNo = this.$route.query.NewCombinationNum;
} }
subItem.isShowPop = false;
subItem.ckedHotelName = "";
}) })
}); });
this.list = list; this.list = list;
......
...@@ -140,6 +140,12 @@ ...@@ -140,6 +140,12 @@
element-loading-background="rgba(0, 0, 0, 0.7)"> element-loading-background="rgba(0, 0, 0, 0.7)">
<div class="contForm"> <div class="contForm">
<el-form :model="addMsg" ref="addMsg" label-position="right" :rules="rules" label-width="100px"> <el-form :model="addMsg" ref="addMsg" label-position="right" :rules="rules" label-width="100px">
<li>
<el-form-item label="身份证号码" prop="IdCard">
<el-input v-model="addMsg.IdCard" type="text" size=mini class="w230" maxlength="50" placeholder="请填写" @blur.prevent="authentication()">
</el-input>
</el-form-item>
</li>
<li> <li>
<el-form-item label="中文姓" prop="SurName"> <el-form-item label="中文姓" prop="SurName">
<el-input v-model='addMsg.SurName' class="w230" @input="Transformation(addMsg.SurName,'SurName')" <el-input v-model='addMsg.SurName' class="w230" @input="Transformation(addMsg.SurName,'SurName')"
...@@ -235,12 +241,7 @@ ...@@ -235,12 +241,7 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
</li> </li>
<li>
<el-form-item label="身份证号码" prop="IdCard">
<el-input v-model="addMsg.IdCard" type="text" size=mini class="w230" maxlength="50" placeholder="请填写">
</el-input>
</el-form-item>
</li>
<li> <li>
<el-form-item label="家庭详细地址" prop="AddressDetail"> <el-form-item label="家庭详细地址" prop="AddressDetail">
...@@ -1904,7 +1905,36 @@ ...@@ -1904,7 +1905,36 @@
err => {} err => {}
); );
}, },
authentication() {
if (this.$route.query.guestId == 0) {
this.apipost(
"sellorder_post_GetGusetByIDCard",
{IdCard: this.addMsg.IdCard,},
res => {
if (res.data.resultCode == 1) {
let obj = res.data.data;
this.addMsg = obj;
this.addMsg.Sex = obj.Sex.toString();
this.addMsg.Marriage = obj.Marriage.toString();
if (this.addMsg.Marriage == "0") {
this.addMsg.Marriage = "";
}
this.addMsg.IsCriminalRecord = obj.IsCriminalRecord === null ? '' : obj.IsCriminalRecord.toString();
this.addMsg.IsDepartureRecord = obj.IsDepartureRecord.toString();
this.addMsg.Id = this.$route.query.guestId;
this.addMsg.TCID = this.$route.query.TCID;
this.addMsg.OrderId = this.$route.query.orderId;
this.Roominformation() //调取下房间信息
} else {
this.$message.error(res.data.message);
}
},
err => {
}
);
}
}
}, },
mounted() { mounted() {
this.getCountry(); this.getCountry();
......
...@@ -531,6 +531,9 @@ ...@@ -531,6 +531,9 @@
<span slot="reference" class="price" style="cursor:pointer;text-decoration:underline;">酒店预订状况</span> <span slot="reference" class="price" style="cursor:pointer;text-decoration:underline;">酒店预订状况</span>
</el-popover> </el-popover>
</p> </p>
<p class="travelnowrap" v-if="item.LineID==14 && item.IsOpenHotel==1">
<span style="color:red;font-weight:bold;">※ 地接已关闭酒店操作,如需修改请联系地接OP.</span>
</p>
</div> </div>
</div> </div>
<div class="el-col" style="width:190px;"> <div class="el-col" style="width:190px;">
...@@ -1265,7 +1268,7 @@ ...@@ -1265,7 +1268,7 @@
}) })
} }
}); });
// console.log('this.queryCommonData', this.queryCommonData.dataList) console.log("this.queryCommonData.dataList",this.queryCommonData.dataList);
} }
}, },
err => {} err => {}
......
...@@ -559,7 +559,7 @@ ...@@ -559,7 +559,7 @@
} else if (obj.AirportPickUp == 13) { } else if (obj.AirportPickUp == 13) {
obj.PayType = 7; obj.PayType = 7;
} else { } else {
obj.PayType = 0; obj.PayType = 2;
} }
//高速付款方式默认现付 //高速付款方式默认现付
obj.HighSpeedPayType = 1; obj.HighSpeedPayType = 1;
...@@ -781,6 +781,7 @@ ...@@ -781,6 +781,7 @@
.length - 1]; .length - 1];
} }
let newPlanData = this.PlanTableData[index].BusPlanOrderList[subIndex]; let newPlanData = this.PlanTableData[index].BusPlanOrderList[subIndex];
newPlanData.AirportPickUp=oldPlanData.AirportPickUp;
newPlanData.DriverName = oldPlanData.DriverName; newPlanData.DriverName = oldPlanData.DriverName;
newPlanData.DriverTel = oldPlanData.DriverTel; newPlanData.DriverTel = oldPlanData.DriverTel;
newPlanData.BusNum = oldPlanData.BusNum; newPlanData.BusNum = oldPlanData.BusNum;
......
<style> <style>
.comCheckHotel{
padding-bottom:20px; .comCheckHotel .comCheckHotel {
border-bottom:1px solid #d1d1d1; width: 100%;
} height: 150px;
.comCheckHotel>div{ overflow: auto
float:left; }
width:120px;
border-right:1px solid #d1d1d1; .comCheckHotel .comCk_list {
height:200px; padding: 0 20px;
overflow: auto margin: 0 15px 5px 0;
} }
.comCheckHotel>div:last-child{
width:230px; .comCheckHotel .cm_Inventory {
border:none; margin-left: 20px;
} color: red;
.comCk_list{ display: inline-block;
cursor: pointer; }
padding:0 20px;
margin:0 15px 5px 0; .comCheckHotel .cm_hotelTitle {
} width: 100%;
.cm_Inventory{ text-align: center;
margin-left:20px; margin-bottom: 20px;
color:red; border-bottom: 1px solid #d1d1d1;
display: inline-block; padding: 0 20px 10px 20px;
} }
.cm_hotelTitle{
width:100%; .comCheckHotel .com_SaveBtn {
text-align: center; margin: 10px 20px 0 45%;
margin-bottom:20px; }
border-bottom: 1px solid #d1d1d1;
padding:0 20px 10px 20px; .comCheckHotel .ckedList {
} background-color: #E95252;
.com_SaveBtn{ color: #fff;
margin:10px 20px 0 45%; }
} .comCheckHotel .Ck_hotelInfo{
.ckedList{ width:100%;
background-color: #E95252; height:40px;
color:#fff; background-color: #F6F8FB;
} text-align: center;
line-height: 40px;
margin-bottom:10px;
}
.comCheckHotel .ck_goUrl{
color:blue;
cursor: pointer;
margin-left:10px;
}
</style> </style>
<template> <template>
<div class="comCheckHotel">
<div class="Ck_hotelInfo">
<span style="color:red">{{UseDate}}</span> 酒店库存信息
</div>
<div class="cm_hotelTitle">
地区筛选:
<el-select filterable v-model="ProvinceId" @change="getCheckHotel()" :placeholder="$t('pub.pleaseSel')">
<el-option label="不限" :value='0'></el-option>
<el-option v-for="item in ProvinceList" :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
</div>
<div> <div>
<div class="cm_hotelTitle">酒店信息</div> <el-tabs type="border-card" v-loading="loading" v-if="IsShow" >
<div class="clearfix comCheckHotel"> <el-tab-pane :label="item.ProvinceName" v-for="(item,index) in dataList" >
<div> <div class="clearfix comCheckHotel">
<div class="comCk_list" v-for="(item,index) in dataList" :class="{'ckedList':ckindexOne==index}" @click="getCityList(item),ckindexOne=index"> <div class="comCk_list" v-for="(subItem,subIndex) in item.HotelList">
{{item.ProvinceName}} <input type="checkbox" v-model="subItem.isChecked" @click="getCheck(item.HotelList,subIndex)"/>
</div> {{subItem.Name}}<span class="cm_Inventory">{{subItem.Inventory}}</span>
</div> <span class="ck_goUrl" @click="goUrl(subItem.ID)">新增库存</span>
<div> </div>
<div class="comCk_list" v-for="(item,index) in cityList" :class="{'ckedList':ckindexTwo==index}" @click="getHotelList(item),ckindexTwo=index"> </div>
{{item.CityName}} </el-tab-pane>
</div> </el-tabs>
</div>
<div>
<div class="comCk_list" v-for="item in HotelList">
<input type="checkbox" v-model="item.isChecked" @click="getCheck(item)" style=""/>
{{item.Name}}<span class="cm_Inventory">{{item.Inventory}}</span>
</div>
</div>
</div>
<input type="button" class="normalBtn com_SaveBtn" @click="sendCkedHotel()" value="保存"/>
</div> </div>
<input type="button" class="normalBtn com_SaveBtn" @click="sendCkedHotel()" value="保存" />
</div>
</template> </template>
<script> <script>
export default { export default {
// props:["sDate"], props: ["UseDate"],
data() { data() {
return { return {
dataList:[], loading:false,
cityList:[], dataList: [],
HotelList:[], ProvinceList: [],
ckindexOne:-1, ProvinceId: 0, //选择个省份编号
ckindexTwo:-1, IsShow:false,
ID:0, ckedHotel:{}
HotelName:'' };
}; },
}, methods: {
methods: { getCheckHotel() {
getCheckHotel(sDate){ this.loading=true;
this.$forceUpdate(); this.IsShow=false;
this.dataList = [];
this.HotelList = [];
this.apipost('hotel_post_GetHasStockHotelList_V2', { this.apipost('hotel_post_GetHasStockHotelList_V2', {
//1-只查询有库存的酒店 //1-只查询有库存的酒店
IsMoreThanZero: 0, IsMoreThanZero: 0,
Country: "651", Country: "651",
IsAllHotel: 1, IsAllHotel: 1,
sDate: sDate Province: this.ProvinceId,
sDate: this.UseDate
}, res => { }, res => {
this.loading=false;
this.IsShow=true;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
this.dataList.forEach(x=>{ this.dataList.forEach(x => {
x.cityList.forEach(y=>{ x.HotelList.forEach(y => {
y.HotelList.forEach(z=>{ y.isChecked = false;
z.isChecked=false;
})
})
}) })
console.log(this.dataList,'子组件'); })
} else { } else {
this.Error(res.data.message) this.Error(res.data.message)
} }
}, err => {}) }, err => {})
}, },
getCityList(item){ getCheck(hotelList, index) {
this.cityList = item.cityList; hotelList.forEach((x, subIndex) => {
this.HotelList = []; if (index == subIndex) {
x.isChecked = !x.isChecked;
this.ckedHotel = x;
} else {
x.isChecked = false;
}
})
this.$forceUpdate();
}, },
getHotelList(item){ //向父组件传递选中酒店
this.HotelList = item.HotelList; sendCkedHotel() {
var ckHotelObj = {};
if(this.ckedHotel){
ckHotelObj.ID = this.ckedHotel.ID;
ckHotelObj.Address = this.ckedHotel.Address;
ckHotelObj.Inventory = this.ckedHotel.Inventory;
ckHotelObj.Name = this.ckedHotel.Name;
ckHotelObj.PayStyle = this.ckedHotel.PayStyle;
ckHotelObj.Tel = this.ckedHotel.Tel;
}
this.$emit("childHotel", ckHotelObj);
}, },
getCheck(item){ //获取日本下面的市->下拉框用
this.HotelList.forEach(x=>{ getProvinceList() {
x.isChecked = false; let msg = {
}) Id: 651
item.isChecked = !item.isChecked; };
this.$forceUpdate(); this.apipost("dict_post_Destination_GetChildList", msg, res => {
if (res.data.resultCode == 1) {
this.ProvinceList = res.data.data;
} else {
this.Error(res.data.message);
}
},
err => {}
);
}, },
//向父组件传递选中酒店 goUrl(ID){
sendCkedHotel(){ this.$router.push({
console.log(this.dataList,'重选'); path: 'HotelProductManage2',
this.dataList.forEach(x=>{ query: {
x.cityList.forEach(y=>{ id: ID,
y.HotelList.forEach(z=>{ Country: 651,
if(z.isChecked){ IsSelfBook: 1,
this.ID = z.ID; blank: 'y',
this.HotelName = z.Name; tab: '报价详情'
} }
}) });
})
})
this.$emit("childHotel", this.ID,this.HotelName);
} }
}, },
mounted(){ mounted() {
this.getProvinceList();
}
};
}
};
</script> </script>
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
</td> </td>
<td> <td>
<div class="link"> <div class="link">
<p @click="goUrlT('productQuery',item.TCNUMS,'产品查询')">{{item.TCNUMS}}</p> <p @click="goUrlT('productQuery',item.TCNUMS,'产品查询')">{{item.TCNUMS}}({{item.TCID}})</p>
</div> </div>
</td> </td>
<td> <td>
...@@ -390,9 +390,17 @@ ...@@ -390,9 +390,17 @@
style="background:#00C6FF; border-color:#00C6FF"></el-button> style="background:#00C6FF; border-color:#00C6FF"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="联系OP" placement="top-start"> <el-tooltip class="item" effect="dark" content="联系OP" placement="top-start">
<el-button @click='openChart(item)' icon="iconfont icon-dianhua" type="primary" <el-button @click='openChart(item)' icon="iconfont icon-wechat" type="primary"
style="background:#6DD875; border-color:#6DD875"></el-button> style="background:#6DD875; border-color:#6DD875"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip v-if="item.LineId==14 && item.IsOpenHotel==0" class="item" effect="dark" content="关闭酒店操作" placement="top-start">
<el-button @click="SetIsOpenHotelService(1,item.TCID)"
style="background:#E95252; border-color:#E95252" icon="iconfont icon-suo" type="primary"
></el-button>
</el-tooltip>
<el-tooltip v-if="item.LineId==14 && item.IsOpenHotel==1" class="item" effect="dark" content="开启酒店操作" placement="top-start">
<el-button icon="iconfont icon-suo1" type="primary" style="background:green; border-color:green" @click="SetIsOpenHotelService(0,item.TCID)"></el-button>
</el-tooltip>
</el-button-group> </el-button-group>
</div> </div>
</td> </td>
...@@ -522,10 +530,24 @@ ...@@ -522,10 +530,24 @@
saveRemark() { saveRemark() {
this.apipost('dmcstatistics_post_SetDMCRemark', this.NumObj, res => { this.apipost('dmcstatistics_post_SetDMCRemark', this.NumObj, 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();
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message);
}
}, err => {})
},
//开启关闭酒店操作
SetIsOpenHotelService(status,TCID) {
this.apipost('dmcstatistics_post_SetIsOpenHotelService', {
TCID:TCID,
status:status
}, res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.getList();
} else {
this.$message.error(res.data.message);
} }
}, err => {}) }, err => {})
}, },
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
:TCNUM="TCNUM" id="firstAnchor" :LineList="LineList"></TravelConfig> :TCNUM="TCNUM" id="firstAnchor" :LineList="LineList"></TravelConfig>
<TravelDaysTripDirect id="secondAnchor" @headCallBack="getDaysTrip" :NoticeParameters="NoticeParameters" <TravelDaysTripDirect id="secondAnchor" @headCallBack="getDaysTrip" :NoticeParameters="NoticeParameters"
:subConfig="journeyList" :isOpenGroup="false" :IsDirect="PostConfig.IsDirect" v-bind:AllCityList="AllCityList" :subConfig="journeyList" :isOpenGroup="false" :IsDirect="PostConfig.IsDirect" v-bind:AllCityList="AllCityList"
v-bind:StartCity="StartCity" :UseTypeArray="UseTypeArray" :AirPickUp="AirPickUp" :AirSend="AirSend" @change="handlerChangeData" :TeamType="TeamType"></TravelDaysTripDirect> v-bind:StartCity="StartCity" :UseTypeArray="UseTypeArray" :AirPickUp="AirPickUp" :AirSend="AirSend" @change="handlerChangeData" :TeamType="TeamType" :IsOpenHotel="PostConfig.IsOpenHotel"></TravelDaysTripDirect>
<TravelFeature ref="TravelFeature" id="thirdAnchor" @featureCallBack="getFeature" :FeatureData="FeatureData" :TeamType="TeamType" <TravelFeature ref="TravelFeature" id="thirdAnchor" @featureCallBack="getFeature" :FeatureData="FeatureData" :TeamType="TeamType"
:isNewConfig="isNewConfig" @unlockFormCommit="unlockFormCommit"></TravelFeature> :isNewConfig="isNewConfig" @unlockFormCommit="unlockFormCommit"></TravelFeature>
<TravelNotice ref="TravelNotice" id="fourAnchor" @headCallBack="getNotice" :subArray="NoticeParameters" <TravelNotice ref="TravelNotice" id="fourAnchor" @headCallBack="getNotice" :subArray="NoticeParameters"
...@@ -125,6 +125,7 @@ ...@@ -125,6 +125,7 @@
//是否更新酒店库存 //是否更新酒店库存
IsUpdateHotel:0, IsUpdateHotel:0,
OpenTeamDescribe:"",//开团备注 OpenTeamDescribe:"",//开团备注
IsOpenHotel:0,//0可以添加删除酒店,1-不能修改酒店信息
}, },
//行程 //行程
FeatureData: { FeatureData: {
...@@ -652,6 +653,7 @@ ...@@ -652,6 +653,7 @@
//视频地址 //视频地址
this.PostConfig.VideoStr = tempData.VideoStr; this.PostConfig.VideoStr = tempData.VideoStr;
this.PostConfig.OpenTeamDescribe=tempData.OpenTeamDescribe; this.PostConfig.OpenTeamDescribe=tempData.OpenTeamDescribe;
this.PostConfig.IsOpenHotel=tempData.IsOpenHotel;
this.NoticeParameters.ConfigId = tempData.ConfigId; this.NoticeParameters.ConfigId = tempData.ConfigId;
this.NoticeParameters.CountryID = tempData.CountryID; this.NoticeParameters.CountryID = tempData.CountryID;
......
...@@ -864,10 +864,14 @@ ...@@ -864,10 +864,14 @@
</template> </template>
</table> </table>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="normalBtn" type="primary" @click="saveHoteluseDetail()" <button class="normalBtn" type="primary" @click="saveHoteluseDetail()" v-if="!(priceData.IsOpenHotel&&priceData.IsOpenHotel==1)"
:class="{'disClick':!isSaved}">{{btnText}}</button> &nbsp; :class="{'disClick':!isSaved}">{{btnText}}</button> &nbsp;
<button class="hollowFixedBtn" :class="{'disClick':!isSaved}" <button class="hollowFixedBtn" :class="{'disClick':!isSaved}"
@click="cancelHotelUseDetail()">{{$t('pub.cancelBtn')}}</button> @click="cancelHotelUseDetail()">{{$t('pub.cancelBtn')}}</button>
<template v-if="priceData.IsOpenHotel&&priceData.IsOpenHotel==1">
<br/>
<span style="color:red;font-weight:bold;" >※ 地接已关闭酒店操作,如需修改请联系地接OP.</span>
</template>
</div> </div>
</el-dialog> </el-dialog>
......
...@@ -104,12 +104,13 @@ ...@@ -104,12 +104,13 @@
v-model="HotelChooseArray" v-model="HotelChooseArray"
multiple :multiple-limit="TeamType==0?3:1" @visible-change="getHotelList($event)" multiple :multiple-limit="TeamType==0?3:1" @visible-change="getHotelList($event)"
@change="changeHotelList()" @change="changeHotelList()"
filterable placeholder="请选择"> filterable placeholder="请选择" :disabled="IsOpenHotel==1?true:false">
<el-option v-for="item in QHotelList" :label="item.Name" :value="item.ID" :key="item.ID"> <el-option v-for="item in QHotelList" :label="item.Name" :value="item.ID" :key="item.ID">
<span style="float: left">{{ getHotelItemLabel(item) }}</span> <span style="float: left">{{ getHotelItemLabel(item) }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.Inventory }}</span> <span style="float: right; color: #8492a6; font-size: 13px">{{ item.Inventory }}</span>
</el-option> </el-option>
</el-select> </el-select>
<span style="color:red;font-weight:bold;" v-if="IsOpenHotel==1">※ 地接已关闭酒店操作,如需修改请联系地接OP.</span>
<span v-if="dayObj.isRead&&IsDirect==1"> <span v-if="dayObj.isRead&&IsDirect==1">
<span v-for="item in hotelArray"> <span v-for="item in hotelArray">
{{item.HotelName}} {{item.HotelName}}
...@@ -129,7 +130,9 @@ ...@@ -129,7 +130,9 @@
</template> </template>
<script> <script>
export default { export default {
props: ["dayObj", "DayList", "CurrentIndex", "WarmTripDescribe", "IsDirect", "subConfig","TeamType"], props: ["dayObj", "DayList", "CurrentIndex", "WarmTripDescribe", "IsDirect", "subConfig","TeamType",
"IsOpenHotel" //0可以添加删除酒店,1-不能修改酒店信息
],
data() { data() {
return { return {
QHotelList: [], QHotelList: [],
......
...@@ -147,6 +147,7 @@ ...@@ -147,6 +147,7 @@
v-bind:subConfig="subConfig" v-bind:subConfig="subConfig"
@change="handlerChangeDateList" @change="handlerChangeDateList"
:TeamType="TeamType" :TeamType="TeamType"
:IsOpenHotel="IsOpenHotel"
></travelDaysTrip> ></travelDaysTrip>
</div> </div>
</div> </div>
...@@ -170,7 +171,8 @@ ...@@ -170,7 +171,8 @@
"AirPickUp", "AirPickUp",
"AirSend", "AirSend",
"NoticeParameters", "NoticeParameters",
"TeamType" "TeamType",
"IsOpenHotel" //0可以添加删除酒店,1-不能修改酒店信息
], ],
data() { data() {
return { return {
......
...@@ -229,7 +229,7 @@ ...@@ -229,7 +229,7 @@
</div> </div>
</div> </div>
<hotelTrip :dayObj="dayObj" :CurrentIndex="CurrentIndex" :DayList="DayList" :WarmTripDescribe="WarmTripDescribe" <hotelTrip :dayObj="dayObj" :CurrentIndex="CurrentIndex" :DayList="DayList" :WarmTripDescribe="WarmTripDescribe"
:IsDirect="NoticeParameters.IsDirect" :subConfig="subConfig" :TeamType="TeamType"></hotelTrip> :IsDirect="NoticeParameters.IsDirect" :subConfig="subConfig" :TeamType="TeamType" :IsOpenHotel="IsOpenHotel"></hotelTrip>
<div class="TD_OperaContent"> <div class="TD_OperaContent">
<div class="TD_ComIcon"> <div class="TD_ComIcon">
<i v-if="!dayObj.isRead" class="iconfont icon-chakan" @click="getRead"></i> <i v-if="!dayObj.isRead" class="iconfont icon-chakan" @click="getRead"></i>
...@@ -277,7 +277,8 @@ ...@@ -277,7 +277,8 @@
"DayList", //线路行程 "DayList", //线路行程
"NoticeParameters", "NoticeParameters",
"subConfig", "subConfig",
"TeamType" "TeamType",
"IsOpenHotel" //0可以添加删除酒店,1-不能修改酒店信息
], ],
data() { data() {
return { return {
......
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