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
0751a5f2
authored
Nov 02, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化上传
parent
626e7174
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
app/Http/Controllers/Api/SupplierApiController.php
resources/views/script/AddSupplierScript.blade.php
resources/views/web/supplier/SupplierFile.blade.php
app/Http/Controllers/Api/SupplierApiController.php
View file @
0751a5f2
...
...
@@ -119,9 +119,9 @@ class SupplierApiController extends Controller
}
else
{
$validateResult
=
$validator
->
checkSave
(
$data
,
$isAudit
);
}
if
(
$validateResult
)
{
$this
->
response
(
-
1
,
$validateResult
);
}
//
if ($validateResult) {
//
$this->response(-1, $validateResult);
//
}
$channelMap
=
$this
->
channelMap
;
...
...
@@ -153,8 +153,17 @@ class SupplierApiController extends Controller
]);
$channel
=
$request
->
only
(
$channelMap
);
//校验一体化实体名单
$businessLicense
=
''
;
if
(
!
empty
(
$channel
[
'field_name'
]))
{
if
(
in_array
(
'business_license'
,
$channel
[
'field_name'
]))
{
foreach
(
$channel
[
'field_name'
]
as
$key
=>
$item
)
{
if
(
$item
==
'business_license'
)
{
$businessLicense
=
$channel
[
'file_url'
][
$key
];
}
}
}
}
//校验一体化实体名单
$checkCompanyEntity
=
(
new
CompanyService
())
->
checkCompanyEntity
(
$channel
[
'supplier_name'
],
$channel
[
'supplier_name_en'
],
$channel
[
'supplier_address'
],
$businessLicense
);
//待确认要透传到数据库里面去
if
(
$checkCompanyEntity
==
0
)
{
...
...
resources/views/script/AddSupplierScript.blade.php
View file @
0751a5f2
...
...
@@ -96,7 +96,7 @@
}
form
.
on
(
'submit(addSupplier)'
,
function
(
data
)
{
data
=
getAttachmentData
(
data
);
admin
.
showLoading
();
admin
.
showLoading
(
'.layui-layer-btn0'
);
$
.
ajax
({
...
...
resources/views/web/supplier/SupplierFile.blade.php
View file @
0751a5f2
...
...
@@ -79,4 +79,4 @@
</div>
</div>
</div>
@include('script.supplier.SupplierFileScript')
\ No newline at end of file
@include('script.supplier.SupplierFileScript')
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