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
49075327
Commit
49075327
authored
Oct 17, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
b29d479a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
25 deletions
+43
-25
TripOrderPreview.vue
src/pages/scheduledTrip/TripOrderPreview.vue
+43
-25
No files found.
src/pages/scheduledTrip/TripOrderPreview.vue
View file @
49075327
...
...
@@ -480,11 +480,6 @@ export default defineComponent({
const
guestEName
=
ref
(
null
)
as
any
;
const
guestMobile
=
ref
(
null
)
as
any
;
const
guestAddress
=
ref
(
null
)
as
any
;
// let time = currentRouter.currentRoute.value.params.Time
// data.OpenTime = time.substring(0,4)+'-'+time.substring(4,6)+'-'+time.substring(6,8)
// data.msg.tcid = currentRouter.currentRoute.value.params.tripId
// date.formatDate(date.addToDate(new Date(), { days: 1 }), 'MM月DD日 ddd')
data
.
msg
.
UseDate
=
date
.
formatDate
(
date
.
addToDate
(
new
Date
(),
{
days
:
0
}),
"YYYY/MM/DD"
...
...
@@ -552,27 +547,51 @@ export default defineComponent({
},
// 计算总金额
calcMoney
()
{
let
money
=
data
.
price
.
originalB2BPrice
*
data
.
chosenObj
.
crCount
;
data
.
price
.
discountPrice
=
data
.
price
.
discountPrice
?
data
.
price
.
discountPrice
:
0
;
money
+=
(
data
.
price
.
originalB2BPrice
-
data
.
price
.
childNoNeedPrice
+
data
.
price
.
babyChargePrice
)
*
//成人价格
let
crMoney
=
data
.
price
.
originalB2BPrice
*
data
.
chosenObj
.
crCount
;
//儿童不占床价格
let
etbzcMoney
=
(
data
.
price
.
originalB2BPrice
-
data
.
price
.
childNoNeedPrice
)
*
data
.
chosenObj
.
etbzcCount
;
money
+=
(
data
.
price
.
originalB2BPrice
+
data
.
price
.
childNeedPrice
+
data
.
price
.
babyChargePrice
)
*
//儿童占床价格
let
etzcMoney
=
(
data
.
price
.
originalB2BPrice
+
data
.
price
.
childNeedPrice
)
*
data
.
chosenObj
.
etzcCount
;
money
+=
data
.
price
.
babyPrice
*
data
.
chosenObj
.
yeCount
;
money
+=
data
.
price
.
singleRoomPrice
*
data
.
chosenObj
.
df
;
let
sumCount
=
data
.
chosenObj
.
crCount
+
data
.
chosenObj
.
etCount
;
money
+=
data
.
price
.
visaPrice
*
sumCount
;
money
+=
data
.
price
.
safeMoney
*
sumCount
;
money
+=
data
.
price
.
otherPrice
*
sumCount
;
//婴儿价格
let
babyMoney
=
data
.
price
.
babyPrice
*
data
.
chosenObj
.
yeCount
;
//单房差
let
singleRoomMoney
=
data
.
price
.
singleRoomPrice
*
data
.
chosenObj
.
df
;
let
sumCount
=
data
.
chosenObj
.
crCount
+
data
.
chosenObj
.
etbzcCount
+
data
.
chosenObj
.
etzcCount
+
data
.
chosenObj
.
yeCount
;
//签证费
let
visaMoney
=
data
.
price
.
visaPrice
*
sumCount
;
let
safeMoney
=
data
.
price
.
safeMoney
*
sumCount
;
let
otherMoney
=
data
.
price
.
otherPrice
*
sumCount
;
// console.log("totalPersion", sumCount);
// console.log("crMoney", crMoney);
// console.log("etbzcMoney", etbzcMoney);
// console.log("etzcMoney", etzcMoney);
// console.log("babyMoney", babyMoney);
// console.log("singleRoomMoney", singleRoomMoney);
// console.log("visaMoney", visaMoney);
// console.log("safeMoney", safeMoney);
// console.log("otherMoney", otherMoney);
let
money
=
crMoney
+
etbzcMoney
+
etzcMoney
+
babyMoney
+
singleRoomMoney
+
visaMoney
+
safeMoney
+
otherMoney
;
//console.log("money",money);
data
.
sumPrice
=
money
;
if
(
data
.
sumPrice
>
0
)
{
data
.
isCheck
=
true
;
...
...
@@ -629,7 +648,7 @@ export default defineComponent({
data
.
chosenObj
.
srf
;
}
fcnt
+=
data
.
chosenObj
.
dcf
+
data
.
chosenObj
.
df
+
data
.
chosenObj
.
srf
;
let
childNum
=
data
.
chosenObj
.
etCount
+
data
.
chosenObj
.
etzc
;
data
.
parameters
=
{
OrderId
:
0
,
TCID
:
data
.
msg
.
tcid
,
//产品tcid
...
...
@@ -651,8 +670,8 @@ export default defineComponent({
Unit_Price
:
data
.
detailsObj
.
currentPriceInfo
.
b2BPrice
,
//成交单价
TC_Price
:
data
.
detailsObj
.
currentPriceInfo
.
b2BMemberPrice
,
//团本来的价格、单价
ManNum
:
data
.
chosenObj
.
crCount
,
//成人数
ChirdNum
:
data
.
chosenObj
.
etCount
,
//儿童数
不占床
ChirdNeedBedNum
:
data
.
chosenObj
.
etzc
,
//儿童数占床
ChirdNum
:
childNum
,
//儿童数不占床+儿童
不占床
ChirdNeedBedNum
:
data
.
chosenObj
.
etzc
Count
,
//儿童数占床
BabyNum
:
data
.
chosenObj
.
yeCount
,
//婴儿数
OldPeopleNum
:
data
.
chosenObj
.
lrCount
,
//老人数
SingleRoomNum
:
data
.
chosenObj
.
df
,
//单人房数
...
...
@@ -746,7 +765,6 @@ export default defineComponent({
},
submit
()
{
if
(
!
data
.
isCheck
)
return
;
// let flag = false
if
(
data
.
loading
)
return
;
data
.
loading
=
true
;
let
param
=
Object
.
assign
(
data
.
parameters
);
...
...
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