Commit 3f01643f authored by youjie's avatar youjie

no message

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