sugangqiang 1 سال پیش
والد
کامیت
985d7f65d5
1فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 5 4
      public/static/modular/gate/talentInfo/new_talentInfo_wj_info.js

+ 5 - 4
public/static/modular/gate/talentInfo/new_talentInfo_wj_info.js

@@ -747,9 +747,9 @@ TalentInfoInfoDlg.submitCallback = function (data) {
 /**
  * 校验是否可以修改/提交审核
  */
-TalentInfoInfoDlg.validateIsEdit = function () {
+TalentInfoInfoDlg.validateIsEdit = function () {    
     var checkState = $("#checkState").val();
-    if (checkState != 0 && checkState != 8) {
+    if (checkState != 0 && checkState != 8 && checkState != 1) {
         if (checkState == 16 || checkState == -1 || checkState == -2 || checkState == 7) {
             Feng.error("您的申报审核不通过,无法再修改");
             return false;
@@ -788,7 +788,8 @@ TalentInfoInfoDlg.validUploadButton = function (type, fileTypeId, fileId, tableI
     if (isConditionFile && (fields.indexOf("isMatchZhiren") != -1 || fields.indexOf("source") != -1 || fields.indexOf("talent_arrange") != -1 || fields.indexOf("talent_arrange_category") != -1 || fields.indexOf("talent_condition") != -1)) {
         isConditionEditable = true;
     }
-    if (Feng.isEmptyStr(checkState) || checkState == 0 || (checkState == 8 && realState == "") || (checkState == 8 && realState == 8) || (checkState == 11 && realState != 14) || (realState == 11 && (files.indexOf(fileTypeId.toString()) != -1 || isConditionEditable))) {
+    //if (Feng.isEmptyStr(checkState) || checkState == 0 || (checkState == 8 && realState == "") || (checkState == 8 && realState == 8) || (checkState == 11 && realState != 14) || (realState == 11 && (files.indexOf(fileTypeId.toString()) != -1 || isConditionEditable))) {
+    if (Feng.isEmptyStr(checkState) || checkState == 0 || (checkState == 1 && (Feng.isEmptyStr(realState) || realState == 1)) || (checkState == 8 && (realState == 8 || Feng.isEmptyStr(realState))) || (checkState == 11 && realState != 14) || ((realState == 11 || realState == 4) && (files.indexOf(fileTypeId.toString()) != -1 || isConditionEditable))) {    
         if (type == 1) {          //上传
             return "<button type='button' onclick=\"TalentInfoInfoDlg.checkFile(this," + fileTypeId + "," + null + "," + tableIndex + "," + trIndex + ")\" style='margin-right: 10px' class=\"btn btn-xs btn-info\">" +
                     "<i class=\"fa fa-upload\"></i>上传" +
@@ -850,7 +851,7 @@ TalentInfoInfoDlg.setNoChangeField = function () {
     var checkState = $("#checkState").val();
     var fields = $("#fields").val();
     var realState = $("#realState").val();
-    if (realState == 11) {
+    if (realState == 11 || realState == 4) {
         $("#photoImg").removeAttr("onclick");
         $("input,textarea").each(function () {
             $(this).attr("readonly", "readonly").css("pointer-events", "none");