| | |
| | | } |
| | | let ids = ""; |
| | | for(let i = 0;i < data.length;i++){ |
| | | if(data[i].status != 1){ |
| | | if(data[i].status != 2){ |
| | | febs.alert.warn('请选择待发货的订单'); |
| | | return; |
| | | }else{ |
| | | ids = data[i].id; |
| | | } |
| | | } |
| | | console.log(ids); |
| | | if(ids == null || ids == ""){ |
| | | febs.alert.warn('请选择订单'); |
| | | return; |
| | | } |
| | | febs.modal.open('发货', 'modules/clothesType/deliverGoods/' + data.id, { |
| | | febs.modal.open('发货', 'modules/clothesType/deliverGoods/' + ids, { |
| | | btn: ['确认','取消'], |
| | | yes: function (index, layero) { |
| | | $('#deliver-update-clothes').find('#submit').trigger('click'); |
| | |
| | | if(data[i].status != 2){ |
| | | febs.alert.warn('请选择待收货的订单'); |
| | | return; |
| | | }else{ |
| | | ids = data[i].id; |
| | | } |
| | | } |
| | | if(ids == null || ids == ""){ |
| | | febs.alert.warn('请选择订单'); |
| | | return; |
| | | } |
| | | febs.modal.open('修改物流信息', 'modules/clothesType/deliverGoods/' + data.id, { |
| | | febs.modal.open('修改物流信息', 'modules/clothesType/deliverGoods/' + ids, { |
| | | btn: ['确认','取消'], |
| | | yes: function (index, layero) { |
| | | $('#deliver-update-clothes').find('#deliverInfoSubmit').trigger('click'); |
| | |
| | | } |
| | | let ids = ""; |
| | | for(let i = 0;i < data.length;i++){ |
| | | if(data[i].status == 2 ){ |
| | | if(data[i].status != 2 ){ |
| | | febs.alert.warn('请选择待发货的订单'); |
| | | return; |
| | | }else{ |
| | |
| | | febs.alert.warn('请选择订单'); |
| | | return; |
| | | } |
| | | febs.get(ctx + 'admin/clothesType/confirmOrder?ids='+ids, null, function () { |
| | | febs.get(ctx + 'admin/clothesType/confirmOrder/'+ids, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | |
| | | }); |
| | | |
| | | function refundOrder(id) { |
| | | febs.get(ctx + 'admin/clothesType/refundOrder' + id, null, function () { |
| | | febs.get(ctx + 'admin/clothesType/refundOrder/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | |
| | | cols: [[ |
| | | {type: 'checkbox', fixed: 'left'}, |
| | | {type: 'numbers', title: '', width: 80}, |
| | | {title: '操作', |
| | | templet: function (d) { |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="seeOrder">详情</button>' |
| | | },minWidth: 200,align:'center'}, |
| | | // {title: '操作', |
| | | // templet: function (d) { |
| | | // return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="seeOrder">详情</button>' |
| | | // },minWidth: 200,align:'center'}, |
| | | {field: 'orderNo', title: '订单编号', minWidth: 200,align:'left' ,totalRowText:"合计"}, |
| | | {field: 'memberName', title: '购买人', minWidth: 100,align:'left'}, |
| | | {field: 'typeName', title: '类型', minWidth: 100,align:'left'}, |
| | | {field: 'typeImage', title: '图片', minWidth: 100,align:'left'}, |
| | | // {field: 'goodsName', title: '商品', minWidth: 160,align:'left'}, |
| | | // {field: 'typeImage', title: '图片', minWidth: 100,align:'left'}, |
| | | {field: 'goodsCnt', title: '数量', minWidth: 120,align:'left'}, |
| | | {field: 'status', title: '状态', |
| | | templet: function (d) { |
| | |
| | | return '' |
| | | } |
| | | }, minWidth: 80,align:'center'}, |
| | | {field: 'goodsName', title: '商品', minWidth: 160,align:'left'}, |
| | | {field: 'amount', title: '总价', minWidth: 80,align:'left', totalRow:true}, |
| | | {field: 'discountAmount', title: '优惠', minWidth: 80,align:'left', totalRow:true}, |
| | | {field: 'carriage', title: '邮费', minWidth: 80,align:'left', totalRow:true}, |
| | |
| | | orderNo: $searchForm.find('input[name="orderNo"]').val().trim(), |
| | | payResult: $searchForm.find("select[name='payResult']").val(), |
| | | status: $searchForm.find("select[name='status']").val(), |
| | | isHome: $searchForm.find("select[name='isHome']").val(), |
| | | uniqueCode: $searchForm.find("select[name='uniqueCode']").val(), |
| | | }; |
| | | } |
| | | |