(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8789f142"],{"39bb":function(t,e,n){},"5c2b":function(t,e,n){t.exports=n.p+"img/dispatch-employee.2148c295.png"},"5eb9":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"si-box"},[!t.no_data&&t.company_num>0?i("a",{staticClass:"si-child",attrs:{id:"dispatch-employee"},on:{click:t.toIndex_click}},[i("img",{attrs:{src:n("5c2b"),alt:""}}),t._m(0)]):t._e(),t.no_data?t._e():i("a",{staticClass:"si-child",attrs:{id:"flex-employee"},on:{click:t.toFlex_click}},[i("img",{attrs:{src:n("ad2d"),alt:""}}),t._m(1)])])},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"si-child-desc"},[n("h4",[t._v("我是派遣人员")]),n("p",[t._v("可查看编辑自己的劳务派遣人员档案信息")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"si-child-desc"},[n("h4",[t._v("我是灵活用工人员")]),n("p",[t._v("可查看灵活用工人员任务信息")])])}],r=(n("6b54"),n("2397"),n("96cf"),n("1da1")),o=n("d4ec"),c=n("bee2"),s=n("262e"),u=n("99de"),l=n("7e84"),d=n("9ab4"),h=n("60a3"),p=n("d399");function f(t){var e=_();return function(){var n,i=Object(l["a"])(t);if(e){var a=Object(l["a"])(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return Object(u["a"])(this,n)}}function _(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var m=function(){var t=function(t){Object(s["a"])(n,t);var e=f(n);function n(){var t;return Object(o["a"])(this,n),t=e.apply(this,arguments),t.id_no="",t.dispatch_list=[],t.no_data=!1,t}return Object(c["a"])(n,[{key:"toFlex_click",value:function(){this.id_no_encrytion&&this.$router.push({name:"FlexEmployee",query:{id_no:this.id_no_encrytion}})}},{key:"toIndex",value:function(t){this.$router.push({name:"Index",query:{id_no:this.id_no_encrytion,sp_id:t}})}},{key:"ChooseCompany",value:function(){this.$router.push({name:"ChooseCompany",query:{id_no:this.id_no_encrytion}})}},{key:"toIndex_click",value:function(){if(this.company_num>1&&this.ChooseCompany(),1==this.company_num){var t=this.dispatch_list[0].id;this.toIndex(t)}}},{key:"getUserInfo",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$server.EmployeeService.getUserInfo({}).then((function(t){t.data&&t.data.uthStatus&&t.data.uthStatus>0?(console.log(t),e.id_no=t.data.personalIdCardNo,localStorage.setItem("id_no",t.data.personalIdCardNo),localStorage.setItem("name",t.data.personalName),localStorage.setItem("sex",t.data.sex),localStorage.setItem("birthday",t.data.birthday)):(console.log("您还未实名认证,不可进行查询,请先去【我】的页面,点击头像,进行实名认证后再查询"),e.no_data=!0,p["a"].fail({duration:0,message:"您还未实名认证,不可进行查询,请先去【我】的页面,点击头像,进行实名认证后再查询"}))})).catch((function(t){console.log("err=")}));case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getDispatchList",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$server.EmployeeService.getDispatchList({idNo:this.id_no}).then((function(t){console.log("getDispatchList res=",t),e.dispatch_list=t})).catch((function(t){console.log("err=",t)}));case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"created",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loading=p["a"].loading({duration:0,message:"加载中...",forbidClick:!0}),t.next=3,this.getUserInfo();case 3:this.id_no,this.loading.clear();case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"id_no_encrytion",get:function(){return encodeURI(window.btoa(this.id_no))}},{key:"company_num",get:function(){return this.dispatch_list.length}}]),n}(h["c"]);return t=Object(d["a"])([Object(h["a"])({components:{}})],t),t}(),y=m,v=y,g=(n("d1c6"),n("2877")),b=Object(g["a"])(v,i,a,!1,null,null,null);e["default"]=b.exports},ad2d:function(t,e,n){t.exports=n.p+"img/flex-employee.d871e4bd.png"},d1c6:function(t,e,n){"use strict";var i=n("39bb"),a=n.n(i);a.a}}]); //# sourceMappingURL=chunk-8789f142.df2bc47a.js.map