Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
罗超
SuperMan
Commits
93b46afd
Commit
93b46afd
authored
Sep 27, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
34c65107
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
95 additions
and
4 deletions
+95
-4
order-form2.vue
src/components/orderCommon/order-form2.vue
+95
-4
No files found.
src/components/orderCommon/order-form2.vue
View file @
93b46afd
<
style
scoped
>
.coupon-form
{
border-radius
:
24px
;
background
:
#d1d1d1
;
overflow
:
hidden
;
display
:
flex
;
text-align
:
center
;
}
.coupon-left
{
flex-grow
:
1
;
background
:
#EE727D
;
color
:
#fff
;
padding
:
10px
10px
;
font-size
:
14px
;
}
.coupon-left
p
:first-child
{
font-size
:
16px
;
font-weight
:
bold
;
}
.coupon-right
{
width
:
150px
;
flex-shrink
:
0
;
padding
:
10px
10px
;
font-size
:
14px
;
}
.coupon-right
span
{
color
:
#000
;
}
.coupon-right
p
:first-child
{
font-size
:
18px
;
font-weight
:
bold
;
}
.commonOrderForm
{
position
:
fixed
;
left
:
0
;
...
...
@@ -89,7 +120,7 @@
<el-col
:span=
"4"
v-if=
"pagesTitle != '当地游产品'"
>
<!-- 参团类型 -->
<el-form-item
:label=
"$t('fnc.ctleixing')"
prop=
"GroupType"
>
<el-select
v-model=
"addMsg.GroupType"
@
change=
"changeGroupType(addMsg.GroupType)"
filterable
<el-select
v-model=
"addMsg.GroupType"
@
change=
"changeGroupType(addMsg.GroupType)
,GetAutoCouponOrder()
"
filterable
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
v-for=
"item in joinTypeList"
:label=
"item.Name"
:value=
"item.Id"
:key=
"item.Id"
>
</el-option>
...
...
@@ -122,7 +153,7 @@
<!--同行Id-->
<el-form-item
:label=
"$t('salesModule.CustomerStore')"
prop=
"CustomerId"
>
<el-select
v-model=
"addMsg.CustomerId"
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"changeCustomer"
>
@
change=
"changeCustomer
(),GetAutoCouponOrder()
"
>
<el-option
v-for=
"(item, index) in customerList"
:label=
"item.customerName + '-' + item.contact"
:value=
"item.customerId"
:key=
"index"
>
</el-option>
...
...
@@ -263,6 +294,29 @@
</p>
</el-form-item>
</el-col>
<el-col
:span=
"4"
v-if=
"couponData"
>
<div
class=
"coupon-form"
>
<div
class=
"coupon-left"
>
<p>
{{couponData.Denomination}}
<span
style=
"font-size: 16px;font-weight: bold;"
>
元
</span>
</p>
<p>
<span>
满
</span>
{{couponData.UseCondition}}
<span
style=
"font-size: 16px;font-weight: bold;"
>
元
</span>
<span>
可用
</span>
</p>
</div>
<div
class=
"coupon-right"
>
<p>
{{couponData.CouponsName}}
</p>
<p>
<
template
v-if=
"couponData.CouponsType==1"
>
抵用券
</
template
>
<
template
v-if=
"couponData.CouponsType==2"
>
折扣券
</
template
>
</p>
</div>
</div>
</el-col>
</el-row>
<div
style=
"width: 100%; border-top: 1px dashed #ccc; margin-bottom: 25px"
></div>
<el-row
:gutter=
"20"
>
...
...
@@ -284,7 +338,7 @@
getNumber();
getHouseNo();
getTotalPrice();
"
@
change=
"getNumGuest"
></el-input>
"
@
change=
"getNumGuest
(),GetAutoCouponOrder()
"
></el-input>
</el-form-item>
</el-col>
<
template
v-if=
"pagesTitle == '跟团游产品'"
>
...
...
@@ -361,7 +415,7 @@
getHouseNo();
getTotalPrice();
autoRemarks('OldPeopleNum', '老人人数');
"
></el-input>
"
@
change=
"GetAutoCouponOrder()"
></el-input>
</el-form-item>
</el-col>
</
template
>
...
...
@@ -911,9 +965,44 @@
countryList
:
[],
//国籍
priceObj
:
{},
//团期价格信息
crmOrderObj
:
null
,
couponData
:
null
,
};
},
methods
:
{
// 大人>=2优惠
GetAutoCouponOrder
(){
this
.
couponData
=
null
let
ChirdNum
=
Number
(
this
.
addMsg
.
ChirdNum
);
if
(
this
.
addMsg
.
GroupType
==
4
)
{
ChirdNum
=
0
;
}
this
.
addMsg
.
GuestNum
=
Number
(
this
.
addMsg
.
ManNum
)
+
ChirdNum
+
Number
(
this
.
addMsg
.
OldPeopleNum
)
+
Number
(
this
.
addMsg
.
BabyNum
)
+
Number
(
this
.
addMsg
.
AirticketNum
);
let
OrderGuest
=
this
.
addMsg
.
GuestNum
-
Number
(
this
.
addMsg
.
BabyNum
)
if
(
OrderGuest
>=
2
&&
(
this
.
addMsg
.
GroupType
==
1
||
this
.
addMsg
.
GroupType
==
2
)
&&
this
.
addMsg
.
CustomerId
>
0
){
let
msg
=
{
TCID
:
this
.
productObj
.
TCID
,
CustomerId
:
this
.
addMsg
.
CustomerId
,
OrderId
:
0
,
StratDate
:
this
.
productObj
.
StartCityTime
,
OrderGuest
:
OrderGuest
,
lineId
:
this
.
priceObj
.
LineID
}
this
.
apipost
(
"coupon_post_GetAutoCouponOrder"
,
msg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
couponData
=
res
.
data
.
data
}
}
);
}
},
Transformation
(
val
,
type
,
index
)
{
let
text
=
this
.
pinyin
(
val
,
{
style
:
this
.
pinyin
.
STYLE_NORMAL
,
...
...
@@ -1957,6 +2046,7 @@
Number
(
this
.
addMsg
.
OldPeopleNum
)
+
Number
(
this
.
addMsg
.
BabyNum
)
+
Number
(
this
.
addMsg
.
AirticketNum
);
this
.
addMsg
.
IsChildrenTour
=
this
.
priceObj
.
IsSupportChildren
;
this
.
addMsg
.
IsBirdDiscount
=
this
.
priceObj
.
IsBirdDiscount
;
let
url
;
...
...
@@ -2265,6 +2355,7 @@
handler
(
oldValue
,
newVal
)
{
this
.
clearMsg
();
//this.getTravelPirceInfo();
console
.
log
(
oldValue
,
'----------'
)
this
.
addMsg
.
DepartureCityId
=
oldValue
.
StartCityID
;
this
.
addMsg
.
ReturnArriveCityId
=
oldValue
.
ReturnArriveCityId
;
this
.
addMsg
.
GoCityTime
=
this
.
starTime
=
oldValue
.
StartCityTime
;
...
...
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