Commit e3ee5f47 by 杨树贤

style

parent 299865c1
...@@ -1077,12 +1077,10 @@ class DataService ...@@ -1077,12 +1077,10 @@ class DataService
// 合并现有的和新的数据跟单员 // 合并现有的和新的数据跟单员
$allChannelUids = array_unique(array_merge($existingChannelUids, $dataFollowersCodeIds)); $allChannelUids = array_unique(array_merge($existingChannelUids, $dataFollowersCodeIds));
$allChannelUids = array_filter($allChannelUids); // 移除空值 $allChannelUids = array_filter($allChannelUids); // 移除空值
\dump('跟单采购员 : ' . implode(',', $followerList));
\dump('跟单采购员 : ' . implode(',', $dataFollowersCodeIds));
\dump('所有采购员 : ' . implode(',', $allChannelUids)); \dump('所有采购员 : ' . implode(',', $allChannelUids));
$onlinePurchaserCodeId = $adminUserService->getCodeIdByUserName($onlinePurchaser); $onlinePurchaserCodeId = $adminUserService->getCodeIdByUserName($onlinePurchaser);
\dump($onlinePurchaserCodeId); \dump('需要获取联系人的采购员 : ' . $onlinePurchaserCodeId . ' 姓名 : '. $onlinePurchaser);
\dump('需要获取联系人的采购员 : ' . $onlinePurchaserCodeId);
if (empty($onlinePurchaserCodeId)) { if (empty($onlinePurchaserCodeId)) {
\dump('表格里的线上采购员不存在,跳过'); \dump('表格里的线上采购员不存在,跳过');
continue; continue;
......
...@@ -13,7 +13,7 @@ class SupplierContactTransformer ...@@ -13,7 +13,7 @@ class SupplierContactTransformer
$service = new AdminUserService(); $service = new AdminUserService();
foreach ($list as &$item) { foreach ($list as &$item) {
$user = $service->getAdminUserInfoByCodeId($item['can_check_uids']); $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']) ? '离职' : '在职'; $item['working_status'] = $service->checkIsResignedByCodeId($item['can_check_uids']) ? '离职' : '在职';
if (!empty($item['supplier_email'])) { if (!empty($item['supplier_email'])) {
$emailTemp = explode('@', $item['supplier_email'])[0]; $emailTemp = explode('@', $item['supplier_email'])[0];
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
}, },
{field: 'supplier_fax', title: '传真', align: 'center', width: 140}, {field: 'supplier_fax', title: '传真', align: 'center', width: 140},
{field: 'channel_name', title: '<span class="require">* </span>采购员', align: 'center', width: 110}, {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: 110}, {field: 'channel_user_type_name', title: '<span class="require">* </span>采购员类型', align: 'center', width: 210},
{field: 'working_status', title: '采购员状态', align: 'center', width: 120}, {field: 'working_status', title: '采购员状态', align: 'center', width: 120},
{field: 'update_time', title: '更新时间', align: 'center', width: 150}, {field: 'update_time', title: '更新时间', align: 'center', width: 150},
]], ]],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment