sugangqiang 2 yıl önce
ebeveyn
işleme
bb95e5f4a5

+ 12 - 1
public/static/modular/gate/talentInfo/new_nofile_talentInfo_info.js

@@ -563,6 +563,8 @@ TalentInfoInfoDlg.sourceChange = function () {
         case "3":
             $("#source_batch").parents("td").css("display", "table-cell");
             $(".fujian_highcert").css("display", "table-cell");
+            $("#quanzhou_highcert_pubtime").val("");
+            $("#quanzhou_highcert_exptime").val("");
             $('#talentInfoForm').bootstrapValidator('addField', "source_batch", {validators: {notEmpty: {message: '申报来源批次不能为空'}}});
             $('#talentInfoForm').bootstrapValidator('addField', "fujian_highcert_pubtime", {validators: {notEmpty: {message: '福建省高层次人才证书发证日期不能为空'}}});
             $('#talentInfoForm').bootstrapValidator('addField', "fujian_highcert_exptime", {validators: {notEmpty: {message: '福建省高层次人才证书有效期不能为空'}}});
@@ -570,11 +572,20 @@ TalentInfoInfoDlg.sourceChange = function () {
         case "2":
         case "4":
             $("#source_batch").parents("td").css("display", "table-cell");
-            $(".quanzhou_highcert").css("display", "table-cell");
+            $("#quanzhou_highcert").css("display", "table-cell");
+            $("#fujian_highcert_pubtime").val("");
+            $(".fujian_highcert_exptime").val("");
             $('#talentInfoForm').bootstrapValidator('addField', "source_batch", {validators: {notEmpty: {message: '申报来源批次不能为空'}}});
             $('#talentInfoForm').bootstrapValidator('addField', "quanzhou_highcert_pubtime", {validators: {notEmpty: {message: '泉州高层次人才证书发证日期不能为空'}}});
             $('#talentInfoForm').bootstrapValidator('addField', "quanzhou_highcert_exptime", {validators: {notEmpty: {message: '泉州高层次人才证书有效期不能为空'}}});
             break;
+        default:
+            $("#source_batch").val("");
+            $("#quanzhou_highcert_pubtime").val("");
+            $("#quanzhou_highcert_exptime").val("");
+            $("#fujian_highcert_pubtime").val("");
+            $("#fujian_highcert_exptime").val("");
+            break;
     }
     if (source == 3) {
         //显示入选来源地级市除泉