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
55141612
authored
Jul 04, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复
parent
e3ec19dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
app/Presenters/StatusPresenter.php
resources/views/web/supplier/SupplierBase.blade.php
app/Presenters/StatusPresenter.php
View file @
55141612
...
...
@@ -34,8 +34,12 @@ EOF;
$optionsHtml
=
' <option value="">请选择</option>'
;
$checked
=
''
;
foreach
(
$data
as
$key
=>
$value
)
{
if
(
$status
!==
''
&&
$status
!=
null
)
{
$checked
=
(
$key
==
$status
)
?
"selected='selected'"
:
''
;
if
(
$status
!==
''
&&
$status
!==
null
)
{
if
(
$status
===
'0'
||
$status
===
0
)
{
$checked
=
(
$key
===
$status
)
?
"selected='selected'"
:
''
;
}
else
{
$checked
=
(
$key
==
$status
)
?
"selected='selected'"
:
''
;
}
}
$optionsHtml
=
$optionsHtml
.
"<option value='
$key
'
$checked
>
$value
</option>"
;
}
...
...
resources/views/web/supplier/SupplierBase.blade.php
View file @
55141612
...
...
@@ -66,7 +66,8 @@
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-block"
id=
"tax_number_div"
>
<label
class=
"layui-form-label"
><span
id=
"tax_number_required_span"
class=
"require"
>
*
</span>
公司税号
</label>
<label
class=
"layui-form-label"
><span
id=
"tax_number_required_span"
class=
"require"
>
*
</span>
公司税号
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"tax_number"
id=
"tax_number"
placeholder=
"选择所在区域才允许输入公司税号,海外供应商没有税号可以不填"
class=
"layui-input layui-disabled"
disabled
value=
"{{$supplier['tax_number'] or ''}}"
>
...
...
@@ -150,7 +151,7 @@
<div
class=
"layui-row"
>
<div
class=
"layui-col-md3"
>
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('supplier_group','公司性质',!empty($supplier)?array_get($supplier,'supplier_group',
null
):'',
{!! $statusPresenter->render('supplier_group','公司性质',!empty($supplier)?array_get($supplier,'supplier_group',
0
):'',
config('fixed.SupplierGroup'),['required'=>true]) !!}
</div>
<div
class=
"layui-col-md3"
>
...
...
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