Commit 82b53ddc authored by 黄奎's avatar 黄奎

报价单和国内线酒店修改

parent cb92bf27
...@@ -169,11 +169,12 @@ ...@@ -169,11 +169,12 @@
<template v-for="(item,index) in dataList"> <template v-for="(item,index) in dataList">
<template v-for="(subItem,subIndex) in item.HotelOrderList"> <template v-for="(subItem,subIndex) in item.HotelOrderList">
<tr v-for="(childItem,childIndex) in subItem.OrderDetailsList" :key="`h_`+index+subIndex+childIndex"> <tr v-for="(childItem,childIndex) in subItem.OrderDetailsList" :key="`h_`+index+subIndex+childIndex">
<td v-if="childIndex==0&&subIndex==0" :rowspan="6*item.HotelOrderList.length"> <td v-if="childIndex==0&&subIndex==0"
:rowspan="subItem.OrderDetailsList.length*item.HotelOrderList.length">
{{item.UseTimeStr}} {{item.UseTimeStr}}
</td> </td>
<!-- 酒店名称 --> <!-- 酒店名称 -->
<td v-if="childIndex==0" :rowspan="6"> <td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
<table class="hotelTable"> <table class="hotelTable">
<tr> <tr>
<td colspan="2"> <td colspan="2">
...@@ -223,21 +224,21 @@ ...@@ -223,21 +224,21 @@
</span> </span>
</td> </td>
<!-- 机位总数/(Y/E/F) --> <!-- 机位总数/(Y/E/F) -->
<td v-if="childIndex==0" :rowspan="6"> <td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
<p class="link" @click="goUrlT('RegistrationList',subItem.TCID,'报名清单')"> <p class="link" @click="goUrlT('RegistrationList',subItem.TCID,'报名清单')">
{{flightTotal}}/{{subItem.HouseStatistics.RealityYSeatNum}}/{{subItem.HouseStatistics.RealityESeatNum}}/{{subItem.HouseStatistics.RealityFSeatNum}} {{flightTotal}}/{{subItem.HouseStatistics.RealityYSeatNum}}/{{subItem.HouseStatistics.RealityESeatNum}}/{{subItem.HouseStatistics.RealityFSeatNum}}
</p> </p>
</td> </td>
<!-- 占床/不占床 --> <!-- 占床/不占床 -->
<td v-if="childIndex==0" :rowspan="6"> <td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
<p class="link" @click="goUrlT('passengerHouse',subItem.TCID,'房间分配')"> <p class="link" @click="goUrlT('passengerHouse',subItem.TCID,'房间分配')">
{{subItem.RealityHouseGuestNum}}/{{subItem.HouseStatistics.NoNeedBed}}</p> {{subItem.RealityHouseGuestNum}}/{{subItem.HouseStatistics.NoNeedBed}}</p>
</td> </td>
<!-- 实际用房数 --> <!-- 实际用房数 -->
<td v-if="childIndex==0" :rowspan="6"> <td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
{{subItem.RealityHouseTypeCount}} {{subItem.RealityHouseTypeCount}}
</td> </td>
<td v-if="childIndex==0" :rowspan="6"> <td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
<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">
...@@ -301,8 +302,8 @@ ...@@ -301,8 +302,8 @@
</td> </td>
<!-- 房间类型 --> <!-- 房间类型 -->
<td> <td>
{{subItem.HouseStatistics.HouseTypeList[childIndex].HouseTypeNameExt}} {{getHouseTypeName(subItem,childItem).HouseTypeNameExt}}
<template v-if="childIndex==4"> <!-- <template v-if="childIndex==4">
<template v-if="subItem.DriverGuideIsRebate==1"> <template v-if="subItem.DriverGuideIsRebate==1">
<br /><span style="color:green">{{$t('hotel.hotel_commission')}}</span> <br /><span style="color:green">{{$t('hotel.hotel_commission')}}</span>
</template> </template>
...@@ -312,7 +313,7 @@ ...@@ -312,7 +313,7 @@
</template> </template>
<template v-if="childIndex==5"> <template v-if="childIndex==5">
<br /><span style="color:red;">{{$t('ground.bufanyong')}}</span> <br /><span style="color:red;">{{$t('ground.bufanyong')}}</span>
</template> </template> -->
</td> </td>
<!-- 房间数 --> <!-- 房间数 -->
<td> <td>
...@@ -367,7 +368,7 @@ ...@@ -367,7 +368,7 @@
{{childItem.UnitPrice*(childItem.BookNum-childItem.HotelDiscount)}} {{childItem.UnitPrice*(childItem.BookNum-childItem.HotelDiscount)}}
</td> </td>
<!-- 返佣类型 --> <!-- 返佣类型 -->
<td style="white-space:nowrap;" v-if="childIndex==0" :rowspan="6"> <td style="white-space:nowrap;" v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
<template v-if="subItem.RebateType==1"> <template v-if="subItem.RebateType==1">
<span style="color:green">{{$t('ground.hanshui')}}</span> <span style="color:green">{{$t('ground.hanshui')}}</span>
</template> </template>
...@@ -415,11 +416,11 @@ ...@@ -415,11 +416,11 @@
</template> </template>
</td> </td>
<!-- 金额总计 --> <!-- 金额总计 -->
<td v-if="childIndex==0" :rowspan="6" style="white-space:nowrap;"> <td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length" style="white-space:nowrap;">
{{subItem.TotalPrice}} {{subItem.TotalPrice}}
</td> </td>
<!-- 付款方式 --> <!-- 付款方式 -->
<td v-if="childIndex==0" :rowspan="6"> <td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
<table class="hotelTable"> <table class="hotelTable">
<tr> <tr>
<td width="70" style="text-align:right;">{{$t('hotel.hotel_Currency')}}:</td> <td width="70" style="text-align:right;">{{$t('hotel.hotel_Currency')}}:</td>
...@@ -512,7 +513,7 @@ ...@@ -512,7 +513,7 @@
<el-option :label="$t('ground.lingduidydf')" :value='10'></el-option> <el-option :label="$t('ground.lingduidydf')" :value='10'></el-option>
<el-option :label="$t('ground.shuaka')" :value='11'></el-option> <el-option :label="$t('ground.shuaka')" :value='11'></el-option>
<el-option :label="$t('objFill.zhuanzhang')" :value='14'></el-option> <el-option :label="$t('objFill.zhuanzhang')" :value='14'></el-option>
<el-option :label="$t('ground.enterpriseAlipay')"  :value='15'></el-option> <el-option :label="$t('ground.enterpriseAlipay')" :value='15'></el-option>
</el-select> </el-select>
</td> </td>
</tr> </tr>
...@@ -591,7 +592,7 @@ ...@@ -591,7 +592,7 @@
</table> </table>
</td> </td>
<!-- 操作 --> <!-- 操作 -->
<td v-if="childIndex==0" :rowspan="6"> <td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
<template v-if="subItem.OPState==1"> <template v-if="subItem.OPState==1">
<span class="Hotel_red">{{$t('salesModule.OPZD')}}</span> <span class="Hotel_red">{{$t('salesModule.OPZD')}}</span>
</template> </template>
...@@ -771,6 +772,18 @@ ...@@ -771,6 +772,18 @@
setHotelStock, setHotelStock,
}, },
methods: { methods: {
getHouseTypeName(subItem, childItem) {
var obj = {};
if (subItem && subItem.HouseStatistics && subItem.HouseStatistics.HouseTypeList && subItem.HouseStatistics
.HouseTypeList.length > 0) {
subItem.HouseStatistics.HouseTypeList.forEach(hItem => {
if (hItem.HouseType == childItem.HouseType) {
obj = hItem;
}
})
}
return obj;
},
//订房状态切换 //订房状态切换
changeState(subItem) { changeState(subItem) {
if (subItem.DMCState == 1) { if (subItem.DMCState == 1) {
......
...@@ -144,9 +144,9 @@ ...@@ -144,9 +144,9 @@
</td> </td>
<td> <td>
<template v-if="LineId==90"> <template v-if="LineId==90">
<el-select v-model="subItem.BookStyle" :placeholder="$t('pub.pleaseSel')" class='w135 sel'> <el-select v-model="subItem.BookStyle" :placeholder="$t('pub.pleaseSel')" class='sel' style="width:80px;">
<el-option :value="0" label="按人数预定"></el-option> <el-option :value="0" label="人数"></el-option>
<el-option :value="1" label="按桌预定"></el-option> <el-option :value="1" label="桌数"></el-option>
</el-select> </el-select>
</template> </template>
<template v-else> <template v-else>
......
...@@ -60,6 +60,13 @@ ...@@ -60,6 +60,13 @@
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
/* 在你的组件样式中 */
.CostNewPrice .custom-label-color .el-form-item__label {
color: #ff4949 !important;
font-weight: bold !important;
/* 修改为你需要的颜色 */
}
</style> </style>
<template> <template>
...@@ -389,6 +396,8 @@ ...@@ -389,6 +396,8 @@
<tr> <tr>
<td colspan="13">{{$t('objFill.qitacbrmb')}}</td> <td colspan="13">{{$t('objFill.qitacbrmb')}}</td>
</tr> </tr>
<template>
</template>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<el-form-item :label="$t('active.cl_jipiao')" label-position="right"> <el-form-item :label="$t('active.cl_jipiao')" label-position="right">
...@@ -420,7 +429,6 @@ ...@@ -420,7 +429,6 @@
@keyup.native="checkPrice(teamPrice,'UnionPrice'),getchange()"></el-input> @keyup.native="checkPrice(teamPrice,'UnionPrice'),getchange()"></el-input>
</el-form-item> </el-form-item>
</td> </td>
<td colspan="4" rowspan="2"> <td colspan="4" rowspan="2">
{{$t('objFill.xiaojijpzdsjly')}}: {{$t('objFill.xiaojijpzdsjly')}}:
<br /> {{getOtherCostMoney()}} <br /> {{getOtherCostMoney()}}
...@@ -476,16 +484,8 @@ ...@@ -476,16 +484,8 @@
</el-form-item> </el-form-item>
</td> </td>
<td colspan="2"> <td colspan="2">
<el-form-item :label="$t('Operation.Op_childNobed')"> <el-form-item :label="$t('salesModule.DJNum')" class="custom-label-color">
<el-input placeholder="" v-model="teamPrice.ChildNoNeedPrice" <el-input placeholder="" v-model="offerDataObj.DMCNum" class="w150">
@keyup.native="checkInteger(teamPrice,'ChildNoNeedPrice')" class="w70">
</el-input>
</el-form-item>
</td>
<td colspan="2">
<el-form-item :label="$t('Operation.Op_childBed')">
<el-input placeholder="" v-model="teamPrice.ChildNeedPrice"
@keyup.native="checkInteger(teamPrice,'ChildNeedPrice')" class="w70">
</el-input> </el-input>
</el-form-item> </el-form-item>
</td> </td>
...@@ -496,13 +496,27 @@ ...@@ -496,13 +496,27 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
</td> </td>
<td colspan="4"> <td colspan="2">
<el-form-item :label="$t('objFill.dandijjg')"> <el-form-item :label="$t('objFill.dandijjg')">
<el-input placeholder="" v-model="teamPrice.SingleDMCTCPrice" <el-input placeholder="" v-model="teamPrice.SingleDMCTCPrice"
@keyup.native="checkPrice(teamPrice,'SingleDMCTCPrice')" class="w70"> @keyup.native="checkPrice(teamPrice,'SingleDMCTCPrice')" class="w70">
</el-input> </el-input>
</el-form-item> </el-form-item>
</td> </td>
<td colspan="2">
<el-form-item :label="$t('Operation.Op_childNobed')">
<el-input placeholder="" v-model="teamPrice.ChildNoNeedPrice"
@keyup.native="checkInteger(teamPrice,'ChildNoNeedPrice')" class="w70">
</el-input>
</el-form-item>
</td>
<td colspan="2">
<el-form-item :label="$t('Operation.Op_childBed')">
<el-input placeholder="" v-model="teamPrice.ChildNeedPrice"
@keyup.native="checkInteger(teamPrice,'ChildNeedPrice')" class="w70">
</el-input>
</el-form-item>
</td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">
...@@ -577,7 +591,6 @@ ...@@ -577,7 +591,6 @@
</td> </td>
<td> <td>
{{$t('objFill.tongyexsjg')}} {{$t('objFill.tongyexsjg')}}
<br /> <br />
<!--台湾印象和日本印象--> <!--台湾印象和日本印象-->
<template v-if="postConfig.OutBranchId==1218||postConfig.OutBranchId==1220"> <template v-if="postConfig.OutBranchId==1218||postConfig.OutBranchId==1220">
...@@ -684,25 +697,40 @@ ...@@ -684,25 +697,40 @@
<travelDinner v-if="isShowDiningDig" :qMsg="qMsg" @chooseDinner="chooseDinner" @closeDinner="closeDialog" <travelDinner v-if="isShowDiningDig" :qMsg="qMsg" @chooseDinner="chooseDinner" @closeDinner="closeDialog"
:otherDinner="otherDinner" :breakFirstList="breakFirstList"></travelDinner> :otherDinner="otherDinner" :breakFirstList="breakFirstList"></travelDinner>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import travelDinner from '@/components/commonPage/travelDinner' import travelDinner from '@/components/commonPage/travelDinner'
export default { export default {
props: ["postConfig", "AllCurrencyList"], props: ["postConfig", "AllCurrencyList", "offerSelectDate"],
watch: { watch: {
postConfig: {
handler: function (val, oldVal) {
if (val != oldVal) {
this.getOfferItemObj(1);
}
},
deep: true
},
offerSelectDate: {
handler: function (val, oldVal) {
if (val != oldVal) {
this.getOfferItemObj(2);
}
},
deep: true
}
}, },
data() { data() {
return { return {
dayCostPriceList: this.postConfig.OfferArray[0].dayCostPriceList, dayCostPriceList: this.postConfig.dayCostPriceList,
otherPrice: this.postConfig.OfferArray[0].otherPrice, otherPrice: {},
teamPrice: this.postConfig.OfferArray[0].teamPrice, teamPrice: {},
CostNumberList: this.postConfig.OfferArray[0].CostNumberList, CostNumberList: [],
CurrencyNumberListExt: this.postConfig.OfferArray[0].CurrencyNumberListExt, CurrencyNumberListExt: this.postConfig.OfferArray[0].CurrencyNumberListExt,
CostCurrencyList: this.postConfig.OfferArray[0].CostCurrencyList, CostCurrencyList: this.postConfig.OfferArray[0].CostCurrencyList,
offerDataObj: {},
//下拉框默认值 //下拉框默认值
defaultSelect: 0, defaultSelect: 0,
//币种下拉 //币种下拉
...@@ -745,6 +773,24 @@ ...@@ -745,6 +773,24 @@
travelDinner: travelDinner, travelDinner: travelDinner,
}, },
methods: { methods: {
//获取选中的日期
getOfferItemObj(type) {
var selectOfferObj = {};
if (this.postConfig && this.postConfig.OfferArray && this.postConfig.OfferArray.length > 0) {
selectOfferObj = this.postConfig.OfferArray.find((qitem) => {
return qitem.OutDateTime == this.offerSelectDate
})
}
if (selectOfferObj) {
this.otherPrice = selectOfferObj.otherPrice;
this.teamPrice = selectOfferObj.teamPrice;
this.CostNumberList = selectOfferObj.CostNumberList;
this.offerDataObj = selectOfferObj;
}
this.getchange()
this.getSubMoney();
return selectOfferObj;
},
changeTicket(subItem) { changeTicket(subItem) {
if (subItem.TicketSourceList && subItem.TicketSourceList.length > 0) { if (subItem.TicketSourceList && subItem.TicketSourceList.length > 0) {
var changeObj = subItem.TicketSourceList.find(qitem => qitem.TicketId == subItem.TicketId); var changeObj = subItem.TicketSourceList.find(qitem => qitem.TicketId == subItem.TicketId);
...@@ -817,8 +863,8 @@ ...@@ -817,8 +863,8 @@
}, },
GetDayStr(dayNum) { GetDayStr(dayNum) {
var str = ""; var str = "";
if (this.postConfig.OutDateTime && this.postConfig.OutDateTime != '') { if (this.offerSelectDate && this.offerSelectDate != '') {
var dateFormat = new Date(this.postConfig.OutDateTime); var dateFormat = new Date(this.offerSelectDate);
dateFormat = dateFormat.setDate(dateFormat.getDate() + dayNum); dateFormat = dateFormat.setDate(dateFormat.getDate() + dayNum);
dateFormat = new Date(dateFormat); dateFormat = new Date(dateFormat);
let y = dateFormat.getFullYear() let y = dateFormat.getFullYear()
...@@ -843,7 +889,6 @@ ...@@ -843,7 +889,6 @@
this.initHotel(query, subItem) this.initHotel(query, subItem)
} else { } else {
subItem.HotelList = [] subItem.HotelList = []
} }
}, },
//景点搜索 //景点搜索
...@@ -989,7 +1034,6 @@ ...@@ -989,7 +1034,6 @@
} }
}) })
} }
//xiaoJi += Number(item.ScenicCostPrice) * Number(currencyRate);
} }
//餐合计 //餐合计
if (type == 4) { if (type == 4) {
...@@ -1138,6 +1182,7 @@ ...@@ -1138,6 +1182,7 @@
}, },
//添加人数费用 //添加人数费用
addPeoNunber() { addPeoNunber() {
var that = this;
var PeopleNumber = this.priceObj.priceNum; var PeopleNumber = this.priceObj.priceNum;
if (PeopleNumber == "") { if (PeopleNumber == "") {
this.Info(this.$t('objFill.v101.SalesModule.col2.t4')); this.Info(this.$t('objFill.v101.SalesModule.col2.t4'));
...@@ -1156,6 +1201,13 @@ ...@@ -1156,6 +1201,13 @@
var CostNumberObj = this.$tripUtils.CostNumber(); var CostNumberObj = this.$tripUtils.CostNumber();
CostNumberObj.PeopleNumber = PeopleNumber; CostNumberObj.PeopleNumber = PeopleNumber;
this.CostNumberList.push(CostNumberObj); this.CostNumberList.push(CostNumberObj);
if (this.postConfig && this.postConfig.OfferArray && this.postConfig.OfferArray.length > 0) {
this.postConfig.OfferArray.forEach(rItem => {
if (rItem.OutDateTime != this.offerSelectDate) {
rItem.CostNumberList = JSON.parse(JSON.stringify(that.CostNumberList))
}
})
}
this.CurrencyNumberListExt.forEach(x => { this.CurrencyNumberListExt.forEach(x => {
var CurrencyNumberObj = this.$tripUtils.CurrencyNumber(); var CurrencyNumberObj = this.$tripUtils.CurrencyNumber();
CurrencyNumberObj.CurrencyId = x.Key; CurrencyNumberObj.CurrencyId = x.Key;
...@@ -1173,7 +1225,13 @@ ...@@ -1173,7 +1225,13 @@
}, },
//删除人数 //删除人数
DeletePNumber(index) { DeletePNumber(index) {
var that = this;
this.CostNumberList.splice(index, 1); this.CostNumberList.splice(index, 1);
if (this.postConfig && this.postConfig.OfferArray && this.postConfig.OfferArray.length > 0) {
this.postConfig.OfferArray.forEach(rItem => {
rItem.CostNumberList = JSON.parse(JSON.stringify(that.CostNumberList));
})
}
}, },
//人数排序 //人数排序
shortPeopleNumber() { shortPeopleNumber() {
...@@ -1259,8 +1317,9 @@ ...@@ -1259,8 +1317,9 @@
tempPrice = Number(that.getLocalMoney(x.PeopleNumber)); tempPrice = Number(that.getLocalMoney(x.PeopleNumber));
}); });
} }
this.teamPrice.SingleDMCPrice = tempPrice.toFixed(0);
if (this.teamPrice.SingleDMCPrice <= 0 || (type && type == 1)) { if (this.teamPrice.SingleDMCPrice <= 0 || (type && type == 1)) {
this.teamPrice.SingleDMCPrice = tempPrice.toFixed(0); //this.teamPrice.SingleDMCPrice = tempPrice.toFixed(0);
} }
this.getSubMoney(); this.getSubMoney();
}, },
...@@ -1304,6 +1363,7 @@ ...@@ -1304,6 +1363,7 @@
created() { created() {
this.getEmployeeList(); this.getEmployeeList();
this.getConfigDinnerList(); this.getConfigDinnerList();
this.getOfferItemObj(0);
} }
}; };
......
...@@ -12,8 +12,7 @@ ...@@ -12,8 +12,7 @@
<template> <template>
<div class="DirectQuotation clearfix" v-loading="loading"> <div class="DirectQuotation clearfix" v-loading="loading">
<div class="singlePrice clearfix"> <div class="singlePrice clearfix">
<CostNewPriceAudit v-if="haveData" ref="CostNewPrice" :postConfig="postData" :OfferArray="OfferArray" <CostNewPriceAudit v-if="haveData" ref="CostNewPrice" :postConfig="postData" :IsEdit="IsEdit"></CostNewPriceAudit>
:IsEdit="IsEdit"></CostNewPriceAudit>
</div> </div>
</div> </div>
</template> </template>
...@@ -23,9 +22,6 @@ ...@@ -23,9 +22,6 @@
data() { data() {
return { return {
haveData: false, haveData: false,
OfferArray: [],
ConfigID: 0,
IsShow: false,
//基本配置 //基本配置
postData: { postData: {
ID: 0, ID: 0,
...@@ -87,8 +83,8 @@ ...@@ -87,8 +83,8 @@
OpAuditDate: "", //印尼团 OP审核时间 OpAuditDate: "", //印尼团 OP审核时间
OpAuditContent: "", //印尼团OP审核备注 OpAuditContent: "", //印尼团OP审核备注
OpAuditStatus: "", //印尼团OP审核状态 OpAuditStatus: "", //印尼团OP审核状态
OfferArray: [],
}, },
isSubmit: true,
loading: false, loading: false,
IsEdit: 0, IsEdit: 0,
}; };
...@@ -131,6 +127,7 @@ ...@@ -131,6 +127,7 @@
}); });
}, },
getPostData() { getPostData() {
this.haveData = false;
let BatchNum = ""; let BatchNum = "";
let offerid = 0; let offerid = 0;
if (this.$route.query.BatchNum) { if (this.$route.query.BatchNum) {
...@@ -145,10 +142,11 @@ ...@@ -145,10 +142,11 @@
}; };
this.loading = true; this.loading = true;
this.apipost( this.apipost(
"travel_get_GetMyTravelInfo_V5", "travel_get_PriceOfferInfo",
msg, msg,
res => { res => {
this.loading = false; this.loading = false;
console.log("travel_get_PriceOfferInfo",res.data);
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
if (tempData.ID && tempData.ID > 0) { if (tempData.ID && tempData.ID > 0) {
...@@ -160,18 +158,7 @@ ...@@ -160,18 +158,7 @@
if (tempData.LineteamId && tempData.LineteamId > 0) { if (tempData.LineteamId && tempData.LineteamId > 0) {
this.postData.LineteamId = tempData.LineteamId; this.postData.LineteamId = tempData.LineteamId;
} }
if (tempData.CSeat && tempData.CSeat > 0) {
this.postData.CSeat = tempData.CSeat;
}
if (tempData.FSeat && tempData.FSeat > 0) {
this.postData.FSeat = tempData.FSeat;
}
if (tempData.YSeat && tempData.YSeat > 0) {
this.postData.YSeat = tempData.YSeat;
}
if (tempData.LowNum && tempData.LowNum > 0) {
this.postData.LowNum = tempData.LowNum;
}
if (tempData.Title && tempData.Title != '') { if (tempData.Title && tempData.Title != '') {
this.postData.Title = tempData.Title; this.postData.Title = tempData.Title;
} }
...@@ -267,9 +254,8 @@ ...@@ -267,9 +254,8 @@
this.postData.PriceTeamTypeName = tempData.PriceTeamTypeName; this.postData.PriceTeamTypeName = tempData.PriceTeamTypeName;
this.postData.PriceTeamType = tempData.PriceTeamType; this.postData.PriceTeamType = tempData.PriceTeamType;
if (tempData.OfferArray) { if (tempData.OfferArray) {
tempData.OfferArray.forEach(item => { this.postData.OfferArray = tempData.OfferArray;
this.OfferArray.push(item)
})
} }
this.haveData = true; this.haveData = true;
} else { } else {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="switchDiv clearfix" style="width:98%;"> <div class="switchDiv clearfix" style="width:98%;">
<div class="DirectPriceCenter"> <div class="DirectPriceCenter">
<div class="singlePrice clearfix" v-loading="loading"> <div class="singlePrice clearfix" v-loading="loading">
<CostNewPriceAudit v-if="haveData" ref="CostNewPrice" :postConfig="postData" :OfferArray="OfferArray" <CostNewPriceAudit v-if="haveData" ref="CostNewPrice" :postConfig="postData"
:IsEdit="0"> :IsEdit="0">
</CostNewPriceAudit> </CostNewPriceAudit>
</div> </div>
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
data() { data() {
return { return {
haveData: false, haveData: false,
OfferArray: [],
//基本配置 //基本配置
postData: { postData: {
ID: 0, ID: 0,
...@@ -74,6 +73,7 @@ ...@@ -74,6 +73,7 @@
AssistantList: [], //助理OP AssistantList: [], //助理OP
PriceTeamType: 0, //团队类型, PriceTeamType: 0, //团队类型,
PriceTeamTypeName: "", //团队类型, PriceTeamTypeName: "", //团队类型,
OfferArray: [],
}, },
loading: false loading: false
}; };
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
this.haveData = false; this.haveData = false;
this.loading = true; this.loading = true;
this.apipost( this.apipost(
"travel_get_GetMyTravelInfo_V4", "travel_get_PriceOfferInfo",
msg, msg,
res => { res => {
this.loading = false; this.loading = false;
...@@ -106,18 +106,7 @@ ...@@ -106,18 +106,7 @@
if (tempData.LineteamId && tempData.LineteamId > 0) { if (tempData.LineteamId && tempData.LineteamId > 0) {
this.postData.LineteamId = tempData.LineteamId; this.postData.LineteamId = tempData.LineteamId;
} }
if (tempData.CSeat && tempData.CSeat > 0) {
this.postData.CSeat = tempData.CSeat;
}
if (tempData.FSeat && tempData.FSeat > 0) {
this.postData.FSeat = tempData.FSeat;
}
if (tempData.YSeat && tempData.YSeat > 0) {
this.postData.YSeat = tempData.YSeat;
}
if (tempData.LowNum && tempData.LowNum > 0) {
this.postData.LowNum = tempData.LowNum;
}
if (tempData.Title && tempData.Title != '') { if (tempData.Title && tempData.Title != '') {
this.postData.Title = tempData.Title; this.postData.Title = tempData.Title;
} }
...@@ -183,9 +172,7 @@ ...@@ -183,9 +172,7 @@
this.postData.PriceTeamTypeName = tempData.PriceTeamTypeName; this.postData.PriceTeamTypeName = tempData.PriceTeamTypeName;
this.postData.PriceTeamType = tempData.PriceTeamType; this.postData.PriceTeamType = tempData.PriceTeamType;
if (tempData.OfferArray) { if (tempData.OfferArray) {
tempData.OfferArray.forEach(item => { this.postData.OfferArray = tempData.OfferArray;
this.OfferArray.push(item)
})
} }
this.haveData = true; this.haveData = true;
} else { } else {
......
...@@ -195,13 +195,11 @@ ...@@ -195,13 +195,11 @@
<td width="80" class="txtRightCost">{{$t('hotel.hotel_choostDate')}}</td> <td width="80" class="txtRightCost">{{$t('hotel.hotel_choostDate')}}</td>
<td colspan="5"> <td colspan="5">
<template v-if="postData.OutDateTimeList&&postData.OutDateTimeList.length>0"> <template v-if="postData.OutDateTimeList&&postData.OutDateTimeList.length>0">
<el-tooltip class="item" effect="dark" content="点击切换" placement="top"> <el-tag v-for="(item,oIndex) in postData.OutDateTimeList" :key="item" closable
<el-tag v-for="(item,oIndex) in postData.OutDateTimeList" :key="item" closable style="margin-right:5px;cursor:pointer;" @close="handleClose(item,oIndex)"
style="margin-right:5px;cursor:pointer;" @close="handleClose(item,oIndex)" :class="item==selectDate?'offer_select-tag': ''" @click="switchOffer(item)">
:class="item==selectDate?'offer_select-tag': ''" @click="switchOffer(item)"> {{item}}
{{item}} </el-tag>
</el-tag>
</el-tooltip>
</template> </template>
</td> </td>
</tr> </tr>
...@@ -303,7 +301,10 @@ ...@@ -303,7 +301,10 @@
changeDate() { changeDate() {
var that = this; var that = this;
if (this.postData.OutDateTimeList && this.postData.OutDateTimeList.length > 0) { if (this.postData.OutDateTimeList && this.postData.OutDateTimeList.length > 0) {
var rootObj = this.postData.OfferArray[0]; var rootObj = null;
if (this.postData.OfferArray && this.postData.OfferArray.length > 0) {
rootObj = this.postData.OfferArray[0]
}
this.postData.OutDateTimeList.forEach(subItem => { this.postData.OutDateTimeList.forEach(subItem => {
var tempObj = that.getOfferObj(); var tempObj = that.getOfferObj();
tempObj.OutDateTime = subItem; tempObj.OutDateTime = subItem;
...@@ -312,12 +313,21 @@ ...@@ -312,12 +313,21 @@
}) })
//第一个报价在添加日期的 //第一个报价在添加日期的
if (!existsObj) { if (!existsObj) {
tempObj = JSON.parse(JSON.stringify(rootObj)); if (rootObj) {
tempObj = JSON.parse(JSON.stringify(rootObj));
}
tempObj.OutDateTime = subItem; tempObj.OutDateTime = subItem;
that.postData.OfferArray.push(tempObj); that.postData.OfferArray.push(tempObj);
} }
this.switchOffer(tempObj.OutDateTime);
}); });
if (this.postData && this.postData.OfferArray && this.postData.OfferArray.length > 0) {
if (this.postData.BatchNum == '') {
that.switchOffer(this.postData.OfferArray[0].OutDateTime)
} else {
var lastItem = this.postData.OfferArray[this.postData.OfferArray.length - 1];
that.switchOffer(lastItem.OutDateTime)
}
}
} }
}, },
//获取报价单对象 //获取报价单对象
...@@ -418,9 +428,7 @@ ...@@ -418,9 +428,7 @@
this.apipost( this.apipost(
"travel_post_RemoveTravelOffer", postMsg, "travel_post_RemoveTravelOffer", postMsg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {}
}
}); });
this.postData.OutDateTimeList.splice(index, 1); this.postData.OutDateTimeList.splice(index, 1);
} else { } else {
...@@ -607,7 +615,6 @@ ...@@ -607,7 +615,6 @@
this.getPostData(); this.getPostData();
}, },
getPostData() { getPostData() {
this.haveData = false;
let offerId = 0; let offerId = 0;
if (this.$route.query.offerid) { if (this.$route.query.offerid) {
offerId = this.$route.query.offerid; offerId = this.$route.query.offerid;
...@@ -677,9 +684,8 @@ ...@@ -677,9 +684,8 @@
this.postData.AssistantList.push(aItem.Id); this.postData.AssistantList.push(aItem.Id);
}) })
} }
this.selectDate = tempData.OfferArray[0].OutDateTime; this.switchOffer(tempData.OfferArray[0].OutDateTime);
} }
this.haveData = true;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -422,7 +422,6 @@ ...@@ -422,7 +422,6 @@
@keyup.native="checkPrice(teamPrice,'UnionPrice'),getchange()"></el-input> @keyup.native="checkPrice(teamPrice,'UnionPrice'),getchange()"></el-input>
</el-form-item> </el-form-item>
</td> </td>
<td colspan="4" rowspan="2"> <td colspan="4" rowspan="2">
{{$t('objFill.xiaojijpzdsjly')}}: {{$t('objFill.xiaojijpzdsjly')}}:
<br /> {{getOtherCostMoney()}} <br /> {{getOtherCostMoney()}}
...@@ -512,7 +511,6 @@ ...@@ -512,7 +511,6 @@
</el-form-item> </el-form-item>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<el-form-item :label="$t('Operation.Op_zhu')+`OP`"> <el-form-item :label="$t('Operation.Op_zhu')+`OP`">
...@@ -770,19 +768,17 @@ ...@@ -770,19 +768,17 @@
methods: { methods: {
//获取选中的日期 //获取选中的日期
getOfferItemObj(type) { getOfferItemObj(type) {
console.log("getOfferItemObj_" + type, this.postConfig);
var selectOfferObj = {}; var selectOfferObj = {};
if (this.postConfig && this.postConfig.OfferArray && this.postConfig.OfferArray.length > 0) { if (this.postConfig && this.postConfig.OfferArray && this.postConfig.OfferArray.length > 0) {
selectOfferObj = this.postConfig.OfferArray.find((qitem) => { selectOfferObj = this.postConfig.OfferArray.find((qitem) => {
return qitem.OutDateTime == this.offerSelectDate return qitem.OutDateTime == this.offerSelectDate
}) })
} }
console.log("selectOfferObj_" + type, selectOfferObj);
if (selectOfferObj) { if (selectOfferObj) {
this.otherPrice = selectOfferObj.otherPrice; this.otherPrice = selectOfferObj.otherPrice;
this.teamPrice = selectOfferObj.teamPrice; this.teamPrice = selectOfferObj.teamPrice;
this.CostNumberList = selectOfferObj.CostNumberList; this.CostNumberList = selectOfferObj.CostNumberList;
this.offerDataObj=selectOfferObj; this.offerDataObj = selectOfferObj;
} }
return selectOfferObj; return selectOfferObj;
}, },
...@@ -1177,6 +1173,7 @@ ...@@ -1177,6 +1173,7 @@
}, },
//添加人数费用 //添加人数费用
addPeoNunber() { addPeoNunber() {
var that = this;
var PeopleNumber = this.priceObj.priceNum; var PeopleNumber = this.priceObj.priceNum;
if (PeopleNumber == "") { if (PeopleNumber == "") {
this.Info(this.$t('objFill.v101.SalesModule.col2.t4')); this.Info(this.$t('objFill.v101.SalesModule.col2.t4'));
...@@ -1195,7 +1192,13 @@ ...@@ -1195,7 +1192,13 @@
var CostNumberObj = this.$tripUtils.CostNumber(); var CostNumberObj = this.$tripUtils.CostNumber();
CostNumberObj.PeopleNumber = PeopleNumber; CostNumberObj.PeopleNumber = PeopleNumber;
this.CostNumberList.push(CostNumberObj); this.CostNumberList.push(CostNumberObj);
if (this.postConfig && this.postConfig.OfferArray && this.postConfig.OfferArray.length > 0) {
this.postConfig.OfferArray.forEach(rItem => {
if (rItem.OutDateTime != this.offerSelectDate) {
rItem.CostNumberList = JSON.parse(JSON.stringify(that.CostNumberList))
}
})
}
this.CurrencyNumberListExt.forEach(x => { this.CurrencyNumberListExt.forEach(x => {
var CurrencyNumberObj = this.$tripUtils.CurrencyNumber(); var CurrencyNumberObj = this.$tripUtils.CurrencyNumber();
CurrencyNumberObj.CurrencyId = x.Key; CurrencyNumberObj.CurrencyId = x.Key;
...@@ -1213,7 +1216,13 @@ ...@@ -1213,7 +1216,13 @@
}, },
//删除人数 //删除人数
DeletePNumber(index) { DeletePNumber(index) {
var that = this;
this.CostNumberList.splice(index, 1); this.CostNumberList.splice(index, 1);
if (this.postConfig && this.postConfig.OfferArray && this.postConfig.OfferArray.length > 0) {
this.postConfig.OfferArray.forEach(rItem => {
rItem.CostNumberList = JSON.parse(JSON.stringify(that.CostNumberList));
})
}
}, },
//人数排序 //人数排序
shortPeopleNumber() { shortPeopleNumber() {
......
...@@ -348,12 +348,12 @@ ...@@ -348,12 +348,12 @@
</td> </td>
<td> <td>
<div class="fz16 fbold linkspan" <div class="fz16 fbold linkspan"
@click="goUrl([131,14, 90,118].includes(item.LineId) ? 'roomReservationsDetails' : 'roomReservationsDetailsNew',item,outItem,'订房详情')"> @click="goUrl([131,14,118].includes(item.LineId) ? 'roomReservationsDetails' : 'roomReservationsDetailsNew',item,outItem,'订房详情')">
<span style="color: #4BCA81;" v-if="item.HotelResult==1"></span> <span style="color: #4BCA81;" v-if="item.HotelResult==1"></span>
<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 <p
v-if="(item.LineId==14||item.LineId==118) && item.PriceHotelResult && item.PriceHotelResult.length>0"> v-if="(item.LineId==14||item.LineId==118||item.LineId==90) && item.PriceHotelResult && item.PriceHotelResult.length>0">
<el-popover width="1100" 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"
......
...@@ -369,6 +369,8 @@ ...@@ -369,6 +369,8 @@
</div> </div>
</div> </div>
</div> </div>
<div class="travelDaysHVdetails" :style="{'margin-top':(item.TitleObj.ShowTripType==2&& <div class="travelDaysHVdetails" :style="{'margin-top':(item.TitleObj.ShowTripType==2&&
(item.ScenicArray.length==1||item.ScenicArray.length==0)) (item.ScenicArray.length==1||item.ScenicArray.length==0))
||((item.TitleObj.ShowTripType==1||item.TitleObj.ShowTripType==0)&& ||((item.TitleObj.ShowTripType==1||item.TitleObj.ShowTripType==0)&&
......
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