Commit 37ea3e5c authored by youjie's avatar youjie

no message

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