function(index, layero){
var re_content = layero.find("#re_content").val();
var re_process = layero.find("#re_process").val();
//re_process_old = layero.find("#re_process").val();
re_process_old = $(".re_process_list tr:first td:last").text();
if(re_process){
if(re_process<re_process_old){
$.modal.alertWarning('整改进展不能小于当前值 !');
}
if(re_process==null){
$.modal.alertWarning('整改进展不能为空 !');
}
}
if (re_content) {
if(re_content.length > 300){
$.modal.alertWarning('进展内容不能超过300字!');
return;
}
var url = ctx + "base/sup/ques/re_process/add";
$.post(url, {reContent: re_content, reProgress: re_process,
supFeedbackQuesId: [[${baseSupFeedbackQues.supFeedbackQuesId}]]},
function (result) {
if (result.code === web_status.SUCCESS) {
get_re_process();
layer.close(index);
} else {
$.modal.alertError(result.msg);
}
}
);
} else {
$.modal.alertWarning('进展内容不能为空!');
}
}
});