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
e3ee5f47
authored
Jan 03, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
style
parent
299865c1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
app/Http/Services/DataService.php
app/Http/Transformers/SupplierContactTransformer.php
resources/views/script/supplier/SupplierContactScript.blade.php
app/Http/Services/DataService.php
View file @
e3ee5f47
...
...
@@ -1077,12 +1077,10 @@ class DataService
// 合并现有的和新的数据跟单员
$allChannelUids
=
array_unique
(
array_merge
(
$existingChannelUids
,
$dataFollowersCodeIds
));
$allChannelUids
=
array_filter
(
$allChannelUids
);
// 移除空值
\dump
(
'跟单采购员 : '
.
implode
(
','
,
$dataFollowersCodeIds
));
\dump
(
'跟单采购员 : '
.
implode
(
','
,
$followerList
));
\dump
(
'所有采购员 : '
.
implode
(
','
,
$allChannelUids
));
$onlinePurchaserCodeId
=
$adminUserService
->
getCodeIdByUserName
(
$onlinePurchaser
);
\dump
(
$onlinePurchaserCodeId
);
\dump
(
'需要获取联系人的采购员 : '
.
$onlinePurchaserCodeId
);
\dump
(
'需要获取联系人的采购员 : '
.
$onlinePurchaserCodeId
.
' 姓名 : '
.
$onlinePurchaser
);
if
(
empty
(
$onlinePurchaserCodeId
))
{
\dump
(
'表格里的线上采购员不存在,跳过'
);
continue
;
...
...
app/Http/Transformers/SupplierContactTransformer.php
View file @
e3ee5f47
...
...
@@ -13,7 +13,7 @@ class SupplierContactTransformer
$service
=
new
AdminUserService
();
foreach
(
$list
as
&
$item
)
{
$user
=
$service
->
getAdminUserInfoByCodeId
(
$item
[
'can_check_uids'
]);
$item
[
'channel_name'
]
=
array_get
(
$user
,
'name'
);
$item
[
'channel_name'
]
=
array_get
(
$user
,
'name'
)
.
" ("
.
$item
[
'can_check_uids'
]
.
")"
;
$item
[
'working_status'
]
=
$service
->
checkIsResignedByCodeId
(
$item
[
'can_check_uids'
])
?
'离职'
:
'在职'
;
if
(
!
empty
(
$item
[
'supplier_email'
]))
{
$emailTemp
=
explode
(
'@'
,
$item
[
'supplier_email'
])[
0
];
...
...
resources/views/script/supplier/SupplierContactScript.blade.php
View file @
e3ee5f47
...
...
@@ -62,7 +62,7 @@
},
{field: '
supplier_fax
', title: '
传真
', align: '
center
', width: 140},
{field: '
channel_name
', title: '
<
span
class
=
"require"
>*
<
/span>采购员', align: 'center', width: 110}
,
{
field
:
'channel_user_type_name'
,
title
:
'
<
span
class
=
"require"
>*
<
/span>采购员类型', align: 'center', width:
1
10}
,
{
field
:
'channel_user_type_name'
,
title
:
'
<
span
class
=
"require"
>*
<
/span>采购员类型', align: 'center', width:
2
10}
,
{
field
:
'working_status'
,
title
:
'采购员状态'
,
align
:
'center'
,
width
:
120
},
{
field
:
'update_time'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
150
},
]],
...
...
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