Commit 274f1269 by 杨树贤

页面逻辑

parent 1c64b640
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
}); });
form.on('submit(delete)', function (data) { form.on('submit(delete)', function (data) {
layer.confirm('确定要删除该条采购备注吗?', function (index) { layer.confirm('确定要删除该条采购备注吗?', function (index) {
let id = data[0].id; let id = getQueryVariable('id');
let res = ajax('/api/purchase_remark/DeletePurchaseRemark', {id: id}) let res = ajax('/api/purchase_remark/DeletePurchaseRemark', {id: id})
if (res.err_code === 0) { if (res.err_code === 0) {
layer.msg(res.err_msg, {icon: 6}) layer.msg(res.err_msg, {icon: 6})
......
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
layer.open({ layer.open({
type: 2, type: 2,
content: '/purchase_remark/SavePurchaseRemark?view=iframe&supplier_id=' + supplierId, content: '/purchase_remark/SavePurchaseRemark?view=iframe&supplier_id=' + supplierId,
area: ['600px', '525px'], area: ['800px', '725px'],
title: '新增采购备注', title: '新增采购备注',
end: function () { // 监听弹窗关闭 end: function () { // 监听弹窗关闭
table.reload('purchaseRemarkList'); table.reload('purchaseRemarkList');
......
...@@ -11,10 +11,16 @@ ...@@ -11,10 +11,16 @@
{!! $singleSelectPresenter->render('participate_type','参与类型 :',!empty($remark)?$remark['participate_type']:1,config('field.PurchaseRemarkParticipateType'),['required'=>true]) !!} {!! $singleSelectPresenter->render('participate_type','参与类型 :',!empty($remark)?$remark['participate_type']:1,config('field.PurchaseRemarkParticipateType'),['required'=>true]) !!}
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<div align="center" style="margin-top: 20px"> <div align="right" style="margin-top: 20px">
<button type="button" class="layui-btn layui-btn-info submit-loading" lay-submit lay-filter="load">确认</button> <button type="button" class="layui-btn layui-btn-sm layui-btn-info submit-loading" lay-submit
<button type="button" class="layui-btn layui-btn-primary" lay-filter="cancel">关闭</button> lay-filter="load">确认
<button type="button" class="layui-btn layui-btn-danger" lay-filter="delete">删除</button> </button>
<button type="button" class="layui-btn layui-btn-sm layui-btn-primary" lay-submit
lay-filter="cancel">关闭
</button>
<button type="button" class="layui-btn layui-btn-sm layui-btn-danger" lay-submit
lay-filter="delete">删除
</button>
</div> </div>
</div> </div>
......
...@@ -2,24 +2,136 @@ ...@@ -2,24 +2,136 @@
<b>运费设置<span style="color: orange;margin-left: 10px">PS:设置后的运费规则,将会应用在网站下单页面;</span></b> <b>运费设置<span style="color: orange;margin-left: 10px">PS:设置后的运费规则,将会应用在网站下单页面;</span></b>
</blockquote> </blockquote>
<div class="layui-form-item"> <div class="layui-form-item">
<div class="layui-inline"> <table class="layui-table">
<label class="layui-form-label">商品总价不满</label> <colgroup>
<div class="layui-input-inline" style="width: 100px;"> <col width="300">
<input class="layui-input" type="text" name="cn[max]" id="cn_max" <col width="400">
value="{{$supplier['extra_fee']['cn']['max'] or ''}}" </colgroup>
lay-verify="num"> <thead>
</div> <tr>
<div class="layui-form-label" style="width: 100px;margin-left: -20px">元(人民币),收取</div> <th>包邮</th>
<div class="layui-input-inline" style="width: 100px;"> <th>不包邮</th>
<input class="layui-input" type="text" name="cn[price]" </tr>
value="{{$supplier['extra_fee']['cn']['price'] or ''}}" </thead>
lay-verify="float" value=""> <tbody>
</div> <tr>
<div class="layui-form-label" style="width: 40px;margin-left: -20px">元运费</div> <td>
<div class="layui-input-inline" style="width: 100px;"> <div class="layui-row">
<input type="checkbox" title="全渠道收费" lay-skin="primary" lay-filter="cn_filter"> <div class="layui-col-md12">
</div> <div class="layui-input-inline" style="width: 100px;">
</div> <input type="checkbox" title="无条件包邮" lay-skin="primary" lay-filter="cn_filter">
</div>
</div>
<br>
<br>
<div class="layui-col-md12">
<div>
<label class="layui-form-label" style="width: 150px">商品下单数量达到或者超过</label>
<div class="layui-input-inline" style="width: 100px;">
<input class="layui-input" type="text" name="cn[max]" id="cn_max"
value="{{$supplier['extra_fee']['cn']['max'] or ''}}"
lay-verify="num">
</div>
<div class="layui-form-label" style="width: 50px;margin-left: -20px">个,包邮</div>
</div>
</div>
<div class="layui-col-md12">
<div>
<label class="layui-form-label" style="width: 150px">商品下单金额达到或超过</label>
<div class="layui-input-inline" style="width: 100px;">
<input class="layui-input" type="text" name="cn[max]" id="cn_max"
value="{{$supplier['extra_fee']['cn']['max'] or ''}}"
lay-verify="num">
</div>
<div class="layui-form-label" style="width: 100px;margin-left: -20px">元(RMB)包邮</div>
</div>
</div>
<div class="layui-col-md12">
<div>
<label class="layui-form-label" style="width: 150px">商品下单数量达到或超过</label>
<div class="layui-input-inline" style="width: 100px;">
<input class="layui-input" type="text" name="cn[max]" id="cn_max"
value="{{$supplier['extra_fee']['cn']['max'] or ''}}"
lay-verify="num">
</div>
<div class="layui-form-label" style="width: 170px;margin-left: -10px">个 +
商品下单金额达到或者超过
</div>
<div class="layui-input-inline" style="width: 100px;">
<input class="layui-input" type="text" name="cn[price]"
value="{{$supplier['extra_fee']['cn']['price'] or ''}}"
lay-verify="float" value="">
</div>
<div class="layui-form-label" style="width: 110px;margin-left: -20px">元(RMB),包邮</div>
</div>
</div>
</div>
</td>
<td>
<div class="layui-row">
<div class="layui-col-md12">
<div>
<label class="layui-form-label" style="width: 110px">商品下单数量未达到</label>
<div class="layui-input-inline" style="width: 100px;">
<input class="layui-input" type="text" name="cn[max]" id="cn_max"
value="{{$supplier['extra_fee']['cn']['max'] or ''}}"
lay-verify="num">
</div>
<div class="layui-form-label" style="width: 70px;margin-left: -10px">个,收取运费</div>
<div class="layui-input-inline" style="width: 100px;">
<input class="layui-input" type="text" name="cn[price]"
value="{{$supplier['extra_fee']['cn']['price'] or ''}}"
lay-verify="float" value="">
</div>
<div class="layui-form-label" style="width:80px;margin-left: -20px">元(RMB)</div>
</div>
</div>
<div class="layui-col-md12">
<div>
<label class="layui-form-label" style="width: 110px">商品下单金额未达到</label>
<div class="layui-input-inline" style="width: 100px;">
<input class="layui-input" type="text" name="cn[max]" id="cn_max"
value="{{$supplier['extra_fee']['cn']['max'] or ''}}"
lay-verify="num">
</div>
<div class="layui-form-label" style="width: 120px;margin-left: -10px">元(RMB),收取运费</div>
<div class="layui-input-inline" style="width: 100px;">
<input class="layui-input" type="text" name="cn[price]"
value="{{$supplier['extra_fee']['cn']['price'] or ''}}"
lay-verify="float" value="">
</div>
<div class="layui-form-label" style="width: 70px;margin-left: -20px">元(RMB)</div>
</div>
</div>
<div class="layui-col-md12">
<div>
<label class="layui-form-label" style="width: 110px">商品下单数量未达到</label>
<div class="layui-input-inline" style="width: 100px;">
<input class="layui-input" type="text" name="cn[max]" id="cn_max"
value="{{$supplier['extra_fee']['cn']['max'] or ''}}"
lay-verify="num">
</div>
<div class="layui-form-label" style="width: 140px;margin-left: -10px">个 + 商品下单金额未达到
</div>
<div class="layui-input-inline" style="width: 100px;">
<input class="layui-input" type="text" name="cn[price]"
value="{{$supplier['extra_fee']['cn']['price'] or ''}}"
lay-verify="float" value="">
</div>
<div class="layui-form-label" style="width: 130px;margin-left: -20px">元(RMB),收取运费</div>
<div class="layui-input-inline" style="width: 100px;">
<input class="layui-input" type="text" name="cn[price]"
value="{{$supplier['extra_fee']['cn']['price'] or ''}}"
lay-verify="float" value="">
</div>
<div class="layui-form-label" style="width: 110px;margin-left: -20px">元(RMB)</div>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div> </div>
<blockquote class="layui-elem-quote layui-text"> <blockquote class="layui-elem-quote layui-text">
...@@ -65,7 +177,8 @@ ...@@ -65,7 +177,8 @@
<blockquote class="layui-elem-quote layui-text"> <blockquote class="layui-elem-quote layui-text">
<b>采购备注<span style="color: orange;margin-left: 10px">PS:设置后的备注信息,将会应用在【询报价系统】供销售看到;</span></b> <b>采购备注<span
style="color: orange;margin-left: 10px">PS:设置后的备注信息,将会应用在【询报价系统】供销售看到;</span></b>
</blockquote> </blockquote>
<div class="layui-form-item"> <div class="layui-form-item">
<button class="layui-btn layui-btn-sm" type="button" id="savePurchaserRemark">添加备注</button> <button class="layui-btn layui-btn-sm" type="button" id="savePurchaserRemark">添加备注</button>
...@@ -73,9 +186,6 @@ ...@@ -73,9 +186,6 @@
</div> </div>
<div style="margin-bottom: 300px"></div> <div style="margin-bottom: 300px"></div>
<blockquote class="layui-elem-quote layui-text"> <blockquote class="layui-elem-quote layui-text">
......
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