Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
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
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
panyongping
uni-pdtravel
Commits
54139f00
Commit
54139f00
authored
Jan 08, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OTA排号修改
parent
71edddea
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
53 deletions
+59
-53
distributionCombiChoose.vue
...ation/distributionCombiChoose/distributionCombiChoose.vue
+12
-9
numberIndex.vue
pages/my/takeNumber/numberIndex/numberIndex.vue
+19
-13
rowNumber.vue
pages/my/takeNumber/rowNumber/rowNumber.vue
+10
-30
scenicCombiOrder.vue
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
+18
-1
No files found.
pages/combination/distributionCombiChoose/distributionCombiChoose.vue
View file @
54139f00
...
@@ -608,16 +608,19 @@ export default {
...
@@ -608,16 +608,19 @@ export default {
return
item
.
id
return
item
.
id
})
})
let
query
=
'?productIdList='
+
JSON
.
stringify
(
productIdList
)
+
'&groupId='
+
this
.
groupId
+
'&groupChannelId='
+
this
.
groupChannelId
+
'&orderSource=3'
let
query
=
'?productIdList='
+
JSON
.
stringify
(
productIdList
)
+
'&groupId='
+
this
.
groupId
+
'&groupChannelId='
+
this
.
groupChannelId
+
'&orderSource=3'
//如果有联票
if
(
this
.
chooseProduct
.
find
(
item
=>
item
.
ticketType
==
2
)){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/combination/combiOrder/combiOrder'
+
query
url
:
'/pages/combination/combiOrder/combiOrder'
+
query
})
})
}
else
{
//如果有联票
uni
.
navigateTo
({
// if(this.chooseProduct.find(item=>item.ticketType==2)){
url
:
'/pages/scenic/scenicCombiOrder/scenicCombiOrder'
+
query
// uni.navigateTo({
})
// url: '/pages/combination/combiOrder/combiOrder' + query
}
// })
// }else{
// uni.navigateTo({
// url: '/pages/scenic/scenicCombiOrder/scenicCombiOrder' + query
// })
// }
}
}
},
},
//---跳转影集页面
//---跳转影集页面
...
...
pages/my/takeNumber/numberIndex/numberIndex.vue
View file @
54139f00
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<view
class=
"wrap"
>
<view
class=
"wrap"
>
<view>
<view>
<view
class=
"first"
>
<view
class=
"first"
>
<input
placeholder=
"请输入购票预留手机号/身份证号"
v-model=
"
search
"
/>
<input
placeholder=
"请输入购票预留手机号/身份证号"
v-model=
"
credentialNumber
"
/>
</view>
</view>
<view
class=
"query"
>
<view
class=
"query"
>
<text
class=
"button"
@
click=
"clickQuery()"
>
查询订单
</text>
<text
class=
"button"
@
click=
"clickQuery()"
>
查询订单
</text>
...
@@ -33,10 +33,13 @@ export default {
...
@@ -33,10 +33,13 @@ export default {
data
()
{
data
()
{
return
{
return
{
showMark
:
false
,
//是否显示遮罩层
showMark
:
false
,
//是否显示遮罩层
search
:
''
,
//输入框的值
credentialNumber
:
''
,
//输入框的值
noNumberList
:[],
//未排号站点列表
noNumberList
:[],
//未排号站点列表
orderId
:
''
,
//订单Id
orderId
:
''
,
//订单Id
merchantCode
:
''
//商户码
merchantCode
:
''
,
//商户码
thirdOrderId
:
''
,
//三方Id
channelName
:
''
,
//渠道名称
productName
:
''
,
//产品名称
}
}
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
...
@@ -49,7 +52,7 @@ export default {
...
@@ -49,7 +52,7 @@ export default {
},
},
//---查询订单
//---查询订单
queryList
(){
queryList
(){
if
(
!
this
.
search
){
if
(
!
this
.
credentialNumber
){
uni
.
showToast
({
uni
.
showToast
({
title
:
'请输入手机号或者身份证号'
,
title
:
'请输入手机号或者身份证号'
,
icon
:
'none'
icon
:
'none'
...
@@ -57,7 +60,7 @@ export default {
...
@@ -57,7 +60,7 @@ export default {
return
return
}
}
let
data
=
{
let
data
=
{
search
:
this
.
search
,
//输入框的值
credentialNumber
:
this
.
credentialNumber
,
//输入框的值
userId
:
uni
.
getStorageSync
(
'openid'
)
||
''
,
userId
:
uni
.
getStorageSync
(
'openid'
)
||
''
,
merchantCode
:
this
.
merchantCode
,
merchantCode
:
this
.
merchantCode
,
startPlayDate
:
new
Date
().
Format
(
'yyyy-MM-dd'
)
+
' 00:00:00'
,
//开始日期
startPlayDate
:
new
Date
().
Format
(
'yyyy-MM-dd'
)
+
' 00:00:00'
,
//开始日期
...
@@ -69,10 +72,13 @@ export default {
...
@@ -69,10 +72,13 @@ export default {
if
(
list
.
length
==
0
){
if
(
list
.
length
==
0
){
this
.
showMark
=
true
this
.
showMark
=
true
}
else
{
}
else
{
this
.
orderId
=
list
[
0
].
id
//下面参数需要传给下一个页面
let
thirdId
=
list
[
0
].
thirdOrderId
||
''
this
.
orderId
=
list
[
0
].
id
||
''
let
merchantId
=
list
[
0
].
merchantId
||
''
this
.
thirdOrderId
=
list
[
0
].
thirdOrderId
||
''
this
.
getFetchInfo
(
thirdId
,
merchantId
)
this
.
merchantCode
=
list
[
0
].
merchantCode
||
''
this
.
channelName
=
list
[
0
].
channelName
||
''
this
.
productName
=
list
[
0
].
productName
||
''
this
.
getFetchInfo
()
}
}
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
...
@@ -83,10 +89,10 @@ export default {
...
@@ -83,10 +89,10 @@ export default {
})
})
},
},
//---获取排号信息
//---获取排号信息
getFetchInfo
(
thirdId
,
merchantId
){
getFetchInfo
(){
let
data
=
{
let
data
=
{
thirdId
,
thirdId
:
this
.
thirdOrderId
,
merchant
Id
merchant
Code
:
this
.
merchantCode
}
}
this
.
noNumberList
=
[]
this
.
noNumberList
=
[]
this
.
$request
(
'distribution/distribution/getFetchInfoOta'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
'distribution/distribution/getFetchInfoOta'
,
data
).
then
((
res
)
=>
{
...
@@ -165,7 +171,7 @@ export default {
...
@@ -165,7 +171,7 @@ export default {
if
(
this
.
noNumberList
.
length
==
1
){
if
(
this
.
noNumberList
.
length
==
1
){
let
chooseArea
=
JSON
.
stringify
(
this
.
noNumberList
[
0
])
let
chooseArea
=
JSON
.
stringify
(
this
.
noNumberList
[
0
])
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/my/takeNumber/rowNumber/rowNumber?chooseArea=
${
chooseArea
}
&orderId=
${
this
.
orderId
}
`
url
:
`/pages/my/takeNumber/rowNumber/rowNumber?chooseArea=
${
chooseArea
}
&orderId=
${
this
.
orderId
}
&thirdOrderId=
${
this
.
thirdOrderId
}
&merchantCode=
${
this
.
merchantCode
}
&channelName=
${
this
.
channelName
}
&productName=
${
this
.
productName
}
`
})
})
}
}
if
(
this
.
noNumberList
.
length
>
1
){
if
(
this
.
noNumberList
.
length
>
1
){
...
...
pages/my/takeNumber/rowNumber/rowNumber.vue
View file @
54139f00
...
@@ -79,44 +79,25 @@
...
@@ -79,44 +79,25 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
merchantCode
:
''
,
//商家编号
chooseArea
:
''
,
//站点信息
chooseArea
:
''
,
//站点信息
numberInfo
:
''
,
//排号信息
merchantCode
:
''
,
//商家编号
channelName
:
''
,
//渠道名称
channelName
:
''
,
//渠道名称
productName
:
''
,
//产品名称
productName
:
''
,
//产品名称
thirdOrderId
:
''
,
//三方订单Id
thirdOrderId
:
''
,
//三方订单Id
orderId
:
''
,
//订单Id
orderId
:
''
,
//订单Id
ticketPhone
:
''
,
//联系人电话
numberInfo
:
''
,
//排号信息
}
}
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
chooseArea
=
option
.
chooseArea
?
JSON
.
parse
(
option
.
chooseArea
):
''
this
.
chooseArea
=
option
.
chooseArea
?
JSON
.
parse
(
option
.
chooseArea
):
''
this
.
orderId
=
option
.
orderId
||
''
this
.
orderId
=
option
.
orderId
||
''
this
.
query
()
this
.
merchantCode
=
option
.
merchantCode
||
''
},
this
.
channelName
=
option
.
channelName
||
''
methods
:
{
this
.
productName
=
option
.
productName
||
''
//---查询订单信息
this
.
thirdOrderId
=
option
.
thirdOrderId
||
''
query
(){
let
data
=
{
search
:
this
.
orderId
}
this
.
$request
(
'order/userOrder/findOrderPageListByCode'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
let
list
=
res
.
data
||
[]
this
.
thirdOrderId
=
list
[
0
].
thirdOrderId
this
.
merchantCode
=
list
[
0
].
merchantCode
this
.
channelName
=
list
[
0
].
channelName
this
.
productName
=
list
[
0
].
productName
this
.
ticketPhone
=
list
[
0
].
ticketPhone
this
.
getNumberInfo
()
this
.
getNumberInfo
()
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
}
})
},
},
methods
:
{
//---获取排号信息
//---获取排号信息
getNumberInfo
(){
getNumberInfo
(){
let
data
=
{
let
data
=
{
...
@@ -147,7 +128,7 @@ export default {
...
@@ -147,7 +128,7 @@ export default {
},
},
//---立即取号
//---立即取号
rowNumber
(){
rowNumber
(){
if
(
!
this
.
merchantCode
||!
this
.
chooseArea
.
projectIds
||!
this
.
thirdOrderId
||!
this
.
ticketPhone
||!
this
.
orderId
){
if
(
!
this
.
merchantCode
||!
this
.
chooseArea
.
projectIds
||!
this
.
thirdOrderId
||!
this
.
orderId
){
uni
.
showToast
({
uni
.
showToast
({
title
:
'缺少取号参数'
,
title
:
'缺少取号参数'
,
icon
:
'none'
icon
:
'none'
...
@@ -159,7 +140,6 @@ export default {
...
@@ -159,7 +140,6 @@ export default {
areaCode
:
this
.
chooseArea
.
projectIds
,
//站点编号
areaCode
:
this
.
chooseArea
.
projectIds
,
//站点编号
thirdId
:
this
.
thirdOrderId
,
//三方订单id
thirdId
:
this
.
thirdOrderId
,
//三方订单id
userId
:
uni
.
getStorageSync
(
'openid'
)
||
''
,
userId
:
uni
.
getStorageSync
(
'openid'
)
||
''
,
ticketPhone
:
this
.
ticketPhone
,
//电话号码
orderId
:
this
.
orderId
,
//订单Id
orderId
:
this
.
orderId
,
//订单Id
}
}
this
.
$request
(
'distribution/distribution/newFetchNumber'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
'distribution/distribution/newFetchNumber'
,
data
).
then
((
res
)
=>
{
...
...
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
View file @
54139f00
...
@@ -639,6 +639,7 @@ export default {
...
@@ -639,6 +639,7 @@ export default {
})
})
this
.
productList
.
forEach
((
item
)
=>
{
this
.
productList
.
forEach
((
item
)
=>
{
item
.
contactTotal
=
JSON
.
parse
(
JSON
.
stringify
(
contactTotal
))
item
.
contactTotal
=
JSON
.
parse
(
JSON
.
stringify
(
contactTotal
))
//数据不出现问题
this
.
$forceUpdate
()
this
.
$forceUpdate
()
})
})
//编辑成功重新调该方法时,把之前选中的游客,设为选中状态
//编辑成功重新调该方法时,把之前选中的游客,设为选中状态
...
@@ -839,7 +840,23 @@ export default {
...
@@ -839,7 +840,23 @@ export default {
},
},
//---联系人列表弹窗确认选中---已修改
//---联系人列表弹窗确认选中---已修改
contactListConfig
(
data
){
contactListConfig
(
data
){
this
.
productList
[
moreContactIndex
].
chooseContact
=
data
let
index
=
this
.
moreContactIndex
this
.
productList
[
index
].
chooseContact
=
data
this
.
productList
[
index
].
contactTotal
.
forEach
(
item
=>
{
//在总的列表里面回去选中的联系人
item
.
ifChoose
=
false
this
.
productList
[
index
].
chooseContact
.
forEach
(
item2
=>
{
if
(
item
.
id
==
item2
.
id
){
item
.
ifChoose
=
true
}
})
})
//选中的排在前面
this
.
productList
[
index
].
contactTotal
.
sort
(
function
(
a
,
b
)
{
return
b
.
ifChoose
-
a
.
ifChoose
})
//选中样式以及选中数据的更新
this
.
$forceUpdate
()
},
},
//---游客选择---已修改
//---游客选择---已修改
visitorChoose
(
index
,
index2
)
{
visitorChoose
(
index
,
index2
)
{
...
...
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