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
1de43152
authored
Jun 25, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
补充完善
parent
9716947b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
app/Http/Services/CrmService.php
resources/views/web/AddSupplier.blade.php
app/Http/Services/CrmService.php
View file @
1de43152
...
...
@@ -9,7 +9,7 @@ use Illuminate\Support\Facades\DB;
class
CrmService
{
//获取签约公司列表
public
static
function
getSignCompanyList
()
public
static
function
getSignCompanyList
(
$showAll
=
true
)
{
$cacheKey
=
'sign_company_list'
;
$cachedData
=
(
new
RedisModel
())
->
get
(
$cacheKey
);
...
...
@@ -18,7 +18,11 @@ class CrmService
}
try
{
$url
=
env
(
'CRM_URL'
)
.
'/open/signComs/getSignComs?use_scope=2'
;
if
(
$showAll
)
{
$url
=
env
(
'CRM_URL'
)
.
'/open/signComs/getSignComs?use_scope=100&is_show_all_status=2'
;
}
else
{
$url
=
env
(
'CRM_URL'
)
.
'/open/signComs/getSignComs?use_scope=2'
;
}
$client
=
new
Client
();
$response
=
$client
->
get
(
$url
);
$result
=
json_decode
(
$response
->
getBody
()
->
getContents
(),
true
);
...
...
@@ -34,9 +38,9 @@ class CrmService
}
//获取简单形式给各个地方使用
public
static
function
getSignCompanyListMap
()
public
static
function
getSignCompanyListMap
(
$showAll
=
true
)
{
$list
=
self
::
getSignCompanyList
();
$list
=
self
::
getSignCompanyList
(
$showAll
);
$map
=
[];
foreach
(
$list
as
$item
)
{
$map
[
$item
[
'sign_com_id'
]]
=
$item
[
'com_name'
];
...
...
resources/views/web/AddSupplier.blade.php
View file @
1de43152
...
...
@@ -274,7 +274,7 @@
<div
class=
"layui-col-md3"
>
<div
class=
"layui-inline"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('sign_com_id','签约公司 : ',!empty($supplier)?$supplier['sign_com_id']:105,\App\Http\Services\CrmService::getSignCompanyListMap(),['title'=>'发生跨境交易时的合同签约主体','required'=>true,'width'=>'200px']) !!}
{!! $statusPresenter->render('sign_com_id','签约公司 : ',!empty($supplier)?$supplier['sign_com_id']:105,\App\Http\Services\CrmService::getSignCompanyListMap(
false
),['title'=>'发生跨境交易时的合同签约主体','required'=>true,'width'=>'200px']) !!}
</div>
</div>
</div>
...
...
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