|  |  | 
 |  |  |                 <div class="col-sm-8"> | 
 |  |  |                     <div class="input-group date"> | 
 |  |  |                         <span class="input-group-addon"><i class="fa fa-calendar"></i></span> | 
 |  |  |                         <input name="outboundDate" class="form-control" placeholder="yyyy-MM-dd" type="text"> | 
 |  |  |                         <input id="outboundDateId" name="outboundDate" class="form-control" placeholder="yyyy-MM-dd" type="text"> | 
 |  |  |                     </div> | 
 |  |  |                 </div> | 
 |  |  |             </div> | 
 |  |  | 
 |  |  |                 <div class="col-sm-8"> | 
 |  |  |                     <div class="input-group date"> | 
 |  |  |                         <span class="input-group-addon"><i class="fa fa-calendar"></i></span> | 
 |  |  |                         <input name="inboundDate" class="form-control" placeholder="yyyy-MM-dd" type="text"> | 
 |  |  |                         <input id="inboundDateId" name="inboundDate" class="form-control" placeholder="yyyy-MM-dd" type="text"> | 
 |  |  |                     </div> | 
 |  |  |                 </div> | 
 |  |  |             </div> | 
 |  |  | 
 |  |  |         }); | 
 |  |  |  | 
 |  |  |         function submitHandler() { | 
 |  |  |             let inboundDateValue = $("#inboundDateId").val(); | 
 |  |  |             let outboundDateValue = $("#outboundDateId").val(); | 
 |  |  |             if ($.common.isEmpty(inboundDateValue) && $.common.isEmpty(outboundDateValue)) { | 
 |  |  |                 $.modal.alertWarning("出入库时间,请选择一条记录"); | 
 |  |  |                 return; | 
 |  |  |             } | 
 |  |  |             if (!$.common.isEmpty(inboundDateValue) && !$.common.isEmpty(outboundDateValue)) { | 
 |  |  |                 $.modal.alertWarning("出入库时间,请选择一条记录"); | 
 |  |  |                 return; | 
 |  |  |             } | 
 |  |  |  | 
 |  |  |             if ($.validate.form()) { | 
 |  |  |                 let formData = $('#form-TubLog-add').serialize(); | 
 |  |  |                 let data = formData + "&projectId=" + projectId + "&code=" + code; | 
 |  |  | 
 |  |  |             minView: "month", | 
 |  |  |             autoclose: true | 
 |  |  |         }); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     </script> | 
 |  |  | </body> | 
 |  |  | </html> |