853a0cbc by zrj

8.21 酒店增加会议非会议筛选

1 parent a7e8641b
...@@ -86,6 +86,7 @@ const list = ref([]) ...@@ -86,6 +86,7 @@ const list = ref([])
86 const loading = ref(false) 86 const loading = ref(false)
87 onMounted(() => { 87 onMounted(() => {
88 query.value.activityId = route.params.cptId 88 query.value.activityId = route.params.cptId
89 query.value.meeting = route.query.flag
89 getList() 90 getList()
90 }) 91 })
91 92
...@@ -113,7 +114,8 @@ function goDetail(item) { ...@@ -113,7 +114,8 @@ function goDetail(item) {
113 hotelId: item.hotelId, 114 hotelId: item.hotelId,
114 }, 115 },
115 query: { 116 query: {
116 id: item.id 117 id: item.id,
118 meeting: query.value.meeting,
117 } 119 }
118 }) 120 })
119 121
......
...@@ -213,11 +213,14 @@ const roomList = ref([]) ...@@ -213,11 +213,14 @@ const roomList = ref([])
213 const map = ref(null) 213 const map = ref(null)
214 const formTime = ref({}) 214 const formTime = ref({})
215 const labelObj = ref({}) 215 const labelObj = ref({})
216 const meeting = ref()
216 217
217 let baseHotTime; 218 let baseHotTime;
218 219
219 onMounted(() => { 220 onMounted(() => {
220 console.log(route.params) 221 if (route.query.meeting) {
222 meeting.value = route.query.meeting
223 }
221 getBaseInfoByActiveId(route.params.cptId).then(res => { 224 getBaseInfoByActiveId(route.params.cptId).then(res => {
222 formTime.value = res.data || null 225 formTime.value = res.data || null
223 }).catch(err => { 226 }).catch(err => {
...@@ -372,6 +375,7 @@ function goNext(room) { ...@@ -372,6 +375,7 @@ function goNext(room) {
372 checkInTime: form.value.checkInTime, 375 checkInTime: form.value.checkInTime,
373 start: hotTime.value[0], 376 start: hotTime.value[0],
374 end: hotTime.value[1], 377 end: hotTime.value[1],
378 meeting:meeting.value,
375 } 379 }
376 }) 380 })
377 } 381 }
......
...@@ -176,6 +176,7 @@ const router = useRouter() ...@@ -176,6 +176,7 @@ const router = useRouter()
176 const route = useRoute() 176 const route = useRoute()
177 const room = ref({}) 177 const room = ref({})
178 const hotelName = ref('') 178 const hotelName = ref('')
179 const meeting = ref()
179 const canOrderNum = ref(0) 180 const canOrderNum = ref(0)
180 const lform = ref({}) 181 const lform = ref({})
181 const form = ref({ 182 const form = ref({
...@@ -285,6 +286,7 @@ onMounted(() => { ...@@ -285,6 +286,7 @@ onMounted(() => {
285 room.value = JSON.parse(decodeURIComponent(route.query.room)) 286 room.value = JSON.parse(decodeURIComponent(route.query.room))
286 console.log(room.value) 287 console.log(room.value)
287 hotelName.value = route.query.hotelName 288 hotelName.value = route.query.hotelName
289 meeting.value = route.query.meeting ? route.query.meeting : ''
288 money.value = 0 290 money.value = 0
289 rzRange.value = [] 291 rzRange.value = []
290 rzRange.value = [route.query.start, route.query.end] 292 rzRange.value = [route.query.start, route.query.end]
...@@ -507,7 +509,8 @@ function submit() { ...@@ -507,7 +509,8 @@ function submit() {
507 matchId:room.value.activityId, 509 matchId:room.value.activityId,
508 orderId: res.data.orderId, 510 orderId: res.data.orderId,
509 money: res.data.total, 511 money: res.data.total,
510 type: 'hotel' 512 type: 'hotel',
513 meeting: meeting.value,
511 } 514 }
512 }) 515 })
513 } 516 }
......
...@@ -653,6 +653,7 @@ const wePayCodeUrl = ref('') ...@@ -653,6 +653,7 @@ const wePayCodeUrl = ref('')
653 const form = ref({}) 653 const form = ref({})
654 const formInfo = ref({}) 654 const formInfo = ref({})
655 const type = ref('') 655 const type = ref('')
656 const meeting = ref()
656 const errorBox = ref(false) 657 const errorBox = ref(false)
657 const hideconfirmbtn = ref(false) 658 const hideconfirmbtn = ref(false)
658 const remark = ref('') 659 const remark = ref('')
...@@ -675,6 +676,9 @@ onMounted(() => { ...@@ -675,6 +676,9 @@ onMounted(() => {
675 if (route.query.type) { 676 if (route.query.type) {
676 type.value = route.query.type 677 type.value = route.query.type
677 } 678 }
679 if (route.query.meeting) {
680 meeting.value = route.query.meeting
681 }
678 if (route.query.orderType) { 682 if (route.query.orderType) {
679 switch (route.query.orderType) { 683 switch (route.query.orderType) {
680 case '0': 684 case '0':
...@@ -1063,7 +1067,10 @@ const downOfflineInvoice = () => { ...@@ -1063,7 +1067,10 @@ const downOfflineInvoice = () => {
1063 1067
1064 const toContinue = () => { 1068 const toContinue = () => {
1065 router.push({ 1069 router.push({
1066 path: `/booking/hotel/${matchIdHistory.value}` 1070 path: `/booking/hotel/${matchIdHistory.value}`,
1071 query: {
1072 meeting: meeting.value,
1073 }
1067 }) 1074 })
1068 } 1075 }
1069 1076
......
...@@ -286,7 +286,7 @@ function goBooking(n, f) { ...@@ -286,7 +286,7 @@ function goBooking(n, f) {
286 //酒店 286 //酒店
287 router.push({ 287 router.push({
288 path: `/booking/hotel/${props.matchId}` 288 path: `/booking/hotel/${props.matchId}`
289 // , query: {flag: f} 289 , query: {flag: f}
290 }) 290 })
291 break; 291 break;
292 case 2: 292 case 2:
......
...@@ -11,12 +11,12 @@ ...@@ -11,12 +11,12 @@
11 <div v-if="type==10" class="plr20" v-html="form.reserveDesTitck"></div> 11 <div v-if="type==10" class="plr20" v-html="form.reserveDesTitck"></div>
12 12
13 13
14 <!-- <el-row v-if="type==1" justify="center">--> 14 <el-row v-if="type==1" justify="center">
15 <!-- <el-radio-group v-model="hotelType">--> 15 <el-radio-group v-model="hotelType">
16 <!-- <el-radio label="0">{{language==0?'运动队酒店':'Team Hotel Reservation'}}</el-radio>--> 16 <el-radio label="0">{{language==0?'运动队酒店':'Team Hotel Reservation'}}</el-radio>
17 <!-- <el-radio label="1">{{language==0?'执委大会酒店':'Conference Hotel Reservation'}}</el-radio>--> 17 <el-radio label="1">{{language==0?'执委大会酒店':'Conference Hotel Reservation'}}</el-radio>
18 <!-- </el-radio-group>--> 18 </el-radio-group>
19 <!-- </el-row>--> 19 </el-row>
20 20
21 </div> 21 </div>
22 <template #footer> 22 <template #footer>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!