Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
758d6b17
authored
Aug 08, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化显示
parent
127ef737
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
app/Http/Transformers/SupplierTransformer.php
resources/views/script/SupplierListScript.blade.php
app/Http/Transformers/SupplierTransformer.php
View file @
758d6b17
...
...
@@ -80,13 +80,13 @@ class SupplierTransformer
$onJobUserNameList
=
array_values
(
$onJobChannelUsers
);
$channelUserNameList
=
!
empty
(
$supplier
[
'channel_username'
])
?
explode
(
','
,
$supplier
[
'channel_username'
])
:
[];
if
(
empty
(
$channelUserNameList
))
{
if
(
empty
(
$supplier
[
'channel_uid'
]))
{
$supplier
[
'resign_channel_username'
]
=
$supplier
[
'on_job_channel_username'
]
=
''
;
continue
;
}
$resignChannelUserNameList
=
$onJobChannelUserNameList
=
[];
//然后判断哪些是离职,哪些是在职的
foreach
(
$channelUserNameList
as
$username
)
{
// dump($username, $onJobUserNameList);
if
(
!
in_array
(
$username
,
$onJobUserNameList
))
{
$resignChannelUserNameList
[]
=
$username
;
}
else
{
...
...
resources/views/script/SupplierListScript.blade.php
View file @
758d6b17
...
...
@@ -143,12 +143,13 @@
},
{
field
:
'channel_username'
,
title
:
'采购员'
,
align
:
'center'
,
width
:
130
,
templet
:
function
(
data
)
{
if
(
!
data
.
channel_username
){
return
''
;
}
if
(
data
.
resign_channel_username
)
{
return
`<span>
${
data
.
on_job_channel_username
}
</span>`
+
`,<span style="color: #D7D7D7">
${
data
.
resign_channel_username
}
</span>`
;
}
else
{
if
(
data
.
on_job_channel_username
)
{
return
`<span>
${
data
.
on_job_channel_username
}
</span>`
+
`,<span style="color: #D7D7D7">
${
data
.
resign_channel_username
}
</span>`
;
}
else
{
return
`<span style="color: #D7D7D7">
${
data
.
resign_channel_username
}
</span>`
}
}
else
{
return
`<span>
${
data
.
on_job_channel_username
}
</span>`
;
}
}
...
...
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