Commit 21d6b218 authored by youjie's avatar youjie

no message

parent a605d710
......@@ -11,9 +11,11 @@
@range-end="dateRangeHandler"></q-date>
</q-popup-proxy>
</q-field>
<n-select v-if="$q.platform.is.desktop" filterable @update:value="changeHotel" class="q-ml-lg col-2"
<!-- <n-select v-if="$q.platform.is.desktop" filterable @update:value="changeHotel" class="q-ml-lg col-2"
style="min-width: 190px" clearable v-model:value="search.HotelChooseArray" :placeholder="$t('hotel.searchName')"
multiple :options="cacheHotels" max-tag-count="responsive" size="large" value-field="ID" label-field="Name" />
multiple :options="cacheHotels" max-tag-count="responsive" size="large" value-field="ID" label-field="Name" /> -->
<q-input v-if="$q.platform.is.desktop" class="q-ml-lg col-2" style="min-width: 190px" v-model="search.HotelName" reverse-fill-mask dense type="text"
standout :label="$t('hotel.searchName')" />
<div class="col"></div>
<q-btn unelevated class="bg-grey-3 hover q-mr-md" icon="shopping_cart" :title="$t('hotel.car.shoppingTitle')"
@click="rightCarOpen = true">
......@@ -43,9 +45,11 @@
</q-field>
</div>
<div v-if="$q.platform.is.mobile">
<n-select filterable style="min-width: 190px" clearable v-model:value="search.HotelChooseArray"
<!-- <n-select filterable style="min-width: 190px" clearable v-model:value="search.HotelChooseArray"
:placeholder="$t('hotel.searchName')" multiple :options="cacheHotels" max-tag-count="responsive"
size="large" value-field="ID" label-field="Name" />
size="large" value-field="ID" label-field="Name" /> -->
<q-input v-model="search.HotelName" reverse-fill-mask dense type="text"
standout :label="$t('hotel.searchName')" />
</div>
<div class="q-my-md">
<q-select v-model="search.Star" dense :options="hotelsRates" emit-value option-label="name"
......@@ -218,6 +222,7 @@ export default defineComponent({
if (search.Province > 0) setCnt++
if (search.StartDate.length > 0) setCnt++
if (search.HotelChooseArray.length > 0) setCnt++
if (search.HotelName) setCnt++
}
if (search.Star != 0) setCnt++
if (search.MaxPrice.length > 0) setCnt++
......@@ -225,7 +230,7 @@ export default defineComponent({
return setCnt
})
methods.initAddress()
methods.initHotels()
// methods.initHotels() //检索酒店名称下拉
watch(cars.value, (n, o) => {
localStorage.setItem(DirtionmaryHelper.HOTEL_HOTELCARS_CACHE, JSON.stringify(cars.value))
})
......
<template>
<q-card class="bg-white q-pa-lg column" style="max-width: 600px; min-width: 375px; width: 50%;">
<div class="row justify-between" :class="{'q-px-lg q-mb-lg':$q.platform.is.desktop,'q-mb-md':$q.platform.is.mobile}">
<div class="text-weight-bold" :class="{'fz20':$q.platform.is.desktop,'fz16':$q.platform.is.mobile}">
<span class="inline-block">{{ $t('v102.vehicle.list.s9') }}</span>
</div>
<q-icon class="text-grey-13 cursor-pointer" name="close" :size="$q.platform.is.desktop?'md':'sm'" v-close-popup></q-icon>
</div>
<div>
<div class="text-h6 q-mb-md">{{ $t('v102.vehicle.list.s9') }}</div>
<q-table separator="cell" :hide-bottom="postMsg&&postMsg.details?true:false" :pagination="{ rowsPerPage: 100000 }" :rows="postMsg.details" bordered :columns="cols" class="sticky-right-column-table light-border col no-shadow">
<template v-slot:body-cell-UseDate="props">
<q-td :props="props" style="width: 130px;">
<div class="room-item f12 text-grey-6">
<span class="q-mr-md">
{{ props.row.UseDate }}</span>
<span class="q-mr-md"> {{ $t('v102.vehicle.di') }}{{props.row.DayNum}}{{ $t('v102.vehicle.tian') }} </span>
</div>
</q-td>
</template>
</q-table>
<div class="row" :style="{'width':$q.platform.is.mobile?'80vw':'','overflow': $q.platform.is.mobile?'hidden':'auto'}">
<q-table separator="cell" :hide-bottom="postMsg&&postMsg.details?true:false" :pagination="{ rowsPerPage: 100000 }" :rows="postMsg.details" bordered :columns="cols" class="sticky-right-column-table light-border col no-shadow">
<template v-slot:body-cell-UseDate="props">
<q-td :props="props" style="width: 130px;">
<div class="room-item f12 text-grey-6">
<span class="q-mr-md">
{{ props.row.UseDate }}</span>
<span class="q-mr-md"> {{ $t('v102.vehicle.di') }}{{props.row.DayNum}}{{ $t('v102.vehicle.tian') }} </span>
</div>
</q-td>
</template>
</q-table>
</div>
<div class="row justify-between q-py-lg">
<span>
<span class="text-grey-6">{{ $t('v102.vehicle.list2.s29') }}:</span>
......@@ -27,11 +34,11 @@
</span>
</div>
<div class="row">
<span class="col-6" v-if="postMsg.Remark">
<span v-if="postMsg.Remark" :class="{'col-6':$q.platform.is.desktop,'col-12':$q.platform.is.mobile}">
<span class="text-grey-6">{{ $t('v102.vehicle.list2.s26') }}:</span>
{{ postMsg.Remark }}
</span>
<span class="col-6" v-if="postMsg.AttentionInfo">
<span v-if="postMsg.AttentionInfo" :class="{'col-6':$q.platform.is.desktop,'col-12':$q.platform.is.mobile}">
<span class="text-grey-6">{{ $t('v102.vehicle.list2.s27') }}:</span>
{{ postMsg.AttentionInfo }}
</span>
......@@ -47,7 +54,7 @@ import HotelService from '../../api/vehicle'
import { DirtionmaryHelper } from '../../config/dictionary'
import { defineComponent, toRefs, watch, reactive, inject, ref, onMounted } from 'vue'
import { ApiResult } from '../../@types/enumHelper'
import useScrollModule from '../../module/scrollbar/scrollModule'
import useScrollModule from 'src/module/scrollbar/scrollModule'
import { date } from 'quasar'
import { useI18n } from 'vue-i18n'
import message from '../../utils/message'
......@@ -63,6 +70,7 @@ export default defineComponent({
const qDateProxy = ref(null) as any
const { t } = useI18n()
const data = reactive({
scrollStyle: {} as any,
loading: false,
subUnitPrice: 0 as any,
subStopBusPrice: 0 as any,
......@@ -78,6 +86,7 @@ export default defineComponent({
{ name: 'RoomPrice', label: t('v102.vehicle.list2.s23'), field: (row: any) => row.RoomPrice, align: 'left' }
] as any[],
})
data.scrollStyle = useScrollModule().scrollStyle
onMounted(() => {
if (props.Id && props.Id > 0) {
methods.detailsinit()
......
......@@ -39,7 +39,8 @@ export default defineComponent({
PriceLevel: 0,
Supplier: 0,
MaxPrice: '',
MinPrice: ''
MinPrice: '',
HotelName: ''
})
provide(DirtionmaryHelper.HOTEL_QUERY_PARAM, search)
......
......@@ -294,7 +294,7 @@ export default defineComponent({
if (r.data.resultCode == ApiResult.SUCCESS) {
r.data.data.forEach((x:any)=>{
x.labelName = `${x.Name}(${x.SeatNum})`
})
data.vehicletop = r.data.data
} else {
......@@ -423,7 +423,7 @@ export default defineComponent({
},
// 关闭
down() {
$router.push({ path: `/vehicle/order/0` })
$router.push({ path: `/vehicle/order/0/0` })
},
// 确定
submit() {
......
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