Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c8106210
authored
Dec 12, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:默认第一个推荐人
1 parent
355416e1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
components/OrderPopup/components/EmployeeList.vue
pages/equity/tool/components/DefeatOrder.vue
pages/equity/tool/components/OrderManagement.vue
components/OrderPopup/components/EmployeeList.vue
View file @
c810621
...
@@ -49,11 +49,13 @@ export default {
...
@@ -49,11 +49,13 @@ export default {
this
.
updateParams
(
params
,
data
||
[])
this
.
updateParams
(
params
,
data
||
[])
},
},
initData
(
list
)
{
initData
(
list
)
{
const
{
idKey
,
data
}
=
this
const
{
idKey
,
data
,
params
}
=
this
console
.
log
(
idKey
,
data
)
console
.
log
(
idKey
,
data
)
if
(
data
[
idKey
])
{
if
(
data
[
idKey
])
{
this
.
currentId
=
data
[
idKey
]
this
.
currentId
=
data
[
idKey
]
let
item
=
list
.
find
(
i
=>
i
.
uuid
==
this
.
currentId
)
let
item
=
list
.
find
(
i
=>
i
.
uuid
==
this
.
currentId
)
console
.
log
(
item
)
this
.
$emit
(
'choose'
,
item
)
this
.
$emit
(
'choose'
,
item
)
}
}
this
.
list
=
list
this
.
list
=
list
...
...
pages/equity/tool/components/DefeatOrder.vue
View file @
c810621
...
@@ -206,7 +206,7 @@ export default {
...
@@ -206,7 +206,7 @@ export default {
merchantName
:
userInfo
.
shopMerchantName
merchantName
:
userInfo
.
shopMerchantName
})
})
}
}
//
await this.getEmployeeList()
await
this
.
getEmployeeList
()
this
.
getLastUserOrderInfo
()
this
.
getLastUserOrderInfo
()
this
.
getGoodsProduct
()
this
.
getGoodsProduct
()
},
},
...
@@ -265,10 +265,18 @@ export default {
...
@@ -265,10 +265,18 @@ export default {
const
res
=
await
uni
.
$api
.
boutiqueApi
.
getLastUserOrderInfo
({
const
res
=
await
uni
.
$api
.
boutiqueApi
.
getLastUserOrderInfo
({
sellerUserId
:
this
.
userInfo
.
subLoginUser
.
uuid
sellerUserId
:
this
.
userInfo
.
subLoginUser
.
uuid
})
})
let
item
=
this
.
employeeList
.
find
(
i
=>
i
.
uuid
==
res
.
userId
)
if
(
!
item
)
{
this
.
$set
(
this
.
orderObj
,
'employeeName'
,
this
.
employeeList
[
0
].
staffName
)
this
.
$set
(
this
.
orderObj
,
'defeatEmployeeName'
,
this
.
employeeList
[
0
].
staffName
)
this
.
orderObj
.
userId
=
this
.
employeeList
[
0
].
uuid
this
.
orderObj
.
referrerId
=
this
.
employeeList
[
0
].
uuid
}
else
{
this
.
$set
(
this
.
orderObj
,
'employeeName'
,
res
.
employeeName
)
this
.
$set
(
this
.
orderObj
,
'employeeName'
,
res
.
employeeName
)
this
.
$set
(
this
.
orderObj
,
'defeatEmployeeName'
,
res
.
employeeName
)
this
.
$set
(
this
.
orderObj
,
'defeatEmployeeName'
,
res
.
employeeName
)
this
.
orderObj
.
userId
=
res
.
userId
this
.
orderObj
.
userId
=
res
.
userId
this
.
orderObj
.
referrerId
=
res
.
userId
this
.
orderObj
.
referrerId
=
res
.
userId
}
},
},
// 单选框change事件
// 单选框change事件
radioChange
(
e
,
val
)
{
radioChange
(
e
,
val
)
{
...
...
pages/equity/tool/components/OrderManagement.vue
View file @
c810621
...
@@ -163,7 +163,8 @@ export default {
...
@@ -163,7 +163,8 @@ export default {
this
.
tabIndex
=
0
this
.
tabIndex
=
0
}
else
{
}
else
{
const
index
=
this
.
tabList
.
findIndex
(
item
=>
item
.
value
==
this
.
searchObj
.
orderStatus
)
const
index
=
this
.
tabList
.
findIndex
(
item
=>
item
.
value
==
this
.
searchObj
.
orderStatus
)
if
(
index
!==
-
1
)
this
.
tabIndex
=
index
!==
-
1
?
index
:
0
console
.
log
(
index
)
this
.
tabIndex
=
index
!==
-
1
?
index
:
0
}
}
this
.
search
()
this
.
search
()
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment