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
b7a2d47c
authored
Jun 28, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化特殊权限的天眼查逻辑
parent
01414079
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
resources/views/script/supplier/SupplierBaseScript.blade.php
resources/views/script/supplier/SupplierBaseScript.blade.php
View file @
b7a2d47c
...
...
@@ -48,8 +48,6 @@
dataType
:
'json'
,
timeout
:
20000
,
success
:
function
(
res
)
{
console
.
log
(
supplier_name
);
console
.
log
(
tax_number
);
if
(
supplier_name
!==
''
||
tax_number
!==
''
)
{
if
(
res
.
err_code
!==
0
)
{
//当code=-2的时候,是公司信息校验有问题,但是如果有跳过检查权限,那么就什么都不处理
...
...
@@ -67,8 +65,11 @@
"
<
p
style
=
'color: red;'
>
" + res.err_msg + "
<
/p></
div
>
");
$('#supplier_name').prop('disabled', false);
}
if (!ignoreCompanyCheck) {
//监听是不是供应商名称变化
resetCompanyInfo(self.attr('id') === 'supplier_name');
}
} else if (res.err_code === 0) {
//如果供应商没有问题,就要去自动填补部分资料
let companyInfo = res.data;
...
...
@@ -78,12 +79,15 @@
$('#supplier_address').val(companyInfo.supplier_address);
$('#registered_capital').val(companyInfo.registered_capital);
layer.msg('校验公司信息通过,自动补全相关数据', {icon: 6})
if (!ignoreCompanyCheck) {
if (self.attr('id') === 'supplier_name') {
$('#tax_number').attr('disabled', true);
} else {
$('#supplier_name').attr('disabled', true);
}
}
}
}
...
...
@@ -307,7 +311,7 @@
layer.msg('验证成功,校验公司信息通过,自动补全相关数据', {icon: 6})
} else {
if (ignoreCompanyCheck) {
layer.msg('公司未进行工商注册', {icon: 5})
} else {
$('#supplier_name').after("
<
div
id
=
'supplier_check_tip'
style
=
'margin-top: 5px'
>
" +
"
<
p
style
=
'color: red;'
>
公司未进行工商注册,请修改后重新提交
<
/p></
div
>
"
);
...
...
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