(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e3283e6"],{"0e0d":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"question-login-wrapper"},[r("div",{staticClass:"box-wrapper"},[r("h2",{staticStyle:{"text-align":"center"}},[t._v("\n 独立阅片人信息填写\n ")]),t._v(" "),r("el-card",{staticStyle:{"padding-top":"40px"},attrs:{shadow:"hover"}},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"resetForm",staticClass:"demo-ruleForm",staticStyle:{width:"80%",margin:"0 auto"},attrs:{model:t.form,"label-width":"150px",rules:t.rules,size:"small"}},[r("el-form-item",{attrs:{label:t.$t("trials:researchForm:form:contactorEmail"),prop:"EmailOrPhone"}},[r("el-input",{attrs:{autocomplete:"new-password"},on:{change:t.handleEmailChange},model:{value:t.form.EmailOrPhone,callback:function(e){t.$set(t.form,"EmailOrPhone",e)},expression:"form.EmailOrPhone"}})],1),t._v(" "),r("el-form-item",{attrs:{label:t.$t("trials:researchForm:form:verifyCode"),required:""}},[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{prop:"VerificationCode"}},[r("el-input",{attrs:{autocomplete:"new-password"},model:{value:t.form.VerificationCode,callback:function(e){t.$set(t.form,"VerificationCode",e)},expression:"form.VerificationCode"}})],1)],1),t._v(" "),r("el-col",{attrs:{span:4}},[r("el-button",{staticStyle:{width:"100%"},attrs:{size:"small",type:"primary",disabled:t.sendDisabled},on:{click:t.handleSendCode}},[t._v(t._s(t.sendTitle))])],1)],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{size:"small",disabled:t.btnLoading},on:{click:t.onCancel}},[t._v("\n "+t._s(t.$t("common:button:cancel"))+"\n ")]),t._v(" "),r("el-button",{attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.onSubmit}},[t._v("\n "+t._s(t.$t("common:button:submit"))+"\n ")])],1)],1)],1)],1)])},o=[],a=(r("96cf"),r("3b8d")),i=(r("c5f6"),r("7cdf"),r("896b"),r("33ba")),u=r("c24f"),c=r("4360"),d={data:function(){var t=this,e=function(e,r,n){var o=/^1[3|4|5|7|8][0-9]{9}$/;if(!r)return n(new Error(t.$t("trials:researchForm:formRule:specify")));setTimeout((function(){Number.isInteger(+r)&&o.test(r)?n():n(new Error(t.$t("trials:researchForm:formRule:phone")))}),100)},r=function(e,r,n){if(""===r)n(new Error(t.$t("trials:researchForm:formRule:specify")));else{var o=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;t.form.EmailOrPhone&&o.test(t.form.EmailOrPhone)?(t.sendDisabled=!1,n()):(n(new Error(t.$t("trials:researchForm:formRule:email"))),t.sendDisabled=!0)}},n=function(e,r,n){if(""===r)n(new Error(t.$t("trials:researchForm:formRule:specify")));else{var o=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;t.form.ReplaceUserEmailOrPhone&&o.test(t.form.ReplaceUserEmailOrPhone)?n():n(new Error(t.$t("trials:researchForm:formRule:email")))}};return{trialId:"",form:{Sponsor:null,ResearchProgramNo:null,TrialCode:null,IndicationType:null,ExperimentName:"",SiteId:null,UserName:null,Phone:null,EmailOrPhone:"",TrialSiteCode:"",IsUpdate:!1,ReplaceUserEmailOrPhone:"",VerificationCode:""},rules:{SiteId:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:["blur"]}],UserName:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:["blur"]},{min:0,max:50,message:this.$t("trials:researchForm:formRule:maxLength"),trigger:"blur"}],Phone:[{required:!0,validator:e,trigger:["blur"]}],EmailOrPhone:[{required:!0,validator:r,trigger:["blur","change"]}],ReplaceUserEmailOrPhone:[{required:!0,validator:n,trigger:["blur"]}],VerificationCode:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:["blur"]}]},siteOptions:[],loading:!1,sendDisabled:!0,btnLoading:!1,sendTitle:this.$t("trials:researchForm:button:send"),count:"",timer:null,isHaveSiteSurveyRecord:!1}},mounted:function(){},methods:{onSubmit:function(){var t=this;this.$refs["resetForm"].validate((function(e){if(!e)return!1;t.btnLoading=!0,t.sendDisabled=!0,t.form.IsUpdate||(t.form.ReplaceUserEmailOrPhone="");var r={emailOrPhone:t.form.EmailOrPhone,verificationCode:t.form.VerificationCode};Object(i["G"])(r).then(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(r){var n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.btnLoading=!1,zzSessionStorage.clear(),c["a"].dispatch("user/setToken",r.Result.Token),zzSessionStorage.setItem("TokenKey",r.Result.Token),e.next=6,Object(u["e"])();case 6:return n=e.sent,e.next=9,Object(u["d"])();case 9:o=e.sent,c["a"].dispatch("user/setTree",o.Result),c["a"].dispatch("user/setPermissions",n.Result),t.$router.push({path:"/ReviewersResearchForm?Id=".concat(r.Result.DoctorId?r.Result.DoctorId:"","&tabActive=BasicInfo&ReviewStatus=").concat(r.Result.ReviewStatus)});case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){t.btnLoading=!1,t.sendDisabled=!1}))}))},handleSendCode:function(){var t=this;this.sendDisabled=!0;var e={Email:this.form.EmailOrPhone};Object(i["A"])(e).then((function(e){e.IsSuccess?t.getCode():t.$message.error(e.ErrorMessage)})).catch((function(){t.sendDisabled=!1}))},handleEmailChange:function(){var t=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;this.form.EmailOrPhone&&t.test(this.form.EmailOrPhone)?this.sendDisabled=!1:this.sendDisabled=!0},getCode:function(){var t=this,e=60;this.timer||(this.count=e,this.sendDisabled=!0,this.timer=setInterval((function(){t.count>0&&t.count<=e?(t.count--,t.sendTitle="".concat(t.$t("trials:researchForm:button:send"),"(").concat(t.count,"s)"),t.sendDisabled=!0):(t.sendDisabled=!1,t.sendTitle=t.$t("trials:researchForm:button:send"),clearInterval(t.timer),t.timer=null)}),1e3))},onCancel:function(){this.$refs["resetForm"].resetFields()}}},l=d,s=(r("b82f"),r("2877")),f=Object(s["a"])(l,n,o,!1,null,"326bf5de",null);e["default"]=f.exports},"33ba":function(t,e,r){"use strict";r.d(e,"s",(function(){return o})),r.d(e,"n",(function(){return a})),r.d(e,"p",(function(){return i})),r.d(e,"b",(function(){return u})),r.d(e,"v",(function(){return c})),r.d(e,"C",(function(){return d})),r.d(e,"x",(function(){return l})),r.d(e,"F",(function(){return s})),r.d(e,"u",(function(){return f})),r.d(e,"c",(function(){return m})),r.d(e,"i",(function(){return h})),r.d(e,"d",(function(){return p})),r.d(e,"j",(function(){return b})),r.d(e,"w",(function(){return g})),r.d(e,"e",(function(){return v})),r.d(e,"y",(function(){return O})),r.d(e,"f",(function(){return S})),r.d(e,"k",(function(){return y})),r.d(e,"E",(function(){return j})),r.d(e,"D",(function(){return E})),r.d(e,"o",(function(){return T})),r.d(e,"B",(function(){return R})),r.d(e,"z",(function(){return w})),r.d(e,"g",(function(){return I})),r.d(e,"l",(function(){return C})),r.d(e,"m",(function(){return P})),r.d(e,"q",(function(){return $})),r.d(e,"t",(function(){return x})),r.d(e,"a",(function(){return D})),r.d(e,"h",(function(){return F})),r.d(e,"r",(function(){return U})),r.d(e,"A",(function(){return z})),r.d(e,"G",(function(){return A}));var n=r("b775");function o(t){return Object(n["a"])({url:"/doctorList/getDoctorSearchList",method:"post",data:t})}function a(t,e){return Object(n["a"])({url:"/file/downloadOfficialCV/".concat(e),method:"post",data:t})}function i(t){return Object(n["a"])({url:"/doctor/getBasicInfo/".concat(t),method:"get"})}function u(t){return Object(n["a"])({url:"/doctor/addOrUpdateDoctorBasicInfo",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/doctor/getEmploymentInfo/".concat(t),method:"get"})}function d(t){return Object(n["a"])({url:"/doctor/updateEmploymentInfo",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/doctor/getSpecialtyInfo/".concat(t),method:"get"})}function s(t){return Object(n["a"])({url:"/doctor/updateSpecialtyInfo",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/education/getEducation/".concat(t),method:"get"})}function m(t){return Object(n["a"])({url:"/education/addOrUpdateEducationInfo",method:"post",data:t})}function h(t){return Object(n["a"])({url:"/education/deleteEducationInfo/".concat(t),method:"delete"})}function p(t){return Object(n["a"])({url:"/education/addOrUpdatePostgraduateInfo",method:"post",data:t})}function b(t){return Object(n["a"])({url:"/education/deletePostgraduateInfo/".concat(t),method:"delete"})}function g(t){return Object(n["a"])({url:"/researchPublication/getResearchPublication/".concat(t),method:"get"})}function v(t){return Object(n["a"])({url:"/researchPublication/addOrUpdateResearchPublication",method:"post",data:t})}function O(t){return Object(n["a"])({url:"/trialExperience/getTrialExperience/".concat(t),method:"get"})}function S(t){return Object(n["a"])({url:"/trialExperience/addOrUpdateTrialExperience",method:"post",data:t})}function y(t){return Object(n["a"])({url:"/trialExperience/deleteTrialExperience/".concat(t),method:"delete"})}function j(t){return Object(n["a"])({url:"/trialExperience/updateOtherExperience",method:"post",data:t})}function E(t){return Object(n["a"])({url:"/trialExperience/updateGcpExperience",method:"post",data:t})}function T(t){return Object(n["a"])({url:"/doctor/getAuditState/".concat(t),method:"get"})}function R(t){return Object(n["a"])({url:"/doctor/updateAuditResume",method:"post",data:t})}function w(t,e,r){return Object(n["a"])({url:"/vacation/getVacationList/".concat(t,"/").concat(e,"/").concat(r),method:"get"})}function I(t){return Object(n["a"])({url:"/vacation/addOrUpdateVacation",method:"post",data:t})}function C(t){return Object(n["a"])({url:"/vacation/deleteVacation/".concat(t),method:"delete"})}function P(t,e){var r={attachmentIds:e};return Object(n["a"])({url:"/file/downloadByAttachmentId/".concat(t),method:"post",data:r})}function $(t){return Object(n["a"])({url:"/doctor/getDetail/".concat(t),method:"get"})}function x(t){return Object(n["a"])({url:"/trial/getReviewerTrialListByEnrollmentStatus",method:"post",data:t})}function D(t){return Object(n["a"])({url:"/Doctor/addDoctorCriterionFile",method:"post",data:t})}function F(t){return Object(n["a"])({url:"/Doctor/deleteDoctorCriterionFile",method:"post",data:t})}function U(t){return Object(n["a"])({url:"/Doctor/getDoctorCriterionFile",method:"post",data:t})}function z(t){return Object(n["a"])({url:"/TrialSiteSurvey/sendEmialVerifyCode",method:"post",data:t})}function A(t){return Object(n["a"])({url:"/TrialSiteSurvey/verifyEmialGetDoctorInfo",method:"post",data:t})}},"7cdf":function(t,e,r){var n=r("5ca1");n(n.S,"Number",{isInteger:r("9c12")})},"896b":function(t,e,r){"use strict";r.d(e,"k",(function(){return o})),r.d(e,"n",(function(){return a})),r.d(e,"i",(function(){return i})),r.d(e,"f",(function(){return u})),r.d(e,"b",(function(){return c})),r.d(e,"h",(function(){return d})),r.d(e,"c",(function(){return l})),r.d(e,"e",(function(){return s})),r.d(e,"g",(function(){return f})),r.d(e,"a",(function(){return m})),r.d(e,"d",(function(){return h})),r.d(e,"m",(function(){return p})),r.d(e,"l",(function(){return b})),r.d(e,"j",(function(){return g}));var n=r("b775");function o(t){return Object(n["a"])({url:"/TrialSiteSurvey/sendVerifyCode",method:"post",data:t})}function a(t){return Object(n["a"])({url:"/TrialSiteSurvey/verifySendCode",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/TrialSiteSurvey/getTrialSurveyInitInfo/".concat(t),method:"get"})}function u(t,e){return Object(n["a"])({url:"/TrialSiteSurvey/getSiteSurveyInfo/".concat(t,"/").concat(e),method:"get"})}function c(t){return Object(n["a"])({url:"/TrialSiteSurvey/addOrUpdateTrialSiteSurvey",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/TrialSiteUserSurvey/getTrialSiteUserSurveyList/".concat(t),method:"get"})}function l(t,e){return Object(n["a"])({url:"/TrialSiteUserSurvey/addOrUpdateTrialSiteUserSurvey/".concat(t),method:"post",data:e})}function s(t,e){return Object(n["a"])({url:"/TrialSiteUserSurvey/deleteTrialSiteUserSurvey/".concat(t,"/").concat(e),method:"delete"})}function f(t){return Object(n["a"])({url:"/TrialSiteEquipmentSurvey/getTrialSiteEquipmentSurveyList/".concat(t),method:"get"})}function m(t,e){return Object(n["a"])({url:"/TrialSiteEquipmentSurvey/addOrUpdateTrialSiteEquipmentSurvey/".concat(t),method:"post",data:e})}function h(t,e){return Object(n["a"])({url:"/TrialSiteEquipmentSurvey/deleteTrialSiteEquipmentSurvey/".concat(t,"/").concat(e),method:"delete"})}function p(t){return Object(n["a"])({url:"/TrialSiteSurvey/trialSurveySubmit",method:"post",data:t})}function b(t){return Object(n["a"])({url:"/TrialSiteSurvey/submissionRejection",method:"post",data:t})}function g(t){return Object(n["a"])({url:"/UserTypeRole/getUserTypeList/".concat(t),method:"get"})}},"9c12":function(t,e,r){var n=r("d3f4"),o=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&o(t)===t}},b82f:function(t,e,r){"use strict";r("f860")},f860:function(t,e,r){}}]);