beforeSend: function () {
$.messager.progress({
title: '提示',
msg: '系統處理中,請稍候……',
text: ''
});
},
complete: function () {
$.messager.progress('close');
},
全文
$.ajax({
type : "post",
url : ctx + "/itemUnqualified/saveRejCheck",
data : $('#supplierModifyForm').serialize(),
async : false,
beforeSend: function () {
$.messager.progress({
title: '提示',
msg: '系統處理中,請稍候……',
text: ''
});
},
complete: function () {
$.messager.progress('close');
},
success : function(data) {
if(saveOrSubmit == "0"){
alert("保存成功!");
var billNo = data.billNo;
window.location.href="<%=request.getContextPath()%>/itemUnqualified/toEdit?billNo="+billNo;
}else{
alert("提交成功!");
var billNo = data.billNo;
window.location.href="<%=request.getContextPath()%>/itemUnqualified/toView?billNo="+billNo;
}
}
});