| | |
| | | <div class="col-sm-8"> |
| | | <button onclick="myGrid.serchData()" type="button" class="btn btn-info btn-sm"><i class="fa fa-search" ></i> 搜索</button> |
| | | <button onclick="myGrid.resetForm()" type="button" class="btn btn-default btn-sm"><i class="fa fa-refresh " ></i> 重置</button> |
| | | <button matrix:btn="ygyjbbZb-exportExcel" onclick="exportExcel()" type="button" class="btn btn-default btn-sm"><i class="fa fa-download" ></i> 导出</button> |
| | | <button matrix:btn="ygyjbb-exportExcel" onclick="exportExcel()" type="button" class="btn btn-default btn-sm"><i class="fa fa-download" ></i> 导出</button> |
| | | </div> |
| | | </div> |
| | | <div class="form-group mr-20"> |
| | |
| | | <input name="beginTime" type="text" class="form-control datetimepicker" id="beginTime">- |
| | | <input name="endTime" type="text" class="form-control datetimepicker" id="endTime"> |
| | | </div> |
| | | |
| | | <div class="form-group mr-20"> |
| | | <label >所属门店</label> <select id="select_id" |
| | | class="form-control autoFull" |
| | | th:data-url="@{/admin/shopInfo/findShops}" data-value="id" |
| | | data-filed="shopName" data-def="${obj.shopId}" name="shopId"> |
| | | <option value="">--请选择所属门店--</option> |
| | | <label>会员</label> |
| | | <input autocomplete="off" placeholder="姓名/编号/电话" name="vipQueryKey" type="text" class="form-control" > |
| | | </div> |
| | | |
| | | <div class="form-group mr-20"> |
| | | <label>美疗师</label> |
| | | <select class="form-control autoFull select2" |
| | | th:data-url="@{/admin/getShopStaffByRoleName?roleName=美疗师}" |
| | | data-value="suId" |
| | | data-filed="suName" |
| | | name="beaultId" |
| | | id="beaultId"> |
| | | <option value="">--请选择美容师--</option> |
| | | </select> |
| | | </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/findAllWithPermi}"> |
| | | <option value=''>--请选择部所属门店--</option> |
| | | </select> |
| | | </div> |
| | | </form> |
| | |
| | | <th data-formatter="MGrid.indexfn" data-align="center" |
| | | data-width="30px" data-footer-formatter="footCountTitle">序号</th> |
| | | <th data-field="datatime" >时间</th> |
| | | <th data-field="orderType">订单类型</th> |
| | | <th data-field="orderNo" data-formatter="buildOpenDetail" >订单编号</th> |
| | | <th data-field="levelName">会员级别</th> |
| | | <th data-field="vipName">姓名</th> |
| | | <th data-field="proName">项目名称</th> |
| | | <th data-field="zkTotal" data-footer-formatter="countColumn">总现金业绩 |
| | | <i data-toggle="tooltip" data-placement="top" title="总现金业绩=售卡+项目+产品" class="fa fa-question-circle"></i> |
| | | </th> |
| | | |
| | | <th data-field="cardCash" data-footer-formatter="countColumn" >售卡业绩 |
| | | <i data-toggle="tooltip" data-placement="top" title="售卡业绩:现金购买充值卡,套餐,充值的收款金额" class="fa fa-question-circle"></i> |
| | | </th> |
| | | |
| | | <th data-field="projCash" data-footer-formatter="countColumn">项目业绩 |
| | | <i data-toggle="tooltip" data-placement="top" title="项目业绩:现金购买单个项目的业绩" class="fa fa-question-circle"></i> |
| | | </th> |
| | | |
| | | <th data-field="goodsCash" data-footer-formatter="countColumn">产品业绩 |
| | | <i data-toggle="tooltip" data-placement="top" title="产品业绩:现金购买产品的业绩" class="fa fa-question-circle"></i> |
| | | </th> |
| | | |
| | | <th data-field="consume" data-footer-formatter="countColumn">余额划扣业绩 |
| | | <i data-toggle="tooltip" data-placement="top" title="余额划扣业绩:从客户的充值卡余额中划扣消费的金额" class="fa fa-question-circle"></i> |
| | | </th> |
| | | |
| | | <th data-field="orderType">订单类型</th> |
| | | <th data-field="vipName">会员姓名</th> |
| | | <th data-field="proName">产品</th> |
| | | <th data-field="cateName">产品分类</th> |
| | | <th data-field="zkTotal" data-footer-formatter="countColumn">订单金额</th> |
| | | <th data-field="goodsCash" data-footer-formatter="countColumn">订单业绩</th> |
| | | <th data-field="payMethod">收款方式</th> |
| | | <th data-field="achieveType">业绩类型</th> |
| | | <th data-field="guwen">顾问</th> |
| | | <th data-field="meiliao">美疗师</th> |
| | | <th data-field="hisConsume" data-footer-formatter="countColumn">本金消耗 |
| | | <i data-toggle="tooltip" data-placement="top" title="消耗金额:客户做服务时划扣的本金" class="fa fa-question-circle"></i> |
| | | </th> |
| | |
| | | <th data-field="projPercentage" data-footer-formatter="countColumn">服务提成 |
| | | <i data-toggle="tooltip" data-placement="top" title="服务提成:为美疗师手动设置的项目服务提成" class="fa fa-question-circle"></i> |
| | | </th> |
| | | <th data-field="guwen">顾问</th> |
| | | <th data-field="meiliao">美疗师</th> |
| | | <th data-field="numberOfPeople" data-footer-formatter="countColumn">人头</th> |
| | | <th data-field="projNum" data-footer-formatter="countColumn">项目个数</th> |
| | | <th data-field="projTime" data-footer-formatter="countColumn">项目时间</th> |
| | |
| | | } |
| | | }); |
| | | |
| | | function buildOpenDetail(value, row, index){ |
| | | var html = []; |
| | | if(row.orderType=='服务单'){ |
| | | html[0] = '<a onClick="fnPublci.showServiceOrder(1 , \'' + value +'\')" class="text-primary " >'+value+'</a>' |
| | | }else{ |
| | | html[0] = '<a onClick="fnPublci.showOrder(1 , \'' + value +'\')" class="text-primary " >'+value+'</a>' |
| | | } |
| | | |
| | | return html.join(""); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | $(function() { |
| | | MTools.autoFullSelect(); |
| | | myGrid = MGrid.initGrid({ |
| | |
| | | |
| | | }); |
| | | |
| | | |
| | | function footCountTitle(data) { |
| | | return "<b>合计</b>"; |
| | | }; |
| | |
| | | |
| | | |
| | | function exportExcel(){ |
| | | |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | |
| | | window.location.href=basePath+"/admin/achieve/exportDailyInfoNew?"+param; |
| | | } |
| | | |
| | | function buildOpenDetail(value, row, index){ |
| | | var html = []; |
| | | if(row.orderType=='服务单'){ |
| | | html[0] = '<a onClick="fnPublci.showServiceOrder(1 , \'' + value +'\')" class="text-primary " >'+value+'</a>' |
| | | }else{ |
| | | html[0] = '<a onClick="fnPublci.showOrder(1 , \'' + value +'\')" class="text-primary " >'+value+'</a>' |
| | | } |
| | | |
| | | return html.join(""); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | </script> |
| | | </body> |