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
774c459d
Commit
774c459d
authored
Jul 16, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
97004ef3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
161 additions
and
146 deletions
+161
-146
order-form2.vue
src/components/orderCommon/order-form2.vue
+161
-146
No files found.
src/components/orderCommon/order-form2.vue
View file @
774c459d
...
...
@@ -56,15 +56,17 @@
.el-input-group__prepend
{
padding
:
0
5px
!important
;
}
/
deep
/
.SimulateDrop-box
{
width
:
176px
;
min-height
:
34px
;
position
:
relative
;
padding
:
5px
21px
5px
6px
;
float
:
left
;
/* margin: 4px 0 0 10px; */
border
:
1px
solid
#d1d1d1
;
}
/
deep
/
.SimulateDrop-box
{
width
:
176px
;
min-height
:
34px
;
position
:
relative
;
padding
:
5px
21px
5px
6px
;
float
:
left
;
/* margin: 4px 0 0 10px; */
border
:
1px
solid
#d1d1d1
;
}
.SD_flight
{
display
:
inline-block
;
height
:
24px
;
...
...
@@ -73,12 +75,14 @@
line-height
:
22px
;
background-color
:
#f0f2f5
;
}
.SimulaDrop
{
.SimulaDrop
{
position
:
absolute
;
top
:
3px
;
right
:
10px
;
color
:
#c0c4cc
;
}
._TravelPricePopover
.jiDiv
{
width
:
750px
;
max-height
:
400px
;
...
...
@@ -118,6 +122,7 @@
._TravelPricePopover
table
td
._d_name
{
background-color
:
#ededed
;
}
</
style
>
<!--下单表单-->
<
template
>
...
...
@@ -207,8 +212,8 @@
<!--同行联系人Id-->
<el-form-item
:label=
"$t('hotel.suplier_contact')"
prop=
"CustomerChildrenId"
>
<el-select
v-model=
"addMsg.CustomerChildrenId"
filterable
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
v-for=
"(item, index) in customerChildrenList"
:label=
"item.contactName +'-'+item.contactPhone+ '/' + item.contactDuty"
:value=
"item.id"
:key=
"index"
>
<el-option
v-for=
"(item, index) in customerChildrenList"
:
label=
"item.contactName +'-'+item.contactPhone+ '/' + item.contactDuty"
:
value=
"item.id"
:key=
"index"
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -605,43 +610,45 @@
</
template
>
<el-col
:span=
"4"
v-if=
"showCity && pagesTitle == '跟团游产品'"
>
<!-- {{ScenicRefundList}} -->
<el-form-item
:label=
"$t('salesModule.ScenicRefund')"
>
<el-popover
popper-class=
"_TravelPricePopover"
trigger=
"click"
>
<div>
<div
class=
"ScenicDiv"
>
<table
width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<!-- <td class="_color_666">{{$t('fnc.xuanze')}}</td> -->
<td
class=
"_color_666"
>
{{$t('visaT.jdname')}}
</td>
<td
class=
"_color_666"
>
{{$t('fnc.tkjine')}}
</td>
<td
class=
"_color_666"
>
{{$t('fnc.qxrenshu')}}
</td>
</tr>
<tr
v-for=
"item in ScenicRefundList"
>
<!-- <td>
<el-form-item
:label=
"$t('salesModule.ScenicRefund')"
>
<el-popover
popper-class=
"_TravelPricePopover"
trigger=
"click"
>
<div>
<div
class=
"ScenicDiv"
>
<table
width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<!-- <td class="_color_666">{{$t('fnc.xuanze')}}</td> -->
<td
class=
"_color_666"
>
{{$t('visaT.jdname')}}
</td>
<td
class=
"_color_666"
>
{{$t('fnc.tkjine')}}
</td>
<td
class=
"_color_666"
>
{{$t('fnc.qxrenshu')}}
</td>
</tr>
<tr
v-for=
"item in ScenicRefundList"
>
<!-- <td>
<el-checkbox :checked="item.IsChecked" ></el-checkbox>
@change="getScenic(item)"
</td> -->
<td>
{{item.CouponsName}}
</td>
<td>
-¥{{item.RefundMoney}}
</td>
<td>
<el-input
class=
"w80"
type=
"Number"
:max=
'addMsg.GuestNum'
v-model=
"item.Number"
@
keyup
.
native=
"initScenic()"
></el-input>
<!-- -->
</td>
</tr>
</table>
</div>
</div>
<div
slot=
"reference"
class=
"SimulateDrop-box"
>
<span
class=
"SD_flight"
v-for=
"subItem in addMsg.ScenicList"
>
{{subItem.ScenicName}}*{{subItem.Number}}
</span>
<i
class=
"iconfont icon-arrow-down SimulaDrop"
></i>
</div>
</el-popover>
</el-form-item>
<td>
{{item.CouponsName}}
</td>
<td>
-¥{{item.RefundMoney}}
</td>
<td>
<el-input
class=
"w80"
type=
"Number"
:max=
'addMsg.GuestNum'
v-model=
"item.Number"
@
keyup
.
native=
"initScenic()"
></el-input>
<!-- -->
</td>
</tr>
</table>
</div>
</div>
<div
slot=
"reference"
class=
"SimulateDrop-box"
>
<span
class=
"SD_flight"
v-for=
"subItem in addMsg.ScenicList"
>
{{subItem.ScenicName}}*{{subItem.Number}}
</span>
<i
class=
"iconfont icon-arrow-down SimulaDrop"
></i>
</div>
</el-popover>
</el-form-item>
<!-- <el-form-item :label="$t('salesModule.ScenicRefund')">
<el-select filterable multiple class="multiple_input" v-model="addMsg.ScenicRefundArr"
:placeholder="$t('pub.pleaseSel')" @change="ScenicRefundMethods">
...
...
@@ -882,7 +889,7 @@
returnPriceShow
:
false
,
minPrice
:
0
,
Unit_PriceList
:
[],
//成交单价下拉数据
// ScenicList:[],//已输入景点的退款人数
// ScenicList:[],//已输入景点的退款人数
LessMoney
:
0
,
addMsg
:
{
price
:
"0"
,
...
...
@@ -896,7 +903,7 @@
ContactName
:
""
,
ContactMobile
:
""
,
CustomerId
:
""
,
CustomerChildrenId
:
""
,
CustomerChildrenId
:
""
,
DepartureCityId
:
"0"
,
ReturnArriveCityId
:
""
,
IsIntermodal
:
"2"
,
...
...
@@ -935,7 +942,7 @@
SafeNum
:
"0"
,
AirticketNum
:
"0"
,
ScenicRefundArr
:
[],
ScenicList
:
[],
//可退景点人数
ScenicList
:
[],
//可退景点人数
GoCityTime
:
""
,
BackCityTime
:
""
,
CommissionSharePeople
:
"0"
,
...
...
@@ -965,7 +972,7 @@
},
],
CustomerChildrenId
:
[{
required
:
true
,
message
:
this
.
$t
(
'objFill.qingxzkhmd'
)
+
this
.
$t
(
'hotel.suplier_contact'
),
message
:
this
.
$t
(
'objFill.qingxzkhmd'
)
+
this
.
$t
(
'hotel.suplier_contact'
),
trigger
:
"change"
,
},
],
ManNum
:
[{
...
...
@@ -1150,19 +1157,18 @@
//初始化景点
initScenic
()
{
this
.
addMsg
.
ScenicList
=
[];
var
totalGuest
=
(
Number
(
this
.
addMsg
.
ManNum
)
+
Number
(
this
.
addMsg
.
ChirdNum
)
+
Number
(
this
.
addMsg
.
OldPeopleNum
))
var
totalGuest
=
(
Number
(
this
.
addMsg
.
ManNum
)
+
Number
(
this
.
addMsg
.
ChirdNum
)
+
Number
(
this
.
addMsg
.
OldPeopleNum
))
this
.
ScenicRefundList
.
forEach
(
x
=>
{
if
(
/^
\d
+$/
.
test
(
x
.
Number
)
&&
x
.
Number
>
0
&&
x
.
Number
<=
totalGuest
)
{
if
(
/^
\d
+$/
.
test
(
x
.
Number
)
&&
x
.
Number
>
0
&&
x
.
Number
<=
totalGuest
)
{
this
.
addMsg
.
ScenicList
.
push
(
x
);
}
else
{
x
.
Number
=
0
;
}
else
{
x
.
Number
=
0
;
}
})
this
.
getTotalPrice
();
this
.
getTotalPrice
();
this
.
getTicheng
();
console
.
log
(
"this.ScenicList"
,
this
.
addMsg
.
ScenicList
);
console
.
log
(
"this.ScenicList"
,
this
.
addMsg
.
ScenicList
);
},
// 获取已选优惠券
getDiscountAmount
()
{
...
...
@@ -1752,8 +1758,8 @@
resetSelect
()
{
if
(
this
.
addMsg
.
CustomerType
==
1
||
this
.
addMsg
.
CustomerType
==
2
)
{
this
.
addMsg
.
CustomerId
=
""
;
this
.
addMsg
.
CustomerChildrenId
=
""
;
this
.
customerChildrenList
=
[];
this
.
addMsg
.
CustomerChildrenId
=
""
;
this
.
customerChildrenList
=
[];
}
},
//清空联系人和联系电话
...
...
@@ -1906,7 +1912,10 @@
0
;
}
// this.addMsg.PredictRoomNum = (Number(this.addMsg.AirticketNum) + (Number(this.addMsg.ManNum) +Number(this.addMsg.ChirdNeedBedNum) -Number(etbzc) +Number(this.addMsg.OldPeopleNum)) -Number(this.addMsg.TripleRoomNum) * 3 -Number(this.addMsg.SingleRoomNum)) /2 +Number(this.addMsg.SingleRoomNum) +Number(this.addMsg.TripleRoomNum);
this
.
addMsg
.
PredictRoomNum
=
(
Number
(
this
.
addMsg
.
AirticketNum
)
+
(
Number
(
this
.
addMsg
.
ManNum
)
+
Number
(
this
.
addMsg
.
ChirdNeedBedNum
)
-
Number
(
etbzc
)
+
Number
(
this
.
addMsg
.
OldPeopleNum
))
-
Number
(
this
.
addMsg
.
TripleRoomNum
)
*
3
-
Number
(
this
.
addMsg
.
SingleRoomNum
))
/
2
+
Number
(
this
.
addMsg
.
SingleRoomNum
)
+
Number
(
this
.
addMsg
.
TripleRoomNum
);
this
.
addMsg
.
PredictRoomNum
=
(
Number
(
this
.
addMsg
.
AirticketNum
)
+
(
Number
(
this
.
addMsg
.
ManNum
)
+
Number
(
this
.
addMsg
.
ChirdNeedBedNum
)
-
Number
(
etbzc
)
+
Number
(
this
.
addMsg
.
OldPeopleNum
))
-
Number
(
this
.
addMsg
.
TripleRoomNum
)
*
3
-
Number
(
this
.
addMsg
.
SingleRoomNum
))
/
2
+
Number
(
this
.
addMsg
.
SingleRoomNum
)
+
Number
(
this
.
addMsg
.
TripleRoomNum
);
},
getNumber
()
{
if
(
...
...
@@ -2023,7 +2032,8 @@
let
danfang
=
Number
(
this
.
addMsg
.
SingleRoomNum
)
*
this
.
priceObj
.
SingleRoomPrice
;
//儿童占床、不占床价格
let
ertongbed
=
this
.
priceObj
.
ChildNeedPrice
*
Number
(
this
.
addMsg
.
ChirdNeedBedNum
)
-
this
.
priceObj
.
ChildNoNeedPrice
*
(
Number
(
this
.
addMsg
.
ChirdNum
)
-
Number
(
this
.
addMsg
.
ChirdNeedBedNum
));
let
ertongbed
=
this
.
priceObj
.
ChildNeedPrice
*
Number
(
this
.
addMsg
.
ChirdNeedBedNum
)
-
this
.
priceObj
.
ChildNoNeedPrice
*
(
Number
(
this
.
addMsg
.
ChirdNum
)
-
Number
(
this
.
addMsg
.
ChirdNeedBedNum
));
//联运 (单价已包含联运价格了,所以不需要联运价格)
let
lianyun
=
0
;
...
...
@@ -2033,12 +2043,14 @@
// (Number(this.stratPrice) + Number(this.returnPrice));
//退景点费用
var
refundScenicPrice
=
0
;
if
(
this
.
addMsg
.
ScenicList
!=
null
&&
this
.
addMsg
.
ScenicList
.
length
>
0
){
var
totalGuest
=
(
Number
(
this
.
addMsg
.
ManNum
)
+
Number
(
this
.
addMsg
.
ChirdNum
)
+
Number
(
this
.
addMsg
.
OldPeopleNum
))
var
refundScenicPrice
=
0
;
if
(
this
.
addMsg
.
ScenicList
!=
null
&&
this
.
addMsg
.
ScenicList
.
length
>
0
)
{
var
totalGuest
=
(
Number
(
this
.
addMsg
.
ManNum
)
+
Number
(
this
.
addMsg
.
ChirdNum
)
+
Number
(
this
.
addMsg
.
OldPeopleNum
))
this
.
addMsg
.
ScenicList
.
forEach
(
item
=>
{
if
(
totalGuest
>=
item
.
Number
){
refundScenicPrice
+=
item
.
Number
*
item
.
RefundMoney
;}
if
(
totalGuest
>=
item
.
Number
)
{
refundScenicPrice
+=
item
.
Number
*
item
.
RefundMoney
;
}
});
}
// var refundScenicPrice = this.ScenicRefundMoney * (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) +
...
...
@@ -2066,9 +2078,13 @@
dandijie
=
this
.
priceObj
.
SingleDMCPrice
*
Number
(
this
.
addMsg
.
AirticketNum
);
}
//总应收价格
this
.
addMsg
.
PreferPrice
=
Number
(
dandijie
)
+
Number
(
lianyun
)
+
Number
(
chengren
)
+
Number
(
ertong
)
+
Number
(
yinger
)
+
Number
(
laoren
)
+
Number
(
zafeiqianzhen
)
+
Number
(
danfang
)
+
Number
(
ertongbed
)
-
Number
(
refundScenicPrice
)
console
.
log
(
dandijie
+
'--'
,
lianyun
+
'--'
,
chengren
+
'--'
,
ertong
+
'--'
,
yinger
+
'--'
,
laoren
+
'--'
,
zafeiqianzhen
+
'--'
,
danfang
+
'--'
,
ertongbed
+
'--'
,
refundScenicPrice
)
if
(
this
.
priceObj
.
IsLessPrice
==
1
&&
this
.
addMsg
.
GroupType
==
1
&&
(
this
.
addMsg
.
CustomerType
==
'1'
||
this
.
addMsg
.
CustomerType
==
'2'
)
&&
this
.
priceObj
.
LineID
>
0
&&
this
.
LessRule
&&
this
.
LessRule
.
length
>
0
)
{
this
.
addMsg
.
PreferPrice
=
Number
(
dandijie
)
+
Number
(
lianyun
)
+
Number
(
chengren
)
+
Number
(
ertong
)
+
Number
(
yinger
)
+
Number
(
laoren
)
+
Number
(
zafeiqianzhen
)
+
Number
(
danfang
)
+
Number
(
ertongbed
)
-
Number
(
refundScenicPrice
)
console
.
log
(
dandijie
+
'--'
,
lianyun
+
'--'
,
chengren
+
'--'
,
ertong
+
'--'
,
yinger
+
'--'
,
laoren
+
'--'
,
zafeiqianzhen
+
'--'
,
danfang
+
'--'
,
ertongbed
+
'--'
,
refundScenicPrice
)
if
(
this
.
priceObj
.
IsLessPrice
==
1
&&
this
.
addMsg
.
GroupType
==
1
&&
(
this
.
addMsg
.
CustomerType
==
'1'
||
this
.
addMsg
.
CustomerType
==
'2'
)
&&
this
.
priceObj
.
LineID
>
0
&&
this
.
LessRule
&&
this
.
LessRule
.
length
>
0
)
{
let
LessNum
=
(
Number
(
this
.
addMsg
.
ManNum
)
+
Number
(
this
.
addMsg
.
ChirdNum
)
+
Number
(
this
.
addMsg
.
OldPeopleNum
));
...
...
@@ -2126,76 +2142,76 @@
},
//清空表单信息
clearMsg
()
{
this
.
DiscountAmountId
=
null
,
this
.
DiscountAmountObj
=
{},
this
.
ScenicRefundList
=
[],
this
.
addMsg
.
ScenicList
=
[];
this
.
addMsg
=
{
price
:
"0"
,
GroupTypeNeedHouse
:
"0"
,
OrderId
:
"0"
,
OneSex
:
"0"
,
TCID
:
"0"
,
CustomerType
:
""
,
GroupType
:
""
,
IndustryCategory
:
""
,
ContactName
:
""
,
ContactMobile
:
""
,
CustomerId
:
""
,
CustomerChildrenId
:
""
,
DepartureCityId
:
"0"
,
ReturnArriveCityId
:
""
,
IsIntermodal
:
"2"
,
IsReturnIntermodal
:
"2"
,
Unit_Price
:
"0"
,
TC_Price
:
"0"
,
ManNum
:
"0"
,
// 成人数量
ChirdNum
:
"0"
,
// 小孩数量
ChirdNoNeedBedNum
:
""
,
ChirdNeedBedNum
:
""
,
BabyNum
:
"0"
,
OldPeopleNum
:
"0"
,
SingleRoomNum
:
"0"
,
PreferPrice
:
"0"
,
LessPrice
:
"0"
,
LessAvgPrice
:
"0"
,
YSeatNum
:
"0"
,
ESeatNum
:
"0"
,
FSeatNum
:
"0"
,
Commission
:
"0"
,
ClientSource
:
""
,
BrandId
:
""
,
TradeWay
:
"2"
,
PlatformAccount
:
""
,
PlatformOrder
:
""
,
GuestNum
:
"0"
,
IsChildrenTour
:
"0"
,
IsBirdDiscount
:
"0"
,
PredictRoomNum
:
"0"
,
BigRoomNum
:
"0"
,
TripleRoomNum
:
"0"
,
TradeDate
:
""
,
CostType
:
""
,
Remarks
:
""
,
VisaNum
:
"0"
,
SafeNum
:
"0"
,
AirticketNum
:
"0"
,
ScenicRefundArr
:
[],
ScenicList
:
[],
GoCityTime
:
""
,
BackCityTime
:
""
,
CommissionSharePeople
:
"-1"
,
CommissionShareMoney
:
"0"
,
OrderForm
:
"1"
,
SonControlID
:
"-1"
,
IsShowMessagesMoney
:
"2"
,
QuotationUrl
:
""
,
//单团附件
GuestList
:
[],
GatherAddress
:
""
,
LureEmpId
:
0
,
//引流id
CRMGuestId
:
0
,
//客人ID
CouponAllotIds
:
''
,
};
this
.
DiscountAmountId
=
null
;
this
.
DiscountAmountObj
=
{};
this
.
ScenicRefundList
=
[];
this
.
addMsg
.
ScenicList
=
[];
this
.
addMsg
=
{
price
:
"0"
,
GroupTypeNeedHouse
:
"0"
,
OrderId
:
"0"
,
OneSex
:
"0"
,
TCID
:
"0"
,
CustomerType
:
""
,
GroupType
:
""
,
IndustryCategory
:
""
,
ContactName
:
""
,
ContactMobile
:
""
,
CustomerId
:
""
,
CustomerChildrenId
:
""
,
DepartureCityId
:
"0"
,
ReturnArriveCityId
:
""
,
IsIntermodal
:
"2"
,
IsReturnIntermodal
:
"2"
,
Unit_Price
:
"0"
,
TC_Price
:
"0"
,
ManNum
:
"0"
,
// 成人数量
ChirdNum
:
"0"
,
// 小孩数量
ChirdNoNeedBedNum
:
""
,
ChirdNeedBedNum
:
""
,
BabyNum
:
"0"
,
OldPeopleNum
:
"0"
,
SingleRoomNum
:
"0"
,
PreferPrice
:
"0"
,
LessPrice
:
"0"
,
LessAvgPrice
:
"0"
,
YSeatNum
:
"0"
,
ESeatNum
:
"0"
,
FSeatNum
:
"0"
,
Commission
:
"0"
,
ClientSource
:
""
,
BrandId
:
""
,
TradeWay
:
"2"
,
PlatformAccount
:
""
,
PlatformOrder
:
""
,
GuestNum
:
"0"
,
IsChildrenTour
:
"0"
,
IsBirdDiscount
:
"0"
,
PredictRoomNum
:
"0"
,
BigRoomNum
:
"0"
,
TripleRoomNum
:
"0"
,
TradeDate
:
""
,
CostType
:
""
,
Remarks
:
""
,
VisaNum
:
"0"
,
SafeNum
:
"0"
,
AirticketNum
:
"0"
,
ScenicRefundArr
:
[],
ScenicList
:
[],
GoCityTime
:
""
,
BackCityTime
:
""
,
CommissionSharePeople
:
"-1"
,
CommissionShareMoney
:
"0"
,
OrderForm
:
"1"
,
SonControlID
:
"-1"
,
IsShowMessagesMoney
:
"2"
,
QuotationUrl
:
""
,
//单团附件
GuestList
:
[],
GatherAddress
:
""
,
LureEmpId
:
0
,
//引流id
CRMGuestId
:
0
,
//客人ID
CouponAllotIds
:
''
,
};
this
.
remarkMsg
=
{
zc
:
""
,
bzc
:
""
,
...
...
@@ -2352,12 +2368,9 @@
this
.
DiscountAmountId
=
null
this
.
DiscountAmountObj
=
{}
this
.
Success
(
res
.
data
.
message
);
this
.
cancelSubmit
();
this
.
$refs
[
"addMsg"
].
resetFields
();
this
.
clearMsg
();
//调用父组件方法
this
.
$emit
(
"success"
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -2520,13 +2533,15 @@
(
err
)
=>
{}
);
},
getCustomerChildrenList
(){
getCustomerChildrenList
()
{
this
.
apipost
(
"app_today_visit_GerOrderCustomerChildrenList"
,
{
CustomerId
:
this
.
addMsg
.
CustomerId
},
"app_today_visit_GerOrderCustomerChildrenList"
,
{
CustomerId
:
this
.
addMsg
.
CustomerId
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
customerChildrenList
=
res
.
data
.
data
;
if
(
this
.
customerChildrenList
&&
this
.
customerChildrenList
.
length
>
0
)
{
if
(
this
.
customerChildrenList
&&
this
.
customerChildrenList
.
length
>
0
)
{
this
.
addMsg
.
CustomerChildrenId
=
this
.
customerChildrenList
[
0
].
id
;
}
}
...
...
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