私教分配及跟进
2016-08-09 14:14
218 查看
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> ${inc:/action/ccms/newpub} <link href="${def:context}/js/project/erpClub/css/erpindex.css" rel="stylesheet" /> <link href="${def:context}/js/project/erpClub/css/defeat3.css" rel="stylesheet" /> <title>私教分配及跟进</title> <style type="text/css"> </style> </head> <body> <!--addnew/edit form--> <div class="modal fade" id="modalAddnew" tabindex="-1" role="dialog"> <div class="modal-dialog" style="width: 80%;"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="formTitle">会员分配</h4> </div> <div class="modal-body"> <form id="formEditor" name="formEditor" class="form-horizontal" role="form" method="post"> <input type="hidden" id="vc_code" name="vc_code" value="" /> <input type="text" id="vc_recuser" class="form-control" name="vc_recuser" style="display: none;" value="" readonly="readonly" /> <input type="text" id="vc_recusername" class="form-control" name="vc_recusername" style="display: none;" value="" readonly="readonly" /> <input type="text" id="vc_attachkey" class="form-control" name="vc_attachkey" style="display: none;" value="" readonly="readonly" /> <input type="text" id="vc_customercode" class="form-control" name="vc_customercode" style="display: none;" value="" readonly="readonly" /> <table class="table table-bordered"> <tbody> <tr> <td width="80px">会员姓名:</td> <td width="110px"> <input type="text" id="vc_name12" class="form-control" name="vc_name12" value="" readonly="readonly" preserve="true"/> </td> <td width="80px">会员卡号:</td> <td width="110px"> <input type="text" id="vc_cardcode12" class="form-control" name="vc_cardcode12" value="" readonly="readonly" preserve="true"/> </td> <td width="70px">日期:</td> <td width="120px"> <input type="text" id="vc_startdate12" class="form-control" name="vc_startdate12" value="" readonly="readonly" preserve="true"/> </td> </tr> <tr> <td colspan="6">分配信息</td> </tr> <tr> <td width="150px">健身目标:</td> <td colspan="2"> <select class="form-control" id="flag" name="flag"> <option value="">请选择</option> <strong-list> <option value="${fld:strong_id}">${fld:strong_name}</option> </strong-list> </select> </td> <td width="150px">存在担忧</td> <td colspan="2"> <select class="form-control" id="fff" name="fff"> <option value="">请选择</option> <trepidation-list> <option value="${fld:worry_id}">${fld:worry_name}</option> </trepidation-list> </select> </td> </tr> <tr> <td>上课时间:</td> <td colspan="2"> <select class="form-control" id="timee" name="timee"> <option value="">请选择</option> <school-list> <option value="${fld:classtime_id}">${fld:classtime_name}</option> </school-list> </select> </td> <td>推荐PT:</td> <td colspan="2"> <select class="form-control" id="pt" name="pt"> <option value="">请选择</option> <ptdef-list> <option value="${fld:userlogin}">${fld:name_en} ${fld:name}</option> </ptdef-list> </select> </td> </tr> <tr> <td rowspan="5" id="requied" width="150px">特殊要求:教练性别、学历、特长、性格、上课风格</td> <td colspan="5"> <textarea class="form-control" id="ee" name="ee"></textarea> </td> </tr> </tbody> </table> <p>操作人:${def:user}</p> <input type="button" id="invalid_btn" style="position: relative; left: 40%;" class="btn btn-info btn-sm" value="分配" /> <input type="button" id="exit_btn" style="position: relative; left: 50%;" class="btn btn-info btn-sm" value="退出" class="btn btn-default" data-dismiss="modal" /> </form> </div> </div> </div> </div> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog" style="width: 70%"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel">会员作废</h4> </div> <form id="formEditorTovoid" name="formEditorTovoid" class="form-horizontal" role="form" method="post"> <input type="hidden" id="vc_cust_code" name="vc_cust_code" value=""/> <div class="modal-body"> <table class="table table-bordered"> <tbody> <tr> <td width="80px">会员姓名:</td> <td width="110px"> <input type="text" id="vcname" class="form-control" name="vcname" value="" readonly="readonly" /> </td> <td width="80px">会员卡号</td> <td width="110px"> <input type="text" id="vccardcode" class="form-control" name="vccardcode" value="" readonly="readonly" /> </td> <td width="70px">日期:</td> <td width="120px"> <input type="text" id="vcstartdate" class="form-control" name="vcstartdate" value="" readonly="readonly" /> </td> </tr> <!-- <tr><td colspan="6">作废信息</td></tr> --> <tr> <td colspan="6">作废原因</td> </tr> <tr> <td colspan="6"> <textarea class="form-control" id="eeet" name="eeet"></textarea> </td> </tr> </tbody> </table> <br /> <br /> <p>操作人:${def:user}</p> <br /> <br /> <br /> <input type="button" id="invalidd_btn" style="position: relative; left: 40%;" class="btn btn-info btn-sm" value="作废" /> <input type="button" id="exitt_btn" style="position: relative; left: 50%;" class="btn btn-info btn-sm" value="退出" class="btn btn-default" data-dismiss="modal" /> <br /> <br /> <br /> </div> </form> </div> </div> </div> <div class="panel panel-default col_mainInner"> <div class="panel-body col_main_body"> <form class="form-inline" role="form" method="post" id="searchForm" name="searchForm"> <div class="Visiting"> <input name="sort" type="hidden" value="model_id" preserve="true" /> <input name="order" type="hidden" value="desc" preserve="true" /> <input name="pageNo" type="hidden" value="" preserve="true" /> <input name="totalPages" type="hidden" value="" preserve="true" /> <div class="banner-top ba3"> <label for="vc_singletype">卡号/姓名</label> <input type="text" id="c_vc_code" name="c_vc_code" placeholder="请输入卡号或姓名" value="" maxlength="80" /> </div> <div class="banner-top ba4" style="width: 650px;"> <button class="btn btn-info btn-sm" type="button" id="fenpei_btn">分配</button> <button class="btn btn-info btn-sm" type="button" id="zuofei_btn">作废</button> <button class="btn btn-info btn-sm" type="button" id="search_btn">查询</button> <button class="btn btn-info btn-sm" type="button" id="search_reset_btn">清空</button> <button class="btn btn-info btn-sm" type="button" id="search_record">沟通记录</button> </div> </div> <div id="ptselect" class="Visiting"> <div class="banner-top ba1"> <label>选择分配状态</label> <select id="personal_train" name="personal_train"> <option value="">请选择</option> <option value="0">待分配</option> <option value="1">已分配</option> <option value="2">过期</option> <option value="3">作废</option> <option value="4">成交</option> </select> </div> <button type="button" id="yuyue" class="btn btn-info btn-sm" addtabs="12524242" title="私教预约" url="">预 约</button> <div id="datedown" class="banner-top ba1" style="display: none; width: 173px"> <label class="form-label-split">教练</label> <select id="ptt" name="ptt"> <option value="">--请选择--</option> <pt-list> <option value="${fld:userlogin}">${fld:name_en} ${fld:name}</option> </pt-list> </select> </div> <div id="sedate" class="banner-top ba4" style="display: none; width: 350px"> <input type="checkbox" id="limitedate" name="limieedate" value="" /> 限制入会日期 <input id="_start_date" name="_start_date" type="text" /> <span class="floatleft">至</span><input id="_end_date" name="_end_date" type="text" /> </div> <div id="opdate" class="banner-top ba4" style="display: none; width: 350px"> <input type="checkbox" id="limitsdate" name="limitsdate" value="限制开卡日期:" /> 限制开卡日期 <input id="_start_datee" name="_start_datee" type="text" /> <span class="floatleft">至</span> <input id="_end_datee" name="_end_datee" type="text" /> </div> <div id="nouser" class="banner-top ba1" style="display: none;"> <label>私人教练</label> <select id="skill_name" name="skill_name"> <option value="">--请选择--</option> <sirenjiaolian-list> <option value="${fld:userlogin}">${fld:name_en} ${fld:name}</option> </sirenjiaolian-list> </select> </div> <div id="mbptstatus" class="banner-top ba3" style="display: none;"> <label>会员PT状态</label> <select id="ptstatus" name="ptstatus"> <option value="">全部</option> <option value="1">未预约</option> <option value="2">已预约</option> <option value="3">免费I</option> <option value="4">免费II</option> </select> <input type="button" id="solut_btn" addtabs="123456" url="" class="btn btn-info btn-sm" value="预约" /> </div> <div id="lmgdate" class="banner-top ba4" style="display: none; width: 350px"> <div id="handle3"> <input type="checkbox" id="limitgdate" name="limitgdate" value="限制过期日期:" /> 限制过期日期 <input id="_start_datec" name="_start_datec" type="text" /> <span class="floatleft">至</span> <input id="_end_datec" name="_end_datec" type="text" /> </div> </div> <div id="lmindate" class="banner-top ba4" style="display: none; width: 293px"> <div id="handle4"> <input type="checkbox" id="limitindate" name="limitindate" value="限制作废日期:" /> 限制作废日期 <input id="_start_datef" name="_start_datef" type="text" /> <span class="floatleft">至</span> <input id="_end_datef" name="_end_datef" type="text" /> </div> </div> <div id="chdate" class="banner-top ba4" style="display: none; width: 1000px"> <div id="handle" style="float: right; margin-top: -31px;"> <input type="checkbox" id="lchindate" name="lchindate" value="限制作废日期:" /> 限制成交日期 <input id="_start_dateff" name="_start_dateff" type="text" /> <span class="floatleft">至</span> <input id="_end_dateff" name="_end_dateff" type="text" /> </div> </div> </div> </form> <table class="table table-bordered" style="margin-top: 85px;"> <thead> <tr id="list"> <th class="sortable" nowrap>操作</th> <th class="sortable" code="show_order" nowrap>序号</th> <th class="sortable" code="c_vc_code" nowrap>卡号</th> <th class="sortable" code="vc_name" nowrap>姓名</th> <th class="sortable" code="cus_sex" nowrap>性别</th> <th class="sortable" code="vc_mobile" nowrap>手机</th> <th class="sortable" code="kaleixing" nowrap>卡类型</th> <th class="sortable" code="c_indate" nowrap>入会时间</th> <th class="sortable" code="card_status" nowrap>卡状态</th> <th class="sortable" code="vc_mc" nowrap>会籍</th> <th class="sortable" code="c_startdate" nowrap>开卡时间</th> <th class="sortable" code="vc_newpt" nowrap>私教</th> </tr> </thead> <tbody id="datagridTemplate" style="display: none"> <tr id="list"> <td class="text-center noprint skill_count" nowrap>#e_code#</td> <td class="text-center" nowrap>#show_order#</td> <td class="text-center" nowrap>#c_vc_code#</td> <td class="text-center" nowrap>#vc_name#</td> <td class="text-center" nowrap>#cus_sex#</td> <td class="text-center" nowrap>#vc_mobile#</td> <td class="text-center" nowrap>#kaleixing#</td> <td class="text-center" nowrap>#c_indate#</td> <td class="text-center" nowrap>#card_status#</td> <td class="text-center" nowrap>#vc_mc#</td> <td class="text-center" nowrap>#c_startdate#</td> <td class="text-center" nowrap>#vc_newpt#</td> </tr> </tbody> <tbody id="datagrid"> </tbody> </table> <div class="pageDiv"> <ul class="pagination"> </ul> </div> </div> </div> <input type="hidden" name="actionroot" id="actionroot" value="${def:actionroot}" /> <script language="JavaScript"> $(document).ready(function() { $("#yuyue").unbind().click(function(e){ alert(1) var thisobj = $(this); e.preventDefault(); thisobj.unbind(); thisobj.attr('url',$Base64.encode("/action/project/erpClub/teachMngSys/ptBns/privateTeach/crud")); thisobj.addtabs(); thisobj.click(); }); var search = null; this.search = search; search = $Search({ datagrid : "datagrid", formId : "searchForm", success : function() { $("table").css("table-layout","auto"); $(".edit_btn").unbind().on("click",function() { if ($(this).attr("code") != undefined && $(this).attr("code") != "") { obj.edit({id : $(this).attr("code")}); } }); $(".delete_btn").unbind().on("click",function() { var obthis = $(this); $Dialog().confirm("确定要删除该条数据吗?",function() { if (obthis.attr("code") != undefined && obthis.attr("code") != "") { obj.del({id : obthis.attr("code")}); } }); }); //复选框变大 ccms.util.renderRadio("preparelist"); } }).initSearchBtn().searchData(1); $("#search_reset_btn").on("click",function() { ccms.util.clearForm('searchForm'); $('#sedate').hide(); $('#opdate').hide(); $('#nouser').hide(); $('#mbptstatus').hide(); $('#lmgdate').hide(); $('#lmindate').hide(); $('#datedown').hide(); $('#chdate').hide(); kongzhifuxuankuang(); }); $("#invalid_btn").on("click",function() { var uri = "${def:context}/action/project/erpClub/teachMngSys/ptMnger/DistributionFollow/distributioninsert"; ajaxCall(uri, { method : "post", progress : true, form : 'formEditor', dataType : "script", success : function() { search.searchData(1); } }); }); $("#invalidd_btn").on("click",function() { var uri = "${def:context}/action/project/erpClub/teachMngSys/ptMnger/DistributionFollow/invalidinsert"; ajaxCall(uri, { method : "post", progress : true, form : 'formEditorTovoid', dataType : "script", success : function() { $('#myModal').modal("hide"); search.searchData(1); ccms.util.clearForm('formEditorTovoid'); } }); }); $("#fenpei_btn").unbind().on("click",function() { ccms.util.clearForm("formEditor"); var target_id = ""; var chkObjs = document.getElementsByName("preparelist"); for (var i = 0; i < chkObjs.length; i++) { if (chkObjs[i].checked) { target_id = chkObjs[i].value; break; } } if (target_id != "") { $('#modalAddnew').modal("show"); $("#vc_code").val(target_id); var code11; var code22; var code33; var code44; $("input[name=preparelist][type=radio]").each(function() { if (this.checked) { code11 = $(this).attr("code1"); code22 = $(this).attr("code2"); code33 = $(this).attr("code3"); code44 = $(this).attr("code4"); } }); $("#vc_name12").val(code11); $("#vc_cardcode12").val(code22); $("#vc_startdate12").val(code33); $("#vc_customercode").val(code44); } else { ccms.dialog.notice("请选择记录后再操作!"); } }); $("#zuofei_btn").unbind().on("click",function() { var target_id = ""; var chkObjs = document.getElementsByName("preparelist"); for (var i = 0; i < chkObjs.length; i++) { if (chkObjs[i].checked) { target_id = chkObjs[i].value; break; } } if (target_id != "") { //$("#vc_codey").val(target_id); var codee; var codec; var codef; var codem; var code_status; var code_zuofei; $("input[name=preparelist][type=radio]").each(function() { if (this.checked) { codee = $(this).attr("code1"); codec = $(this).attr("code2"); codef = $(this).attr("code3"); codem = $(this).attr("code4"); code_zuofei = $(this).attr("code5"); code_status = $(this).attr("code_status"); } }); if(code_status=='6'){ ccms.dialog.notice("此卡已过期,不能执行作废操作!"); }else if(code_status=='0'){ ccms.dialog.notice("此卡无效,不能执行作废操作!"); }else if(code_zuofei=='6'){ ccms.dialog.notice("私教分配已作废,不能执行作废操作!"); }else{ $('#myModal').modal("show"); $("#vcname").val(codee); $("#vccardcode").val(codec); $("#vcstartdate").val(codef); $("#vc_cust_code").val(codem); } } else { ccms.dialog.notice("请选择记录后再操作!"); } }); $("#search_record").unbind().on("click",function() { var target_id = ""; var chkObjs = document.getElementsByName("preparelist"); for (var i = 0; i < chkObjs.length; i++) { if (chkObjs[i].checked) { target_id = chkObjs[i].value; break; } } if (target_id != "") { var vc_card; $("input[name=preparelist][type=radio]").each(function() { if (this.checked) { vc_card = $(this).attr("code2"); } }); ccms.dialog.open({url : "${def:context}/action/project/erpClub/teachMngSys/ptMnger/DistributionFollow/ComRecord/crud?vc_card=" + vc_card}); } else { ccms.dialog.notice("请选择记录后再操作!"); } }); $Dialog().date($('#_start_date')); $Dialog().date($('#_end_date')); $Dialog().date($('#_start_datee')); $Dialog().date($('#_end_datee')); $Dialog().date($('#_start_datec')); $Dialog().date($('#_end_datec')); $Dialog().date($('#_start_datef')); $Dialog().date($('#_end_datef')); //$Dialog().date($('#_end_dateff')); $Dialog().date($('#_start_dateff')); $Dialog().date($('#_end_dateff')); $("#personal_train").change(function() { var personal_train = $("#personal_train option:selected").val(); if (personal_train == '') { $('#sedate').hide(); $('#opdate').hide(); $('#nouser').hide(); $('#mbptstatus').hide(); $('#lmgdate').hide(); $('#lmindate').hide(); $('#datedown').hide(); $('#chdate').hide(); kongzhifuxuankuang(); } else if (personal_train == '0') { //问题修改赵洪超 $('#sedate').show(); $('#opdate').show(); $('#nouser').hide(); $('#mbptstatus').hide(); $('#lmgdate').hide(); $('#lmindate').hide(); $('#datedown').hide(); $('#chdate').hide(); $("#_start_date").attr('disabled', true); $("#_end_date").attr('disabled', true); $("#_start_datee").attr('disabled', true); $("#_end_datee").attr('disabled', true); kongzhifuxuankuang(); } else if (personal_train == '1') { $('#sedate').hide(); $('#opdate').hide(); $('#nouser').show(); $('#mbptstatus').show(); $('#lmgdate').hide(); $('#lmindate').hide(); $('#datedown').hide(); $('#chdate').hide(); kongzhifuxuankuang(); } else if (personal_train == '2') { //赵洪超修改 $('#sedate').hide(); $('#opdate').hide(); $('#nouser').show(); $('#mbptstatus').hide(); $('#lmgdate').show(); $('#lmindate').hide(); $('#datedown').hide(); $('#chdate').hide(); $("#_start_datec").attr('disabled', true); $("#_end_datec").attr('disabled', true); kongzhifuxuankuang(); } else if (personal_train == '3') { //赵洪超修改 $('#sedate').hide(); $('#opdate').hide(); $('#nouser').hide(); $('#mbptstatus').hide(); $('#lmgdate').hide(); $('#lmindate').show(); $('#datedown').hide(); $('#chdate').hide(); $("#_start_datef").attr('disabled', true); $("#_end_datef").attr('disabled', true); kongzhifuxuankuang(); } else { //赵洪超修改 $('#sedate').show(); $('#opdate').hide(); $('#nouser').hide(); $('#mbptstatus').hide(); $('#lmgdate').hide(); $('#lmindate').hide(); $('#datedown').show(); $('#chdate').show(); $("#_start_date").attr('disabled', true); $("#_end_date").attr('disabled', true); $("#_start_dateff").attr('disabled', true); $("#_end_dateff").attr('disabled', true); kongzhifuxuankuang(); } }); $("#limitedate").unbind().on('ifClicked',function() { if ($("#limitedate").is(":checked")) { $("#_start_date").attr('disabled',true); $("#_end_date").attr('disabled',true); $("#_start_date").val(''); $("#_end_date").val(''); } else { $("#_start_date").attr('disabled',false); $("#_end_date").attr('disabled',false); } }); $("#limitsdate").unbind().on('ifClicked',function() { if ($("#limitsdate").is(":checked")) { $("#_start_datee").attr('disabled',true); $("#_end_datee").attr('disabled',true); $("#_start_datee").val(''); $("#_end_datee").val(''); } else { $("#_start_datee").attr('disabled',false); $("#_end_datee").attr('disabled',false); } }); $("#limitgdate").unbind().on('ifClicked',function() { if ($("#limitgdate").is(":checked")) { $("#_start_datec").attr('disabled',true); $("#_end_datec").attr('disabled',true); $("#_start_datec").val(''); $("#_end_datec").val(''); } else { $("#_start_datec").attr('disabled',false); $("#_end_datec").attr('disabled',false); } }); $("#limitindate").unbind().on('ifClicked',function() { if ($("#limitindate").is(":checked")) { $("#_start_datef").attr('disabled',true); $("#_end_datef").attr('disabled',true); $("#_start_datef").val(''); $("#_end_datef").val(''); } else { $("#_start_datef").attr('disabled',false); $("#_end_datef").attr('disabled',false); } }); $("#lchindate").unbind().on('ifClicked',function() { if ($("#lchindate").is(":checked")) { $("#_start_dateff").attr('disabled', true); $("#_end_dateff").attr('disabled',true); $("#_start_dateff").val(''); $("#_end_dateff").val(''); } else { $("#_start_dateff").attr('disabled', false); $("#_end_dateff").attr('disabled',false); } }); $("#solut_btn").unbind().on('click',function(e) { var thisobj = $(this); e.preventDefault(); thisobj.unbind(); thisobj.attr('url',$Base64.encode("/action/project/erpClub/teachMngSys/ptBns/privateTeach/crud")); thisobj.attr('title', "私教预约"); thisobj.attr('addtabs','yuyue_sijiao_03'); thisobj.addtabs(); thisobj.click(); }); }); function kongzhifuxuankuang() { $("#limitedate").iCheck('UnCheck'); $("#limitsdate").iCheck('UnCheck'); ccms.util.setCheckboxValue("limieedate", " ", "searchForm"); ccms.util.setCheckboxValue("limitindate", " ", "searchForm"); $("#limitgdate").iCheck('UnCheck'); $("#lchindate").iCheck('UnCheck'); $("#limieedate").iCheck('UnCheck'); $("#limitindate").iCheck('UnCheck'); $("#_start_date").val(""); $("#_end_date").val(""); $("#_start_datee").val(""); $("#_end_datee").val(""); $("#_start_datef").val(""); $("#_end_datef").val(""); $("#_start_datec").val(""); $("#_end_datec").val(""); $("#_start_dateff").val(""); $("#_end_dateff").val(""); $("#ptstatus").val(""); $("#skill_name").val(""); $("#ptt").val(""); } </script> </body> </html>
View Code
相关文章推荐
- eclipse项目转android studio详解
- 常用数据库连接池
- SDUT3340数据结构实验之二叉树一:树的同构
- 日期选择分别跳出日期和时间.
- Android Studio你不知道的调试技巧
- 进程通信——消息队列
- 数据结构实验之串二:字符串匹配
- linux常用命令加实例大全
- Thread.currentThread().getContextClassLoader() 和 Class.getClassLoader()区别
- 图的邻接表表示及其BFS遍历
- 【Visual Studio】Visual Studio 2015快捷键设置问题 alt+ F8 (转)
- 文章标题
- android中判断手机网络状况
- 【UE4学习】11_GearVR input 输入控制——inputTouch
- 文章标题
- css 去除标签默认样式
- Nginx搭建反向代理服务器过程详解
- 在vc中自定义事件扩展控件功能
- http协议学习系列(响应头---Response Headers)
- 一个swig的配置文件实例