|
@@ -864,6 +864,31 @@ TalentAllowanceInfoDlg.checkSubmit = function (index) {
|
|
|
if (Feng.isNotEmptyStr(companyCodes)) {
|
|
|
companyCodes = companyCodes.substring(0, companyCodes.length - 1);
|
|
|
}
|
|
|
+ var details = new Array();
|
|
|
+ $(".detailMonths").each(function () {
|
|
|
+ var id = $(this).find(".detailId").val();
|
|
|
+ var months = $(this).find(".months").val();
|
|
|
+ details.push({"id": id, "months": months});
|
|
|
+ });
|
|
|
+ var source = $("#source").val();
|
|
|
+ var resAllowanceType = $("#resAllowanceType").val();
|
|
|
+ var resAllowanceMsg = $("#resAllowanceMsg").val();
|
|
|
+
|
|
|
+ if (source == 2) {
|
|
|
+ if (Feng.isEmptyStr(resAllowanceType)) {
|
|
|
+ Feng.info("请选择津补贴类型");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (resAllowanceType == 1 && details.length == 0) {
|
|
|
+ Feng.info("请选择工作津贴可享受的月份");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (Feng.isEmptyStr(resAllowanceMsg)) {
|
|
|
+ Feng.info("请填写判定说明");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
var ajax = new $ax(Feng.ctxPath + "/admin/talentAllowance/check", function (data) {
|
|
|
if (data.code == 200) {
|
|
|
layer.close(index);
|
|
@@ -874,7 +899,7 @@ TalentAllowanceInfoDlg.checkSubmit = function (index) {
|
|
|
}, function (data) {
|
|
|
Feng.error("提交审核失败!" + data.responseJSON.message + "!");
|
|
|
});
|
|
|
- ajax.setData({"id": id, "checkState": checkState, "checkMsg": checkMsg, "process": $("#process").val(), "projects": projects, "files": files, "concats": concats, "fields": fields, "companyId": $("#companyId").val(), "toProcess": $("#toProcess").val(), "toDep": companyCodes, otherEnjoyedMoney: otherEnjoyedMoney, otherEnjoyedDescription: otherEnjoyedDescription, source: $("#source").val(), resAllowanceType: $("#resAllowanceType").val(), resAllowanceMsg: $("#resAllowanceMsg").val()});
|
|
|
+ ajax.setData({"id": id, "checkState": checkState, "checkMsg": checkMsg, "process": $("#process").val(), "projects": projects, "files": files, "concats": concats, "fields": fields, "companyId": $("#companyId").val(), "toProcess": $("#toProcess").val(), "toDep": companyCodes, otherEnjoyedMoney: otherEnjoyedMoney, otherEnjoyedDescription: otherEnjoyedDescription, source: source, resAllowanceType: resAllowanceType, resAllowanceMsg: resAllowanceMsg, "details": details});
|
|
|
ajax.start();
|
|
|
}
|
|
|
|