bug修改。

This commit is contained in:
Renpc-kilig 2021-05-15 22:31:17 +08:00
parent b4d1b0fcbe
commit 951b2c61a8

View File

@ -94,7 +94,7 @@
<div class="layui-form-item" style="display: none;" id="nextTimeDiv">
<label class="layui-form-label" style="width: 165px;">下次提交审核时间</label>
<div class="layui-input-block" style="margin-left: 165px;">
<input type="number" id="nextCommitTime" name="nextCommitTime" lay-verify="inputRule" class="layui-input" value="" placeholder="请输入下次提交审核时间(单位:天)" maxlength="255">
<input type="number" id="number" name="number" lay-verify="inputRule" class="layui-input" value="" placeholder="请输入下次提交审核时间(单位:天)" maxlength="255">
</div>
</div>
<div class="layui-form-item layui-form-text" style="display: none;" id="reasonDiv">
@ -291,11 +291,16 @@
top.dialog.msg('退回原因必填');
return false;
}
if(null == formData.field.nextNum || '' == formData.field.nextNum || typeof(formData.field.nextNum) == "undefined") {
top.dialog.msg('下次提交审核时间必填');
return false;
}
var nextTime = new Date();
nextTime.setDate(nextTime.getDate() + $('#nextNum').val());
formData.field.nextCommitTime = nextTime.format("yyyy-MM-dd hh:mm:ss");
}
formData.field.planId = classPlanId;
var nextTime = new Date();
nextTime.setDate(nextTime.getDate() + $('#nextNum').val());
formData.field.nextCommitTime = nextTime.format("yyyy-MM-dd hh:mm:ss");
top.dialog.confirm(top.dataMessage.commit, function(index) {
top.dialog.close(index);
var loadLayerIndex;