Commit 4b64eeee authored by youjie's avatar youjie

no message

parent fabf903f
......@@ -49,9 +49,8 @@
</div>
<div class="q-mt-md row">
<!-- sticky-rightrowspan-column-table -->
<q-table separator="cell" :hide-bottom="!x.CreateRemark" :pagination="{ rowsPerPage: 100 }" :rows="[x]" bordered :columns="cols" class="sticky-rightrowspan-column-table light-border col no-shadow">
<template v-slot:body-cell-UseCompName="props">
<!-- <template v-slot:body-cell-UseCompName="props">
<q-th :props="props">
<div>
<div class="ellipsis fz13">{{ props.row.UseCompName }}</div>
......@@ -59,7 +58,7 @@
<q-tooltip>{{ props.row.UseCompName + props.row.UseName }}</q-tooltip>
</div>
</q-th>
</template>
</template> -->
<template v-slot:body-cell-PickUpInfo="props">
<q-th :props="props">
<div class="fz13 text-grey-6">
......@@ -92,8 +91,8 @@
<div class="f12">
<div><span class="q-mr-xs text-grey-6">{{ $t('v102.vehicle.title9') }}</span>{{ x.BusTypeName }}</div>
<template v-if="x.DriverInfo ">
<div><span class="q-mr-xs text-grey-6">{{ $t('v102.vehicle.list2.s30') }}</span>{{ x.DriverInfo }}</div>
<div><span class="q-mr-xs text-grey-6">{{ $t('v102.vehicle.list2.s31') }}</span>{{ x.BusNo }}</div>
<div><span class="q-mr-xs text-grey-6">{{ $t('v102.vehicle.list2.s30') }}</span>{{ x.DriverInfo }}</div>
<div><span class="q-mr-xs text-grey-6">{{ $t('v102.vehicle.list2.s31') }}</span>{{ x.BusNo }}</div>
</template>
</div>
</q-td>
......
......@@ -22,7 +22,7 @@
</span>
<span>
{{ $t('v102.vehicle.list2.s25') }}:
<span class="fz18 text-red">{{postMsg.CurrencyId?postMsg.CurrencyId:''}} {{ postMsg.TotalPrice }} </span>
<span class="fz18 text-red">{{postMsg.CurrencyCode?postMsg.CurrencyCode:''}} {{ postMsg.TotalPrice }} </span>
</span>
</div>
<div class="row">
......
......@@ -37,7 +37,7 @@
<div class="row items-center">
<q-input dense standout v-model="search.GuideInfo" class="col q-mr-md" :class="{'q-pt-md':$q.platform.is.desktop,'q-pt-sm':$q.platform.is.mobile}" :placeholder="$t('v102.vehicle.title10')" :rules="[ val => val && val.length > 0 || ' ']" ref="guestGuideInfo"/>
<q-input dense standout v-model="search.TeamName" class="col" :class="{'q-pt-md':$q.platform.is.desktop,'q-mr-md':$q.platform.is.desktop,'q-pt-sm':$q.platform.is.mobile}" :placeholder="$t('v102.vehicle.title11')" :rules="[ val => val && val.length > 0 || ' ']" ref="guestTeamName"/>
<q-select class="q-pb-md" :class="{'col q-pt-md':$q.platform.is.desktop,'col-12 q-pt-sm':$q.platform.is.mobile}" unelevated v-model="search.BusType" dense :options="vehicletop" emit-value option-label="Name" option-value="Id" map-options :label="$t('v102.vehicle.title13')" standout :rules="[ val => val || '']" ref="guestUseBusType">
<q-select class="q-pb-md" :class="{'col q-pt-md':$q.platform.is.desktop,'col-12 q-pt-sm':$q.platform.is.mobile}" unelevated v-model="search.BusType" dense :options="vehicletop" filled emit-value option-label="labelName" option-value="Id" map-options :label="$t('v102.vehicle.title13')" standout :rules="[ val => val || '']" ref="guestUseBusType">
</q-select>
</div>
</div>
......@@ -237,6 +237,7 @@ export default defineComponent({
},
// 获取车型座位数
getBusType(){
return
if(data.vehicletop&&data.vehicletop.length>0){
data.vehicletop.forEach(x=>{
if(x.Id===data.search.BusType){
......@@ -249,9 +250,12 @@ export default defineComponent({
}
},
checkPeopleNum(){
if(data.search.PeopleNum>data.SeatNum){
data.search.PeopleNum = data.SeatNum
}
data.vehicletop.forEach((x:any)=>{
x.disable = x.SeatNum<data.search.PeopleNum?true:false
})
// if(data.search.PeopleNum>data.SeatNum){
// data.search.PeopleNum = data.SeatNum
// }
},
// 获取修改详情
details() {
......@@ -288,6 +292,10 @@ export default defineComponent({
await HotelService.TypeVehicle({})
.then(r => {
if (r.data.resultCode == ApiResult.SUCCESS) {
r.data.data.forEach((x:any)=>{
x.labelName = `${x.Name}(${x.SeatNum})`
})
data.vehicletop = r.data.data
} else {
message.errorMsg(r.data.message)
......
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