Browse Source

更新合同修改方式

sandm 1 năm trước cách đây
mục cha
commit
148d6dc7ff

+ 5 - 3
public/static/modular/gate/talentLibrary/talentBasicChange/talentBasicChange_info.js

@@ -13,7 +13,8 @@ var TalentBasicChangeInfoDlg = {
         newCardType: {validators: {notEmpty: {message: '现证件类型不能为空'}}},
         newIdCard: {validators: {notEmpty: {message: '现证件号码不能为空'}}},
         newEmail: {validators: {notEmpty: {message: '现电子邮箱不能为空'}}},
-        newContractTime: {validators: {notEmpty: {message: '现劳动合同起止时间不能为空'}}},
+        newContractStartTime: {validators: {notEmpty: {message: '现劳动合同开始时间不能为空'}}},
+        newContractEndTime: {validators: {notEmpty: {message: '现劳动合同结束时间不能为空'}}},
     }
 };
 
@@ -79,7 +80,8 @@ TalentBasicChangeInfoDlg.collectData = function () {
             .set('newCardType')
             .set('newIdCard')
             .set('newEmail')
-            .set('newContractTime');
+            .set('newContractStartTime')
+            .set('newContractEndTime');
 }
 
 
@@ -103,7 +105,7 @@ TalentBasicChangeInfoDlg.nameChange = function () {
             $("#newCardType").val(talentInfo.card_type);
             $("#newIdCard").val(talentInfo.card_number);
             $("#newEmail").val(talentInfo.email);
-            $("#newContractTime").val(talentInfo.labor_contract_rangetime);
+            $("#oldContractTime").val(talentInfo.labor_contract_rangetime);
         }, function (data) {
             Feng.error("查询失败!" + data.responseJSON.message + "!");
         });