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
986c446f
authored
Apr 18, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
点击查验问题
parent
ce72590e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
app/Http/Services/CompanyService.php
resources/views/script/supplier/SupplierBaseScript.blade.php
app/Http/Services/CompanyService.php
View file @
986c446f
...
@@ -31,7 +31,7 @@ class CompanyService
...
@@ -31,7 +31,7 @@ class CompanyService
$companyInfoList
=
array_get
(
array_get
(
$result
[
'data'
],
'tycList'
),
'company_info_list'
);
$companyInfoList
=
array_get
(
array_get
(
$result
[
'data'
],
'tycList'
),
'company_info_list'
);
if
(
!
empty
(
$companyInfoList
))
{
if
(
!
empty
(
$companyInfoList
))
{
$companyInfo
=
$companyInfoList
[
0
];
$companyInfo
=
$companyInfoList
[
0
];
$companyInfo
[
'establishment_time'
]
=
$companyInfo
[
'establishment_time'
]
?
$companyInfo
[
'establishment_time'
]
/
1000
:
0
;
$companyInfo
[
'establishment_time'
]
=
$companyInfo
[
'establishment_time'
]
?
$companyInfo
[
'establishment_time'
]
/
1000
:
0
;
$company
=
[
$company
=
[
'supplier_name'
=>
$companyInfo
[
'com_name'
]
==
$supplierName
?
$companyInfo
[
'com_name'
]
:
$companyInfo
[
'en_com_name'
],
'supplier_name'
=>
$companyInfo
[
'com_name'
]
==
$supplierName
?
$companyInfo
[
'com_name'
]
:
$companyInfo
[
'en_com_name'
],
'registered_capital'
=>
(
int
)
$companyInfo
[
'registered_capital'
],
'registered_capital'
=>
(
int
)
$companyInfo
[
'registered_capital'
],
...
@@ -63,12 +63,15 @@ class CompanyService
...
@@ -63,12 +63,15 @@ class CompanyService
$companyInfoList
=
array_get
(
array_get
(
$result
[
'data'
],
'tycList'
),
'company_info_list'
);
$companyInfoList
=
array_get
(
array_get
(
$result
[
'data'
],
'tycList'
),
'company_info_list'
);
if
(
!
empty
(
$companyInfoList
))
{
if
(
!
empty
(
$companyInfoList
))
{
$companyInfo
=
$companyInfoList
[
0
];
$companyInfo
=
$companyInfoList
[
0
];
$companyInfo
[
'establishment_time'
]
=
$companyInfo
[
'establishment_time'
]
?
$companyInfo
[
'establishment_time'
]
/
1000
:
0
;
$company
=
[
$company
=
[
'supplier_name'
=>
$companyInfo
[
'com_name'
]
==
$supplierName
?
$companyInfo
[
'com_name'
]
:
$companyInfo
[
'en_com_name'
],
'supplier_name'
=>
$companyInfo
[
'com_name'
]
==
$supplierName
?
$companyInfo
[
'com_name'
]
:
$companyInfo
[
'en_com_name'
],
'registered_capital'
=>
(
int
)
$companyInfo
[
'registered_capital'
],
'registered_capital'
=>
(
int
)
$companyInfo
[
'registered_capital'
],
'supplier_address'
=>
$companyInfo
[
'com_address'
],
'supplier_address'
=>
$companyInfo
[
'com_address'
],
'tax_number'
=>
$companyInfo
[
'tyc_info'
][
'tax_number'
],
'tax_number'
=>
$companyInfo
[
'tyc_info'
][
'tax_number'
],
'phone'
=>
$companyInfo
[
'tyc_info'
][
'phone_number'
],
'phone'
=>
$companyInfo
[
'tyc_info'
][
'phone_number'
],
'establishment_time'
=>
$companyInfo
[
'establishment_time'
]
?
date
(
'Y-m-d'
,
$companyInfo
[
'establishment_time'
])
:
''
,
];
];
}
}
...
...
resources/views/script/supplier/SupplierBaseScript.blade.php
View file @
986c446f
...
@@ -373,6 +373,7 @@
...
@@ -373,6 +373,7 @@
$
(
'#supplier_address'
).
val
(
companyInfo
.
supplier_address
);
$
(
'#supplier_address'
).
val
(
companyInfo
.
supplier_address
);
$
(
'#phone'
).
val
(
companyInfo
.
phone
);
$
(
'#phone'
).
val
(
companyInfo
.
phone
);
$
(
'#registered_capital'
).
val
(
companyInfo
.
registered_capital
);
$
(
'#registered_capital'
).
val
(
companyInfo
.
registered_capital
);
$
(
'#established_time'
).
val
(
companyInfo
.
establishment_time
);
form
.
render
();
form
.
render
();
layer
.
msg
(
'验证成功,校验公司信息通过,自动补全相关数据'
,
{
icon
:
6
})
layer
.
msg
(
'验证成功,校验公司信息通过,自动补全相关数据'
,
{
icon
:
6
})
}
else
if
(
res
.
err_code
===
-
1
)
{
}
else
if
(
res
.
err_code
===
-
1
)
{
...
...
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