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
32dc3bfe
Commit
32dc3bfe
authored
Apr 06, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
32dd7564
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
436 deletions
+8
-436
priceGroup.vue
src/components/TravelManager/TravelTeam/priceGroup.vue
+8
-436
No files found.
src/components/TravelManager/TravelTeam/priceGroup.vue
View file @
32dc3bfe
...
...
@@ -539,9 +539,7 @@
<
template
>
<div
class=
"flexOne"
>
<!--
<div
@
click=
"showBuy = true"
><el-button>
下单
</el-button></div>
-->
<!-- 查询条件 -->
<div
class=
"productQuerySearch"
v-if=
"!TCIDList"
>
<div
class=
"productQuerySearch"
>
<ul>
<li>
<span>
...
...
@@ -572,9 +570,8 @@
</el-pagination>
<!-- 列表 -->
<div
class=
"productQueryList"
v-loading=
"loading"
>
<ul
v-if=
"list.length"
>
<li
v-for=
"(item,index) in list"
:key=
"index"
<ul
v-if=
"dataList.length"
>
<li
v-for=
"(item,index) in dataList"
:key=
"index"
:class=
"
{'TC_hasContent':item.OPInnerRemark==''
&&
item.OPRemark==''}">
<div
class=
"TC_remarkContent"
>
<div
class=
"el-col w_20"
>
...
...
@@ -657,27 +654,13 @@
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:total=
"total"
>
</el-pagination>
<el-dialog
custom-class=
"ComTeamPlan_info_box"
:title=
"tripTitle"
:visible
.
sync=
"outerVisible"
center
>
<commonTeamInfo
ref=
"comTeam"
></commonTeamInfo>
</el-dialog>
<el-dialog
custom-class=
"w450"
title=
"行程下载"
:visible
.
sync=
"travelControlTripLayerShow"
center
>
<tripDownLoadCommon
ref=
"tripDownLoadCommon"
:tripObj=
"tripObj"
@
headCallBack=
"hideTripDown"
:downType=
"1"
>
</tripDownLoadCommon>
</el-dialog>
<div
class=
"buy-box"
v-show=
"showBuy"
>
<buyGroup
@
change=
"changeBuy"
:info=
"buyInfo"
></buyGroup>
</div>
</div>
</template>
<
script
>
import
commonTeamInfo
from
"../../commonPage/commonTeamInfo.vue"
;
import
tripDownLoadCommon
from
"../../commonPage/TripDownLoadCommon.vue"
;
import
carousel
from
"../../commonPage/carousel.vue"
;
import
commonHotelInfo
from
"../../commonPage/commonHotelInfo.vue"
;
import
buyGroup
from
"../../../pubComponents/buyGroup.vue"
;
export
default
{
data
()
{
return
{
...
...
@@ -697,36 +680,14 @@
},
//当前登录用户信息
CurrentUserInfo
:
{},
travelControlTripLayerShow
:
false
,
wxLoading
:
false
,
HightUnitPrice
:
"2"
,
userId
:
""
,
customerId
:
""
,
createByInfo
:
""
,
isUpdateSharePeople
:
false
,
starTime
:
""
,
endTime
:
""
,
stratPrice
:
""
,
stratPriceShow
:
false
,
returnPrice
:
""
,
returnPriceShow
:
false
,
minPrice
:
0
,
loading
:
true
,
loading2
:
false
,
isShowLayer
:
false
,
outerVisible
:
false
,
tripTitle
:
""
,
currentPage
:
1
,
total
:
0
,
addObj
:
{},
Unit_PriceList
:
[],
//成交单价下拉数据
LessMoney
:
0
,
uploadLloading
:
false
,
employeeMsg
:
{
BranchId
:
"-1"
,
IsLeave
:
0
,
},
employeeList
:
[],
rules
:
{
CustomerType
:
[{
required
:
true
,
...
...
@@ -781,100 +742,15 @@
StartTime
:
""
,
EndTime
:
""
,
},
list
:
[],
LineList
:
[],
LineTeamList
:
[],
AimPlaceList
:
[],
airlineList
:
[],
companyList
:
[],
salePlace
:
[],
startCityList
:
[],
startCityList1
:
[],
tripDetails
:
[],
ddlyList
:
[],
khmdList
:
[],
ssptList
:
[],
remarkMsg
:
{
zc
:
""
,
bzc
:
""
,
fjf
:
""
,
ye
:
""
,
lr
:
""
,
dd
:
""
,
df
:
""
,
dc
:
""
,
srf
:
""
,
qz
:
""
,
qzf
:
""
,
},
otherRemark
:
""
,
ScenicRefundList
:
[],
PlatformAccountList
:
[],
ScenicRefundMoney
:
0
,
TCIDList
:
null
,
tripObj
:
{
tcid
:
0
,
configId
:
0
,
cityId
:
0
,
orderId
:
0
,
},
SingleDMCPricex
:
0
,
// 单地接;
SingleDMCPrice
:
0
,
// 单地接;
showHotelObj
:
{
showPrice
:
false
,
showPay
:
false
,
showZhan
:
false
,
},
PlatformAccountList1
:
[],
PlatformAccountList2
:
[],
qjGroupId
:
-
1
,
S_Travel_Share
:
false
,
//分享权限
userInfo
:
{},
dataList
:
[],
TotalNumber
:
0
,
};
},
components
:
{
commonTeamInfo
:
commonTeamInfo
,
tripDownLoadCommon
:
tripDownLoadCommon
,
carousel
:
carousel
,
commonHotelInfo
:
commonHotelInfo
,
buyGroup
:
buyGroup
},
filters
:
{
priceFormat
(
value
)
{
if
(
value
==
null
)
{
return
0.0
;
}
let
nStr
=
value
.
toFixed
(
2
);
nStr
+=
""
;
let
x
=
nStr
.
split
(
"."
);
let
x1
=
x
[
0
];
let
x2
=
x
.
length
>
1
?
"."
+
x
[
1
]
:
""
;
var
rgx
=
/
(\d
+
)(\d{3})
/
;
while
(
rgx
.
test
(
x1
))
{
x1
=
x1
.
replace
(
rgx
,
"$1"
+
","
+
"$2"
);
}
return
x1
+
x2
;
},
priceFormat2
(
value
)
{
if
(
value
==
null
)
{
return
"已包含"
;
}
let
nStr
=
value
.
toFixed
(
2
);
nStr
+=
""
;
let
x
=
nStr
.
split
(
"."
);
let
x1
=
x
[
0
];
let
x2
=
x
.
length
>
1
?
"."
+
x
[
1
]
:
""
;
var
rgx
=
/
(\d
+
)(\d{3})
/
;
while
(
rgx
.
test
(
x1
))
{
x1
=
x1
.
replace
(
rgx
,
"$1"
+
","
+
"$2"
);
}
let
result
=
x1
+
x2
;
if
(
result
===
"0.00"
)
{
result
=
"已包含"
;
}
return
result
;
},
},
methods
:
{
//跳转到报名清单
...
...
@@ -896,11 +772,8 @@
return
;
}
}
//验证人数和机位数 20190807 修改 如果是不是单地接才判断
if
(
addMsg
.
GroupType
!==
"4"
&&
addMsg
.
GroupType
!==
"3"
)
{
if
(
addMsg
.
ChirdNoNeedBedNum
==
""
)
{
addMsg
.
ChirdNoNeedBedNum
=
0
;
// this.$message.warning("请输入儿童不占床数!如果没有请输入0!");
...
...
@@ -963,30 +836,19 @@
return
;
}
}
// if((Number(addMsg.ManNum)+Number(addMsg.ChirdNoNeedBedNum)+Number(addMsg.ChirdNeedBedNum)+Number(addMsg.OldPeopleNum))
//
<
(
Number
(
addMsg
.
YSeatNum
)
+
Number
(
addMsg
.
ESeatNum
)
+
Number
(
addMsg
.
FSeatNum
)))
// {
// this.$message.warning('机票数量不能大于人数总和!')
// return
// }
if
(
this
.
userId
==
this
.
createByInfo
)
{
if
(
addMsg
.
CommissionSharePeople
==
"-1"
)
{
addMsg
.
CommissionShareMoney
=
"0"
;
}
}
if
(
addMsg
.
GroupType
==
4
)
{
addMsg
.
TC_Price
=
this
.
SingleDMCPricex
;
//地接时 本团单价
addMsg
.
Unit_Price
=
this
.
SingleDMCPrice
;
// 地接时 成交单价
if
(
addMsg
.
ChirdNoNeedBedNum
==
""
)
{
addMsg
.
ChirdNoNeedBedNum
=
0
;
// this.$message.warning("请输入儿童不占床数!如果没有请输入0!");
// return;
}
}
let
ChirdNum
=
Number
(
addMsg
.
ChirdNum
);
if
(
addMsg
.
GroupType
==
4
)
{
ChirdNum
=
0
;
...
...
@@ -1014,7 +876,7 @@
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
$refs
[
"addMsg"
].
resetFields
();
this
.
clearMsg
();
this
.
isShowLayer
=
false
;
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
...
...
@@ -1023,25 +885,12 @@
);
},
changeBuy
(
info
)
{
console
.
log
(
'changeBuy'
,
info
)
if
(
!
info
)
{
this
.
showBuy
=
false
}
else
{
this
.
saveOrder
(
info
)
}
},
GetSupperOrderEditAuth
()
{
var
actionCode
=
this
.
$AuthCode
.
S_Travel_Share
;
this
.
CheckUserAuth
(
actionCode
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
S_Travel_Share
=
true
;
}
});
},
downloadFile
:
function
(
item
)
{
let
reg
=
/^http
(
s
)?
:
\/\/(
.*
?)\/
/
;
this
.
downloadFileRename
(
item
.
FullUrl
.
replace
(
reg
,
""
),
item
.
Name
);
},
// 结束日期不能大于开始日期
dataDui
()
{
if
(
this
.
msg
.
StartTime
>
this
.
msg
.
EndTime
&&
this
.
msg
.
EndTime
!==
""
)
{
...
...
@@ -1049,92 +898,11 @@
this
.
msg
.
EndTime
=
""
;
}
},
// 获取微信二维码
getWxCode
:
function
(
key
)
{
this
.
wxLoading
=
false
;
if
(
this
.
list
[
key
].
wxImage
===
""
)
{
this
.
wxLoading
=
true
;
this
.
apipost
(
"TaskManagemnet_get_GetWeiXinShare"
,
{
ConfigId
:
this
.
list
[
key
].
ConfigID
,
TCID
:
this
.
list
[
key
].
TCID
,
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
url
=
res
.
data
.
data
;
this
.
list
[
key
].
wxImage
=
url
;
this
.
wxLoading
=
false
;
}
else
{
this
.
$message
.
error
(
"二维码获取失败"
);
}
},
(
err
)
=>
{}
);
}
},
toTrip
:
function
(
obj
)
{
this
.
tripObj
.
tcid
=
obj
.
TCID
;
this
.
tripObj
.
configId
=
obj
.
ConfigID
;
this
.
tripObj
.
cityId
=
obj
.
StartCityID
;
this
.
tripObj
.
orderId
=
0
;
this
.
travelControlTripLayerShow
=
true
;
},
hideTripDown
()
{
this
.
travelControlTripLayerShow
=
false
;
},
goUrl
(
path
,
id
,
tcmun
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
id
,
tcmun
:
tcmun
,
blank
:
"y"
,
tab
:
"团报名清单"
,
},
});
},
goUrlX
(
item
)
{
this
.
$router
.
push
({
name
:
"GroupAdvertising"
,
query
:
{
LineID
:
item
.
LineID
,
TCID
:
item
.
TCID
,
blank
:
"y"
,
tab
:
"团期广告"
,
},
});
},
//获取航班详情
getDetails
(
index
)
{
this
.
tripDetails
=
this
.
list
[
index
].
flightList
;
},
getMinPrice
(
id
)
{
this
.
apipost
(
"line_post_Get"
,
{
ID
:
id
,
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
minPrice
=
res
.
data
.
data
.
LowDeposit
;
}
},
(
err
)
=>
{}
);
},
goBuy
(
obj
)
{
this
.
showBuy
=
true
;
this
.
buyInfo
=
obj
this
.
addObj
=
obj
},
getJourney
(
id
,
TCID
,
title
)
{
var
that
=
this
;
this
.
tripTitle
=
title
;
this
.
$nextTick
(()
=>
{
that
.
$refs
.
comTeam
.
GetTrip
(
id
,
TCID
);
});
that
.
outerVisible
=
true
;
},
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
...
...
@@ -1144,36 +912,7 @@
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
loading
=
false
;
this
.
total
=
res
.
data
.
data
.
count
;
for
(
let
i
=
0
;
i
<
res
.
data
.
data
.
pageData
.
length
;
i
++
)
{
res
.
data
.
data
.
pageData
[
i
][
"wxImage"
]
=
""
;
}
this
.
list
=
res
.
data
.
data
.
pageData
;
// this.queryDataObj.dataList = res.data.data.pageData;
// this.queryMsg.total = res.data.data.count;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
(
err
)
=>
{}
);
},
getLineList
()
{
this
.
apipost
(
"line_post_GetAllList_V2"
,
{
LineDirection
:
0
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
LineList
=
res
.
data
.
data
;
}
});
},
getFlightDetails
(
id
)
{
this
.
apipost
(
"travel_get_GetTripForSell"
,
{
TCID
:
id
,
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
tripDetails
=
res
.
data
.
data
.
FlightList
;
this
.
dataList
=
res
.
data
.
data
.
pageData
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -1181,116 +920,6 @@
(
err
)
=>
{}
);
},
//获取系列列表
getLineTeamList
(
lineId
)
{
this
.
LineTeamList
=
[];
this
.
apipost
(
"team_post_GetList"
,
{
lineID
:
lineId
,
isTOOP
:
1
,
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
msg
.
LineTeamId
=
"-1"
;
this
.
LineTeamList
=
res
.
data
.
data
;
}
}
);
},
//获取目的地列表
getAimPlaceList
(
lineId
,
lineTeamId
)
{
let
myLineId
=
lineId
===
""
?
this
.
msg
.
LineId
:
lineId
;
let
myLineTeamId
=
lineTeamId
===
""
?
this
.
msg
.
LineTeamId
:
lineTeamId
;
this
.
AimPlaceList
=
[];
this
.
apipost
(
"team_post_GetListForCascading"
,
{
LineID
:
myLineId
,
LtID
:
myLineTeamId
,
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
msg
.
AimPlaceId
=
"-1"
;
this
.
AimPlaceList
=
res
.
data
.
data
;
}
}
);
},
getStartList
()
{
this
.
apipost
(
"sellorder_get_GetAllStartCity"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
startCityList
=
res
.
data
.
data
;
}
else
{}
});
},
getStartList1
()
{
this
.
apipost
(
"city_post_GetList"
,
{
isDefault
:
-
1
,
priceType
:
-
1
,
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
startCityList1
=
res
.
data
.
data
;
}
else
{}
}
);
},
getCompanyList
()
{
let
RB_Group_id
=
this
.
CurrentUserInfo
.
RB_Group_id
;
let
msg
=
{
Status
:
0
,
is_show
:
0
,
RB_Group_Id
:
RB_Group_id
,
};
this
.
apipost
(
"admin_get_BranchGetList"
,
msg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
companyList
=
[{
Id
:
"-1"
,
BName
:
"不限"
,
},
];
res
.
data
.
data
.
forEach
((
x
)
=>
{
var
obj
=
{
Id
:
""
,
BName
:
""
,
};
obj
.
Id
=
x
.
Id
.
toString
();
obj
.
BName
=
x
.
BName
;
this
.
companyList
.
push
(
obj
);
});
}
},
(
err
)
=>
{}
);
},
getAirlineList
()
{
//获取航空公司*
let
msg
=
{};
this
.
apipost
(
"airline_post_GetList"
,
msg
,
(
res
)
=>
{
this
.
airlineList
=
res
.
data
.
data
;
},
(
err
)
=>
{}
);
},
getSalePlace
()
{
this
.
apipost
(
"travel_get_GetTravelSelectEnum"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
salePlace
=
res
.
data
.
data
.
SalePlat
;
}
},
(
err
)
=>
{}
);
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
...
...
@@ -1299,67 +928,10 @@
this
.
msg
.
pageIndex
=
1
;
this
.
currentPage
=
1
;
},
getEmployee
()
{
//员工
this
.
apipost
(
"admin_get_EmployeeGetList"
,
this
.
employeeMsg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
employeeList
=
res
.
data
.
data
;
}
else
{}
},
(
err
)
=>
{}
);
},
clickHotel
(
TCID
,
LineId
,
LineteamId
)
{
var
msg
=
{
TCID
:
TCID
,
LineId
:
LineId
,
LineteamId
:
LineteamId
,
};
this
.
apipost
(
"b2b_post_SetHotelClickService"
,
msg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{}
},
(
err
)
=>
{}
);
},
//直客版行程
goB2B
(
item
)
{
var
B2BDomain
=
this
.
CurrentUserInfo
.
B2BDomain
;
this
.
$tripUtils
.
GotoB2CPage
(
B2BDomain
,
item
.
ConfigID
,
item
.
TCID
);
},
},
mounted
()
{
let
userInfo
=
this
.
getLocalStorage
();
this
.
userInfo
=
this
.
getLocalStorage
();
this
.
GetSupperOrderEditAuth
();
this
.
qjGroupId
=
this
.
QjGroupId
();
this
.
CurrentUserInfo
=
userInfo
;
this
.
userId
=
userInfo
.
EmployeeId
;
this
.
msg
.
BranchId
=
userInfo
.
RB_Branch_id
.
toString
();
if
(
this
.
$route
.
query
.
id
)
{
this
.
msg
.
BranchId
=
"-1"
;
this
.
msg
.
TCID
=
this
.
$route
.
query
.
id
;
}
if
(
this
.
$route
.
query
.
TCIDList
)
{
this
.
msg
.
TCIDList
=
this
.
TCIDList
=
this
.
$route
.
query
.
TCIDList
;
}
if
(
this
.
msg
.
StartTime
===
""
)
{
let
nowDay
=
this
.
FormartDate
(
new
Date
());
this
.
msg
.
StartTime
=
nowDay
;
}
this
.
getEmployee
();
this
.
getCompanyList
();
this
.
CurrentUserInfo
=
this
.
getLocalStorage
();
this
.
getList
();
this
.
getLineList
();
this
.
getSalePlace
();
this
.
getAirlineList
();
this
.
getStartList
();
this
.
getStartList1
();
},
};
...
...
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