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
25a1c235
authored
Sep 23, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
sku模式禁止选择
parent
4e9cfcf8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
app/Presenters/StatusPresenter.php
resources/views/web/supplier/SkuRuler.blade.php
app/Presenters/StatusPresenter.php
View file @
25a1c235
...
...
@@ -9,6 +9,7 @@ class StatusPresenter
public
function
render
(
$name
,
$text
,
$status
=
null
,
$data
=
[
0
=>
'禁用'
,
1
=>
'启用'
],
$option
=
[])
{
$isRequired
=
array_get
(
$option
,
'required'
,
false
);
$isDisable
=
array_get
(
$option
,
'disable'
)
===
true
?
'disabled'
:
''
;
$width
=
array_get
(
$option
,
'width'
,
'auto'
);
$requiredHtml
=
$isRequired
?
'<span class="require">*</span>'
:
""
;
$html
=
<<<EOF
...
...
@@ -17,7 +18,7 @@ class StatusPresenter
$text
</label>
<div class="layui-input-inline" style="width: $width">
<select name="$name" id="$name" lay-filter="$name" lay-search="">
<select name="$name" id="$name" lay-filter="$name"
$isDisable
lay-search="">
{$this->optionsRender($data, $status)}
</select>
</div>
...
...
resources/views/web/supplier/SkuRuler.blade.php
View file @
25a1c235
...
...
@@ -8,7 +8,7 @@
</div>
<div
class=
"layui-col-md3"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('sku_mode','SKU 模式',!empty($supplier)?$supplier['sku_mode']:'',config('field.SkuMode'),['width'=>'150px']) !!}
{!! $statusPresenter->render('sku_mode','SKU 模式',!empty($supplier)?$supplier['sku_mode']:'',config('field.SkuMode'),['width'=>'150px'
,'disable'=> true
]) !!}
</div>
<div
class=
"layui-col-md6"
>
</div>
...
...
@@ -49,8 +49,10 @@
<div
class=
"layui-inline"
style=
"width: 100%"
>
<label
class=
"layui-form-label"
>
审核内容配置 :
</label>
<div
class=
"layui-input-inline"
style=
"width: 205px"
>
<input
type=
"radio"
name=
"sku_audit_ruler[skip]"
lay-filter=
"is_skip"
@
if
($
supplier
['
sku_audit_ruler
']['
skip
']==
1
)
checked
@
endif
value=
"1"
title=
"无需审核"
>
<input
type=
"radio"
name=
"sku_audit_ruler[skip]"
lay-filter=
"is_skip"
@
if
($
supplier
['
sku_audit_ruler
']['
skip
']==
0
)
checked
@
endif
value=
"0"
title=
"需要审核内容"
>
<input
type=
"radio"
name=
"sku_audit_ruler[skip]"
lay-filter=
"is_skip"
@
if
($
supplier
['
sku_audit_ruler
']['
skip
']==
1
)
checked
@
endif
value=
"1"
title=
"无需审核"
>
<input
type=
"radio"
name=
"sku_audit_ruler[skip]"
lay-filter=
"is_skip"
@
if
($
supplier
['
sku_audit_ruler
']['
skip
']==
0
)
checked
@
endif
value=
"0"
title=
"需要审核内容"
>
</div>
<div
class=
"layui-input-inline"
style=
"width: 700px"
>
@if(!empty($supplier['sku_audit_ruler']))
...
...
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