Commit 17da1d8e by 杨树贤

优化按钮显示

parent 1bf54d9f
...@@ -5,7 +5,9 @@ ...@@ -5,7 +5,9 @@
{{--运费规则--}} {{--运费规则--}}
<div class="layui-form-item"> <div class="layui-form-item">
<button class="layui-btn layui-btn-sm" type="button" id="saveShippingCostRuler">添加运费规则</button> @if($operate==='update')
<button class="layui-btn layui-btn-sm" type="button" id="saveShippingCostRuler">添加运费规则</button>
@endif
<table class="layui-table" lay-filter="shippingCostRulerList" id="shippingCostRulerList"></table> <table class="layui-table" lay-filter="shippingCostRulerList" id="shippingCostRulerList"></table>
</div> </div>
...@@ -17,11 +19,13 @@ ...@@ -17,11 +19,13 @@
{{--采购备注--}} {{--采购备注--}}
<div class="layui-form-item"> <div class="layui-form-item">
<button class="layui-btn layui-btn-sm" type="button" id="savePurchaserRemark">添加备注</button> @if($operate==='update')
<button class="layui-btn layui-btn-sm" type="button" id="savePurchaserRemark">添加备注</button>\
@endif
<table class="layui-table" lay-filter="purchaseRemarkList" id="purchaseRemarkList"></table> <table class="layui-table" lay-filter="purchaseRemarkList" id="purchaseRemarkList"></table>
</div> </div>
<div @if($operate=="detail") style="display: none" @endif> <div @if($operate==="detail") style="display: none" @endif>
<blockquote class="layui-elem-quote layui-text"> <blockquote class="layui-elem-quote layui-text">
<b>采购附加费设置</b> <b>采购附加费设置</b>
</blockquote> </blockquote>
...@@ -66,73 +70,72 @@ ...@@ -66,73 +70,72 @@
</div> </div>
</div> </div>
<blockquote class="layui-elem-quote layui-text"> <blockquote class="layui-elem-quote layui-text">
</blockquote> </blockquote>
<div class="layui-form-item"> <div class="layui-form-item">
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label">人民币系数</label> <label class="layui-form-label">人民币系数</label>
<div class="layui-input-inline" style="width: 50px"> <div class="layui-input-inline" style="width: 50px">
<input type="text" name="cn_ratio" value="{{$supplier['cn_ratio'] or 1}}" <input type="text" name="cn_ratio" value="{{$supplier['cn_ratio'] or 1}}"
placeholder="请输入人民币系数" autocomplete="off" class="layui-input" placeholder="请输入人民币系数" autocomplete="off" class="layui-input"
style="display: inline-block"> style="display: inline-block">
</div> </div>
</div>
<div class="layui-inline">
<label class="layui-form-label">美金系数</label>
<div class="layui-input-inline" style="width: 50px">
<input type="text" name="us_ratio" value="{{$supplier['us_ratio'] or 1}}"
placeholder="请输入采购附加费" autocomplete="off" class="layui-input">
</div> </div>
<div class="layui-inline"> <div class="layui-form-mid layui-word-aux">
<label class="layui-form-label">美金系数</label> 基数为1,如利润为10%,请填写1.1
<div class="layui-input-inline" style="width: 50px">
<input type="text" name="us_ratio" value="{{$supplier['us_ratio'] or 1}}"
placeholder="请输入采购附加费" autocomplete="off" class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux">
基数为1,如利润为10%,请填写1.1
</div>
</div> </div>
</div> </div>
<blockquote class="layui-elem-quote layui-text"> </div>
<b>货期调整</b> <blockquote class="layui-elem-quote layui-text">
</blockquote> <b>货期调整</b>
<div class="layui-form-item"> </blockquote>
<div class="layui-inline"> <div class="layui-form-item">
<label class="layui-form-label">大陆交期</label> <div class="layui-inline">
<div class="layui-input-inline" style="width: 50px"> <label class="layui-form-label">大陆交期</label>
<input type="text" name="cn_delivery_time" value="{{$supplier['cn_delivery_time'] or 1}}" <div class="layui-input-inline" style="width: 50px">
autocomplete="off" class="layui-input"> <input type="text" name="cn_delivery_time" value="{{$supplier['cn_delivery_time'] or 1}}"
</div> autocomplete="off" class="layui-input">
<div class="layui-input-inline" style="width: 50px">
<select name="cn_delivery_time_period">
<option value="天" @if($supplier['cn_delivery_time_period'] == '天') selected @endif></option>
<option value="周" @if($supplier['cn_delivery_time_period'] == '周') selected @endif></option>
</select>
</div>
</div> </div>
<div class="layui-inline"> <div class="layui-input-inline" style="width: 50px">
<label class="layui-form-label">香港交期</label> <select name="cn_delivery_time_period">
<div class="layui-input-inline" style="width: 50px"> <option value="天" @if($supplier['cn_delivery_time_period'] == '天') selected @endif></option>
<input type="text" name="us_delivery_time" value="{{$supplier['us_delivery_time'] or 1}}" <option value="周" @if($supplier['cn_delivery_time_period'] == '周') selected @endif></option>
autocomplete="off" class="layui-input"> </select>
</div> </div>
<div class="layui-input-inline" style="width: 50px"> </div>
<select name="us_delivery_time_period"> <div class="layui-inline">
<option value="天" @if($supplier['us_delivery_time_period'] == '天') selected @endif></option> <label class="layui-form-label">香港交期</label>
<option value="周" @if($supplier['us_delivery_time_period'] == '周') selected @endif></option> <div class="layui-input-inline" style="width: 50px">
</select> <input type="text" name="us_delivery_time" value="{{$supplier['us_delivery_time'] or 1}}"
</div> autocomplete="off" class="layui-input">
<div class="layui-form-mid layui-word-aux"> </div>
单位为工作日,周。格式2-6工作日,1-2周 <div class="layui-input-inline" style="width: 50px">
</div> <select name="us_delivery_time_period">
<option value="天" @if($supplier['us_delivery_time_period'] == '天') selected @endif></option>
<option value="周" @if($supplier['us_delivery_time_period'] == '周') selected @endif></option>
</select>
</div>
<div class="layui-form-mid layui-word-aux">
单位为工作日,周。格式2-6工作日,1-2周
</div> </div>
</div> </div>
</div> </div>
<script type="text/html" id="shippingCostOperate">
<button class="layui-btn layui-btn-xs" type="button" lay-event="edit">查看</button>
<button class="layui-btn layui-btn-xs layui-btn-danger" type="button" lay-event="delete">删除</button>
</script>
<script type="text/html" id="operate">
<button class="layui-btn layui-btn-xs" type="button" lay-event="edit">查看</button>
<button class="layui-btn layui-btn-xs layui-btn-danger" type="button" lay-event="delete">删除</button>
</script>
</div> </div>
<script type="text/html" id="shippingCostOperate">
<button class="layui-btn layui-btn-xs" type="button" lay-event="edit">查看</button>
<button class="layui-btn layui-btn-xs layui-btn-danger" type="button" lay-event="delete">删除</button>
</script>
<script type="text/html" id="operate">
<button class="layui-btn layui-btn-xs" type="button" lay-event="edit">查看</button>
<button class="layui-btn layui-btn-xs layui-btn-danger" type="button" lay-event="delete">删除</button>
</script>
@include('script.supplier.SupplierRulerScript') @include('script.supplier.SupplierRulerScript')
\ No newline at end of file
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