|
|
@ -84,6 +84,7 @@
|
|
|
|
var error = modal.find(".error");
|
|
|
|
var error = modal.find(".error");
|
|
|
|
|
|
|
|
|
|
|
|
modal.on("click", "input[name='reasons[]']", function(){
|
|
|
|
modal.on("click", "input[name='reasons[]']", function(){
|
|
|
|
|
|
|
|
debugger
|
|
|
|
var checkbox = $(this);
|
|
|
|
var checkbox = $(this);
|
|
|
|
if (checkbox.data("type") != "other") { return; }
|
|
|
|
if (checkbox.data("type") != "other") { return; }
|
|
|
|
|
|
|
|
|
|
|
@ -97,11 +98,13 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modal.on('click', '.submit-btn', function(){
|
|
|
|
modal.on('click', '.submit-btn', function(){
|
|
|
|
|
|
|
|
debugger
|
|
|
|
if (!formValid()) { return; }
|
|
|
|
if (!formValid()) { return; }
|
|
|
|
form.submit();
|
|
|
|
form.submit();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
var formValid = function () {
|
|
|
|
var formValid = function () {
|
|
|
|
|
|
|
|
debugger
|
|
|
|
error.html("").hide();
|
|
|
|
error.html("").hide();
|
|
|
|
if (form.find("input[name='reasons[]']:checked").length == 0) {
|
|
|
|
if (form.find("input[name='reasons[]']:checked").length == 0) {
|
|
|
|
error.html("撤销原因不能为空,请完善后再确认提交").show();
|
|
|
|
error.html("撤销原因不能为空,请完善后再确认提交").show();
|
|
|
@ -117,6 +120,7 @@
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var hideRejectModalFunc = function(){
|
|
|
|
var hideRejectModalFunc = function(){
|
|
|
|
|
|
|
|
debugger
|
|
|
|
applyIdInput.val('');
|
|
|
|
applyIdInput.val('');
|
|
|
|
form.find("textarea[name='reject_description']").val('');
|
|
|
|
form.find("textarea[name='reject_description']").val('');
|
|
|
|
form.find("input[name='reasons[]']").each(function(){this.checked=false;})
|
|
|
|
form.find("input[name='reasons[]']").each(function(){this.checked=false;})
|
|
|
|