考试申请审核新增提交确认。
This commit is contained in:
parent
78f4706313
commit
1927a79fa7
@ -262,39 +262,46 @@
|
|||||||
|
|
||||||
// 提交表单
|
// 提交表单
|
||||||
form.on('submit(submitForm)', function(formData) {
|
form.on('submit(submitForm)', function(formData) {
|
||||||
if(3 == formData.field.checkStatus) {
|
layer.confirm('审核一旦通过,将无法进行修改', {
|
||||||
if(null == formData.field.reason || '' == formData.field.reason || typeof(formData.field.reason) == "undefined") {
|
btn: ['确定','取消'] //按钮
|
||||||
top.dialog.msg('退回原因必填');
|
}, function(){
|
||||||
return false;
|
if(3 == formData.field.checkStatus) {
|
||||||
|
if(null == formData.field.reason || '' == formData.field.reason || typeof(formData.field.reason) == "undefined") {
|
||||||
|
top.dialog.msg('退回原因必填');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
formData.field.examId = classPlanId;
|
||||||
formData.field.examId = classPlanId;
|
formData.field.planName = $('#planName').val();
|
||||||
formData.field.planName = $('#planName').val();
|
formData.field.planPersonNum = $('#planPersonNum').val();
|
||||||
formData.field.planPersonNum = $('#planPersonNum').val();
|
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
||||||
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
top.dialog.close(index);
|
||||||
top.dialog.close(index);
|
var loadLayerIndex;
|
||||||
var loadLayerIndex;
|
top.restAjax.put(top.restAjax.path('api/examapply/update/{examApplyId}', [examApplyId]), formData.field, null, function(code, data) {
|
||||||
top.restAjax.put(top.restAjax.path('api/examapply/update/{examApplyId}', [examApplyId]), formData.field, null, function(code, data) {
|
var layerIndex = top.dialog.msg(top.dataMessage.updateSuccess, {
|
||||||
var layerIndex = top.dialog.msg(top.dataMessage.updateSuccess, {
|
time: 0,
|
||||||
time: 0,
|
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],
|
||||||
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],
|
shade: 0.3,
|
||||||
shade: 0.3,
|
yes: function(index) {
|
||||||
yes: function(index) {
|
top.dialog.close(index);
|
||||||
top.dialog.close(index);
|
window.location.reload();
|
||||||
window.location.reload();
|
},
|
||||||
},
|
btn2: function() {
|
||||||
btn2: function() {
|
closeBox();
|
||||||
closeBox();
|
}
|
||||||
}
|
});
|
||||||
|
}, function(code, data) {
|
||||||
|
top.dialog.msg(data.msg);
|
||||||
|
}, function() {
|
||||||
|
loadLayerIndex = top.dialog.msg(top.dataMessage.committing, {icon: 16, time: 0, shade: 0.3});
|
||||||
|
}, function() {
|
||||||
|
top.dialog.close(loadLayerIndex);
|
||||||
});
|
});
|
||||||
}, function(code, data) {
|
|
||||||
top.dialog.msg(data.msg);
|
|
||||||
}, function() {
|
|
||||||
loadLayerIndex = top.dialog.msg(top.dataMessage.committing, {icon: 16, time: 0, shade: 0.3});
|
|
||||||
}, function() {
|
|
||||||
top.dialog.close(loadLayerIndex);
|
|
||||||
});
|
});
|
||||||
|
}, function(){
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user