Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigwood
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
bigwood
Commits
37ea3e5c
Commit
37ea3e5c
authored
Nov 11, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
af08ccc9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
179 additions
and
50 deletions
+179
-50
hotel.ts
src/api/hotel.ts
+4
-0
ListCar.vue
src/components/hotel/list/ListCar.vue
+158
-29
Table-Operation.vue
src/components/hotel/list/Table-Operation.vue
+8
-20
index.ts
src/i18n/zh-TW/index.ts
+9
-1
No files found.
src/api/hotel.ts
View file @
37ea3e5c
...
...
@@ -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
)
}
/**
* 查詢城市信息
...
...
src/components/hotel/list/ListCar.vue
View file @
37ea3e5c
This diff is collapsed.
Click to expand it.
src/components/hotel/list/Table-Operation.vue
View file @
37ea3e5c
...
...
@@ -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
.
People
Number
>
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
)
}
...
...
src/i18n/zh-TW/index.ts
View file @
37ea3e5c
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
:
'房數'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment