Commit 3f01643f authored by youjie's avatar youjie

no message

parent dee49704
...@@ -125,6 +125,7 @@ import { useQuasar } from 'quasar' ...@@ -125,6 +125,7 @@ import { useQuasar } from 'quasar'
export default defineComponent({ export default defineComponent({
props: {}, props: {},
setup(props, context) { setup(props, context) {
const orderstatus = inject(DirtionmaryHelper.HOTEL_CAR_ORDER_STATUS) as Boolean
const cars = inject(DirtionmaryHelper.HOTEL_CAR_LIST) as any const cars = inject(DirtionmaryHelper.HOTEL_CAR_LIST) as any
const editor = inject(DirtionmaryHelper.HOTEL_UPDATEHOTEL_CAR) as any const editor = inject(DirtionmaryHelper.HOTEL_UPDATEHOTEL_CAR) as any
const { t } = useI18n() const { t } = useI18n()
...@@ -225,6 +226,7 @@ export default defineComponent({ ...@@ -225,6 +226,7 @@ export default defineComponent({
message.successMsg(`${t('success')}`) message.successMsg(`${t('success')}`)
localStorage.removeItem(DirtionmaryHelper.HOTEL_HOTELCARS_CACHE) localStorage.removeItem(DirtionmaryHelper.HOTEL_HOTELCARS_CACHE)
cars.value=[] cars.value=[]
orderstatus.value = true
context.emit('success') context.emit('success')
} else { } else {
message.errorMsg(r.data.message) message.errorMsg(r.data.message)
......
...@@ -99,6 +99,7 @@ export default defineComponent({ ...@@ -99,6 +99,7 @@ export default defineComponent({
setup() { setup() {
const $q=useQuasar() const $q=useQuasar()
const { t } = useI18n() const { t } = useI18n()
const orderstatus = inject(DirtionmaryHelper.HOTEL_CAR_ORDER_STATUS) as Boolean
const search = inject(DirtionmaryHelper.HOTEL_QUERY_PARAM) as any const search = inject(DirtionmaryHelper.HOTEL_QUERY_PARAM) as any
const updateHotel = inject(DirtionmaryHelper.HOTEL_UPDATEHOTEL_CAR) as any const updateHotel = inject(DirtionmaryHelper.HOTEL_UPDATEHOTEL_CAR) as any
watch(search, (n, o) => { watch(search, (n, o) => {
...@@ -113,6 +114,13 @@ export default defineComponent({ ...@@ -113,6 +114,13 @@ export default defineComponent({
data.orderSubmitItemObj=null data.orderSubmitItemObj=null
data.orderSubmitObj=null data.orderSubmitObj=null
} }
methods.initHotels()
})
watch(orderstatus,(n,o)=>{
if(orderstatus.value==true){
methods.initHotels()
orderstatus.value = false
}
}) })
const data = reactive({ const data = reactive({
......
...@@ -43,5 +43,10 @@ class DirtionmaryHelper { ...@@ -43,5 +43,10 @@ class DirtionmaryHelper {
* 要修改的酒店預訂對象 * 要修改的酒店預訂對象
*/ */
static readonly HOTEL_UPDATEHOTEL_CAR = "hotelupdatecar" static readonly HOTEL_UPDATEHOTEL_CAR = "hotelupdatecar"
/**
* 酒店訂單確定下單狀態
*/
static readonly HOTEL_CAR_ORDER_STATUS = "hotelcarorderstatus"
} }
export { userDictionmary,DirtionmaryHelper } export { userDictionmary,DirtionmaryHelper }
...@@ -48,6 +48,8 @@ export default defineComponent({ ...@@ -48,6 +48,8 @@ export default defineComponent({
provide(DirtionmaryHelper.HOTEL_CAR_LIST, HotelCarList) provide(DirtionmaryHelper.HOTEL_CAR_LIST, HotelCarList)
const updateObj = ref<any>({}) const updateObj = ref<any>({})
provide(DirtionmaryHelper.HOTEL_UPDATEHOTEL_CAR,updateObj) provide(DirtionmaryHelper.HOTEL_UPDATEHOTEL_CAR,updateObj)
const orderstatus = ref(false)
provide(DirtionmaryHelper.HOTEL_CAR_ORDER_STATUS,orderstatus)
const menu=inject(DirtionmaryHelper.MENU_KEYS) as any const menu=inject(DirtionmaryHelper.MENU_KEYS) as any
menu.value=2 menu.value=2
......
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