<form id="myform1" method="post" action="">
|
<input name="orderId" type="hidden" value="${RequestParameters.orderId}"/>
|
<input name="flowId" type="hidden" value="${RequestParameters.flowId}"/>
|
<input name="nodeId" type="hidden" value="${RequestParameters.nodeId}"/>
|
<section class="wlresponse">
|
<p>
|
<span>${Constants.CUSTOMER_CONSTANTS}名称</span>
|
<i>${info.customer_name}</i>
|
</p>
|
<p>
|
<span>${Constants.UNIT_CONSTANTS}</span>
|
<i>${info.sub_customer_name}</i>
|
</p>
|
<p>
|
<span class="long">计划巡检时间</span>
|
<i class="long">${DateUtil.format("yyyy-MM-dd",info.plan_exe_date)}</i>
|
</p>
|
<p>
|
<span class="long">要求完成时间</span>
|
<i class="long"><input class="enter" type="text" name="plan_time" id="plan_time" /></i>
|
</p>
|
<p>
|
<span>联系人</span>
|
<i><input name="contacts_name" id="contacts_name" type="text" class="enter" [#if tempData?? && tempData?size>0]value="${tempData.contacts_name}" [/#if]></i>
|
</p>
|
<p>
|
<span>联系方式</span>
|
<i><input name="contacts_tel" id="contacts_tel" type="text" class="enter" [#if tempData?? && tempData?size>0]value="${tempData.contacts_tel}"[/#if]></i>
|
</p>
|
</section>
|
</form>
|
<script type="text/javascript">
|
var time = [#if tempData?? && tempData?size>0]'${tempData.plan_time}'[#else]''[/#if];
|
$(function() {
|
|
var currYear = (new Date()).getFullYear();
|
var opt={};
|
opt.date = {preset : 'date'};
|
opt.datetime = {preset : 'datetime'};
|
opt.time = {preset : 'time'};
|
opt.default = {
|
theme: 'android-ics light', //皮肤样式
|
display: 'modal', //显示方式
|
mode: 'scroller', //日期选择模式
|
dateFormat: 'yyyy-mm-dd',
|
lang: 'zh',
|
showNow: true,
|
nowText: "今天",
|
startYear: currYear - 50, //开始年份
|
endYear: currYear + 50//结束年份
|
};
|
|
$("#plan_time").scroller($.extend(opt['date'], opt['default']));
|
if(!$.util.isEmpty(time)){
|
$("#plan_time").scroller('setDate', new Date(time), true);
|
}
|
|
|
})
|
|
function myform1Submit() {
|
/*var ciIds = ''
|
$("input[name=ciId]:checked").each(function(){
|
if(ciIds!=''){
|
ciIds = ciIds + ',' + $(this).val();
|
}else{
|
ciIds = $(this).val();
|
}
|
|
});
|
$("#ciIds").val(ciIds);*/
|
var plan_time = $("#plan_time").val();
|
var contacts_name = $.trim($("#contacts_name").val());
|
var contacts_tel = $.trim($("#contacts_tel").val());
|
if(plan_time == ""){
|
popupTips('请选择要求完成时间!');
|
return;
|
}
|
if(contacts_name == ""){
|
popupTips('请输入联系人!');
|
return;
|
}
|
if(contacts_tel == ""){
|
popupTips('请输入联系方式!');
|
return;
|
}
|
if(!$.util.isMobile(contacts_tel)){
|
popupTips('联系方式格式有误!');
|
return;
|
}
|
//判断时间填写不能再计划之前
|
/*var planTime = parseInt(plan_time.replace(/-/g,""));
|
if(planTime < '${info.plan_exe_date}'){
|
popupTips('要求完成时间不能小于计划巡检时间!');
|
return;
|
}*/
|
$.post("${base}/ewyw/ewHealth/ewDispatchHealthInfo.html",$("#myform1").serialize(),function(data,textStatus) {
|
if(data == '1') {
|
window.location.href = "${base}/ewyw/ewHealth/ryfpSelectJkjc.html";
|
}
|
});
|
}
|
|
|
|
</script>
|