(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9b58d92a"],{2241:function(t,e,n){"use strict";var o,i=n("c31d"),a=n("2b0e"),r=n("d282"),c=n("ea8e"),s=n("b1d2"),l=n("6605"),u=n("b650"),d=Object(r["a"])("dialog"),f=d[0],h=d[1],p=d[2],g=f({mixins:[Object(l["a"])()],props:{title:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var e=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(n){!1!==n&&e.loading[t]&&e.onClose(t),e.loading.confirm=!1,e.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genButtons:function(){var t,e=this,n=this.$createElement,o=this.showCancelButton&&this.showConfirmButton;return n("div",{class:[s["c"],h("footer",{buttons:o})]},[this.showCancelButton&&n(u["a"],{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||p("cancel")},class:h("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&n(u["a"],{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||p("confirm")},class:[h("confirm"),(t={},t[s["a"]]=o,t)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])}},render:function(){var t,e=arguments[0];if(this.shouldRender){var n=this.message,o=this.messageAlign,i=this.slots(),a=this.slots("title")||this.title,r=a&&e("div",{class:h("header",{isolated:!n&&!i})},[a]),s=(i||n)&&e("div",{class:h("content")},[i||e("div",{domProps:{innerHTML:n},class:h("message",(t={"has-title":a},t[o]=o,t))})]);return e("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||n},class:[h(),this.className],style:{width:Object(c["a"])(this.width)}},[r,s,this.genButtons()])])}}}),b=n("a142");function m(t){return document.body.contains(t)}function v(){o&&o.$destroy(),o=new(a["a"].extend(g))({el:document.createElement("div"),propsData:{lazyRender:!1}}),o.$on("input",(function(t){o.value=t}))}function y(t){return b["f"]?Promise.resolve():new Promise((function(e,n){o&&m(o.$el)||v(),Object(i["a"])(o,y.currentOptions,t,{resolve:e,reject:n})}))}y.defaultOptions={value:!0,title:"",width:"",message:"",overlay:!0,className:"",lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!1,closeOnClickOverlay:!1,callback:function(t){o["confirm"===t?"resolve":"reject"](t)}},y.alert=y,y.confirm=function(t){return y(Object(i["a"])({showCancelButton:!0},t))},y.close=function(){o&&(o.value=!1)},y.setDefaultOptions=function(t){Object(i["a"])(y.currentOptions,t)},y.resetDefaultOptions=function(){y.currentOptions=Object(i["a"])({},y.defaultOptions)},y.resetDefaultOptions(),y.install=function(){a["a"].use(g)},y.Component=g,a["a"].prototype.$dialog=y;e["a"]=y},"39bb":function(t,e,n){},"48f4":function(t,e,n){"use strict";function o(t,e){var n=e.to,o=e.url,i=e.replace;if(n&&t){var a=t[i?"replace":"push"](n);a&&a.catch&&a.catch((function(t){if(t&&"NavigationDuplicated"!==t.name)throw t}))}else o&&(i?location.replace(o):location.href=o)}function i(t){o(t.parent&&t.parent.$router,t.props)}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var a={url:String,replace:Boolean,to:[String,Object]}},"5eb9":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"si-box"})},i=[],a=(n("6b54"),n("2397"),n("96cf"),n("1da1")),r=n("d4ec"),c=n("bee2"),s=n("262e"),l=n("99de"),u=n("7e84"),d=n("9ab4"),f=n("60a3"),h=n("2241"),p=n("d399");function g(t){var e=b();return function(){var n,o=Object(u["a"])(t);if(e){var i=Object(u["a"])(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(l["a"])(this,n)}}function b(){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=g(n);function n(){var t;return Object(r["a"])(this,n),t=e.apply(this,arguments),t.id_no="",t.dispatch_list=[],t.no_data=!1,t.idVeri="https://www.qinqinxiaobao.com?pmode=native&url=identityVerification&pname=%e8%ba%ab%e4%bb%bd%e8%ae%a4%e8%af%81",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}}):(console.log("this.id_no_encrytion=",this.id_no_encrytion),h["a"].alert({message:"获取身份信息失败,请关闭后重试!~"}).then((function(){})))}},{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||0==this.company_num)&&this.ChooseCompany(),1==this.company_num){var t=this.dispatch_list[0].id;this.toIndex(t)}}},{key:"getUserInfo",value:function(){var t=Object(a["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?(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),e.$router.push({name:"FlexEmployee",query:{id_no:e.id_no_encrytion}})):e.no_data=!0})).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(a["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:"callJSBridage",value:function(){var t=navigator.userAgent.toLowerCase();console.log("userAgent=",t);try{-1!=t.indexOf("qqxbua")&&(console.log("setPageNavState"),this.$bridge.setPageNavState({isShowClose:!0,isShowBack:!1,isCloseLeft:!0,isShowTitle:!0,isShowNav:!0,isCloseWebView:!0}).then((function(t){console.log("couponlist setpageNavState callback",t)})))}catch(e){console.log(e)}}},{key:"disableBack",value:function(){console.log("disableBack"),history.pushState(null,null,location.href),window.addEventListener("popstate",(function(){history.pushState(null,null,location.href)}))}},{key:"created",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e=this;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}),setTimeout((function(){e.callJSBridage()}),500),this.disableBack(),t.next=5,this.getUserInfo();case 5:this.loading.clear();case 6: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}(f["c"]);return t=Object(d["a"])([Object(f["a"])({components:{}})],t),t}(),v=m,y=v,C=(n("d1c6"),n("2877")),S=Object(C["a"])(y,o,i,!1,null,null,null);e["default"]=S.exports},b1d2:function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return s}));var o="#fff",i="van-hairline",a=i+"--top",r=i+"--left",c=i+"--surround",s=i+"-unset--top-bottom"},b650:function(t,e,n){"use strict";var o=n("c31d"),i=n("2638"),a=n.n(i),r=n("d282"),c=n("ba31"),s=n("b1d2"),l=n("48f4"),u=n("ad06"),d=n("543e"),f=Object(r["a"])("button"),h=f[0],p=f[1];function g(t,e,n,o){var i,r=e.tag,f=e.icon,h=e.type,g=e.color,b=e.plain,m=e.disabled,v=e.loading,y=e.hairline,C=e.loadingText,S={};function w(t){v||m||(Object(c["a"])(o,"click",t),Object(l["a"])(o))}function O(t){Object(c["a"])(o,"touchstart",t)}g&&(S.color=b?g:s["e"],b||(S.background=g),-1!==g.indexOf("gradient")?S.border=0:S.borderColor=g);var k=[p([h,e.size,{plain:b,loading:v,disabled:m,hairline:y,block:e.block,round:e.round,square:e.square}]),(i={},i[s["b"]]=y,i)];function x(){var o,i=[];return v?i.push(t(d["a"],{class:p("loading"),attrs:{size:e.loadingSize,type:e.loadingType,color:"currentColor"}})):f&&i.push(t(u["a"],{attrs:{name:f,classPrefix:e.iconPrefix},class:p("icon")})),o=v?C:n.default?n.default():e.text,o&&i.push(t("span",{class:p("text")},[o])),i}return t(r,a()([{style:S,class:k,attrs:{type:e.nativeType,disabled:m},on:{click:w,touchstart:O}},Object(c["b"])(o)]),[t("div",{class:p("content")},[x()])])}g.props=Object(o["a"])(Object(o["a"])({},l["b"]),{},{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"}}),e["a"]=h(g)},d1c6:function(t,e,n){"use strict";var o=n("39bb"),i=n.n(o);i.a}}]); //# sourceMappingURL=chunk-9b58d92a.8a10f738.js.map