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
088292e1
authored
May 28, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'ysx-CRM转化供应商流程-20260518' into Dev
parents
fcd6035c
dc83e83b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
.gitignore
app/Http/Controllers/Filter/SkuListFilter.php
app/Http/Controllers/Sync/SupplierSyncController.php
app/Http/Services/CompanyService.php
app/Http/Services/SkuService.php
resources/views/web/SupplierList.blade.php
.gitignore
View file @
088292e1
...
...
@@ -10,4 +10,6 @@ Homestead.json
/vendor/_laravel_ide
/storage/framework/views
/storage
CLAUDE.md
\ No newline at end of file
CLAUDE.md
/.windsurf
/skills-lock.json
app/Http/Controllers/Filter/SkuListFilter.php
View file @
088292e1
...
...
@@ -21,7 +21,6 @@ class SkuListFilter
$map
=
array_map
(
function
(
$item
)
{
return
trim
(
$item
);
},
$map
);
//dd($map);
//只获取专卖的数据
$map
[
'supplier_id'
]
=
17
;
if
((
!
empty
(
$map
[
'create_time'
])))
{
...
...
@@ -40,19 +39,20 @@ class SkuListFilter
$adminUserService
=
new
AdminUserService
();
$subordinateCodeIds
=
$adminUserService
->
getCodeIdsByUserIds
(
$subordinateUserIds
);
$subordinateCodeIds
=
$subordinateCodeIds
->
toArray
();
$map
[
'encoded/eqs'
]
=
implode
(
','
,
$subordinateCodeIds
);
//
$map['encoded/eqs'] = implode(',', $subordinateCodeIds);
$supplierCodes
=
SupplierChannelModel
::
where
(
function
(
$query
)
use
(
$subordinateCodeIds
)
{
$query
->
whereIn
(
'purchase_uid'
,
$subordinateCodeIds
)
->
orWhereRaw
(
"channel_uid REGEXP '"
.
implode
(
'|'
,
$subordinateCodeIds
)
.
"'"
);
})
->
whereNotNull
(
'supplier_code'
)
->
where
(
'supplier_code'
,
'!='
,
''
)
->
pluck
(
'supplier_code'
)
->
toArray
();
if
(
!
empty
(
$supplierCodes
))
{
$map
[
'canal_new/eqs'
]
=
implode
(
','
,
$supplierCodes
);
}
else
{
$map
[
'canal_new/eqs'
]
=
'NO_MATCH'
;
}
}
else
{
$map
[
'encoded/condition'
]
=
$codeId
;
//
$map['encoded/condition'] = $codeId;
$supplierCodes
=
SupplierChannelModel
::
where
(
function
(
$query
)
use
(
$codeId
)
{
$query
->
where
(
'purchase_uid'
,
$codeId
)
...
...
app/Http/Controllers/Sync/SupplierSyncController.php
View file @
088292e1
...
...
@@ -237,7 +237,7 @@ class SupplierSyncController extends BaseSyncController
$phone
=
array_get
(
$companyInfo
,
'phone'
,
''
);
$establishedTime
=
array_get
(
$companyInfo
,
'establishment_time'
,
''
);
// legal_representative 从天眼查数据获取(如果有)
$legalRepresentative
=
''
;
$legalRepresentative
=
array_get
(
$companyInfo
,
'legal_representative'
,
''
)
;
$applyUid
=
!
empty
(
$data
[
'apply_uid'
])
?
$data
[
'apply_uid'
]
:
1000
;
$applyName
=
(
new
AdminUserService
())
->
getAdminUserNameByUserId
(
$applyUid
);
// 2. 构建供应商数据
...
...
app/Http/Services/CompanyService.php
View file @
088292e1
...
...
@@ -73,6 +73,7 @@ class CompanyService
$company
=
[
'supplier_name'
=>
$companyInfo
[
'com_name'
]
==
$supplierName
?
$companyInfo
[
'com_name'
]
:
$companyInfo
[
'en_com_name'
],
'registered_capital'
=>
(
int
)
$companyInfo
[
'registered_capital'
],
'legal_representative'
=>
isset
(
$companyInfo
[
'legal_representative'
])
?
$companyInfo
[
'legal_representative'
]
:
''
,
'supplier_address'
=>
$companyInfo
[
'com_address'
],
'tax_number'
=>
$companyInfo
[
'tyc_info'
][
'tax_number'
],
'phone'
=>
$companyInfo
[
'tyc_info'
][
'phone_number'
],
...
...
app/Http/Services/SkuService.php
View file @
088292e1
...
...
@@ -44,9 +44,7 @@ class SkuService extends BaseService
die
();
}
try
{
// $return = curl($url, $map, 1);
$url
=
base64_encode
(
$url
.
'?'
.
http_build_query
(
$map
));
$return
=
curl
(
config
(
'website.FootstoneCurlUrl'
)
.
$url
);
$return
=
curl
(
$url
,
$map
,
1
);
}
catch
(
\Exception
$e
)
{
return
$e
->
getMessage
();
}
...
...
resources/views/web/SupplierList.blade.php
View file @
088292e1
...
...
@@ -79,7 +79,7 @@
@if(checkPerm('TransferSupplier'))
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
transfer_supplier
">供应商交接</button>
@endif
@if(checkPerm('ConfirmCrmSupplier')
&& checkPerm('ViewConfirmSupplier')
)
@if(checkPerm('ConfirmCrmSupplier'))
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
confirm_crm_supplier
">确认客户转化供应商</button>
@endif
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
layui
-
btn
-
normal
" id="
col_setting
">展示列设置</button>
...
...
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