| | |
| | | <!-- 表格操作栏 start --> |
| | | <script type="text/html" id="mall-order-option"> |
| | | {{# if(d.status === 2) { }} |
| | | <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="orderMoneyFlow:update" lay-event="deliverGoods">发货</button> |
| | | <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="orderMoneyFlow:update" lay-event="orderMoneyFlow">资金流水</button> |
| | | {{# } else if(d.status === 3) { }} |
| | | <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="orderMoneyFlow:update" lay-event="delOrder">删除</button> |
| | |
| | | }); |
| | | } |
| | | if (layEvent === 'orderMoneyFlow') { |
| | | febs.modal.open( '订单流水', 'modules/goods/orderMoneyFlow/' + data.id, { |
| | | febs.modal.open( '订单流水', 'goodsView/orderMoneyFlow/' + data.id, { |
| | | maxmin: true, |
| | | }); |
| | | } |
| | | if (layEvent === 'deliverGoods') { |
| | | febs.modal.open('发货', 'goodsView/deliverGoods/' + data.id, { |
| | | btn: ['确认', '取消'], |
| | | yes: function (index, layero) { |
| | | $('#deliver-update').find('#submit').trigger('click'); |
| | | }, |
| | | btn2: function () { |
| | | layer.closeAll(); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | function delOrder(id) { |