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
0042a95d
authored
Jan 11, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
自动填充成立时间
parent
0a415adc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
app/Http/Services/CompanyService.php
resources/views/script/supplier/SupplierBaseScript.blade.php
app/Http/Services/CompanyService.php
View file @
0042a95d
...
...
@@ -31,12 +31,16 @@ class CompanyService
$companyInfoList
=
array_get
(
array_get
(
$result
[
'data'
],
'tycList'
),
'company_info_list'
);
if
(
!
empty
(
$companyInfoList
))
{
$companyInfo
=
$companyInfoList
[
0
];
$companyInfo
[
'establishment_time'
]
=
$companyInfo
[
'establishment_time'
]
?
substr
(
$companyInfo
[
'establishment_time'
],
0
,
10
)
:
0
;
$company
=
[
'supplier_name'
=>
$companyInfo
[
'com_name'
]
==
$supplierName
?
$companyInfo
[
'com_name'
]
:
$companyInfo
[
'en_com_name'
],
'registered_capital'
=>
(
int
)
$companyInfo
[
'registered_capital'
],
'supplier_address'
=>
$companyInfo
[
'com_address'
],
'tax_number'
=>
$companyInfo
[
'tyc_info'
][
'tax_number'
],
'phone'
=>
$companyInfo
[
'tyc_info'
][
'phone_number'
],
'establishment_time'
=>
$companyInfo
[
'establishment_time'
]
?
date
(
'Y-m-d'
,
$companyInfo
[
'establishment_time'
])
:
''
,
];
}
$unitedCompanyInfo
[
'company'
]
=
$company
;
...
...
resources/views/script/supplier/SupplierBaseScript.blade.php
View file @
0042a95d
...
...
@@ -83,6 +83,7 @@
$
(
'#phone'
).
val
(
companyInfo
.
phone
);
$
(
'#supplier_address'
).
val
(
companyInfo
.
supplier_address
);
$
(
'#registered_capital'
).
val
(
companyInfo
.
registered_capital
);
$
(
'#established_time'
).
val
(
companyInfo
.
establishment_time
);
layer
.
msg
(
'校验公司信息通过,自动补全相关数据'
,
{
icon
:
6
})
if
(
!
ignoreCompanyCheck
)
{
...
...
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