Commit 55141612 by 杨树贤

修复

parent e3ec19dc
......@@ -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>";
}
......
......@@ -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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment