(function(e){function t(t){for(var a,r,o=t[0],i=t[1],d=t[2],f=0,s=[];f0?t?e.every((function(e){return n(e)})):e.some((function(e){return n(e)})):(console.error("need auths! Like v-auths=\"['admin','editor']\""),!1)}},b73a:function(e,t,n){},b9a8:function(e,t,n){"use strict";n.r(t);var a={loading:!1},r={showLoading:function(e){e.loading=!0},hideLoading:function(e){e.loading=!1}},u={};t["default"]={namespaced:!0,state:a,mutations:r,actions:u}},c92e:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return i}));var a=n("a78e"),r=n.n(a),u="Worker-Token";function c(){return r.a.get(u)}function o(e){return r.a.set(u,e)}function i(){return r.a.remove(u)}},e886:function(e,t,n){},eaf8:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return u}));var a=n("53ca");n("d401"),n("4160"),n("c975"),n("fb6a"),n("b64b"),n("d3b7"),n("e25e"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("00b4"),n("25f0"),n("3ca3"),n("4d90"),n("5319"),n("159b"),n("ddb0"),n("2b3d"),n("bf19"),n("9861"),n("88a7"),n("271a"),n("5494");function r(){return Date.parse(new Date)/1e3}function u(e,t){return"object"!==Object(a["a"])(e)&&(e={}),Array.isArray(t)?t.slice():(Object.keys(t).forEach((function(n){var r=t[n];"object"===Object(a["a"])(r)?e[n]=u(e[n],r):e[n]=r})),e)}},f43e:function(e,t,n){"use strict";n.r(t);n("615f");var a=n("92e2"),r=(n("6894"),n("e11d")),u=(n("f1dc"),n("6e47")),c=(n("9cb7"),n("66fd")),o=(n("d1cf"),n("ee83")),i=(n("6d73"),n("473d")),d=(n("342a"),n("1437")),f=(n("5d17"),n("f9bd")),s=(n("2b28"),n("9ed2")),l=(n("414a"),n("7a82")),h=(n("a909"),n("3acc")),p=(n("3c32"),n("417e")),b=(n("4142"),n("39d1")),m=(n("91d5"),n("f0ca")),k=(n("e17f"),n("2241")),v=(n("1f87"),n("510b")),g=(n("77f8"),n("dc0f")),O=(n("db2c"),n("1125")),_=(n("e930"),n("8f80")),j=(n("5f5f"),n("f253")),E=(n("8a58"),n("e41f")),y=(n("c3a6"),n("ad06")),w=(n("0ec5"),n("21ab")),T=(n("3df5"),n("2830")),S=(n("4b0a"),n("2bb1")),x=(n("7844"),n("5596")),P=(n("e7e5"),n("d399")),N=(n("bda7"),n("5e46")),A=(n("da3c"),n("0b33")),I=(n("0653"),n("34e9")),M=(n("c194"),n("7744")),C=(n("2994"),n("2bdd")),D=(n("5246"),n("6b41")),L=(n("8fec"),n("7bd9")),U=(n("a52c"),n("2ed4")),z=(n("537a"),n("ac28")),K=(n("4056"),n("44bf")),$=(n("66cf"),n("343b")),F=(n("be7f"),n("565f")),H=(n("38d5"),n("772a")),R=(n("66b9"),n("b650")),q=(n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("2b0e")),G=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg-gray-100 min-h-screen text-gray-600",attrs:{id:"app"}},[t("Loading",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}]}),t("router-view")],1)},B=[],W=function(){var e=this,t=e._self._c;return t("div",{staticClass:"fixed z-max w-full h-full flex justify-center items-center bg-white bg-opacity-50"},[t("van-loading",{attrs:{type:"spinner",color:"#1989fa"}})],1)},Y=[],J=(n("ac1e"),n("543e"));q["default"].use(J["a"]);var Q={name:"Loading",data:function(){return{}}},V=Q,X=n("2877"),Z=Object(X["a"])(V,W,Y,!1,null,null,null),ee=Z.exports,te={components:{Loading:ee},computed:{loading:function(){return this.$store.state.loading.loading}}},ne=te,ae=Object(X["a"])(ne,G,B,!1,null,null,null),re=ae.exports,ue=n("fbd2"),ce=(n("c740"),n("c975"),n("d3b7"),n("3ca3"),n("ddb0"),n("8c4f")),oe=n("c92e"),ie=function(){var e=this,t=e._self._c;return t("div",[t("router-view"),t("app-footer"),t("tabbar")],1)},de=[],fe=function(){var e=this,t=e._self._c;return t("p",{staticClass:"text-center pb-20 pt-10 text-gray-400 text-xs"},[e._v(e._s(e.data))])},se=[],le=n("ad90"),he=n.n(le),pe={name:"Footer",data:function(){return{data:le["footer"]}}},be=pe,me=Object(X["a"])(be,fe,se,!1,null,null,null),ke=me.exports,ve=function(){var e=this,t=e._self._c;return t("van-tabbar",{staticClass:"z-max",attrs:{route:""}},[t("van-tabbar-item",{attrs:{to:"/dispatch",icon:"wap-home-o"}},[e._v("派单")]),t("van-tabbar-item",{attrs:{to:"/attendance",icon:"wap-home-o"}},[e._v("打卡")]),t("van-tabbar-item",{attrs:{to:"/personal",icon:"contact"}},[e._v("我的")])],1)},ge=[],Oe={data:function(){return{active:0,icon:{repair_active:"",repair_inactive:"repair"}}}},_e=Oe,je=Object(X["a"])(_e,ve,ge,!1,null,null,null),Ee=je.exports,ye={name:"Page",components:{AppFooter:ke,Tabbar:Ee}},we=ye,Te=Object(X["a"])(we,ie,de,!1,null,null,null),Se=Te.exports,xe=function(){var e=this,t=e._self._c;return t("div",[t("router-view"),t("app-footer")],1)},Pe=[],Ne={name:"Page",components:{AppFooter:ke}},Ae=Ne,Ie=Object(X["a"])(Ae,xe,Pe,!1,null,null,null),Me=Ie.exports,Ce=n("ad90");q["default"].use(ce["a"]);var De=[{path:"/redirect",children:[{path:"/redirect/:path(.*)",component:function(){return n.e("chunk-2d229018").then(n.bind(null,"dc36"))}}]},{path:"/404",component:function(){return n.e("chunk-2d0af2bb").then(n.bind(null,"0cd6"))},hidden:!0},{path:"/login",component:function(){return n.e("chunk-1dd19896").then(n.bind(null,"6936"))},meta:{title:"登录"},hidden:!0},{path:"/register",component:function(){return n.e("chunk-481484a0").then(n.bind(null,"eacb"))},meta:{title:"注册"},hidden:!0},{path:"/",component:Se,redirect:"/dispatch",children:[{path:"/dispatch",component:function(){return n.e("chunk-9cb1f4e8").then(n.bind(null,"6128"))},meta:{title:"我的派单"}},{path:"/collects",component:function(){return n.e("chunk-591a1722").then(n.bind(null,"02f0"))},meta:{title:"汇总"}},{path:"/workers",component:function(){return Promise.all([n.e("chunk-59dea8ab"),n.e("chunk-1d45c4c6")]).then(n.bind(null,"f613"))},meta:{title:"工人管理"}},{path:"/address",component:function(){return Promise.all([n.e("chunk-59dea8ab"),n.e("chunk-64e24026")]).then(n.bind(null,"b436"))},meta:{title:"通讯录",tabbar:!0}},{path:"/personal",component:function(){return n.e("chunk-5e14361d").then(n.bind(null,"8053"))},meta:{title:"个人信息"}},{path:"/attendance",component:function(){return Promise.all([n.e("chunk-4f178ae8"),n.e("chunk-498bec46")]).then(n.bind(null,"7c6c"))},meta:{title:"打卡"}}]},{path:"/nav",component:Me,children:[{path:"",component:function(){return n.e("chunk-2d0d7fe9").then(n.bind(null,"78d6"))},meta:{title:"后台入口"}}]},{path:"/qa",component:Me,children:[{path:"list",component:function(){return n.e("chunk-b49eab84").then(n.bind(null,"8851"))},meta:{title:"常见问题"}},{path:":id(\\d+)/info",component:function(){return n.e("chunk-4ff26894").then(n.bind(null,"fe2e"))},meta:{title:"问题详情"}}]},{path:"/worksite",component:Me,children:[{path:"/detail/:id(\\d+)/room_type/:room_type",component:function(){return n.e("chunk-18498677").then(n.bind(null,"5e90"))},meta:{title:"派单详情"}},{path:"/table/:id(\\d+)",component:function(){return Promise.all([n.e("chunk-4f178ae8"),n.e("chunk-224151ce"),n.e("chunk-2d0e13d5")]).then(n.bind(null,"7a1f"))},meta:{title:"决算表详情"}},{path:"/collect/:id(\\d+)",component:function(){return Promise.all([n.e("chunk-4f178ae8"),n.e("chunk-224151ce"),n.e("chunk-2d216613")]).then(n.bind(null,"c1e4"))},meta:{title:"汇总详情"}},{path:"/table/:id(\\d+)/worker",component:function(){return Promise.all([n.e("chunk-59dea8ab"),n.e("chunk-1d45c4c6")]).then(n.bind(null,"f613"))},meta:{title:"工人管理"}}]},{path:"/worker",component:Me,children:[{path:"add",component:function(){return Promise.all([n.e("chunk-59dea8ab"),n.e("chunk-607fe00c")]).then(n.bind(null,"85d8"))},meta:{title:"添加工人"}},{path:":id(\\d+)/edit",component:function(){return Promise.all([n.e("chunk-59dea8ab"),n.e("chunk-607fe00c")]).then(n.bind(null,"85d8"))},meta:{title:"编辑工人"}}]},{path:"/personal/info",component:Me,children:[{path:"",component:function(){return n.e("chunk-20911466").then(n.bind(null,"d244"))},meta:{title:"个人信息"}}]},{path:"/attendance",component:Me,children:[{path:"",component:function(){return Promise.all([n.e("chunk-4f178ae8"),n.e("chunk-498bec46")]).then(n.bind(null,"7c6c"))},meta:{title:"打卡"}}]},{path:"*",redirect:"/404"}],Le=new ce["a"]({routes:De}),Ue=["/login","/nav","/register","/detail/"];Le.beforeEach((function(e,t,n){var a=e.meta&&e.meta.title;a&&(document.title=Ce.title+"-"+a);var r=Object(oe["a"])();if(r)if("/login"===e.path)n({path:"/"});else{var u=ue["a"].getters.user_id;0===u?ue["a"].dispatch("user/getInfo").then((function(){n()})):n()}else-1!==Ue.findIndex((function(t){return 0==e.path.indexOf(t)}))?n():n("/login?redirect=".concat(e.path))}));var ze=Le,Ke=(n("b972"),n("b73a"),n("e886"),n("bc3a")),$e=n.n(Ke),Fe=n("0419"),He=n("8237"),Re=n.n(He),qe=n("bd0c"),Ge=n.n(qe),Be=n("5c96"),We=n.n(Be),Ye=(n("0fae"),n("b656")),Je=function(e){e.directive("auth",{inserted:function(e,t){Object(Ye["a"])(t.value)||e.remove()}}),e.directive("auth-all",{inserted:function(e,t){Object(Ye["a"])(t.value,!0)||e.remove()}})};q["default"].use(Ge.a,{ak:"jUGYKqjP0ThYsH4m0IMXWDZCQUbkzVGB"}),q["default"].use(We.a),q["default"].use(R["a"]),q["default"].use(H["a"]),q["default"].use(F["a"]),q["default"].use($["a"]),q["default"].use(K["a"]),q["default"].use(z["a"]),q["default"].use(U["a"]),q["default"].use(L["a"]),q["default"].use(D["a"]),q["default"].use(C["a"]),q["default"].use(M["a"]),q["default"].use(I["a"]),q["default"].use(A["a"]),q["default"].use(N["a"]),q["default"].use(P["a"]),q["default"].use(x["a"]),q["default"].use(S["a"]),q["default"].use(T["a"]),q["default"].use(w["a"]),q["default"].use(y["a"]),q["default"].use(E["a"]),q["default"].use(j["a"]),q["default"].use(_["a"]),q["default"].use(O["a"]),q["default"].use(g["a"]),q["default"].use(v["a"]),q["default"].use(k["a"]),q["default"].use(m["a"]),q["default"].use(b["a"]),q["default"].use(p["a"]),q["default"].use(h["a"]),q["default"].use(l["a"]),q["default"].use(s["a"]),q["default"].use(f["a"]),q["default"].use(d["a"]),q["default"].use(i["a"]),q["default"].use(o["a"]),q["default"].use(c["a"]),q["default"].use(u["a"]),q["default"].use(r["a"]),q["default"].use(a["a"]),q["default"].config.productionTip=!1,q["default"].prototype.$env=Fe["a"],q["default"].prototype.$axios=$e.a,q["default"].prototype.$settings=he.a,q["default"].prototype.$md5=Re.a,q["default"].use(Je),new q["default"]({router:ze,store:ue["a"],el:"#app",render:function(e){return e(re)},data:function(){return{options:[]}}})},fbd2:function(e,t,n){"use strict";n("13d5"),n("d3b7"),n("ac1f"),n("5319"),n("ddb0");var a=n("2b0e"),r=n("2f62"),u=(n("45fc"),{user_id:function(e){return e.user.id},token:function(e){return e.user.token},headimgurl:function(e){return e.user.headimgurl},name:function(e){return e.user.name},nickname:function(e){return e.user.nickname},phone:function(e){return e.user.phone},setting:function(e){return e.user.setting},auths:function(e){return e.user.auths},hasAuthorization:function(e){return function(t){return e.user.auths.some((function(e){return e===t}))}},roles:function(e){return e.user.roles},customer:function(e){return e.user.customer},role_name:function(e){return e.user.role_name},dept_name:function(e){return e.user.dept_name},userinfo:function(e){return e.user.userinfo},my:function(e){return e.user.my}}),c=u,o=n("eaf8");a["default"].use(r["a"]);var i=n("b4c2"),d=i.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),a=i(t);return e[n]=a.default,e}),{}),f=n("47ba"),s=f.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),a=f(t);return e[n]=a.default,e}),{});d=Object(o["b"])(d,s);var l=new r["a"].Store({modules:d,getters:c});t["a"]=l},fc1b:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n("6456");function r(e){return Object(a["a"])({url:"login",method:"post",data:e})}}});