Commit d5d69925 authored by 罗超's avatar 罗超

修改

parent 99eb9318
...@@ -64,13 +64,13 @@ module.exports = configure(function (ctx) { ...@@ -64,13 +64,13 @@ module.exports = configure(function (ctx) {
publicPath: ctx.dev ? '/' : './', publicPath: ctx.dev ? '/' : './',
env: ctx.dev env: ctx.dev
? { ? {
BASE_APP_API: 'http://192.168.5.46:/api/common/post', BASE_APP_API: 'https://reborn.oytour.com/api/common/post',
JAVA_URL_API: 'http://efficient.oytour.com', JAVA_URL_API: 'http://efficient.oytour.com',
VERSION:require('./package.json').version, VERSION:require('./package.json').version,
} }
: { : {
BASE_APP_API:"http://reborn.oytour.com/api/common/post",//和平使用 BASE_APP_API:"https://reborn.oytour.com/api/common/post",//和平使用
JAVA_URL_API: 'http://efficient.oytour.com', JAVA_URL_API: 'http://efficient.oytour.com',
VERSION:require('./package.json').version VERSION:require('./package.json').version
}, },
......
This diff is collapsed.
...@@ -256,7 +256,7 @@ export default defineComponent({ ...@@ -256,7 +256,7 @@ export default defineComponent({
name: "LowerPrice", name: "LowerPrice",
label: t("hotel.col.four"), label: t("hotel.col.four"),
field: (row: any) => field: (row: any) =>
`¥${row.LowerPrice.toFixed(2)}${$t("unit.jp")} ${t("hotel.col.low")}`, `Rp${row.LowerPrice.toFixed(2)}${$t("unit.jp")} ${t("hotel.col.low")}`,
}, },
], ],
showPriceList: false, showPriceList: false,
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<div class="text-white" style="opacity: .5;">{{$t('v104.passbook.available')}}</div> <div class="text-white" style="opacity: .5;">{{$t('v104.passbook.available')}}</div>
<div class="row items-end text-white" style="position: relative;"> <div class="row items-end text-white" style="position: relative;">
<div :class="[$q.platform.is.desktop?'fz22':'fz32']"> <div :class="[$q.platform.is.desktop?'fz22':'fz32']">
¥ Rp
</div> </div>
<div class="fz40 q-pl-md "> <div class="fz40 q-pl-md ">
<span style="position: relative;z-index: 2;" :style="{'top':$q.platform.is.desktop?'11px':'4px'}">{{Client_Balance.toFixed(2)}}</span> <span style="position: relative;z-index: 2;" :style="{'top':$q.platform.is.desktop?'11px':'4px'}">{{Client_Balance.toFixed(2)}}</span>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<div>{{item.teamSeries}}</div> <div>{{item.teamSeries}}</div>
<div>{{item.peopleNum}}</div> <div>{{item.peopleNum}}</div>
<div><span :class="{'text-red':item.money>0}"><template v-if="item.type==1">+</template> <div><span :class="{'text-red':item.money>0}"><template v-if="item.type==1">+</template>
<template v-else-if="item.type==2">-</template>¥{{item.money}}</span></div> <template v-else-if="item.type==2">-</template>Rp{{item.money}}</span></div>
</div> </div>
</div> </div>
<div class="text-center q-pb-lg" <div class="text-center q-pb-lg"
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div class="row items-end" :class="[$q.platform.is.desktop ? 'q-pt-sm q-pb-lg' : 'justify-center']"> <div class="row items-end" :class="[$q.platform.is.desktop ? 'q-pt-sm q-pb-lg' : 'justify-center']">
<span class="fz12"></span> <span class="fz12"></span>
<div class="fz32 q-pl-sm"> <div class="fz32 q-pl-sm">
<span style="position: relative; top: 9px">{{ datainfo.Amount }}</span> <span style="position: relative; top: 9px">{{ datainfo.GuestNum?datainfo.GuestNum:datainfo.Amount }}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<div :class="[$q.platform.is.desktop ? 'q-pb-sm' : 'col-6 text-center']"> <div :class="[$q.platform.is.desktop ? 'q-pb-sm' : 'col-6 text-center']">
<div class="fz14 text-grey-7" :class="[$q.platform.is.desktop ? 'q-pb-xs q-pt-lg' : '']">{{ $t('v104.passbook.titles.text10') }}</div> <div class="fz14 text-grey-7" :class="[$q.platform.is.desktop ? 'q-pb-xs q-pt-lg' : '']">{{ $t('v104.passbook.titles.text10') }}</div>
<div class="row items-end" :class="[$q.platform.is.desktop ? 'q-pt-sm q-pb-lg' : 'justify-center']"> <div class="row items-end" :class="[$q.platform.is.desktop ? 'q-pt-sm q-pb-lg' : 'justify-center']">
<span class="fz12">¥</span> <span class="fz12">Rp</span>
<div class="fz32 q-pl-sm"> <div class="fz32 q-pl-sm">
<span style="position: relative; top: 9px">{{ datainfo.TotalMoney }}</span> <span style="position: relative; top: 9px">{{ datainfo.TotalMoney }}</span>
</div> </div>
...@@ -35,20 +35,20 @@ ...@@ -35,20 +35,20 @@
<q-separator v-if="$q.platform.is.mobile" color="grey-3" /> <q-separator v-if="$q.platform.is.mobile" color="grey-3" />
</div> </div>
<div :class="[$q.platform.is.desktop ? 'q-pb-lg q-px-lg' : 'q-py-md q-px-md']"> <div :class="[$q.platform.is.desktop ? 'q-pb-lg q-px-lg' : 'q-py-md q-px-md']">
<span>{{ $t('v104.passbook.titles.text11') }}</span><span class="q-pl-lg"></span><span class="fz32 q-pl-sm">{{ datainfo.Amount.toFixed(0) }}</span> <span>{{ $t('v104.passbook.titles.text11') }}</span><span class="q-pl-lg"></span><span class="fz32 q-pl-sm">{{ datainfo.CurGuestNum?datainfo.CurGuestNum:datainfo.Amount.toFixed(0) }}</span>
</div> </div>
<div class="q-pt-sm" :class="[$q.platform.is.desktop ? 'q-px-lg' : 'q-px-md']"> <div class="q-pt-sm" :class="[$q.platform.is.desktop ? 'q-px-lg' : 'q-px-md']">
<div class="q-pb-lg" v-for="(item, index) in datainfo.RatioList" :key="index" :class="[$q.platform.is.desktop ? 'row items-center no-wrap' : 'column']"> <div class="q-pb-lg" v-for="(item, index) in datainfo.RatioList" :key="index" :class="[$q.platform.is.desktop ? 'row items-center no-wrap' : 'column']">
<div class="col"> <div class="col">
<template v-if="$q.platform.is.desktop"> <template v-if="$q.platform.is.desktop">
<q-linear-progress style="border-radius: 15px" v-if="item.percent > 1" stripe rounded size="20px" :value="item.width / 1000" color="orange-9" /> <q-linear-progress style="border-radius: 15px" v-if="item.percent > 1" stripe rounded size="20px" :value="item.width / 100" color="orange-9" />
<q-linear-progress style="border-radius: 15px" v-else-if="item.percent < 1" stripe rounded size="20px" :value="item.width / 1000" color="red-5" /> <q-linear-progress style="border-radius: 15px" v-else-if="item.percent < 1" stripe rounded size="20px" :value="item.width / 100" color="red-5" />
<q-linear-progress style="border-radius: 15px" v-else stripe rounded size="20px" :value="item.width / 1000" color="cyan-4" /> <q-linear-progress style="border-radius: 15px" v-else stripe rounded size="20px" :value="item.width / 1000" color="cyan-4" />
</template> </template>
<template v-else> <template v-else>
<q-linear-progress style="border-radius: 15px" v-if="item.percent > 1" stripe rounded size="10px" :value="item.width / 1000" color="orange-9" /> <q-linear-progress style="border-radius: 15px" v-if="item.percent > 1" stripe rounded size="10px" :value="item.width / 100" color="orange-9" />
<q-linear-progress style="border-radius: 15px" v-else-if="item.percent < 1" stripe rounded size="10px" :value="item.width / 1000" color="red-5" /> <q-linear-progress style="border-radius: 15px" v-else-if="item.percent < 1" stripe rounded size="10px" :value="item.width / 100" color="red-5" />
<q-linear-progress style="border-radius: 15px" v-else stripe rounded size="10px" :value="item.width / 1000" color="cyan-4" /> <q-linear-progress style="border-radius: 15px" v-else stripe rounded size="10px" :value="item.width / 100" color="cyan-4" />
</template> </template>
</div> </div>
<div class="row items-center no-wrap" :class="[$q.platform.is.desktop ? 'col-4 q-ml-lg' : 'col']"> <div class="row items-center no-wrap" :class="[$q.platform.is.desktop ? 'col-4 q-ml-lg' : 'col']">
...@@ -71,9 +71,9 @@ ...@@ -71,9 +71,9 @@
<template v-if="item.percent < 1"> <template v-if="item.percent < 1">
{{ $t('v104.passbook.titles.text13') }} {{ $t('v104.passbook.titles.text13') }}
{{ item.Money - datainfo.GuestNum }}/{{ $t('travel.people') }}, {{ item.Money - datainfo.CurGuestNum }}/{{ $t('travel.people') }},
{{ $t('v104.passbook.titles.text14') }} {{ $t('v104.passbook.titles.text14') }}
¥{{ item.Ratio }} / {{ $t('travel.people') }} Rp{{ item.Ratio.toLocaleString() }} / {{ $t('travel.people') }}
</template> </template>
</span> </span>
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
{{ $t('v104.passbook.titles.text17') }} {{ $t('v104.passbook.titles.text17') }}
</span> </span>
{{ $t('v104.passbook.titles.text16') }} {{ $t('v104.passbook.titles.text16') }}
{{ item.Ratio }}/{{ $t('travel.people') }} {{ item.Ratio.toLocaleString() }}/{{ $t('travel.people') }}
</span> </span>
</div> </div>
</div> </div>
...@@ -96,10 +96,9 @@ ...@@ -96,10 +96,9 @@
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">
import { ref, toRefs, onMounted, onBeforeUnmount } from 'vue' import { ref, toRefs, onMounted, onBeforeUnmount,defineComponent,reactive } from 'vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { useQuasar } from 'quasar' import { useQuasar } from 'quasar'
import { defineComponent, ref, reactive, toRefs } from 'vue'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import * as echarts from 'echarts' import * as echarts from 'echarts'
import rebatehead from '../../components/passbook/rebate/rebatehead.vue' import rebatehead from '../../components/passbook/rebate/rebatehead.vue'
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<div>{{item.description}}</div> <div>{{item.description}}</div>
<div><span :class="{'text-red':item.money>0}"><template v-if="item.type==1">+</template> <div><span :class="{'text-red':item.money>0}"><template v-if="item.type==1">+</template>
<template v-else-if="item.type==2">-</template> <template v-else-if="item.type==2">-</template>
¥{{item.money}}</span></div> Rp{{item.money}}</span></div>
</div> </div>
</template> </template>
<template v-else> <template v-else>
......
...@@ -284,7 +284,7 @@ export default defineComponent({ ...@@ -284,7 +284,7 @@ export default defineComponent({
name: "LowerPrice", name: "LowerPrice",
label: t("hotel.col.four"), label: t("hotel.col.four"),
field: (row: any) => field: (row: any) =>
`¥${row.LowerPrice.toFixed(2)}${t("unit.jp")} {t('hotel.col.low')}`, `Rp${row.LowerPrice.toFixed(2)}${t("unit.jp")} {t('hotel.col.low')}`,
}, },
], ],
showPriceList: false, showPriceList: false,
......
...@@ -290,7 +290,7 @@ export default defineComponent({ ...@@ -290,7 +290,7 @@ export default defineComponent({
name: "LowerPrice", name: "LowerPrice",
label: t("hotel.col.four"), label: t("hotel.col.four"),
field: (row: any) => field: (row: any) =>
`¥${row.LowerPrice.toFixed(2)}${t("unit.jp")} {t('hotel.col.low')}`, `Rp${row.LowerPrice.toFixed(2)}${t("unit.jp")} {t('hotel.col.low')}`,
}, },
], ],
showPriceList: false, showPriceList: false,
......
export default { export default {
lanuage: 'Language', lanuage: 'Language',
failed: 'Execution failed', failed: 'Operation failed',
success: 'Execution successful', success: 'Operation successful',
appsuffix: 'PIC Interbank Booking System', appsuffix: 'PIC Interbank Booking System',
siteName: 'Interbank Booking System', siteName: 'Interbank Booking System',
language: 'Language', language: 'Language',
...@@ -359,7 +359,7 @@ export default { ...@@ -359,7 +359,7 @@ export default {
three: 'Remittance instructions' three: 'Remittance instructions'
}, },
travel: { travel: {
first: 'Consortium', first: 'Group Information',
second: 'Group Detail', second: 'Group Detail',
three: 'Booking list', three: 'Booking list',
four: 'Settlement', four: 'Settlement',
...@@ -390,8 +390,15 @@ export default { ...@@ -390,8 +390,15 @@ export default {
} }
}, },
travel: { travel: {
startCityList:{
all:'All',
ss:'Surabaya',
ml:'Medan',
yjd:'Jakarta',
bld:'Bali'
},
type:'Type', type:'Type',
b2cPirce:'Normal Pprice', b2cPirce:'Selling Price',
b2bPirce:'Member Price', b2bPirce:'Member Price',
MiddlePrice:'Consortium', MiddlePrice:'Consortium',
priceDetail:'Price Details', priceDetail:'Price Details',
...@@ -462,7 +469,7 @@ export default { ...@@ -462,7 +469,7 @@ export default {
CSeat: 'Business Class', CSeat: 'Business Class',
FSeat: 'First Class', FSeat: 'First Class',
priceInfo: 'Price information', priceInfo: 'Price information',
midPrice: 'Consortium Price', midPrice: 'Consortium',
BabyChargePrice: "Children's Surcharge", BabyChargePrice: "Children's Surcharge",
OldManChargePrice: 'Elderly Surcharge', OldManChargePrice: 'Elderly Surcharge',
VisaPrice: 'Visa', VisaPrice: 'Visa',
...@@ -1527,7 +1534,7 @@ export default { ...@@ -1527,7 +1534,7 @@ export default {
text9: 'Number of people this year', text9: 'Number of people this year',
text10: 'Accumulated revenue', text10: 'Accumulated revenue',
text11: 'Month Number', text11: 'Month Number',
text12: 'Activated, expected revenue', text12: 'Activated',
text13: 'Still lacking', text13: 'Still lacking',
text14: 'Estimated Revenue', text14: 'Estimated Revenue',
text15: 'Monthly transaction amount has been reached', text15: 'Monthly transaction amount has been reached',
......
...@@ -388,6 +388,13 @@ export default { ...@@ -388,6 +388,13 @@ export default {
} }
}, },
travel: { travel: {
startCityList:{
all:'すべて',
ss:'泗水',
ml:'棉蘭',
yjd:'雅加達',
bld:'巴厘島'
},
type:'タイプ', type:'タイプ',
b2cPirce:'B2C価格', b2cPirce:'B2C価格',
b2bPirce:'B2B価格', b2bPirce:'B2B価格',
...@@ -1525,7 +1532,7 @@ export default { ...@@ -1525,7 +1532,7 @@ export default {
text9: '本年の累計人数', text9: '本年の累計人数',
text10: '累積収益', text10: '累積収益',
text11: '現在の人数', text11: '現在の人数',
text12: '活性化しています,収益見込み', text12: '活性化しています',
text13: 'まだまだ', text13: 'まだまだ',
text14: '収益予想', text14: '収益予想',
text15: '月の取引額はすでに達しました', text15: '月の取引額はすでに達しました',
......
...@@ -389,6 +389,13 @@ export default { ...@@ -389,6 +389,13 @@ export default {
}, },
travel: { travel: {
startCityList:{
all:'全部',
ss:'泗水',
ml:'棉蘭',
yjd:'雅加達',
bld:'巴厘島'
},
type:'类型', type:'类型',
b2cPirce:'直客价格', b2cPirce:'直客价格',
b2bPirce:'代理价格', b2bPirce:'代理价格',
...@@ -1528,10 +1535,10 @@ export default { ...@@ -1528,10 +1535,10 @@ export default {
text9: '本年累计人数', text9: '本年累计人数',
text10: '累计收益', text10: '累计收益',
text11: '当前人数', text11: '当前人数',
text12: '已激活,预计收益', text12: '已激活',
text13: '还差', text13: '还差',
text14: '预计收益', text14: '预计收益',
text15: '月交易额已达', text15: '月交客数已达',
text16: '返', text16: '返',
text17: '以上', text17: '以上',
}, },
......
...@@ -389,6 +389,13 @@ export default { ...@@ -389,6 +389,13 @@ export default {
} }
}, },
travel: { travel: {
startCityList:{
all:'全部',
ss:'泗水',
ml:'棉蘭',
yjd:'雅加達',
bld:'巴厘島'
},
b2cPirce:'直客價格', b2cPirce:'直客價格',
b2bPirce:'代理價格', b2bPirce:'代理價格',
MiddlePrice:'中心價', MiddlePrice:'中心價',
...@@ -1530,10 +1537,10 @@ export default { ...@@ -1530,10 +1537,10 @@ export default {
text9: '本年累計人數', text9: '本年累計人數',
text10: '累計收益', text10: '累計收益',
text11: '當前人數', text11: '當前人數',
text12: '已激活,預計收益', text12: '已激活',
text13: '還差', text13: '還差',
text14: '預計收益', text14: '預計收益',
text15: '月交易額已達', text15: '月交客數已達',
text16: '返', text16: '返',
text17: '以上', text17: '以上',
}, },
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<div class="text-center" style="font-size: 12px; font-weight: 400;"> <div class="text-center" style="font-size: 12px; font-weight: 400;">
<span class="text-grey-500">{{ $t('notice.column.releaseDate') }} {{ noticeDialogData.notice_date }}</span> <span class="text-grey-500">{{ $t('notice.column.releaseDate') }} {{ noticeDialogData.notice_date }}</span>
</div> </div>
<div style="overflow-y: auto;" class="text-body2 q-mt-md full-width col q-pa-md" v-html="noticeDialogData.content"></div> <div style="overflow-y: auto;" class="text-body2 q-mt-md full-width col q-pa-md notice-content" v-html="noticeDialogData.content"></div>
<div class="q-mt-md row items-center" v-if="noticeDialogData.fileList.length > 0"> <div class="q-mt-md row items-center" v-if="noticeDialogData.fileList.length > 0">
<span class="text-grey-500">{{ $t('notice.detail.file') }}</span> <span class="text-grey-500">{{ $t('notice.detail.file') }}</span>
<q-btn v-for="(x,i) in noticeDialogData.fileList" class="q-mr-md" dense :key="i" color="primary" flat unelevated :label="x.name" @click="downloadFile(x)" /> <q-btn v-for="(x,i) in noticeDialogData.fileList" class="q-mr-md" dense :key="i" color="primary" flat unelevated :label="x.name" @click="downloadFile(x)" />
...@@ -121,20 +121,18 @@ export default { ...@@ -121,20 +121,18 @@ export default {
}) })
const { t } = useI18n() const { t } = useI18n()
const downloadFile = async (file: any) => { const downloadFile = async (file: any) => {
const url = 'http://imgfile.oytour.com/'+file.url const url = `http://${window.location.host}/webfile/${file.url}`
try { try {
const response = await fetch(url)
const blob = await response.blob()
const filename = url.split('/').pop() || 'download' const filename = url.split('/').pop() || 'download'
const link = document.createElement('a') const link = document.createElement('a')
link.href = window.URL.createObjectURL(blob) link.href = url
link.download = filename link.download = filename
document.body.appendChild(link) document.body.appendChild(link)
link.click() link.click()
document.body.removeChild(link) document.body.removeChild(link)
window.URL.revokeObjectURL(link.href)
} catch (error) { } catch (error) {
//message.errorMsg(t('downloadFailed')) message.errorMsg(t('downloadFailed'))
} }
} }
...@@ -274,4 +272,42 @@ export default { ...@@ -274,4 +272,42 @@ export default {
position: absolute; position: absolute;
margin-top: -40px; margin-top: -40px;
} }
.notice-content h1{
font-size: unset !important;
line-height: unset !important;
font-weight: bold !important;
}
.notice-content h2{
font-size: unset !important;
line-height: unset !important;
font-weight: bold !important;
}
.notice-content h3{
font-size: unset !important;
line-height: unset !important;
font-weight: bold !important;
}
.notice-content h4{
font-size: unset !important;
line-height: unset !important;
font-weight: bold !important;
}
.notice-content h5{
font-size: unset !important;
line-height: unset !important;
font-weight: bold !important;
}
.notice-content p{
font-size: unset !important;
line-height: unset !important;
}
.notice-content ul{
font-size: unset !important;
line-height: unset !important;
}
.notice-content ol{
font-size: unset !important;
line-height: unset !important;
}
</style> </style>
...@@ -132,7 +132,8 @@ export default defineComponent({ ...@@ -132,7 +132,8 @@ export default defineComponent({
width: 450px; width: 450px;
} }
.right-bg{ .right-bg{
background-image: url(../../assets/images/login-right-bg.png); background-image: url(../../assets/img/login-bg.jpg);
/* url(../../assets/images/login-right-bg.png); */
background-position-x: left; background-position-x: left;
background-position-y: center; background-position-y: center;
background-repeat: no-repeat; background-repeat: no-repeat;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="q-mt-sm q-mb-lg" :class="[$q.platform.is.desktop ? 'passbook-form' : '']" :style="{ width: $q.platform.is.mobile ? '100%' : '' }"> <div class="q-mt-sm q-mb-lg" :class="[$q.platform.is.desktop ? 'passbook-form' : '']" :style="{ width: $q.platform.is.mobile ? '100%' : '' }">
<transition-group v-if="!isUseDetails" appear enter-active-class="animated fadeInRight" leave-active-class="animated fadeInLeft"> <transition-group v-if="!isUseDetails" appear enter-active-class="animated fadeInRight" leave-active-class="animated fadeInLeft">
<template v-if="MonthObj && datainfo"> <template v-if="MonthObj && datainfo">
<passbookHead :dataNum="datainfo ? datainfo.Client_Balance : 0" /> <!-- <passbookHead :dataNum="datainfo ? datainfo.Client_Balance : 0" /> -->
<!-- <rebate/> --> <!-- <rebate/> -->
<redEnvelope :Obj="MonthObj" :info="datainfo" /> <redEnvelope :Obj="MonthObj" :info="datainfo" />
</template> </template>
...@@ -94,11 +94,14 @@ export default defineComponent({ ...@@ -94,11 +94,14 @@ export default defineComponent({
} }
}) })
data.datainfo.RatioList = ratioListBase.value data.datainfo.RatioList = ratioListBase.value
data.datainfo.GuestNum = data.datainfo.GuestNum ? data.datainfo.GuestNum : 0 //data.datainfo.GuestNum = data.datainfo.GuestNum ? data.datainfo.GuestNum : 0
data.datainfo.RatioList.forEach(item => {
item.percent = data.datainfo.GuestNum / item.Money data.datainfo.RatioList.forEach((item,index) => {
const maxNum = item.Money
item.percent = parseFloat((data.datainfo.CurGuestNum / maxNum).toFixed(2))
item.width = item.percent * 100 item.width = item.percent * 100
}) })
console.log(data.datainfo.RatioList)
data.yMoney1 = data.yMoney1.concat(['-']) data.yMoney1 = data.yMoney1.concat(['-'])
data.MonthObj = { data.MonthObj = {
......
...@@ -105,11 +105,11 @@ export default defineComponent({ ...@@ -105,11 +105,11 @@ export default defineComponent({
{ name: 'ContactName', label: t('travel.ContactNamePay'), align: 'left', field: 'ContactName' }, { name: 'ContactName', label: t('travel.ContactNamePay'), align: 'left', field: 'ContactName' },
{ name: 'EntGuestNum', label: t('travel.EntGuestNum'), align: 'left', field: 'EntGuestNum' }, { name: 'EntGuestNum', label: t('travel.EntGuestNum'), align: 'left', field: 'EntGuestNum' },
{ name: 'GuestNum', label: t('travel.GuestNum'), align: 'left', field: 'GuestNum' }, { name: 'GuestNum', label: t('travel.GuestNum'), align: 'left', field: 'GuestNum' },
{ name: 'PreferPrice', label: t('travel.PreferPricePay'), align: 'left', field: 'PreferPrice' }, { name: 'PreferPrice', label: t('travel.PreferPricePay'), align: 'left', field: 'PreferPrice', format: (val: any) => val.toLocaleString() },
{ name: 'Refund', label: t('travel.Refund'), align: 'left', field: 'Refund' }, { name: 'Refund', label: t('travel.Refund'), align: 'left', field: 'Refund', format: (val: any) => val.toLocaleString() },
{ name: 'Income', label: t('travel.Income'), align: 'left', field: 'Income' }, { name: 'Income', label: t('travel.Income'), align: 'left', field: 'Income', format: (val: any) => val.toLocaleString() },
{ name: 'DiscountMoney', label: t('travel.DiscountMoney'), align: 'left', field: 'DiscountMoney' }, { name: 'DiscountMoney', label: t('travel.DiscountMoney'), align: 'left', field: 'DiscountMoney', format: (val: any) => val.toLocaleString() },
{ name: 'CommissionRate', label: t('travel.CommissionRate'), align: 'left', field: 'CommissionRate' }, { name: 'CommissionRate', label: t('travel.CommissionRate'), align: 'left', field: 'CommissionRate', format: (val: any) => val.toLocaleString() },
]) ])
const {query, params} = useRoute() const {query, params} = useRoute()
const search = { const search = {
......
...@@ -289,12 +289,14 @@ export default defineComponent({ ...@@ -289,12 +289,14 @@ export default defineComponent({
field: "tC_Price", field: "tC_Price",
label: t("travel.tC_Price"), label: t("travel.tC_Price"),
align: "left", align: "left",
format: (val: any) => val.toLocaleString(),
}, },
{ {
name: "unit_Price", name: "unit_Price",
field: "unit_Price", field: "unit_Price",
label: t("travel.unit_Price"), label: t("travel.unit_Price"),
align: "left", align: "left",
format: (val: any) => val.toLocaleString(),
}, },
{ {
name: "tradeWay", name: "tradeWay",
......
...@@ -216,7 +216,7 @@ ...@@ -216,7 +216,7 @@
></q-input> ></q-input>
</div> </div>
</div> </div>
<div class="row"> <!-- <div class="row">
<div class="col"> <div class="col">
<div class="title">{{ $t("travel.FSeatNum") }}</div> <div class="title">{{ $t("travel.FSeatNum") }}</div>
<q-input <q-input
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
@update:model-value="getNumber()" @update:model-value="getNumber()"
></q-input> ></q-input>
</div> </div>
</div> </div> -->
<!-- <div class="row"> <!-- <div class="row">
<div class="col"> <div class="col">
<div class="title">{{ $t('travel.ContactName') }}</div> <div class="title">{{ $t('travel.ContactName') }}</div>
...@@ -285,7 +285,7 @@ ...@@ -285,7 +285,7 @@
<div class="row justify-between items-center"> <div class="row justify-between items-center">
<div class="title">{{ $t("travel.PreferPrice") }}</div> <div class="title">{{ $t("travel.PreferPrice") }}</div>
<div class="text-subtitle2 text-weight-bolder text-primary"> <div class="text-subtitle2 text-weight-bolder text-primary">
{{ addMsg.PreferPrice }} {{ addMsg.PreferPrice.toLocaleString() }}
</div> </div>
</div> </div>
<div class="row justify-end"> <div class="row justify-end">
...@@ -312,10 +312,12 @@ import travelService from "../../../api/travel"; ...@@ -312,10 +312,12 @@ import travelService from "../../../api/travel";
import { ApiResult } from "../../../@types/enumHelper"; import { ApiResult } from "../../../@types/enumHelper";
import message from "../../../utils/message"; import message from "../../../utils/message";
import { getStoreGetter } from "../../../store/utils"; import { getStoreGetter } from "../../../store/utils";
import { useI18n } from 'vue-i18n'
export default defineComponent({ export default defineComponent({
props: ["info"], props: ["info"],
components: {}, components: {},
setup(props, context) { setup(props, context) {
const { t } = useI18n()
const addMsg = reactive({ const addMsg = reactive({
OrderSource: 2, OrderSource: 2,
price: 0, price: 0,
...@@ -760,7 +762,7 @@ export default defineComponent({ ...@@ -760,7 +762,7 @@ export default defineComponent({
.then((r) => { .then((r) => {
data.loading = false; data.loading = false;
if (r.data.resultCode == ApiResult.SUCCESS) { if (r.data.resultCode == ApiResult.SUCCESS) {
message.successMsg(r.data.message); message.successMsg(t('success'));
context.emit("close"); context.emit("close");
} else { } else {
message.errorMsg(r.data.message); message.errorMsg(r.data.message);
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
</q-popup-proxy> </q-popup-proxy>
</q-field> </q-field>
<q-input class="q-mr-md q-ml-md" v-model="search.TCID" dense standout :label="$t('travel.id')" /> <q-input class="q-mr-md q-ml-md" v-model="search.TCID" dense standout :label="$t('travel.id')" />
<q-input class="q-mr-md q-ml-md" v-model="search.StartAddress" dense standout :label="$t('travel.startCity')" /> <!-- <q-input class="q-mr-md q-ml-md" v-model="search.StartAddress" dense standout :label="$t('travel.startCity')" /> -->
<q-select class="q-mr-md q-ml-md" style="min-width: 190px" v-model="defaultStartCity" dense standout @update:model-value="startCityHandler" :label="$t('travel.startCity')" :options="startCityOptions" />
</template> </template>
<div class="col"></div> <div class="col"></div>
<q-btn unelevated class="bg-grey-3 hover q-mr-md" :title="$t('morequery')" v-if="$q.platform.is.mobile"> <q-btn unelevated class="bg-grey-3 hover q-mr-md" :title="$t('morequery')" v-if="$q.platform.is.mobile">
...@@ -37,8 +38,7 @@ ...@@ -37,8 +38,7 @@
<q-input class="q-mr-md q-ml-md" v-model="search.TCID" dense standout :label="$t('travel.id')" /> <q-input class="q-mr-md q-ml-md" v-model="search.TCID" dense standout :label="$t('travel.id')" />
</div> </div>
<div class="q-my-md"> <div class="q-my-md">
<q-input class="q-mr-md q-ml-md" v-model="search.StartAddress" dense standout <q-select class="q-mr-md q-ml-md" style="min-width: 190px" v-model="defaultStartCity" dense standout @update:model-value="startCityHandler" :label="$t('travel.startCity')" :options="startCityOptions" />
:label="$t('travel.startCity')" />
</div> </div>
</q-card> </q-card>
</q-popup-proxy> </q-popup-proxy>
...@@ -52,10 +52,11 @@ import { DirtionmaryHelper } from '../../../config/dictionary' ...@@ -52,10 +52,11 @@ import { DirtionmaryHelper } from '../../../config/dictionary'
import { computed, defineComponent, inject, reactive, ref } from 'vue' import { computed, defineComponent, inject, reactive, ref } from 'vue'
import { date } from 'quasar' import { date } from 'quasar'
import svgIcon from 'src/components/global/svg-icon.vue' import svgIcon from 'src/components/global/svg-icon.vue'
import { useI18n } from 'vue-i18n'
export default defineComponent({ export default defineComponent({
components: { svgIcon }, components: { svgIcon },
setup(props) { setup(props) {
const { t } = useI18n()
const qDateProxy = ref(null) as any const qDateProxy = ref(null) as any
const realSearch = inject(DirtionmaryHelper.TRAVEL_ORDER_OBJ) as any const realSearch = inject(DirtionmaryHelper.TRAVEL_ORDER_OBJ) as any
const search = reactive(JSON.parse(JSON.stringify(realSearch))) const search = reactive(JSON.parse(JSON.stringify(realSearch)))
...@@ -68,6 +69,14 @@ export default defineComponent({ ...@@ -68,6 +69,14 @@ export default defineComponent({
if (search.SelectEndDate != '') cnt++ if (search.SelectEndDate != '') cnt++
return cnt return cnt
}) })
const startCityOptions = ref([
{ label: t('travel.startCityList.all'), value: '' },
{ label: t('travel.startCityList.ss'), value: 'Surabaya' },
{ label: t('travel.startCityList.ml'), value: 'Medan' },
{ label: t('travel.startCityList.yjd'), value: 'Jakarta' },
{ label: t('travel.startCityList.bld'), value: 'Bali' },
])
const defaultStartCity = ref(startCityOptions.value[0])
// dateRange.to = date.formatDate(date.addToDate(new Date(), { days: 50 }), 'YYYY/MM/DD') // dateRange.to = date.formatDate(date.addToDate(new Date(), { days: 50 }), 'YYYY/MM/DD')
// dateRange.from = date.formatDate(date.addToDate(new Date(), { days: 20 }), 'YYYY/MM/DD') // dateRange.from = date.formatDate(date.addToDate(new Date(), { days: 20 }), 'YYYY/MM/DD')
const dateRangeFormat = ref(`${dateRange.from} - ${dateRange.to}`) const dateRangeFormat = ref(`${dateRange.from} - ${dateRange.to}`)
...@@ -96,6 +105,10 @@ export default defineComponent({ ...@@ -96,6 +105,10 @@ export default defineComponent({
optionsFn(cd: any) { optionsFn(cd: any) {
return cd >= date.formatDate(date.adjustDate(new Date(), { year: 2000, month: 1, days: 1 }), 'YYYY/MM/DD') return cd >= date.formatDate(date.adjustDate(new Date(), { year: 2000, month: 1, days: 1 }), 'YYYY/MM/DD')
}, },
startCityHandler(e: any) {
console.log(e)
search.StartAddress = e.value
}
} }
return { return {
...methods, ...methods,
...@@ -103,7 +116,9 @@ export default defineComponent({ ...@@ -103,7 +116,9 @@ export default defineComponent({
dateRange, dateRange,
dateRangeFormat, dateRangeFormat,
searchCnt, searchCnt,
canHide canHide,
startCityOptions,
defaultStartCity
} }
} }
}) })
......
This diff is collapsed.
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