Commit 274f1269 by 杨树贤

页面逻辑

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