|  | @@ -29,58 +29,69 @@
 | 
	
		
			
				|  |  |          height: 20px;
 | 
	
		
			
				|  |  |          line-height: 20px;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +    .notclick{
 | 
	
		
			
				|  |  | +        pointer-events: none;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    .btn_div_list{
 | 
	
		
			
				|  |  | +        -webkit-border-radius: 50%;
 | 
	
		
			
				|  |  | +        -moz-border-radius: 50%;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  </style>
 | 
	
		
			
				|  |  |  <body>
 | 
	
		
			
				|  |  | -    <div style="text-align: center;padding: 10px;">
 | 
	
		
			
				|  |  | -        江苏兴光临时订餐系统
 | 
	
		
			
				|  |  | -    </div>
 | 
	
		
			
				|  |  | -    <%--<div class="weui-cells weui-cells_form">--%>
 | 
	
		
			
				|  |  | +        <div style="padding:10px; margin:auto;">
 | 
	
		
			
				|  |  | +            <img style="    margin: auto;width: 100%;" src="/static/weixin/image/dc_logo.png"/>
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  | +      <div class=" weui-cells_form">
 | 
	
		
			
				|  |  |          <form id="subForm" method="post">
 | 
	
		
			
				|  |  | -            <div class="weui-cell">
 | 
	
		
			
				|  |  | -                <div class="weui-cell__hd"><label class="weui-label">姓名</label></div>
 | 
	
		
			
				|  |  | -                <div class="weui-cell__bd">
 | 
	
		
			
				|  |  | -                    <input class="weui-input" name="name" value="${theOrder.name}" placeholder="姓名">
 | 
	
		
			
				|  |  | -                </div>
 | 
	
		
			
				|  |  | -            </div>
 | 
	
		
			
				|  |  | -            <div class="weui-cell" id="divTeam">
 | 
	
		
			
				|  |  | -                <div class="weui-cell__hd"><label class="weui-label">团队</label></div>
 | 
	
		
			
				|  |  | -                <c:if test="${theOrder.status == '0'}">
 | 
	
		
			
				|  |  | +            <div class="weui-cells" style="margin: 0;">
 | 
	
		
			
				|  |  | +                <div class="weui-cell">
 | 
	
		
			
				|  |  | +                    <div class="weui-cell__hd"><label class="weui-label">姓名</label></div>
 | 
	
		
			
				|  |  |                      <div class="weui-cell__bd">
 | 
	
		
			
				|  |  | -                        <label><input type="radio" name="team" onchange="teamCg()" value="盛小兰" <c:if test="${theOrder.team != '盛小兰'}">disabled</c:if> <c:if test="${theOrder.team == '盛小兰'}">checked</c:if> />盛小兰</label>  
 | 
	
		
			
				|  |  | -                        <label><input type="radio" id="isAdmin"  onchange="teamCg()" name="team" value="潘中"   <c:if test="${theOrder.team != '潘中'}">disabled</c:if>  <c:if test="${theOrder.team == '潘中'}">checked</c:if> />潘中</label><br>
 | 
	
		
			
				|  |  | -                        <label><input type="radio" name="team" onchange="teamCg()" value="王春生" <c:if test="${theOrder.team != '王春生'}">disabled</c:if> <c:if test="${theOrder.team == '王春生'}">checked</c:if> />王春生</label>  
 | 
	
		
			
				|  |  | -                        <label><input type="radio" name="team" onchange="teamCg()" value="其他" <c:if test="${theOrder.team != '其他'}">disabled</c:if>  <c:if test="${theOrder.team == '其他'}">checked</c:if> />其他</label>
 | 
	
		
			
				|  |  | -                        <%--<label><input type="button" onclick="updateStatus()" value="修改"></label>--%>
 | 
	
		
			
				|  |  | +                        <input class="weui-input" name="name" value="${theOrder.name}" placeholder="姓名">
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  | -                    <div class="weui-cell__ft">
 | 
	
		
			
				|  |  | -                        <i onclick="updateStatus()" class="weui-icon-cancel"></i>
 | 
	
		
			
				|  |  | -                        <%--<input type="button" onclick="updateStatus()" class="weui-btn" value="修改"/>--%>
 | 
	
		
			
				|  |  | +                </div>
 | 
	
		
			
				|  |  | +                <c:if test="${theOrder.status == '0'}">
 | 
	
		
			
				|  |  | +                    <div class="weui-cell" id="divTeam">
 | 
	
		
			
				|  |  | +                        <div class="weui-cell__hd">
 | 
	
		
			
				|  |  | +                            <label class="weui-label">团队</label>
 | 
	
		
			
				|  |  | +                            <a href="javascript:;" onclick="updateStatus()" style="font-size: 12px;padding: 5px;color: green;">修改</a>
 | 
	
		
			
				|  |  | +                        </div>
 | 
	
		
			
				|  |  | +                        <div class="weui-cell__bd">
 | 
	
		
			
				|  |  | +                            <label><input type="radio" id="isAdmin"  onchange="teamCg()" name="team" value="潘中"   <c:if test="${theOrder.team != '潘中'}">disabled</c:if>  <c:if test="${theOrder.team == '潘中'}">checked</c:if> />潘  中</label>     
 | 
	
		
			
				|  |  | +                            <label><input type="radio" name="team" onchange="teamCg()" value="盛小兰" <c:if test="${theOrder.team != '盛小兰'}">disabled</c:if> <c:if test="${theOrder.team == '盛小兰'}">checked</c:if> />盛小兰</label><br>
 | 
	
		
			
				|  |  | +                            <label><input type="radio" name="team" onchange="teamCg()" value="王春生" <c:if test="${theOrder.team != '王春生'}">disabled</c:if> <c:if test="${theOrder.team == '王春生'}">checked</c:if> />王春生</label>   
 | 
	
		
			
				|  |  | +                            <label><input type="radio" name="team" onchange="teamCg()" value="其他" <c:if test="${theOrder.team != '其他'}">disabled</c:if>  <c:if test="${theOrder.team == '其他'}">checked</c:if> />其  他</label>
 | 
	
		
			
				|  |  | +                            <%--<label><input type="button" onclick="updateStatus()" value="修改"></label>--%>
 | 
	
		
			
				|  |  | +                        </div>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                  </c:if>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |                  <c:if test="${theOrder.status == '1'}">
 | 
	
		
			
				|  |  | -                    <div class="weui-cell__bd">
 | 
	
		
			
				|  |  | -                        <label><input type="radio" name="team" onchange="teamCg()" value="盛小兰" />盛小兰</label>  
 | 
	
		
			
				|  |  | -                        <label><input type="radio" id="isAdmin"  onchange="teamCg()" name="team" value="潘中"   <c:if test="${theOrder.team == '潘中'}">checked</c:if> />潘中</label><br>
 | 
	
		
			
				|  |  | -                        <label><input type="radio" name="team" onchange="teamCg()" value="王春生" />王春生</label>  
 | 
	
		
			
				|  |  | -                        <label><input type="radio" name="team" onchange="teamCg()" value="其他"  checked />其他</label>
 | 
	
		
			
				|  |  | +                    <div class="weui-cell" id="divTeam">
 | 
	
		
			
				|  |  | +                        <div class="weui-cell__hd">
 | 
	
		
			
				|  |  | +                            <label class="weui-label">团队</label>
 | 
	
		
			
				|  |  | +                        </div>
 | 
	
		
			
				|  |  | +                        <div class="weui-cell__bd">
 | 
	
		
			
				|  |  | +                            <label><input type="radio" id="isAdmin"  onchange="teamFirstCg()" name="team" value="潘中"/>  潘   中 </label>     
 | 
	
		
			
				|  |  | +                            <label><input type="radio" name="team" onchange="teamFirstCg()" value="盛小兰" />盛小兰</label><br>
 | 
	
		
			
				|  |  | +                            <label><input type="radio" name="team" onchange="teamFirstCg()" value="王春生" />王春生</label>  
 | 
	
		
			
				|  |  | +                            <label><input type="radio" name="team" onchange="teamFirstCg()" value="其他"  checked />其 他</label>
 | 
	
		
			
				|  |  | +                        </div>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                  </c:if>
 | 
	
		
			
				|  |  | -            </div>
 | 
	
		
			
				|  |  | -                    <div class="weui-cell" id="divDepartment">
 | 
	
		
			
				|  |  | +                    <div class="weui-cell notclick" id="divDepartment">
 | 
	
		
			
				|  |  |                          <div class="weui-cell__hd"><label class="weui-label">部门</label></div>
 | 
	
		
			
				|  |  |                          <div class="weui-cell__bd">
 | 
	
		
			
				|  |  |                              <input class="weui-input" onChange="departmentChange()" type="text"  id='department' value="${theOrder.department}"/>
 | 
	
		
			
				|  |  |                          </div>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                      <input type="text" value="" name="department" id="departmentSure" hidden>
 | 
	
		
			
				|  |  | -                    <div class="weui-cell" id="spc1">
 | 
	
		
			
				|  |  | +                    <div class="weui-cell notclick" id="spc1">
 | 
	
		
			
				|  |  |                          <div class="weui-cell__hd"><label class="weui-label">工程部门</label></div>
 | 
	
		
			
				|  |  |                          <div class="weui-cell__bd">
 | 
	
		
			
				|  |  |                              <input class="weui-input" type="text" name="specific1" id='specific1' value="${theOrder.specific}"/>
 | 
	
		
			
				|  |  |                          </div>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  | -                    <div class="weui-cell" id="spc2">
 | 
	
		
			
				|  |  | +                    <div class="weui-cell notclick" id="spc2">
 | 
	
		
			
				|  |  |                          <div class="weui-cell__hd"><label class="weui-label">财务部门</label></div>
 | 
	
		
			
				|  |  |                          <div class="weui-cell__bd">
 | 
	
		
			
				|  |  |                              <input class="weui-input" type="text" name="specific2" id='specific2' value="${theOrder.specific}"/>
 | 
	
	
		
			
				|  | @@ -89,30 +100,29 @@
 | 
	
		
			
				|  |  |                      <input type="text" value="" name="specific" id="specific" hidden>
 | 
	
		
			
				|  |  |              <input type="text" value="${theOrder.status}" hidden name="status"/>
 | 
	
		
			
				|  |  |              <input type="text" value="${theOrder.correlationId}" hidden name="correlationId"/>
 | 
	
		
			
				|  |  | +            </div>
 | 
	
		
			
				|  |  |              <%--<input class="weui-input" type="text" name="team" id='team' value="${theOrder.team}" onChange="teamChange()"/>--%>
 | 
	
		
			
				|  |  |          </form>
 | 
	
		
			
				|  |  | -        <div class="weui-cell">
 | 
	
		
			
				|  |  | -        </div>
 | 
	
		
			
				|  |  | -    <%--</div>--%>
 | 
	
		
			
				|  |  | -    <div class="" style="text-align: center;">
 | 
	
		
			
				|  |  | -        <div class="weui-cells__title"><h4>预定<span id="currentDate"></span>订工作餐</h4></div>
 | 
	
		
			
				|  |  | -                <c:if test="${theOrder.exits == '1'}">
 | 
	
		
			
				|  |  | -                    <div class="button-2 blue" id="buttonPlan" onclick="plan()">
 | 
	
		
			
				|  |  | -                        <div style="line-height: 150px;height:150px;padding-top: 55px">
 | 
	
		
			
				|  |  | -                            <span class="btn_span_list" id="plan">预订餐</span><br><span class="btn_span_list" id="spantime"></span>
 | 
	
		
			
				|  |  | +    </div>
 | 
	
		
			
				|  |  | +        <div class="" style="text-align: center;border-radius: 50%;">
 | 
	
		
			
				|  |  | +            <div class="weui-cells__title"><h4 style="font-weight: 100;">预定<span id="currentDate" style="color:#666;"></span>工作餐</h4></div>
 | 
	
		
			
				|  |  | +                    <c:if test="${theOrder.exits == '1'}">
 | 
	
		
			
				|  |  | +                        <div class="button-2 blue" id="buttonPlan" onclick="plan()">
 | 
	
		
			
				|  |  | +                            <div class="btn_div_list" style="line-height: 90px;height:90px;padding-top: 55px;">
 | 
	
		
			
				|  |  | +                                <span class="btn_span_list" id="plan">预订</span><br><span class="btn_span_list" id="spantime"></span>
 | 
	
		
			
				|  |  | +                            </div>
 | 
	
		
			
				|  |  |                          </div>
 | 
	
		
			
				|  |  | -                    </div>
 | 
	
		
			
				|  |  | -                        </c:if>
 | 
	
		
			
				|  |  | -                <c:if test="${theOrder.exits == '0'}">
 | 
	
		
			
				|  |  | -                    <div class="button-2 blue" id="buttonPlan" style="background:#999999;" disabled>
 | 
	
		
			
				|  |  | -                        <div style="line-height: 150px;height:150px;padding-top: 55px">
 | 
	
		
			
				|  |  | -                            <span class="btn_span_list">已订餐</span>
 | 
	
		
			
				|  |  | +                            </c:if>
 | 
	
		
			
				|  |  | +                    <c:if test="${theOrder.exits == '0'}">
 | 
	
		
			
				|  |  | +                        <div class="button-2 blue notclick" id="buttonPlan" style="background:#dcdbdb;">
 | 
	
		
			
				|  |  | +                            <div style="line-height: 130px;height:130px;padding-top: 65px">
 | 
	
		
			
				|  |  | +                                <span class="btn_span_list" style="color: #0b61a4">已订餐</span>
 | 
	
		
			
				|  |  | +                            </div>
 | 
	
		
			
				|  |  |                          </div>
 | 
	
		
			
				|  |  | -                    </div>
 | 
	
		
			
				|  |  | -                </c:if>
 | 
	
		
			
				|  |  | -            </div>
 | 
	
		
			
				|  |  | -        <div class="weui-cells__tips"style="width: 100%;text-align: center">请在0:00-16:00前预订第二天的用餐</div>
 | 
	
		
			
				|  |  | -    </div>
 | 
	
		
			
				|  |  | +                    </c:if>
 | 
	
		
			
				|  |  | +                </div>
 | 
	
		
			
				|  |  | +            <div class="" style="width: 100%;text-align: center;font-size: 14px;color: #666666;">请在0:00-16:00前预订第二天的用餐</div>
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  |      <div class="bottem_div">兴光信息技术支持</div>
 | 
	
		
			
				|  |  |  </body>
 | 
	
		
			
				|  |  |  <script type="text/javascript">
 | 
	
	
		
			
				|  | @@ -155,13 +165,14 @@
 | 
	
		
			
				|  |  |          sureDepart();
 | 
	
		
			
				|  |  |          $.post("/weXin/theOrder/noSureTem",$('#subForm').serialize(),function(data){
 | 
	
		
			
				|  |  |              if(data.success){
 | 
	
		
			
				|  |  | -                $("#plan").text("已预定");
 | 
	
		
			
				|  |  | +                $("#plan").text("已订餐");
 | 
	
		
			
				|  |  | +                $("#plan").attr("style","color: #0b61a4");
 | 
	
		
			
				|  |  |                  $("#spantime").attr("style","display: none");
 | 
	
		
			
				|  |  |                  $.toast(data.msg);
 | 
	
		
			
				|  |  |              }else{
 | 
	
		
			
				|  |  |                  $.toast(data.msg, "cancel");
 | 
	
		
			
				|  |  | -                $("#button2").attr("disabled",false);
 | 
	
		
			
				|  |  | -                $("#button2").attr("background","#0095cd");
 | 
	
		
			
				|  |  | +                $("#buttonPlan").removeClass("notclick");
 | 
	
		
			
				|  |  | +                $("#buttonPlan").attr("background","#0095cd");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -172,7 +183,7 @@
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |      $("#department").select({
 | 
	
		
			
				|  |  |          title: "选择部门",
 | 
	
		
			
				|  |  | -        items: ["工程", "财务","管理咨询","资产评估","其他"]
 | 
	
		
			
				|  |  | +        items: ["财务", "工程","管理咨询","资产评估","其他"]
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |      $("#specific2").select({
 | 
	
		
			
				|  |  |          title: "选择级联部门(财务)",
 | 
	
	
		
			
				|  | @@ -195,6 +206,20 @@
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      teamCg();
 | 
	
		
			
				|  |  | +    function teamFirstCg() {
 | 
	
		
			
				|  |  | +        if ($("#isAdmin").is(":checked")) {
 | 
	
		
			
				|  |  | +            $("#department").val("其他");
 | 
	
		
			
				|  |  | +            $("#divDepartment").attr("style","display:''");
 | 
	
		
			
				|  |  | +            $("#divDepartment").removeClass("notclick");
 | 
	
		
			
				|  |  | +            $("#spc1").removeClass("notclick");
 | 
	
		
			
				|  |  | +            $("#spc2").removeClass("notclick");
 | 
	
		
			
				|  |  | +            departmentChange();
 | 
	
		
			
				|  |  | +        }else {
 | 
	
		
			
				|  |  | +            $("#divDepartment").attr("style","display: none");
 | 
	
		
			
				|  |  | +            $("#spc1").attr("style","display: none");
 | 
	
		
			
				|  |  | +            $("#spc2").attr("style","display: none");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |      //联动效果
 | 
	
		
			
				|  |  |      function teamChange() {
 | 
	
		
			
				|  |  |         var team =  $("#team").val();
 | 
	
	
		
			
				|  | @@ -211,23 +236,26 @@
 | 
	
		
			
				|  |  |          if (department == '财务'){
 | 
	
		
			
				|  |  |              $("#spc1").attr("style","display: none");
 | 
	
		
			
				|  |  |              $("#spc2").attr("style","display: ''");
 | 
	
		
			
				|  |  | -            $("#specific2").val("其他")
 | 
	
		
			
				|  |  | +            $("#specific2").val("审计部")
 | 
	
		
			
				|  |  |          }else if (department == '工程') {
 | 
	
		
			
				|  |  |              $("#spc2").attr("style","display: none");
 | 
	
		
			
				|  |  |              $("#spc1").attr("style","display: ''");
 | 
	
		
			
				|  |  | -            $("#specific1").val("其他")
 | 
	
		
			
				|  |  | +            $("#specific1").val("工程一部")
 | 
	
		
			
				|  |  |          }else {
 | 
	
		
			
				|  |  |              $("#spc1").attr("style","display: none");
 | 
	
		
			
				|  |  |              $("#spc2").attr("style","display: none");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      function changeStatus() {
 | 
	
		
			
				|  |  | -        $("#buttonPlan").attr("disabled","true");
 | 
	
		
			
				|  |  | -        $("#buttonPlan").attr("style","background:#999999");
 | 
	
		
			
				|  |  | +        $("#buttonPlan").addClass("notclick");
 | 
	
		
			
				|  |  | +        $("#buttonPlan").attr("style","background:#dcdbdb");
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      function updateStatus() {
 | 
	
		
			
				|  |  |          $("input[name='team']").attr("disabled",false);
 | 
	
		
			
				|  |  | +        $("#divDepartment").removeClass("notclick");
 | 
	
		
			
				|  |  | +        $("#spc1").removeClass("notclick");
 | 
	
		
			
				|  |  | +        $("#spc2").removeClass("notclick");
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      function sureDepart() {
 | 
	
		
			
				|  |  |          if ($("#isAdmin").is(":checked")){
 |