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
bf1160c9
authored
Dec 24, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
显示跟单采购员
parent
54c1cad7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
5 deletions
app/Http/Services/SupplierService.php
app/Http/Transformers/SupplierTransformer.php
config/field.php
resources/views/script/SupplierListScript.blade.php
storage/framework/views/d4d13e9bcdea7366e4952031431aae4b22f055c1.php
app/Http/Services/SupplierService.php
View file @
bf1160c9
...
...
@@ -36,9 +36,6 @@ class SupplierService
if
(
!
empty
(
$map
[
'is_export'
]))
{
$list
=
$query
->
get
()
->
toArray
();
}
else
{
// $sql = $query->toSql();
// $bindings = $query->getBindings();
// dd($sql, $bindings);
$list
=
$query
->
paginate
(
$limit
)
->
toArray
();
$transformer
=
new
SupplierTransformer
();
$list
[
'data'
]
=
$transformer
->
transformList
(
$list
[
'data'
]);
...
...
app/Http/Transformers/SupplierTransformer.php
View file @
bf1160c9
This diff is collapsed.
Click to expand it.
config/field.php
View file @
bf1160c9
...
...
@@ -368,6 +368,7 @@ return [
1
=>
'猎芯采购'
,
2
=>
'京东采购'
,
3
=>
'华云采购'
,
4
=>
'数据跟单员'
,
],
'SkuOptionalBatch'
=>
[
...
...
resources/views/script/SupplierListScript.blade.php
View file @
bf1160c9
...
...
@@ -269,7 +269,7 @@
{
field
:
'purchase_username'
,
title
:
'渠道开发员'
,
align
:
'center'
,
width
:
110
},
{
field
:
'yunxin_channel_username'
,
title
:
'线上采购员'
,
align
:
'center'
,
width
:
110
},
{
{
field
:
'jd_channel_username'
,
title
:
'京东采购员'
,
align
:
'center'
,
width
:
130
,
templet
:
function
(
data
)
{
if
(
data
.
jd_resign_channel_username
)
{
if
(
data
.
jd_on_job_channel_username
)
{
...
...
@@ -282,6 +282,19 @@
}
}
},
{
field
:
'inventory_channel_username'
,
title
:
'数据跟单员'
,
align
:
'center'
,
width
:
130
,
templet
:
function
(
data
)
{
if
(
data
.
inventory_resign_channel_username
)
{
if
(
data
.
inventory_on_job_channel_username
)
{
return
`<span>
${
data
.
inventory_on_job_channel_username
}
</span>`
+
`,<span style="color: #D7D7D7">
${
data
.
inventory_resign_channel_username
}
</span>`
;
}
else
{
return
`<span style="color: #D7D7D7">
${
data
.
inventory_resign_channel_username
}
</span>`
}
}
else
{
return
`<span>
${
data
.
inventory_on_job_channel_username
}
</span>`
;
}
}
},
{
field
:
'has_sku'
,
title
:
'SKU上传'
,
align
:
'center'
,
width
:
80
},
{
field
:
'uploaded_sku'
,
title
:
'SKU合作'
,
align
:
'center'
,
width
:
80
,
templet
:
function
(
data
)
{
...
...
storage/framework/views/d4d13e9bcdea7366e4952031431aae4b22f055c1.php
View file @
bf1160c9
...
...
@@ -269,7 +269,7 @@
{
field
:
'purchase_username'
,
title
:
'渠道开发员'
,
align
:
'center'
,
width
:
110
},
{
field
:
'yunxin_channel_username'
,
title
:
'线上采购员'
,
align
:
'center'
,
width
:
110
},
{
{
field
:
'jd_channel_username'
,
title
:
'京东采购员'
,
align
:
'center'
,
width
:
130
,
templet
:
function
(
data
)
{
if
(
data
.
jd_resign_channel_username
)
{
if
(
data
.
jd_on_job_channel_username
)
{
...
...
@@ -282,6 +282,19 @@
}
}
},
{
field
:
'inventory_channel_username'
,
title
:
'数据跟单员'
,
align
:
'center'
,
width
:
130
,
templet
:
function
(
data
)
{
if
(
data
.
inventory_resign_channel_username
)
{
if
(
data
.
inventory_on_job_channel_username
)
{
return
`<span>
${
data
.
inventory_on_job_channel_username
}
</span>`
+
`,<span style="color: #D7D7D7">
${
data
.
inventory_resign_channel_username
}
</span>`
;
}
else
{
return
`<span style="color: #D7D7D7">
${
data
.
inventory_resign_channel_username
}
</span>`
}
}
else
{
return
`<span>
${
data
.
inventory_on_job_channel_username
}
</span>`
;
}
}
},
{
field
:
'has_sku'
,
title
:
'SKU上传'
,
align
:
'center'
,
width
:
80
},
{
field
:
'uploaded_sku'
,
title
:
'SKU合作'
,
align
:
'center'
,
width
:
80
,
templet
:
function
(
data
)
{
...
...
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