Commit 48af0970 authored by youjie's avatar youjie

no message

parent 24c4a5fd
<template> <template>
<div> <div>
<div class="q-py-sm"></div> <div class="q-py-sm"></div>
<q-card class="light-shadow q-pa-md bg-white rounded-borders q-mb-md" flat> <q-card class="light-shadow q-pa-md bg-white rounded-borders q-mb-md" flat
<!-- desktop-only --> v-for="(x,index) in orders">
<div class=""> <div class="row wrap justify-between">
<div class="row wrap justify-between"> <span class="f12 text-grey-6">
<span class="f12 text-grey-6"> {{ $t('hotelorder.search.orderNum') }}{{x.orderId}}</span>
<template v-if="$q.platform.is.desktop">{{ $t('hotelorder.search.orderNum') }}</template> <!-- <span class="text-center f12 text-grey-6">
44089</span> <template v-if="$q.platform.is.desktop">{{ $t('v102.ticket.sj') }}</template>
<span class="text-center f12 text-grey-6"> {{x.serviceName}} {{x.servicePhone}}
<template v-if="$q.platform.is.desktop">{{ $t('v102.ticket.sj') }}</template> </span> -->
李建波(武) 18224442258</span> <span class="f12 text-grey-6">{{ $t('hotelorder.createTime') }}:{{x.createDate}}</span>
<span class="f12 text-grey-6"> </div>
<template v-if="$q.platform.is.desktop">{{ $t('hotelorder.createTime') }}</template> <div class="q-pt-sm" :class="{'row justify-between':$q.platform.is.desktop,'column col':$q.platform.is.mobile}">
2023-03-06 14:20:56</span> <div :class="{'row col':$q.platform.is.desktop}">
</div> <div :style="{'width':$q.platform.is.desktop?'150px':'100%'}">
<div class="q-pt-sm" :class="{'row justify-between':$q.platform.is.desktop,'column':$q.platform.is.mobile}"> <q-img class="rounded-borders" :style="{'width':$q.platform.is.desktop?'150px':'100%'}" :ratio="16 / 9" src="http://imgfile.oytour.com/Upload/DMC/yEiRE8pRWE5ZF8cPNRnAiQST8WbyaGQc.jpg" spinner-color="grey" spinner-size="50px" fit="cover"/>
<div :class="{'row col':$q.platform.is.desktop}">
<div :style="{'width':$q.platform.is.desktop?'150px':'100%'}">
<q-img class="rounded-borders" :style="{'width':$q.platform.is.desktop?'150px':'100%'}" :ratio="16 / 9" src="http://imgfile.oytour.com/Upload/DMC/yEiRE8pRWE5ZF8cPNRnAiQST8WbyaGQc.jpg" spinner-color="grey" spinner-size="50px" fit="cover"/>
</div>
<div class="column" :class="{'q-pl-lg':$q.platform.is.desktop,'q-pt-sm':$q.platform.is.mobile}">
<span class="text-subtitle1 text-weight-bolder ellipsis cursor-pointer" >“绿野仙踪”斯里兰卡8天7日游(昆明)</span>
<span class="f12 text-grey-700 ellipsis q-py-sm">绿野仙踪系列</span>
<span class="f13 text-grey-700">团号:13313 ( <span class="text-red">3 </span>旅客 ) </span>
</div> </div>
<div class="column" :class="{'q-pl-lg':$q.platform.is.desktop,'q-pt-sm':$q.platform.is.mobile}">
<span class="text-subtitle1 text-weight-bolder ellipsis cursor-pointer" >{{x.title}}</span>
<span class="f12 text-grey-700 ellipsis q-py-sm">{{x.ltName}}</span>
<span class="f13 text-grey-700">团号:{{x.tcid}} ( <span class="text-red">{{ x.guestNum }} </span>旅客 ) </span>
</div> </div>
<div :class="{'row items-end':$q.platform.is.desktop}" style="flex-shrink: 0;"> </div>
<div class="column text-right"> <div :class="{'row items-end':$q.platform.is.desktop}" :style="{'flex-shrink': $q.platform.is.desktop?0:'inherit'}">
<div class="fz13" :class="{'row justify-end q-pt-lg q-pb-xs':$q.platform.is.mobile||$q.platform.is.desktop}"> <div class="column text-right">
<span class="">总金额:<span class="fz15">¥45200</span> </span> <div class="fz13" :class="{'row justify-end q-pt-lg q-pb-xs':$q.platform.is.mobile||$q.platform.is.desktop}">
<div class="q-pl-lg" :class="{'':$q.platform.is.desktop}"> <span class="">总金额:<span class="fz15">¥{{moneyFormat(x.preferPrice)}}</span> </span>
<span class=" text-red">优惠金额:<span class="fz15">¥202855</span></span> <div v-if="x.discountMoney>0" class="q-pl-lg" :class="{'':$q.platform.is.desktop}">
</div> <span class=" text-red">优惠金额:<span class="fz15">¥{{moneyFormat(x.discountMoney)}}</span></span>
</div> </div>
<span class="fz14 text-orange-7">已付总额:<span class="fz17">¥0.00</span> </span>
</div> </div>
<span class="fz14 text-orange-7">已付总额:<span class="fz17">¥{{moneyFormat(x.customerPayMoney)}}</span> </span>
</div> </div>
</div> </div>
</div>
<div class="mobile-only">
</div> </div>
</q-card> </q-card>
<q-card class="light-shadow q-pa-md bg-white rounded-borders q-mb-md" v-if="pages.pageCount > 0" flat> <q-card class="light-shadow q-pa-md bg-white rounded-borders q-mb-md" v-if="pages.pageCount > 0" flat>
...@@ -126,16 +118,15 @@ export default defineComponent({ ...@@ -126,16 +118,15 @@ export default defineComponent({
data.loading = false data.loading = false
if (r.data.resultCode == ApiResult.SUCCESS) { if (r.data.resultCode == ApiResult.SUCCESS) {
console.log(r.data.data,'====') console.log(r.data.data,'====')
return
r.data.data.pageData.forEach((x: any) => { r.data.data.pageData.forEach((x: any) => {
x.typeInfo = data.status.find(y => y.StatusId == x.OrderStatus) ?? data.status[1] x.typeInfo = data.status.find(y => y.StatusId == x.OrderStatus) ?? data.status[1]
x.SendType = data.sends.find(y => y.Id == x.MailingState) ?? data.sends[0] x.SendType = data.sends.find(y => y.Id == x.MailingState) ?? data.sends[0]
x.Money = 0 // x.Money = 0
let Money = 0 // let Money = 0
x.DetailList.forEach((y:any)=>{ // x.DetailList.forEach((y:any)=>{
Money+=y.Money // Money+=y.Money
}) // })
x.Money= Number(Money+x.MailingMoney) // x.Money= Number(Money+x.MailingMoney)
}) })
data.orders = r.data.data.pageData data.orders = r.data.data.pageData
data.pages.pageCount = r.data.data.pageCount data.pages.pageCount = r.data.data.pageCount
......
...@@ -28,7 +28,7 @@ export default defineComponent({ ...@@ -28,7 +28,7 @@ export default defineComponent({
CustomerId = Store.state.user?.userDetail?.customerId CustomerId = Store.state.user?.userDetail?.customerId
} }
const search = reactive({ const search = reactive({
orderType: 7,//7跟团订单 orderType: 1,//1跟团订单
queryDays: 0,//10天内 queryDays: 0,//10天内
orderState: -1,//订单状态 orderState: -1,//订单状态
CustomerId: CustomerId,//用户id CustomerId: CustomerId,//用户id
......
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