Commit 78b991d5 by 杨树贤

付款方式不显示的问题

parent 2c039b5b
<blockquote class="layui-elem-quote layui-text">
<b>付款方式</b>
</blockquote>
@if (empty($supplier['pay_type_list']))
<script>
$(document).ready(function () {
$('#pay_type_div_list').append($('#pay_type_template').html());
});
</script>
@endif
<div id="pay_type_div_list">
@if (isset($supplier['pay_type']))
<div class="layui-row pay_type_div" style="margin-bottom: 5px;">
<div class="layui-col-md3">
<div class="layui-row pay_type_div" style="margin-bottom: 5px;">
<div class="layui-col-md3">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('settlement_type','结算方式 : ',
!empty($supplier)?$supplier['settlement_type']:'',config('field.SettlementType'),['required'=>true]) !!}
</div>
<div class="layui-col-md3">
<div class="layui-inline">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('settlement_type','结算方式 : ',
$supplier['settlement_type'],config('field.SettlementType'),['required'=>true]) !!}
</div>
<div class="layui-col-md3">
<div class="layui-inline">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('pay_type','付款周期 : ',
$supplier['pay_type'],config('fixed.SupplierPayType'),['required'=>true]) !!}
</div>
{!! $statusPresenter->render('pay_type','付款周期 : ',
!empty($supplier)?$supplier['pay_type']:'',config('fixed.SupplierPayType'),['required'=>true]) !!}
</div>
<div class="layui-col-md6" style="width:500px;margin-bottom: 3px;margin-left: -20px;">
<div class="layui-row">
@if ($supplier['pay_type']==1)
<div class="pay_type_1_div">
<div class="layui-row" style="">
<span class="require">*</span>月结 : &nbsp
<div class="layui-input-inline" style="width: 80px;">
<input class="layui-input valueInput" type="hidden" name="pay_type_value"
value="{{$supplier['pay_type_value'] or ''}}">
<select lay-filter="pay_type_month">
<option value="">请选择</option>
<option value="30"
@if($supplier['pay_type_value']==30)
selected='selected'
@endif>30
</option>
<option value="60"
@if($supplier['pay_type_value']==60)
selected='selected'
@endif>60
</option>
<option value="90"
@if($supplier['pay_type_value']==90)
selected='selected'
@endif>90
</option>
</select>
</div>
<div class="layui-col-md6" style="width:500px;margin-bottom: 3px;margin-left: -20px;">
<div class="layui-row">
@if (!empty($supplier)&&$supplier['pay_type']==1)
<div class="pay_type_1_div">
<div class="layui-row" style="">
<span class="require">*</span>月结 : &nbsp
<div class="layui-input-inline" style="width: 80px;">
<input class="layui-input valueInput" type="hidden" name="pay_type_value"
value="{{$supplier['pay_type_value'] or ''}}">
<select lay-filter="pay_type_month">
<option value="">请选择</option>
<option value="30"
@if($supplier['pay_type_value']==30)
selected='selected'
@endif>30
</option>
<option value="60"
@if($supplier['pay_type_value']==60)
selected='selected'
@endif>60
</option>
<option value="90"
@if($supplier['pay_type_value']==90)
selected='selected'
@endif>90
</option>
</select>
</div>
&nbsp天
<input type="hidden" class="valueInput" name="pay_type_extra" value="天">
</div>
@else
<div class="pay_type_1_div" style="display: none">
<div class="layui-row">
<span class="require">*</span>月结 : &nbsp
<div class="layui-input-inline" style="width: 80px;">
<input class="layui-input valueInput" type="hidden" name="pay_type_value">
<select lay-filter="pay_type_month">
<option value="">请选择</option>
<option value="30">30</option>
<option value="60">60</option>
<option value="90">90</option>
</select>
</div>
&nbsp天
<input type="hidden" class="valueInput" name="pay_type_extra" value="天">
</div>
&nbsp天
<input type="hidden" class="valueInput" name="pay_type_extra" value="天">
</div>
@endif
@endif
@if ($supplier['pay_type']==2)
<div class="pay_type_2_div">
<input type="hidden" class="valueInput" name="pay_type_value">
<input type="hidden" class="valueInput" name="pay_type_extra" value="">
</div>
@else
<div class="pay_type_2_div" style="display: none">
<input type="hidden" class="valueInput" name="">
<input type="hidden" class="valueInput" name="" value="">
</div>
@endif
</div>
@if (!empty($supplier)&&$supplier['pay_type']==2)
<div class="pay_type_2_div">
<input type="hidden" class="valueInput" name="pay_type_value">
<input type="hidden" class="valueInput" name="pay_type_extra" value="">
</div>
@else
<div class="pay_type_2_div" style="display: none">
<input type="hidden" class="valueInput" name="">
<input type="hidden" class="valueInput" name="" value="">
</div>
@endif
</div>
</div>
</div>
@endif
</div>
</div>
@include('script.supplier.SupplierPayTypeScript')
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