Commit b409da41 authored by youjie's avatar youjie

no message

parent 7f093676
......@@ -73,7 +73,7 @@
const data= reactive({
traffic: "",
stars:['一星酒店','二星酒店','三星酒店','四星酒店','五星酒店','六星酒店','七星酒店','民宿','溫泉酒店'],
stars:[t('v103.scheduledTripDetails.starrating.d1'),t('v103.scheduledTripDetails.starrating.d2'),t('v103.scheduledTripDetails.starrating.d3'),t('v103.scheduledTripDetails.starrating.d4'),t('v103.scheduledTripDetails.starrating.d5'),t('v103.scheduledTripDetails.starrating.d6'),t('v103.scheduledTripDetails.starrating.d7'),t('v103.scheduledTripDetails.starrating.d8'),t('v103.scheduledTripDetails.starrating.d9')],
hotel:'',
team: '',
dinner: '',
......@@ -82,41 +82,41 @@
const methods = {
formatTeam(){
let p = data.trip.priceList[0]
let t = p.priceTeamType??1
t=t==0?1:t
if(t==1){
data.team = `${p.seat}人團隊散拼`
let type = p.priceTeamType??1
type=type==0?1:type
if(type==1){
data.team = `${p.seat+t('v103.scheduledTripDetails.smaple.d1')}`
}else{
data.team = '一单一团'
data.team = t('v103.scheduledTripDetails.smaple.d2')
}
},
formatDinner(){
let d = []
data.trip.dinnerList.forEach(x=>{
if(x.dinnerName.indexOf('自理')==-1 && x.dinnerName.indexOf('请选择')==-1){
if(x.dinnerName.indexOf(t('v103.scheduledTripDetails.smaple.d3'))==-1 && x.dinnerName.indexOf(t('v103.scheduledTripDetails.smaple.d4'))==-1){
d.push(x)
}
})
if(d && d.length>0){
let g=groupBy(d,x=>{ return x.useDinnerType})
let t = ['早餐','午餐','晚餐']
let type = [t('v103.scheduledTripDetails.calendarhtml.d2'),t('v103.scheduledTripDetails.calendarhtml.d3'),t('v103.scheduledTripDetails.calendarhtml.d4')]
g.forEach(x=>{
data.dinner+=`${x.data.length}次 ${t[parseInt(x.key)-1]};`
data.dinner+=`${x.data.length}${t('v103.scheduledTripDetails.smaple.d5')} ${type[parseInt(x.key)-1]};`
})
}else{
data.dinner = '無餐食供應'
data.dinner = t('v103.scheduledTripDetails.smaple.d6')
}
},
formatTraffic() {
let z = data.trip.trafficList[0].subTraffic[0]
if (z&&z.arrivalType == 1) {
data.traffic = '飛機往返';
data.traffic = t('v103.scheduledTripDetails.smaple.d7');
} else if (z&&z.arrivalType == 2) {
data.traffic = '巴士往返';
data.traffic = t('v103.scheduledTripDetails.smaple.d8');
} else if (z&&z.arrivalType == 3) {
data.traffic = '郵輪往返';
data.traffic = t('v103.scheduledTripDetails.smaple.d9');
} else {
data.traffic = '高鐵往返';
data.traffic = t('v103.scheduledTripDetails.smaple.d10');
}
},
formatHotel(){
......@@ -129,7 +129,7 @@
if(h && h.length>0){
let g = groupBy(h,(x)=>{return x.star})
g.forEach(x=>{
data.hotel+=`${x.data.length}${data.stars[parseInt(x.key)-1]?data.stars[parseInt(x.key)-1]:''};`
data.hotel+=`${x.data.length}${t('v103.scheduledTripDetails.smaple.d11')}${data.stars[parseInt(x.key)-1]?data.stars[parseInt(x.key)-1]:''};`
})
}
}
......
......@@ -1327,6 +1327,30 @@ export default {
huodong: '自由活動',
huodongshu: '次自由活動',
canshi: '餐食'
},
starrating:{
d1: '一星酒店',
d2: '二星酒店',
d3: '三星酒店',
d4: '四星酒店',
d5: '五星酒店',
d6: '六星酒店',
d7: '七星酒店',
d8: '民宿',
d9: '溫泉酒店',
},
smaple:{
d1: '人團隊散拼',
d2: '一单一团',
d3: '自理',
d4: '请选择',
d5: '次',
d6: '無餐食供應',
d7: '飛機往返',
d8: '巴士往返',
d9: '郵輪往返',
d10: '高鐵往返',
d11: '晚',
}
},
scheduledTripOrder:{
......
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