@@ -54,15 +54,16 @@ var bootstrap = function ($, learun) { | |||||
}; | }; | ||||
acceptClick = function (callBack) { | acceptClick = function (callBack) { | ||||
var keyValue = $("#datagird").jfGridValue("F_StampId"); | var keyValue = $("#datagird").jfGridValue("F_StampId"); | ||||
if (!keyValue) { | |||||
learun.alert.error("请选择印章!"); | |||||
return false; | |||||
} | |||||
if (!$('.lr-item').lrValidform()) { | if (!$('.lr-item').lrValidform()) { | ||||
return false; | return false; | ||||
} | } | ||||
var postData = $('.lr-item').lrGetFormData(); | var postData = $('.lr-item').lrGetFormData(); | ||||
var F_Password = $.md5(postData.F_Password); | var F_Password = $.md5(postData.F_Password); | ||||
if (!keyValue) { | |||||
learun.alert.error("请选择印章!"); | |||||
return false; | |||||
} | |||||
learun.postForm(top.$.rootUrl + '/LR_NewWorkFlow/StampInfo/EqualForm', { keyValue: keyValue, Password: F_Password }, function (res) { | learun.postForm(top.$.rootUrl + '/LR_NewWorkFlow/StampInfo/EqualForm', { keyValue: keyValue, Password: F_Password }, function (res) { | ||||
callBack(keyValue); | callBack(keyValue); | ||||
}); | }); | ||||
@@ -54,15 +54,16 @@ var bootstrap = function ($, learun) { | |||||
}; | }; | ||||
acceptClick = function (callBack) { | acceptClick = function (callBack) { | ||||
var keyValue = $("#datagird").jfGridValue("F_StampId"); | var keyValue = $("#datagird").jfGridValue("F_StampId"); | ||||
if (!keyValue) { | |||||
learun.alert.error("请选择印章!"); | |||||
return false; | |||||
} | |||||
if (!$('.lr-item').lrValidform()) { | if (!$('.lr-item').lrValidform()) { | ||||
return false; | return false; | ||||
} | } | ||||
var postData = $('.lr-item').lrGetFormData(); | var postData = $('.lr-item').lrGetFormData(); | ||||
var F_Password = $.md5(postData.F_Password); | var F_Password = $.md5(postData.F_Password); | ||||
if (!keyValue) { | |||||
learun.alert.error("请选择印章!"); | |||||
return false; | |||||
} | |||||
learun.postForm(top.$.rootUrl + '/LR_NewWorkFlow/StampInfo/EqualForm', { keyValue: keyValue, Password: F_Password }, function (res) { | learun.postForm(top.$.rootUrl + '/LR_NewWorkFlow/StampInfo/EqualForm', { keyValue: keyValue, Password: F_Password }, function (res) { | ||||
callBack(keyValue); | callBack(keyValue); | ||||
}); | }); | ||||