|
@@ -188,7 +188,8 @@ TalentAllowanceInfoDlg.showEditProjectModal = function (project, id, enterpriseI
|
|
$("#contractCheckModal").modal("show");
|
|
$("#contractCheckModal").modal("show");
|
|
break;
|
|
break;
|
|
case "4":
|
|
case "4":
|
|
- if (type == 1) {
|
|
|
|
|
|
+ var allowanceType = $("#allowanceType").val();
|
|
|
|
+ if (allowanceType == 1) {
|
|
$('#jjAttendanceModal').on('show.bs.modal', function () {
|
|
$('#jjAttendanceModal').on('show.bs.modal', function () {
|
|
$("#jjAttendanceForm")[0].reset();
|
|
$("#jjAttendanceForm")[0].reset();
|
|
$("#jjmonths input").each(function () {
|
|
$("#jjmonths input").each(function () {
|
|
@@ -372,20 +373,20 @@ TalentAllowanceInfoDlg.editJJAttendance = function () {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
$("#attendanceMonths").val(months);
|
|
$("#attendanceMonths").val(months);
|
|
- $("#jjAttendanceForm")[0].submit();
|
|
|
|
- // var ajax = new $ax(Feng.ctxPath + "/talentAllowanceInfo/editProject", function(data){
|
|
|
|
- // if(data.code==200){
|
|
|
|
- // Feng.success(data.msg);
|
|
|
|
- // $("#"+enterpriseId).bootstrapTable("refresh", {});
|
|
|
|
- // $("#jjAttendanceModal").modal("hide");
|
|
|
|
- // }else{
|
|
|
|
- // Feng.info(data.msg);
|
|
|
|
- // }
|
|
|
|
- // },function(data){
|
|
|
|
- // Feng.error("提交失败!" + data.responseJSON.message + "!");
|
|
|
|
- // });
|
|
|
|
- // ajax.set({"id":id,"months":months,"days":days,"description":description,"process":$("#process").val()});
|
|
|
|
- // ajax.start();
|
|
|
|
|
|
+ //$("#jjAttendanceForm")[0].submit();
|
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/talentAllowance/editProject", function (data) {
|
|
|
|
+ if (data.code == 200) {
|
|
|
|
+ Feng.success(data.msg);
|
|
|
|
+ $("#" + enterpriseId).bootstrapTable("refresh", {});
|
|
|
|
+ $("#jjAttendanceModal").modal("hide");
|
|
|
|
+ } else {
|
|
|
|
+ Feng.info(data.msg);
|
|
|
|
+ }
|
|
|
|
+ }, function (data) {
|
|
|
|
+ Feng.error("提交失败!" + data.responseJSON.message + "!");
|
|
|
|
+ });
|
|
|
|
+ ajax.set({"id": id, "months": months, "days": days, "description": description, "process": $("#process").val()});
|
|
|
|
+ ajax.start();
|
|
}
|
|
}
|
|
|
|
|
|
TalentAllowanceInfoDlg.editAttendanceProject = function () {
|
|
TalentAllowanceInfoDlg.editAttendanceProject = function () {
|