|
@@ -842,6 +842,20 @@ TalentAllowanceInfoDlg.fileChange = function (context) {
|
|
$("#fileInput").val(file.substring(pos + 1));
|
|
$("#fileInput").val(file.substring(pos + 1));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+TalentAllowanceInfoDlg.calculator = function () {
|
|
|
|
+ var id = $("#id").val();
|
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/talentAllowance/calculator/id/" + id, function (data) {
|
|
|
|
+ var message = data.recommendAllowanceMsg.join("<br>");
|
|
|
|
+ if (data.recommendAllowanceType != 3) {
|
|
|
|
+ message += "<br>试算补贴金额:<span style='color:red;font-weight:bold;'>" + data.recommendMoney + "</span>";
|
|
|
|
+ }
|
|
|
|
+ $("#cal-result").html(message);
|
|
|
|
+ }, function (data) {
|
|
|
|
+ Feng.error("查询失败!" + data.responseJSON.message + "!");
|
|
|
|
+ });
|
|
|
|
+ ajax.start();
|
|
|
|
+}
|
|
|
|
+
|
|
$(function () {
|
|
$(function () {
|
|
if ($("#type").val() == 2) {
|
|
if ($("#type").val() == 2) {
|
|
$("#bankNumberSpan,#talentTypeSpan,#introductionModeSpan,#firstInJJTimeSpan").attr("style", "display:none");
|
|
$("#bankNumberSpan,#talentTypeSpan,#introductionModeSpan,#firstInJJTimeSpan").attr("style", "display:none");
|
|
@@ -860,4 +874,5 @@ $(function () {
|
|
});
|
|
});
|
|
var process = $("#process").val();
|
|
var process = $("#process").val();
|
|
var compayCode = $("#companyCode").val();
|
|
var compayCode = $("#companyCode").val();
|
|
|
|
+ TalentAllowanceInfoDlg.calculator();
|
|
});
|
|
});
|