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
38ccd26c
authored
Jan 13, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复disable逻辑
parent
848474ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
resources/views/script/supplier/SupplierBaseScript.blade.php
resources/views/script/supplier/SupplierBaseScript.blade.php
View file @
38ccd26c
...
...
@@ -12,8 +12,7 @@
layDate
.
render
({
elem
:
'#established_time'
,
type
:
'month'
,
format
:
'yyyy-MM'
,
format
:
'yyyy-MM-dd'
});
const
supplierId
=
getQueryVariable
(
'supplier_id'
);
...
...
@@ -120,8 +119,6 @@
@
if
(
!
empty
(
$supplier
))
@
if
(
$supplier
[
'region'
]
==
2
)
$
(
'.city-div'
).
show
();
$
(
'#established_time'
).
attr
(
'disabled'
,
true
);
$
(
'#established_time'
).
addClass
(
'layui-disabled'
);
@
endif
@
if
(
$supplier
[
'supplier_group'
]
==
\
App
\
Model
\
SupplierChannelModel
::
SUPPLIER_GROUP_MIX
)
$
(
'#agency_brands_div'
).
show
();
...
...
@@ -152,8 +149,8 @@
$
(
'#tax_number_required_span'
).
show
();
$
(
'#tax_number_div'
).
show
();
$
(
'.city-div'
).
show
();
//同时还要判断权限,有忽略公司校验权限的,成立时间可以不disabled
if
(
!
ignoreCompanyCheck
)
{
//同时还要判断权限,有忽略公司校验权限的,成立时间可以不disabled
,以及还有一个条件,修改的时候不能disable
if
(
!
ignoreCompanyCheck
&&
!
supplierId
)
{
$
(
'#established_time'
).
attr
(
'disabled'
,
true
);
$
(
'#established_time'
).
addClass
(
'layui-disabled'
);
}
...
...
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