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
b6d76169
authored
Apr 30, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
注销判断
parent
80fde41d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
app/Http/Controllers/Api/CommonApiController.php
app/Http/Services/CompanyService.php
resources/views/script/supplier/SupplierBaseScript.blade.php
app/Http/Controllers/Api/CommonApiController.php
View file @
b6d76169
...
...
@@ -89,8 +89,11 @@ class CommonApiController extends Controller
if
(
in_array
(
$region
,
config
(
'field.NeedCheckCompanyRegion'
)))
{
$regionType
=
$region
==
SupplierChannelModel
::
REGION_CN
?
1
:
2
;
$company
=
(
new
CompanyService
())
->
getCompanyInfo
(
$supplierName
,
$taxNumber
,
$regionType
);
if
(
isset
(
$company
[
'regStatus'
])
&&
$company
[
'regStatus'
]
==
'注销'
)
{
$this
->
response
(
-
1
,
'该公司已经注销,不能进行录入'
);
}
if
(
!
$company
)
{
$this
->
response
(
-
1
,
'
获取不到公司
'
);
$this
->
response
(
-
1
,
'
验证失败,公司未进行工商注册
'
);
}
}
else
{
$this
->
response
(
-
2
,
'供应商跳过天眼查校验'
);
...
...
app/Http/Services/CompanyService.php
View file @
b6d76169
...
...
@@ -77,6 +77,7 @@ class CompanyService
'phone'
=>
$companyInfo
[
'tyc_info'
][
'phone_number'
],
'establishment_time'
=>
$companyInfo
[
'establishment_time'
]
?
date
(
'Y-m-d'
,
$companyInfo
[
'establishment_time'
])
:
''
,
'regStatus'
=>
!
empty
(
$companyInfo
[
'regStatus'
])
?
$companyInfo
[
'regStatus'
]
:
''
,
];
}
...
...
resources/views/script/supplier/SupplierBaseScript.blade.php
View file @
b6d76169
...
...
@@ -488,8 +488,8 @@
})
}
else
{
$
(
'#supplier_name'
).
next
(
'#supplier_check_tip'
).
find
(
'p'
).
text
(
'公司未进行工商注册'
);
layer
.
msg
(
'验证失败,公司未进行工商注册'
,
{
res
.
err_msg
);
layer
.
msg
(
res
.
err_msg
,
{
icon
:
5
})
resetCompanyInfo
(
supplierName
!==
''
);
...
...
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