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
e3ec19dc
authored
Jul 04, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
公司提示
parent
cd322132
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
resources/views/script/supplier/SupplierBaseScript.blade.php
resources/views/web/AddSupplier.blade.php
resources/views/script/supplier/SupplierBaseScript.blade.php
View file @
e3ec19dc
...
...
@@ -23,8 +23,8 @@
const
supplier_id
=
supplierId
;
const
region
=
$
(
'#region'
).
val
();
let
tax_number
=
$
(
'#tax_number'
).
val
();
$
(
'#supplier_check_tip'
).
remove
();
var
self
=
$
(
this
);
self
.
next
().
find
(
'p'
).
text
(
''
);
let
url
=
'/api/supplier/CheckSupplierName?supplier_name='
+
supplier_name
+
'&supplier_id='
+
supplier_id
+
'&tax_number='
+
tax_number
+
'®ion='
+
region
;
...
...
@@ -57,13 +57,13 @@
}
if
(
!
ignoreCompanyCheck
)
{
layer
.
msg
(
res
.
err_msg
,
{
icon
:
5
});
self
.
next
(
'#supplier_check_tip'
).
find
(
'p'
).
text
(
res
.
err_msg
);
self
.
next
().
find
(
'p'
).
text
(
res
.
err_msg
);
$
(
'#supplier_name'
).
prop
(
'disabled'
,
false
);
}
}
else
{
//这个code代表供应商名称已经存在,自然要检测
layer
.
msg
(
res
.
err_msg
,
{
icon
:
5
});
self
.
next
(
'#supplier_check_tip'
).
find
(
'p'
).
text
(
res
.
err_msg
);
self
.
next
().
find
(
'p'
).
text
(
res
.
err_msg
);
$
(
'#supplier_name'
).
prop
(
'disabled'
,
false
);
}
if
(
!
ignoreCompanyCheck
)
{
...
...
resources/views/web/AddSupplier.blade.php
View file @
e3ec19dc
...
...
@@ -62,6 +62,9 @@
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"supplier_name"
id=
"supplier_name"
placeholder=
"选择所在区域才允许输入供应商名称"
class=
"layui-input layui-disabled"
value=
""
disabled
>
<div
id=
'supplier_check_tip'
style=
'margin-top: 5px'
>
<p
style=
'color: red;'
></p>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
...
...
@@ -70,6 +73,9 @@
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"tax_number"
id=
"tax_number"
placeholder=
"选择所在区域才允许输入公司税号,海外供应商没有税号可以不填"
class=
"layui-input layui-disabled"
disabled
value=
""
>
<div
id=
'supplier_check_tip'
style=
'margin-top: 5px'
>
<p
style=
'color: red;'
></p>
</div>
</div>
</div>
</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