|  |  | 
 |  |  |                                 <div class="layui-inline"> | 
 |  |  |                                     <label class="layui-form-label layui-form-label-sm">配送方式</label> | 
 |  |  |                                     <div class="layui-input-inline"> | 
 |  |  |                                         <select name="deliveryType"> | 
 |  |  |                                         <select name="isHome"> | 
 |  |  |                                             <option value="">请选择</option> | 
 |  |  |                                             <option value="1">自提</option> | 
 |  |  |                                             <option value="2">快递</option> | 
 |  |  |                                             <option value="1">送货上门</option> | 
 |  |  |                                             <option value="2">自提</option> | 
 |  |  |                                         </select> | 
 |  |  |                                     </div> | 
 |  |  |                                 </div> | 
 |  |  | 
 |  |  |                                             <option value="2">未成功</option> | 
 |  |  |                                         </select> | 
 |  |  |                                     </div> | 
 |  |  |                                 </div> | 
 |  |  |                                 <div class="layui-inline"> | 
 |  |  |                                         <label class="layui-form-label layui-form-label-sm">开始时间</label> | 
 |  |  |                                         <div class="layui-input-inline"> | 
 |  |  |                                             <input type="text" name="startTime" id="febs-form-group-date-start" lay-verify="date" | 
 |  |  |                                                    placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input"> | 
 |  |  |                                         </div> | 
 |  |  |                                 </div> | 
 |  |  |                                 <div class="layui-inline"> | 
 |  |  |                                         <label class="layui-form-label layui-form-label-sm">结束时间</label> | 
 |  |  |                                         <div class="layui-input-inline"> | 
 |  |  |                                             <input type="text" name="endTime" id="febs-form-group-date-end" lay-verify="date" | 
 |  |  |                                                    placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input"> | 
 |  |  |                                         </div> | 
 |  |  |                                 </div> | 
 |  |  |                             </div> | 
 |  |  |  | 
 |  |  | 
 |  |  | <!-- 表格操作栏 end --> | 
 |  |  | <script data-th-inline="none" type="text/javascript"> | 
 |  |  |     // 引入组件并初始化 | 
 |  |  |     layui.use([ 'jquery', 'form', 'table', 'febs', 'formSelects', 'upload'], function () { | 
 |  |  |     layui.use([ 'jquery', 'form', 'table', 'febs', 'formSelects', 'upload','laydate'], function () { | 
 |  |  |         var $ = layui.jquery, | 
 |  |  |             febs = layui.febs, | 
 |  |  |             form = layui.form, | 
 |  |  | 
 |  |  |             $add = $view.find('#add'), | 
 |  |  |             sortObject = {field: 'phone', type: null}, | 
 |  |  |             formSelects = layui.formSelects, | 
 |  |  |             laydate = layui.laydate, | 
 |  |  |             tableIns; | 
 |  |  |  | 
 |  |  |         //日期范围 | 
 |  |  |         laydate.render({ | 
 |  |  |             elem: '#febs-form-group-date-start' | 
 |  |  |         }); | 
 |  |  |  | 
 |  |  |         laydate.render({ | 
 |  |  |             elem: '#febs-form-group-date-end' | 
 |  |  |         }); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         form.render(); | 
 |  |  |  | 
 |  |  | 
 |  |  |                     febs.alert.warn('请选择团长'); | 
 |  |  |                     return; | 
 |  |  |                 } | 
 |  |  |                 window.location.href = ctx + "admin/order/confirmOrder?takeUniqueCode="+uniqueCodeValue+"&orderIds="+ids; | 
 |  |  |                 febs.get(ctx + 'admin/order/confirmOrder?takeUniqueCode='+uniqueCodeValue+'&orderIds='+ids, null, function () { | 
 |  |  |                     febs.alert.success('操作成功'); | 
 |  |  |                     $query.click(); | 
 |  |  |                 }); | 
 |  |  |                 // window.location.href = ctx + "admin/order/confirmOrder?takeUniqueCode="+uniqueCodeValue+"&orderIds="+ids; | 
 |  |  |             } | 
 |  |  |             if (event == 'exportDeliverOne') { | 
 |  |  |                 let uniqueCodeValue = $searchForm.find("select[name='uniqueCode']").val(); | 
 |  |  | 
 |  |  |         table.on('tool(orderTable)', function (obj) { | 
 |  |  |             var data = obj.data, | 
 |  |  |                 layEvent = obj.event; | 
 |  |  |             // if (layEvent === 'deliverGoods') { | 
 |  |  |             //     febs.modal.open('发货', 'modules/order/deliverGoods/' + data.id, { | 
 |  |  |             //         btn: ['确认', '取消'], | 
 |  |  |             //         yes: function (index, layero) { | 
 |  |  |             //             $('#deliver-update').find('#submit').trigger('click'); | 
 |  |  |             //         }, | 
 |  |  |             //         btn2: function () { | 
 |  |  |             //             layer.closeAll(); | 
 |  |  |             //         } | 
 |  |  |             //     }); | 
 |  |  |             // } | 
 |  |  |             if (layEvent === 'deliverGoods') { | 
 |  |  |                 febs.modal.open('发货', 'modules/order/deliverGoods/' + data.id, { | 
 |  |  |                     btn: ['确认', '取消'], | 
 |  |  | 
 |  |  |                         {field: 'memberPhone', title: '联系方式', minWidth: 120,align:'left'}, | 
 |  |  |                         // {field: 'memberBindPhone', title: '联系方式', minWidth: 120,align:'left'}, | 
 |  |  |                         {field: 'amount', title: '订单金额', minWidth: 120,align:'left'}, | 
 |  |  |                         // {field: 'carriage', title: '运费', minWidth: 120,align:'left'}, | 
 |  |  |                         {field: 'leaderName', title: '团长', minWidth: 120,align:'left'}, | 
 |  |  |                         {field: 'orderTime', title: '下单时间', minWidth: 200,align:'left'}, | 
 |  |  |                         {field: 'deliveryType', title: '配送方式', | 
 |  |  |                         {field: 'isHome', title: '配送方式', | 
 |  |  |                             templet: function (d) { | 
 |  |  |                                 if (d.deliveryType === 1) { | 
 |  |  |                                 if (d.isHome === 2) { | 
 |  |  |                                     return '<span style="color:dodgerblue;">自提</span>' | 
 |  |  |                                 } else if (d.deliveryType === 2) { | 
 |  |  |                                     return '<span style="color:forestgreen;">快递</span>' | 
 |  |  |                                 } else if (d.isHome === 1) { | 
 |  |  |                                     return '<span style="color:forestgreen;">送货上门</span>' | 
 |  |  |                                 }else{ | 
 |  |  |                                     return '' | 
 |  |  |                                 } | 
 |  |  | 
 |  |  |  | 
 |  |  |         // 获取查询参数 | 
 |  |  |         function getQueryParams() { | 
 |  |  |             let startTimestr = $searchForm.find('input[name="startTime"]').val().trim(); | 
 |  |  |             let endTimeStr = $searchForm.find('input[name="endTime"]').val().trim(); | 
 |  |  |             if(startTimestr != '' && endTimeStr != '' && startTimestr >= endTimeStr){ | 
 |  |  |                 febs.alert.warn('开始时间需要小于结束时间'); | 
 |  |  |                 return{}; | 
 |  |  |             } | 
 |  |  |             return { | 
 |  |  |                 startTime: $searchForm.find('input[name="startTime"]').val().trim(), | 
 |  |  |                 endTime: $searchForm.find('input[name="endTime"]').val().trim(), | 
 |  |  |                 name: $searchForm.find('input[name="name"]').val().trim(), | 
 |  |  |                 orderNo: $searchForm.find('input[name="orderNo"]').val().trim(), | 
 |  |  |                 payResult: $searchForm.find("select[name='payResult']").val(), | 
 |  |  |                 status: $searchForm.find("select[name='status']").val(), | 
 |  |  |                 deliveryType: $searchForm.find("select[name='deliveryType']").val(), | 
 |  |  |                 isHome: $searchForm.find("select[name='isHome']").val(), | 
 |  |  |                 uniqueCode: $searchForm.find("select[name='uniqueCode']").val(), | 
 |  |  |             }; | 
 |  |  |         } |