|  | @@ -2,7 +2,7 @@
 | 
												
													
														
															|  |  <%@ include file="/webpage/include/taglib.jsp"%>
 |  |  <%@ include file="/webpage/include/taglib.jsp"%>
 | 
												
													
														
															|  |  <html>
 |  |  <html>
 | 
												
													
														
															|  |  <head>
 |  |  <head>
 | 
												
													
														
															|  | -    <title>预订餐</title>
 |  | 
 | 
												
													
														
															|  | 
 |  | +    <title>订餐</title>
 | 
												
													
														
															|  |      <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
 |  |      <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
 | 
												
													
														
															|  |      <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
 |  |      <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
 | 
												
													
														
															|  |      <meta content="yes" name="apple-mobile-web-app-capable">
 |  |      <meta content="yes" name="apple-mobile-web-app-capable">
 | 
												
											
												
													
														
															|  | @@ -47,7 +47,7 @@
 | 
												
													
														
															|  |                  <div class="weui-cell">
 |  |                  <div class="weui-cell">
 | 
												
													
														
															|  |                      <div class="weui-cell__hd"><label class="weui-label">姓名</label></div>
 |  |                      <div class="weui-cell__hd"><label class="weui-label">姓名</label></div>
 | 
												
													
														
															|  |                      <div class="weui-cell__bd">
 |  |                      <div class="weui-cell__bd">
 | 
												
													
														
															|  | -                        <input class="weui-input" name="name" value="${theOrder.name}" placeholder="姓名">
 |  | 
 | 
												
													
														
															|  | 
 |  | +                        <input class="weui-input" style="color: #999999" name="name" readonly value="${theOrder.name}" placeholder="姓名">
 | 
												
													
														
															|  |                      </div>
 |  |                      </div>
 | 
												
													
														
															|  |                  </div>
 |  |                  </div>
 | 
												
													
														
															|  |                  <c:if test="${theOrder.status == '0'}">
 |  |                  <c:if test="${theOrder.status == '0'}">
 | 
												
											
												
													
														
															|  | @@ -57,10 +57,22 @@
 | 
												
													
														
															|  |                              <a href="javascript:;" onclick="updateStatus()" style="font-size: 12px;padding: 5px;color: green;">修改</a>
 |  |                              <a href="javascript:;" onclick="updateStatus()" style="font-size: 12px;padding: 5px;color: green;">修改</a>
 | 
												
													
														
															|  |                          </div>
 |  |                          </div>
 | 
												
													
														
															|  |                          <div class="weui-cell__bd">
 |  |                          <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>
 |  | 
 | 
												
													
														
															|  | 
 |  | +                            <table>
 | 
												
													
														
															|  | 
 |  | +                                <thead>
 | 
												
													
														
															|  | 
 |  | +                                <tr>
 | 
												
													
														
															|  | 
 |  | +                                    <td style="width: 40%"><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></td>
 | 
												
													
														
															|  | 
 |  | +                                    <td style="width: 40%"><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></td>
 | 
												
													
														
															|  | 
 |  | +                                </tr>
 | 
												
													
														
															|  | 
 |  | +                                <tr>
 | 
												
													
														
															|  | 
 |  | +                                    <td style="width: 40%">
 | 
												
													
														
															|  | 
 |  | +                                        <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>
 | 
												
													
														
															|  | 
 |  | +                                    </td>
 | 
												
													
														
															|  | 
 |  | +                                    <td style="width: 40%">
 | 
												
													
														
															|  | 
 |  | +                                        <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>
 | 
												
													
														
															|  | 
 |  | +                                    </td>
 | 
												
													
														
															|  | 
 |  | +                                </tr>
 | 
												
													
														
															|  | 
 |  | +                                </thead>
 | 
												
													
														
															|  | 
 |  | +                            </table>
 | 
												
													
														
															|  |                              <%--<label><input type="button" onclick="updateStatus()" value="修改"></label>--%>
 |  |                              <%--<label><input type="button" onclick="updateStatus()" value="修改"></label>--%>
 | 
												
													
														
															|  |                          </div>
 |  |                          </div>
 | 
												
													
														
															|  |                      </div>
 |  |                      </div>
 | 
												
											
												
													
														
															|  | @@ -71,10 +83,18 @@
 | 
												
													
														
															|  |                              <label class="weui-label">团队</label>
 |  |                              <label class="weui-label">团队</label>
 | 
												
													
														
															|  |                          </div>
 |  |                          </div>
 | 
												
													
														
															|  |                          <div class="weui-cell__bd">
 |  |                          <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>
 |  | 
 | 
												
													
														
															|  | 
 |  | +                            <table>
 | 
												
													
														
															|  | 
 |  | +                                <thead>
 | 
												
													
														
															|  | 
 |  | +                                <tr>
 | 
												
													
														
															|  | 
 |  | +                                    <td style="width: 40%"><label><input type="radio" id="isAdmin"  onchange="teamFirstCg()" name="team" checked  value="潘中"/>  潘   中 </label></td>
 | 
												
													
														
															|  | 
 |  | +                                    <td style="width: 40%"><label><input type="radio" name="team" onchange="teamFirstCg()" value="盛小兰" />盛小兰</label></td>
 | 
												
													
														
															|  | 
 |  | +                                </tr>
 | 
												
													
														
															|  | 
 |  | +                                <tr>
 | 
												
													
														
															|  | 
 |  | +                                    <td style="width: 40%"><label><input type="radio" name="team" onchange="teamFirstCg()" value="王春生" />王春生</label></td>
 | 
												
													
														
															|  | 
 |  | +                                    <td style="width: 40%"><label><input type="radio" name="team" onchange="teamFirstCg()" value="其他"/>其 他</label></td>
 | 
												
													
														
															|  | 
 |  | +                                </tr>
 | 
												
													
														
															|  | 
 |  | +                                </thead>
 | 
												
													
														
															|  | 
 |  | +                            </table>
 | 
												
													
														
															|  |                          </div>
 |  |                          </div>
 | 
												
													
														
															|  |                      </div>
 |  |                      </div>
 | 
												
													
														
															|  |                  </c:if>
 |  |                  </c:if>
 | 
												
											
												
													
														
															|  | @@ -98,17 +118,17 @@
 | 
												
													
														
															|  |                          </div>
 |  |                          </div>
 | 
												
													
														
															|  |                      </div>
 |  |                      </div>
 | 
												
													
														
															|  |                      <input type="text" value="" name="specific" id="specific" hidden>
 |  |                      <input type="text" value="" name="specific" id="specific" hidden>
 | 
												
													
														
															|  | -            <input type="text" value="${theOrder.status}" hidden name="status"/>
 |  | 
 | 
												
													
														
															|  | 
 |  | +            <input type="text" value="${theOrder.status}" hidden name="status" id="orderStatus"/>
 | 
												
													
														
															|  |              <input type="text" value="${theOrder.correlationId}" hidden name="correlationId"/>
 |  |              <input type="text" value="${theOrder.correlationId}" hidden name="correlationId"/>
 | 
												
													
														
															|  |              </div>
 |  |              </div>
 | 
												
													
														
															|  |              <%--<input class="weui-input" type="text" name="team" id='team' value="${theOrder.team}" onChange="teamChange()"/>--%>
 |  |              <%--<input class="weui-input" type="text" name="team" id='team' value="${theOrder.team}" onChange="teamChange()"/>--%>
 | 
												
													
														
															|  |          </form>
 |  |          </form>
 | 
												
													
														
															|  |      </div>
 |  |      </div>
 | 
												
													
														
															|  |          <div class="" style="text-align: center;border-radius: 50%;">
 |  |          <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>
 |  | 
 | 
												
													
														
															|  | 
 |  | +            <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'}">
 |  |                      <c:if test="${theOrder.exits == '1'}">
 | 
												
													
														
															|  |                          <div class="button-2 blue" id="buttonPlan" onclick="plan()">
 |  |                          <div class="button-2 blue" id="buttonPlan" onclick="plan()">
 | 
												
													
														
															|  | -                            <div class="btn_div_list" style="line-height: 90px;height:90px;padding-top: 55px;">
 |  | 
 | 
												
													
														
															|  | 
 |  | +                            <div class="btn_div_list" id="inDate" 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>
 |  |                                  <span class="btn_span_list" id="plan">预订</span><br><span class="btn_span_list" id="spantime"></span>
 | 
												
													
														
															|  |                              </div>
 |  |                              </div>
 | 
												
													
														
															|  |                          </div>
 |  |                          </div>
 | 
												
											
												
													
														
															|  | @@ -150,6 +170,9 @@
 | 
												
													
														
															|  |              --maxtime;
 |  |              --maxtime;
 | 
												
													
														
															|  |          } else{
 |  |          } else{
 | 
												
													
														
															|  |              clearInterval(timer);
 |  |              clearInterval(timer);
 | 
												
													
														
															|  | 
 |  | +            $("#plan").text("未预订");
 | 
												
													
														
															|  | 
 |  | +            $("#plan").attr("style","color: #0b61a4");
 | 
												
													
														
															|  | 
 |  | +            $("#inDate").attr("style","padding-top: 65px");
 | 
												
													
														
															|  |              changeStatus();
 |  |              changeStatus();
 | 
												
													
														
															|  |              $.toast("订餐时间已结束!", "text");
 |  |              $.toast("订餐时间已结束!", "text");
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
											
												
													
														
															|  | @@ -166,6 +189,7 @@
 | 
												
													
														
															|  |          $.post("/weXin/theOrder/noSureTem",$('#subForm').serialize(),function(data){
 |  |          $.post("/weXin/theOrder/noSureTem",$('#subForm').serialize(),function(data){
 | 
												
													
														
															|  |              if(data.success){
 |  |              if(data.success){
 | 
												
													
														
															|  |                  $("#plan").text("已订餐");
 |  |                  $("#plan").text("已订餐");
 | 
												
													
														
															|  | 
 |  | +                $("#inDate").attr("style","padding-top: 65px")
 | 
												
													
														
															|  |                  $("#plan").attr("style","color: #0b61a4");
 |  |                  $("#plan").attr("style","color: #0b61a4");
 | 
												
													
														
															|  |                  $("#spantime").attr("style","display: none");
 |  |                  $("#spantime").attr("style","display: none");
 | 
												
													
														
															|  |                  $.toast(data.msg);
 |  |                  $.toast(data.msg);
 | 
												
											
												
													
														
															|  | @@ -194,9 +218,12 @@
 | 
												
													
														
															|  |          title: "选择级联部门(工程)",
 |  |          title: "选择级联部门(工程)",
 | 
												
													
														
															|  |          items: ["工程一部", "工程二部", "工程三部","其他"]
 |  |          items: ["工程一部", "工程二部", "工程三部","其他"]
 | 
												
													
														
															|  |      });
 |  |      });
 | 
												
													
														
															|  | -
 |  | 
 | 
												
													
														
															|  |      function teamCg() {
 |  |      function teamCg() {
 | 
												
													
														
															|  |          if ($("#isAdmin").is(":checked")) {
 |  |          if ($("#isAdmin").is(":checked")) {
 | 
												
													
														
															|  | 
 |  | +            var department = $("#department").val();
 | 
												
													
														
															|  | 
 |  | +            if (null== department || department == ""){
 | 
												
													
														
															|  | 
 |  | +                $("#department").val("财务");
 | 
												
													
														
															|  | 
 |  | +            }
 | 
												
													
														
															|  |              $("#divDepartment").attr("style","display:''");
 |  |              $("#divDepartment").attr("style","display:''");
 | 
												
													
														
															|  |              departmentChange();
 |  |              departmentChange();
 | 
												
													
														
															|  |          }else {
 |  |          }else {
 | 
												
											
												
													
														
															|  | @@ -205,10 +232,9 @@
 | 
												
													
														
															|  |              $("#spc2").attr("style","display: none");
 |  |              $("#spc2").attr("style","display: none");
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  | -    teamCg();
 |  | 
 | 
												
													
														
															|  |      function teamFirstCg() {
 |  |      function teamFirstCg() {
 | 
												
													
														
															|  |          if ($("#isAdmin").is(":checked")) {
 |  |          if ($("#isAdmin").is(":checked")) {
 | 
												
													
														
															|  | -            $("#department").val("其他");
 |  | 
 | 
												
													
														
															|  | 
 |  | +            $("#department").val("财务");
 | 
												
													
														
															|  |              $("#divDepartment").attr("style","display:''");
 |  |              $("#divDepartment").attr("style","display:''");
 | 
												
													
														
															|  |              $("#divDepartment").removeClass("notclick");
 |  |              $("#divDepartment").removeClass("notclick");
 | 
												
													
														
															|  |              $("#spc1").removeClass("notclick");
 |  |              $("#spc1").removeClass("notclick");
 | 
												
											
												
													
														
															|  | @@ -220,6 +246,12 @@
 | 
												
													
														
															|  |              $("#spc2").attr("style","display: none");
 |  |              $("#spc2").attr("style","display: none");
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  | 
 |  | +    var orderStatus = $("#orderStatus").val();
 | 
												
													
														
															|  | 
 |  | +    if (orderStatus == '1'){
 | 
												
													
														
															|  | 
 |  | +        teamFirstCg();
 | 
												
													
														
															|  | 
 |  | +    }else {
 | 
												
													
														
															|  | 
 |  | +        teamCg();
 | 
												
													
														
															|  | 
 |  | +    }
 | 
												
													
														
															|  |      //联动效果
 |  |      //联动效果
 | 
												
													
														
															|  |      function teamChange() {
 |  |      function teamChange() {
 | 
												
													
														
															|  |         var team =  $("#team").val();
 |  |         var team =  $("#team").val();
 | 
												
											
												
													
														
															|  | @@ -252,6 +284,7 @@
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |      function updateStatus() {
 |  |      function updateStatus() {
 | 
												
													
														
															|  | 
 |  | +        $.toptip('允许修改', 'success');
 | 
												
													
														
															|  |          $("input[name='team']").attr("disabled",false);
 |  |          $("input[name='team']").attr("disabled",false);
 | 
												
													
														
															|  |          $("#divDepartment").removeClass("notclick");
 |  |          $("#divDepartment").removeClass("notclick");
 | 
												
													
														
															|  |          $("#spc1").removeClass("notclick");
 |  |          $("#spc1").removeClass("notclick");
 |