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
55a17965
Commit
55a17965
authored
Jun 12, 2019
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单修改成功跳转旅客页面,报名清单少价管理
parent
8600892a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
206 additions
and
35 deletions
+206
-35
groupTourOrderByTuan.vue
src/components/SalesModule/groupTourOrderByTuan.vue
+17
-1
RegistrationList.vue
src/components/TravelManager/TravelList/RegistrationList.vue
+189
-34
No files found.
src/components/SalesModule/groupTourOrderByTuan.vue
View file @
55a17965
...
@@ -2526,7 +2526,15 @@
...
@@ -2526,7 +2526,15 @@
SuperiorPeople
:[],
SuperiorPeople
:[],
TransferMission
:
''
,
//订单转团
TransferMission
:
''
,
//订单转团
Unit_Price
:
0
,
// 地接临时存值
Unit_Price
:
0
,
// 地接临时存值
};
goLVurl
:{
orderId
:
''
,
tcid
:
''
,
tcnum
:
''
,
isOrder
:
''
,
},
};
},
},
components
:
{
components
:
{
payurlItem
:
payURL
,
payurlItem
:
payURL
,
...
@@ -3015,6 +3023,10 @@
...
@@ -3015,6 +3023,10 @@
},
},
// 点击修改
// 点击修改
getDetail
(
obj
)
{
getDetail
(
obj
)
{
this
.
goLVurl
.
orderId
=
obj
.
orderId
;
this
.
goLVurl
.
tcid
=
obj
.
tcid
;
this
.
goLVurl
.
tcnum
=
obj
.
tcnum
;
this
.
goLVurl
.
isOrder
=
obj
.
isOrder
;
this
.
Ysze
=
false
;
this
.
Ysze
=
false
;
this
.
starTime
=
obj
.
startDate
;
this
.
starTime
=
obj
.
startDate
;
this
.
endTime
=
obj
.
backDate
;
this
.
endTime
=
obj
.
backDate
;
...
@@ -3809,6 +3821,10 @@
...
@@ -3809,6 +3821,10 @@
this
.
clearMsg
();
this
.
clearMsg
();
this
.
getList
();
this
.
getList
();
this
.
isShowLayer
=
false
;
this
.
isShowLayer
=
false
;
if
(
res
.
data
.
data
==
1
){
this
.
$router
.
push
({
name
:
'passengerSaleList'
,
query
:
{
id
:
this
.
goLVurl
.
orderId
,
tcid
:
this
.
goLVurl
.
tcid
,
tcnum
:
this
.
goLVurl
.
tcnum
,
isOrder
:
this
.
goLVurl
.
isOrder
,
blank
:
'y'
,
tab
:
'旅客名单'
}
});
}
}
else
{
}
else
{
this
.
isShowLayer
=
false
;
this
.
isShowLayer
=
false
;
this
.
$message
.
error
(
res
.
data
.
message
);
this
.
$message
.
error
(
res
.
data
.
message
);
...
...
src/components/TravelManager/TravelList/RegistrationList.vue
View file @
55a17965
...
@@ -987,7 +987,7 @@
...
@@ -987,7 +987,7 @@
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"婴儿人数"
prop=
"BabyNum"
>
<el-form-item
label=
"婴儿人数"
prop=
"BabyNum"
>
<el-input
v-model=
'addMsg.BabyNum'
@
keyup
.
native=
"checkInteger(addMsg,'BabyNum')"
<el-input
v-model=
'addMsg.BabyNum'
@
keyup
.
native=
"checkInteger(addMsg,'BabyNum')"
@
input=
'getNumber();getTotalPrice()
;getTotalPrice()
'
></el-input>
@
input=
'getNumber();getTotalPrice()'
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
...
@@ -1094,7 +1094,7 @@
...
@@ -1094,7 +1094,7 @@
<input
type=
"button"
class=
"normalBtn"
value=
"保存"
@
click=
"submitForm('addMsg')"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"保存"
@
click=
"submitForm('addMsg')"
/>
</span>
</span>
</p>
</p>
<el-form
:model=
"addMsg"
ref=
"addMsg"
label-position=
"right"
:rules=
"rules"
label-width=
"
8
0px"
>
<el-form
:model=
"addMsg"
ref=
"addMsg"
label-position=
"right"
:rules=
"rules"
label-width=
"
9
0px"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"客户类型"
prop=
"CustomerType"
>
<el-form-item
label=
"客户类型"
prop=
"CustomerType"
>
...
@@ -1105,7 +1105,7 @@
...
@@ -1105,7 +1105,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"参团类型"
prop=
"GroupType"
>
<el-form-item
label=
"参团类型"
prop=
"GroupType"
>
<el-select
v-model=
'addMsg.GroupType'
filterable
:placeholder=
"$t('pub.pleaseSel')"
>
<el-select
v-model=
'addMsg.GroupType'
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"gettypechange(addMsg.GroupType)"
>
<el-option
v-for=
"item in ctlxList"
:label=
'item.Name'
:value=
'item.Id'
:key=
'item.Id'
<el-option
v-for=
"item in ctlxList"
:label=
'item.Name'
:value=
'item.Id'
:key=
'item.Id'
v-if=
"item.Id!=5"
>
v-if=
"item.Id!=5"
>
</el-option>
</el-option>
...
@@ -1181,15 +1181,23 @@
...
@@ -1181,15 +1181,23 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"5"
v-if=
"isChecked==true"
>
<el-col
:span=
"5"
v-if=
"isChecked==true"
>
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<template>
<el-select
v-model=
'addMsg.Unit_Price'
filterable
:placeholder=
"$t('pub.pleaseSel')"
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
v-if=
"HightUnitPrice === '2'"
>
@
change=
"getTotalPrice()"
>
<el-select
v-model=
'addMsg.Unit_Price'
filterable
:placeholder=
"$t('pub.pleaseSel')"
<el-option
v-for=
"item in Unit_PriceList"
:label=
'item.LessMoney'
:value=
'item.ID'
:key=
'item.ID'
>
@
change=
"getTotalPrice()"
>
</el-option>
<el-option
v-for=
"item in Unit_PriceList"
:label=
'item.LessMoney'
:value=
'item.ID'
:key=
'item.ID'
>
</el-select>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
v-else
>
<el-input
v-model=
'addMsg.Unit_Price'
@
change=
"getTotalPrice(3)"
></el-input>
</el-form-item>
</
template
>
<el-form-item
label=
"高于本团单价"
v-show=
"addMsg.GroupType != 4"
>
<el-switch
v-model=
"HightUnitPrice"
active-value=
"1"
inactive-value=
"2"
></el-switch>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item
v-show=
"addMsg.GroupType != 4"
>
<p
v-if=
"LessMoney==0"
style=
"line-height: 18px; color: #E95252;"
>
注:如果超出本团的最低让价,差价将由你来承担
</p>
<p
v-if=
"LessMoney==0"
style=
"line-height: 18px; color: #E95252;"
>
注:如果超出本团的最低让价,差价将由你来承担
</p>
<p
v-else=
"LessMoney>0"
style=
"line-height: 18px; color: #E95252;"
>
注:最多少价{{LessMoney}}元,如需少价更多请联系上级主管
</p>
<p
v-else=
"LessMoney>0"
style=
"line-height: 18px; color: #E95252;"
>
注:最多少价{{LessMoney}}元,如需少价更多请联系上级主管
</p>
</el-form-item>
</el-form-item>
...
@@ -1207,45 +1215,45 @@
...
@@ -1207,45 +1215,45 @@
<div
style=
"width: 100%; border-top:1px dashed #ccc;margin-bottom:25px;"
></div>
<div
style=
"width: 100%; border-top:1px dashed #ccc;margin-bottom:25px;"
></div>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"成人人数"
prop=
"ManNum"
>
<el-form-item
label=
"成人人数"
prop=
"ManNum"
v-show=
"addMsg.GroupType !== '4'"
>
<el-input
v-model=
'addMsg.ManNum'
@
keyup
.
native=
"checkInteger(addMsg,'ManNum')"
<el-input
v-model=
'addMsg.ManNum'
@
keyup
.
native=
"checkInteger(addMsg,'ManNum')"
@
input=
'getNumber();getHouseNo();getTotalPrice()'
></el-input>
@
input=
'getNumber();getHouseNo();getTotalPrice()'
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<p
v-if=
'IsChildrenTour==2'
style=
"color: #E95252; font-size: 12px; line-height: 40px; text-align: center;"
>
<p
v-if=
'IsChildrenTour==2'
style=
"color: #E95252; font-size: 12px; line-height: 40px; text-align: center;"
>
本团不支持儿童出游!
</p>
本团不支持儿童出游!
</p>
<el-form-item
v-if=
'IsChildrenTour==1'
label=
"儿童不占床"
prop=
"ChirdNoNeedBedNum"
>
<el-form-item
v-if=
'IsChildrenTour==1'
label=
"儿童不占床"
prop=
"ChirdNoNeedBedNum"
v-show=
"addMsg.GroupType !== '4'"
>
<el-input
v-model=
'addMsg.ChirdNoNeedBedNum'
@
keyup
.
native=
"checkInteger(addMsg,'ChirdNoNeedBedNum')"
<el-input
v-model=
'addMsg.ChirdNoNeedBedNum'
@
keyup
.
native=
"checkInteger(addMsg,'ChirdNoNeedBedNum')"
@
input=
'getNumber();getHouseNo();getTotalPrice()'
></el-input>
@
input=
'getNumber();getHouseNo();getTotalPrice()'
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
v-if=
'IsChildrenTour==1'
>
<el-col
:span=
"4"
v-if=
'IsChildrenTour==1'
>
<el-form-item
label=
"儿童占床"
prop=
"ChirdNeedBedNum"
>
<el-form-item
label=
"儿童占床"
prop=
"ChirdNeedBedNum"
v-show=
"addMsg.GroupType !== '4'"
>
<el-input
v-model=
'addMsg.ChirdNeedBedNum'
@
keyup
.
native=
"checkInteger(addMsg,'ChirdNeedBedNum')"
<el-input
v-model=
'addMsg.ChirdNeedBedNum'
@
keyup
.
native=
"checkInteger(addMsg,'ChirdNeedBedNum')"
@
input=
'getHouseNo();getTotalPrice()'
></el-input>
@
input=
'getHouseNo();getTotalPrice()'
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
v-if=
'IsChildrenTour==1'
>
<el-col
:span=
"4"
v-if=
'IsChildrenTour==1'
>
<el-form-item
label=
"婴儿人数"
prop=
"BabyNum"
>
<el-form-item
label=
"婴儿人数"
prop=
"BabyNum"
v-show=
"addMsg.GroupType !== '4'"
>
<el-input
v-model=
'addMsg.BabyNum'
@
keyup
.
native=
"checkInteger(addMsg,'BabyNum')"
<el-input
v-model=
'addMsg.BabyNum'
@
keyup
.
native=
"checkInteger(addMsg,'BabyNum')"
@
input=
'getNumber();getTotalPrice
();getTotalPrice()'
></el-input>
@
input=
'getNumber
();getTotalPrice()'
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"老人人数"
prop=
"OldPeopleNum"
>
<el-form-item
label=
"老人人数"
prop=
"OldPeopleNum"
v-show=
"addMsg.GroupType !== '4'"
>
<el-input
v-model=
'addMsg.OldPeopleNum'
@
keyup
.
native=
"checkInteger(addMsg,'OldPeopleNum')"
<el-input
v-model=
'addMsg.OldPeopleNum'
@
keyup
.
native=
"checkInteger(addMsg,'OldPeopleNum')"
@
input=
'getNumber();getHouseNo();getTotalPrice()'
></el-input>
@
input=
'getNumber();getHouseNo();getTotalPrice()'
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
<el-col
:span=
"3"
>
<el-row
:gutter=
"20"
>
<el-form-item
label=
"单地接数量"
prop=
"AirticketNum"
v-show=
"addMsg.GroupType !== '1'"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"单地接数量"
prop=
"AirticketNum"
>
<el-input
v-model=
'addMsg.AirticketNum'
@
keyup
.
native=
"checkInteger(addMsg,'AirticketNum')"
<el-input
v-model=
'addMsg.AirticketNum'
@
keyup
.
native=
"checkInteger(addMsg,'AirticketNum')"
@
input=
'getNumber();getTotalPrice();getHouseNo()'
></el-input>
@
input=
'getNumber();getTotalPrice();getHouseNo()'
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"单房数量"
prop=
"SingleRoomNum"
>
<el-form-item
label=
"单房数量"
prop=
"SingleRoomNum"
>
<el-input
v-model=
'addMsg.SingleRoomNum'
@
keyup
.
native=
"checkInteger(addMsg,'SingleRoomNum')"
<el-input
v-model=
'addMsg.SingleRoomNum'
@
keyup
.
native=
"checkInteger(addMsg,'SingleRoomNum')"
...
@@ -3075,7 +3083,8 @@
...
@@ -3075,7 +3083,8 @@
OrderUnitPrice
:
0
OrderUnitPrice
:
0
},
},
SuperiorPeople
:
[],
SuperiorPeople
:
[],
IsBackStatus
:
1
IsBackStatus
:
1
,
Unit_Price
:
0
};
};
},
},
components
:
{
components
:
{
...
@@ -3182,7 +3191,13 @@
...
@@ -3182,7 +3191,13 @@
this
.
IsBirdDiscount
=
x
.
IsBirdDiscount
;
this
.
IsBirdDiscount
=
x
.
IsBirdDiscount
;
this
.
OpSetLossPeople
=
x
.
OpSetLossPeople
;
this
.
OpSetLossPeople
=
x
.
OpSetLossPeople
;
this
.
OpSetLossMoney
=
x
.
OpSetLossMoney
;
this
.
OpSetLossMoney
=
x
.
OpSetLossMoney
;
if
(
this
.
addMsg
.
GroupType
==
4
){
this
.
HightUnitPrice
=
'1'
this
.
Unit_Price
=
x
.
Unit_Price
}
else
{
this
.
HightUnitPrice
=
'2'
this
.
Unit_Price
=
this
.
addObj
.
SingleDMCPrice
}
this
.
stratPrice
=
0
;
this
.
stratPrice
=
0
;
if
(
res
.
data
.
data
.
modelPrice
&&
res
.
data
.
data
.
modelPrice
.
GoAddPrice
)
{
if
(
res
.
data
.
data
.
modelPrice
&&
res
.
data
.
data
.
modelPrice
.
GoAddPrice
)
{
this
.
stratPrice
=
res
.
data
.
data
.
modelPrice
.
GoAddPrice
;
this
.
stratPrice
=
res
.
data
.
data
.
modelPrice
.
GoAddPrice
;
...
@@ -3217,7 +3232,7 @@
...
@@ -3217,7 +3232,7 @@
this
.
Unit_PriceList
=
[];
this
.
Unit_PriceList
=
[];
this
.
apipost
(
'sellorder_post_GetLessPrice'
,
{
this
.
apipost
(
'sellorder_post_GetLessPrice'
,
{
"TCID"
:
obj
.
TCID
,
"TCID"
:
obj
.
TCID
,
"MaxPeopleNum"
:
M
axPeopleNum
"MaxPeopleNum"
:
m
axPeopleNum
},
res
=>
{
},
res
=>
{
this
.
LessMoney
=
res
.
data
.
data
.
lessMoney
;
this
.
LessMoney
=
res
.
data
.
data
.
lessMoney
;
if
(
parseFloat
(
this
.
LessMoney
)
>
0
)
{
if
(
parseFloat
(
this
.
LessMoney
)
>
0
)
{
...
@@ -3729,7 +3744,19 @@
...
@@ -3729,7 +3744,19 @@
}
}
},
},
getTotalPrice
()
{
getTotalPrice
(
t
)
{
if
(
t
===
3
)
{
if
(
parseFloat
(
this
.
addMsg
.
Unit_Price
).
toString
()
===
"NaN"
)
{
this
.
$message
.
error
(
'请输入正确的价格!'
)
this
.
addMsg
.
Unit_Price
=
this
.
addMsg
.
TC_Price
return
}
if
(
this
.
addMsg
.
Unit_Price
<
this
.
addMsg
.
TC_Price
)
{
this
.
$message
.
error
(
'成交单价必须大于等于本团单价!'
)
this
.
addMsg
.
Unit_Price
=
this
.
addMsg
.
TC_Price
return
}
}
if
(
this
.
addMsg
.
GroupType
!=
5
)
{
if
(
this
.
addMsg
.
GroupType
!=
5
)
{
this
.
addMsg
.
ChirdNum
=
this
.
addMsg
.
ChirdNoNeedBedNum
*
1
+
this
.
addMsg
.
ChirdNeedBedNum
*
1
this
.
addMsg
.
ChirdNum
=
this
.
addMsg
.
ChirdNoNeedBedNum
*
1
+
this
.
addMsg
.
ChirdNeedBedNum
*
1
if
(
this
.
addObj
.
IsBirdDiscount
==
1
)
{
if
(
this
.
addObj
.
IsBirdDiscount
==
1
)
{
...
@@ -3782,8 +3809,12 @@
...
@@ -3782,8 +3809,12 @@
Number
(
this
.
addMsg
.
ChirdNum
)
+
Number
(
this
.
addMsg
.
ChirdNum
)
+
Number
(
this
.
addMsg
.
OldPeopleNum
))
*
Number
(
this
.
addMsg
.
OldPeopleNum
))
*
(
Number
(
this
.
stratPrice
)
+
Number
(
this
.
returnPrice
));
(
Number
(
this
.
stratPrice
)
+
Number
(
this
.
returnPrice
));
let
dandijie
=
let
dandijie
this
.
addObj
.
SingleDMCPrice
*
Number
(
this
.
addMsg
.
AirticketNum
);
if
(
this
.
addMsg
.
GroupType
==
4
){
dandijie
=
this
.
addMsg
.
Unit_Price
*
Number
(
this
.
addMsg
.
AirticketNum
);
}
else
{
dandijie
=
this
.
addObj
.
SingleDMCPrice
*
Number
(
this
.
addMsg
.
AirticketNum
);
}
this
.
addMsg
.
PreferPrice
=
this
.
addMsg
.
PreferPrice
=
this
.
OpSetLossMoney
+
this
.
OpSetLossMoney
+
dandijie
+
dandijie
+
...
@@ -3838,8 +3869,12 @@
...
@@ -3838,8 +3869,12 @@
Number
(
this
.
addMsg
.
ChirdNum
)
+
Number
(
this
.
addMsg
.
ChirdNum
)
+
Number
(
this
.
addMsg
.
OldPeopleNum
))
*
Number
(
this
.
addMsg
.
OldPeopleNum
))
*
(
Number
(
this
.
stratPrice
)
+
Number
(
this
.
returnPrice
));
(
Number
(
this
.
stratPrice
)
+
Number
(
this
.
returnPrice
));
let
dandijie
=
let
dandijie
this
.
addObj
.
SingleDMCPrice
*
Number
(
this
.
addMsg
.
AirticketNum
);
if
(
this
.
addMsg
.
GroupType
==
4
){
dandijie
=
this
.
addMsg
.
Unit_Price
*
Number
(
this
.
addMsg
.
AirticketNum
);
}
else
{
dandijie
=
this
.
addObj
.
SingleDMCPrice
*
Number
(
this
.
addMsg
.
AirticketNum
);
}
this
.
addMsg
.
PreferPrice
=
this
.
addMsg
.
PreferPrice
=
this
.
OpSetLossMoney
+
this
.
OpSetLossMoney
+
dandijie
+
dandijie
+
...
@@ -3860,6 +3895,9 @@
...
@@ -3860,6 +3895,9 @@
this
.
addMsg
.
PreferPrice
=
Number
(
this
.
addMsg
.
YSeatNum
)
*
Number
(
this
.
addMsg
.
Unit_Price
)
+
this
.
OpSetLossMoney
;
this
.
addMsg
.
PreferPrice
=
Number
(
this
.
addMsg
.
YSeatNum
)
*
Number
(
this
.
addMsg
.
Unit_Price
)
+
this
.
OpSetLossMoney
;
}
}
this
.
getTicheng
();
this
.
getTicheng
();
if
(
!
t
)
{
this
.
getTypePrice2
()
}
},
},
yzBigBed2
()
{
yzBigBed2
()
{
let
x
=
let
x
=
...
@@ -4822,7 +4860,124 @@
...
@@ -4822,7 +4860,124 @@
// }
// }
// },
// },
// err => {})
// err => {})
}
},
gettypechange
(
type
){
//切换参团类型时 把值初始化
if
(
type
==
4
){
this
.
addMsg
.
Unit_Price
=
this
.
Unit_Price
;
//成交单价
this
.
HightUnitPrice
=
'1'
;
this
.
addMsg
.
AirticketNum
=
0
;
this
.
addMsg
.
ManNum
=
0
;
// this.addMsg.ChirdNum = 0;
this
.
addMsg
.
BabyNum
=
0
;
this
.
addMsg
.
OldPeopleNum
=
0
;
this
.
addMsg
.
ChirdNoNeedBedNum
=
0
;
this
.
addMsg
.
ChirdNeedBedNum
=
0
;
this
.
addMsg
.
PreferPrice
=
0
;
this
.
addMsg
.
SafeNum
=
0
;
this
.
addMsg
.
VisaNum
=
0
;
this
.
addMsg
.
PredictRoomNum
=
0
;
this
.
addMsg
.
YSeatNum
=
0
;
}
else
{
this
.
HightUnitPrice
=
'2'
;
this
.
addMsg
.
AirticketNum
=
0
;
this
.
addMsg
.
ManNum
=
0
;
// this.addMsg.ChirdNum = 0; //?
this
.
addMsg
.
BabyNum
=
0
;
this
.
addMsg
.
OldPeopleNum
=
0
;
this
.
addMsg
.
ChirdNoNeedBedNum
=
0
;
this
.
addMsg
.
ChirdNeedBedNum
=
0
;
this
.
addMsg
.
PreferPrice
=
0
;
this
.
addMsg
.
SafeNum
=
0
;
this
.
addMsg
.
VisaNum
=
0
;
this
.
addMsg
.
PredictRoomNum
=
0
;
this
.
addMsg
.
YSeatNum
=
0
;
};
if
(
this
.
addMsg
.
CustomerType
==
1
)
{
if
(
this
.
addMsg
.
GroupType
==
4
){
this
.
addMsg
.
TC_Price
=
this
.
addObj
.
SingleDMCPrice
;
}
else
{
this
.
addMsg
.
TC_Price
=
this
.
addObj
.
B2BMemberPrice
;
this
.
addMsg
.
Unit_Price
=
this
.
addObj
.
B2BMemberPrice
;
}
}
if
(
this
.
addMsg
.
CustomerType
==
2
)
{
if
(
this
.
addMsg
.
GroupType
==
4
){
this
.
addMsg
.
TC_Price
=
this
.
addObj
.
SingleDMCPrice
;
}
else
{
this
.
addMsg
.
TC_Price
=
this
.
addObj
.
B2BPrice
this
.
addMsg
.
Unit_Price
=
this
.
addObj
.
B2BPrice
;
}
}
if
(
this
.
addMsg
.
CustomerType
==
3
)
{
if
(
this
.
addMsg
.
GroupType
==
4
){
this
.
addMsg
.
TC_Price
=
this
.
addObj
.
SingleDMCPrice
;
}
else
{
this
.
addMsg
.
TC_Price
=
this
.
addObj
.
B2CMemberPrice
this
.
addMsg
.
Unit_Price
=
this
.
addObj
.
B2CMemberPrice
;
}
this
.
addMsg
.
CustomerId
=
'0'
this
.
addMsg
.
CommissionShareMoney
=
'0'
}
if
(
this
.
addMsg
.
CustomerType
==
4
)
{
if
(
this
.
addMsg
.
GroupType
==
4
){
this
.
addMsg
.
TC_Price
=
this
.
addObj
.
SingleDMCPrice
;
}
else
{
this
.
addMsg
.
TC_Price
=
this
.
addObj
.
B2CPrice
this
.
addMsg
.
Unit_Price
=
this
.
addObj
.
B2CPrice
;
}
this
.
addMsg
.
CustomerId
=
'0'
this
.
addMsg
.
CommissionShareMoney
=
'0'
}
},
getTypePrice2
()
{
let
maxPeopleNum
=
(
Number
(
this
.
addMsg
.
ManNum
)
+
Number
(
this
.
addMsg
.
ChirdNoNeedBedNum
)
+
Number
(
this
.
addMsg
.
ChirdNeedBedNum
)
+
Number
(
this
.
addMsg
.
OldPeopleNum
)
+
Number
(
this
.
addMsg
.
AirticketNum
)
)
this
.
Unit_PriceList
=
[];
console
.
log
(
this
.
Unit_PriceList
)
this
.
apipost
(
'sellorder_post_GetLessPrice'
,
{
"TCID"
:
this
.
addMsg
.
TCID
,
"MaxPeopleNum"
:
maxPeopleNum
},
res
=>
{
this
.
LessMoney
=
res
.
data
.
data
.
lessMoney
;
if
(
parseFloat
(
this
.
LessMoney
)
>
0
)
{
for
(
var
i
=
0
;
i
<=
parseInt
(
this
.
LessMoney
)
/
10
;
i
++
)
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
TC_Price
-
i
*
10
;
obj
.
LessMoney
=
this
.
addMsg
.
TC_Price
-
i
*
10
;
this
.
Unit_PriceList
.
push
(
obj
);
}
if
(
this
.
Unit_PriceList
.
findIndex
(
markers
=>
markers
.
ID
==
this
.
addMsg
.
Unit_Price
)
<
0
)
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
Unit_Price
;
obj
.
LessMoney
=
this
.
addMsg
.
Unit_Price
;
this
.
Unit_PriceList
.
push
(
obj
);
}
}
else
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
Unit_Price
;
obj
.
LessMoney
=
this
.
addMsg
.
Unit_Price
;
this
.
Unit_PriceList
.
push
(
obj
);
}
},
err
=>
{})
},
},
},
mounted
()
{
mounted
()
{
let
userInfo
=
this
.
getLocalStorage
();
let
userInfo
=
this
.
getLocalStorage
();
...
...
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