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
f0d87da8
authored
Jun 28, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
校验
parent
11696ef8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
app/Http/Controllers/Api/CommonApiController.php
resources/views/script/supplier/SupplierBaseScript.blade.php
app/Http/Controllers/Api/CommonApiController.php
View file @
f0d87da8
...
...
@@ -72,7 +72,9 @@ class CommonApiController extends Controller
//请求天眼查校验接口
$supplierName
=
$request
->
get
(
'supplier_name'
);
$taxNumber
=
$request
->
get
(
'tax_number'
);
$company
=
(
new
CompanyService
())
->
getCompanyInfo
(
$supplierName
,
$taxNumber
);
$region
=
$request
->
get
(
'region'
);
$regionType
=
$region
==
2
?
1
:
2
;
$company
=
(
new
CompanyService
())
->
getCompanyInfo
(
$supplierName
,
$taxNumber
,
$regionType
);
if
(
!
$company
)
{
$this
->
response
(
-
1
,
'获取不到公司'
);
}
...
...
resources/views/script/supplier/SupplierBaseScript.blade.php
View file @
f0d87da8
...
...
@@ -278,6 +278,7 @@
$('#recheck_company_info').click(function () {
let supplierName = $('#supplier_name').val();
let taxNumber = $('#tax_number').val();
let region = $('#region').val();
admin.btnLoading('#recheck_company_info', '正在查验公司信息,请稍等...');
if (!supplierName && !taxNumber) {
layer.msg('请填写供应商名称或者税号后再进行查验', {icon: 5});
...
...
@@ -285,7 +286,7 @@
return false;
}
$('#supplier_check_tip').remove();
let url = '/api/common/checkCompanyInfo?supplier_name=' + supplierName + '&tax_number=' + taxNumber;
let url = '/api/common/checkCompanyInfo?supplier_name=' + supplierName + '&tax_number=' + taxNumber
+ '®ion=' + region
;
$.ajax({
url: url,
type: 'GET',
...
...
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