|  |  |  | 
|---|
|  |  |  | <input autocomplete="off"   name="endTimeVo"  type="text" class="form-control datetimepicker" id="endTime"> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <div class="form-group mr-20"> | 
|---|
|  |  |  | <label >所属门店</label> | 
|---|
|  |  |  | <select class="form-control autoFull" data-filed="shopName" name="shopId" id="shopId" | 
|---|
|  |  |  | th:data-url="@{/admin/shopInfo/findAll}"> | 
|---|
|  |  |  | <option value=''>--请选择部所属门店--</option> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <input autocomplete="off"   type="hidden" name="statu" value="待付款" id="statu"/> | 
|---|
|  |  |  | <div class="form-group mr-20"> | 
|---|
|  |  |  | <button type="button" class="btn btn-my btn-sm" id="btn0" value="" >全部</button> | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <th data-field="statu">订单状态</th> | 
|---|
|  |  |  | <th data-field="remark">备注</th> | 
|---|
|  |  |  | <th data-field="shopName">门店</th> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | </thead> | 
|---|
|  |  |  | 
|---|
|  |  |  | function cancelOrder() { | 
|---|
|  |  |  | var id=myGrid.getSelectItemId(); | 
|---|
|  |  |  | layer.confirm('确定取消此订单?', { | 
|---|
|  |  |  | btn: ['确认', '取消并删除', '取消'] //可以无限个按钮 | 
|---|
|  |  |  | btn: ['确认', '取消'] //可以无限个按钮 | 
|---|
|  |  |  | }, function(index, layero){ | 
|---|
|  |  |  | $.post(basePath+'/admin/order/cancelOrder?id='+id+'&del=0', {}, function(data){ | 
|---|
|  |  |  | parent.layer.msg(data.info,{icon: 1}); | 
|---|
|  |  |  | if (data.status == '200') { | 
|---|
|  |  |  | parent.layer.msg(data.info,{icon: 1}); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | parent.layer.msg(data.info,{icon: 2}); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | layer.closeAll(); | 
|---|
|  |  |  | myGrid.serchData(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, function(index){ | 
|---|
|  |  |  | $.post(basePath+'/admin/order/cancelOrder?id='+id+'&del=1', {}, function(data){ | 
|---|
|  |  |  | parent.layer.msg(data.info,{icon: 1}); | 
|---|
|  |  |  | layer.closeAll(); | 
|---|
|  |  |  | myGrid.serchData(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, function(index){ | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //     function(index){ | 
|---|
|  |  |  | //     $.post(basePath+'/admin/order/cancelOrder?id='+id+'&del=1', {}, function(data){ | 
|---|
|  |  |  | //         parent.layer.msg(data.info,{icon: 1}); | 
|---|
|  |  |  | //         layer.closeAll(); | 
|---|
|  |  |  | //         myGrid.serchData(); | 
|---|
|  |  |  | //     }); | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | function(index){ | 
|---|
|  |  |  | //按钮【按钮二】的回调 | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|