Commit 37ea3e5c authored by youjie's avatar youjie

no message

parent af08ccc9
...@@ -2,6 +2,10 @@ import { HttpResponse } from '../@types' ...@@ -2,6 +2,10 @@ import { HttpResponse } from '../@types'
import request from './request' import request from './request'
class HotelService { class HotelService {
// 提交訂單
static async SetCustomerOrder(param:any):Promise<HttpResponse>{
return request('dict_post_SetCustomerOrder',param)
}
/** /**
* 查詢城市信息 * 查詢城市信息
......
This diff is collapsed.
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
import { UserActionsType } from '../../../store/modules/user/actions'; import { UserActionsType } from '../../../store/modules/user/actions';
import { DirtionmaryHelper } from '../../../config/dictionary' import { DirtionmaryHelper } from '../../../config/dictionary'
import message from '../../../utils/message' import message from '../../../utils/message'
import HotelService from '../../../api/hotel'
export default defineComponent({ export default defineComponent({
props: { props: {
HotelRow:{ HotelRow:{
...@@ -91,7 +92,6 @@ ...@@ -91,7 +92,6 @@
}, },
setup(props, context) { setup(props, context) {
const {locale,t } = useI18n(); const {locale,t } = useI18n();
inject(DirtionmaryHelper.HOTEL_CAR_LIST)
const HotelCarList = inject(DirtionmaryHelper.HOTEL_CAR_LIST) const HotelCarList = inject(DirtionmaryHelper.HOTEL_CAR_LIST)
const data=reactive({ const data=reactive({
HotelRow: props.HotelRow, HotelRow: props.HotelRow,
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
addPeople(item: String,type:any){ addPeople(item: String,type:any){
if(type==1&&item.Number<data.hotelInfor.RemainingInventory){ if(type==1&&item.Number<data.hotelInfor.RemainingInventory){
item.PeopleNumber++ item.PeopleNumber++
}else if(type==0&&item.Number>1){ }else if(type==0&&item.PeopleNumber>1){
item.PeopleNumber-- item.PeopleNumber--
} }
}, },
...@@ -158,6 +158,8 @@ ...@@ -158,6 +158,8 @@
rooms: [] as Array<any> rooms: [] as Array<any>
} }
data.parameters.DetailList.forEach((x,index)=>{ data.parameters.DetailList.forEach((x,index)=>{
msgData.TaxesPrice = x.TaxesPrice
msgData.PriceInTangTax = x.PriceInTangTax
if(x.Number>0){ if(x.Number>0){
let ArrData = { let ArrData = {
HotelId: x.HotelId, HotelId: x.HotelId,
...@@ -176,39 +178,25 @@ ...@@ -176,39 +178,25 @@
msgData.timeList.push(msg) msgData.timeList.push(msg)
if(data.total>0){ if(data.total>0){
let list = HotelCarList._value let list = HotelCarList._value
let fault = true
if(list.length>0){ if(list.length>0){
let fault = true
list.forEach((item,index)=>{ list.forEach((item,index)=>{
if(item.HotelId==parameters.HotelId){ if(item.HotelId==parameters.HotelId){
item.timeList.forEach((x,i)=>{ item.timeList.forEach((x,i)=>{
if(fault&&x.Date==parameters.Date){ if(fault&&x.Date==parameters.Date){
HotelCarList._value[index].timeList.splice(i,1) HotelCarList._value[index].timeList.splice(i,1)
HotelCarList._value[index].timeList.push(msg) HotelCarList._value[index].timeList.push(msg)
console.log('000--')
fault = false fault = false
}else if(fault&&x.Date!=parameters.Date){ }else if(fault&&x.Date!=parameters.Date){
HotelCarList._value[index].timeList.push(msg) HotelCarList._value[index].timeList.push(msg)
console.log('11111--')
fault = false fault = false
}else{
// console.log(fault,x.Date,parameters.Date)
} }
}) })
}else if(fault&&item.HotelId!=parameters.HotelId){
item.timeList.forEach((x,i)=>{
if(fault&&x.Date==parameters.Date){
HotelCarList._value[index].timeList.splice(i,1)
HotelCarList._value[index].timeList.push(msg)
fault = false
}else if(fault&&x.Date!=parameters.Date){
HotelCarList._value[index].timeList.push(msg)
fault = false
console.log('3333')
}
})
} }
}) })
fault = true if(fault) HotelCarList._value.push(msgData)
}else{ }else{
HotelCarList._value.push(msgData) HotelCarList._value.push(msgData)
} }
......
import { OrderType } from './../../@types/index';
// This is just an example, // This is just an example,
// so you can safely delete all default props below // so you can safely delete all default props below
...@@ -122,7 +123,14 @@ export default { ...@@ -122,7 +123,14 @@ export default {
addShopping: '加入購物車', addShopping: '加入購物車',
orderTitle: '訂單', orderTitle: '訂單',
people: '人', people: '人',
between: '间' between: '间',
submit: '提交',
tax: '税',
soup: '入汤',
OrderType: '訂單類型',
TCNum: '组团号',
ContactName: '联系人名稱',
ContactNumber: '联系人电话'
}, },
shopping:{ shopping:{
labelNum: '房數', labelNum: '房數',
......
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