require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/work/index"],{4062:function(e,t,n){"use strict";(function(e,t){var u=n("47a9");n("f076");u(n("3240"));var a=u(n("8ed9"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"452d":function(e,t,n){"use strict";var u=n("6ae6"),a=n.n(u);a.a},"60a5":function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var u=function(){var e=this,t=e.$createElement,n=(e._self._c,e.hasKefuAuth("kefu-order-writeoff-submit")),u=e.hasKefuAuth("kefu-admin-workbench-entry"),a=e.hasKefuAuth("kefu-admin-workbench-entry"),i=a?e.hasKefuAuth("kefu-order-list"):null,r=a?e.hasKefuAuth("kefu-refund-list"):null,o=a?e.hasKefuAuth("kefu-admin-product-list"):null,f=a?e.hasKefuAuth("kefu-admin-product-list"):null,c=e.hasKefuAuth("kefu-admin-workbench-store")&&e.hasAnyStoreManageAuth(),s=c?e.hasKefuAuth("kefu-admin-product-list"):null,d=c?e.hasKefuAuth("kefu-order-list"):null,h=c?e.hasKefuAuth("kefu-order-writeoff-submit"):null,l=c?e.hasKefuAuth("kefu-refund-list"):null,m=c?e.hasKefuAuth("kefu-admin-user-list"):null,k=c?e.hasKefuAuth("kefu-behalf"):null,p=c?e.isKefuAuthUser()&&e.hasKefuAuth("kefu-chat"):null,g=c?e.hasKefuAuth("kefu-admin-product-list"):null;e.$mp.data=Object.assign({},{$root:{m0:n,m1:u,m2:a,m3:i,m4:r,m5:o,m6:f,m7:c,m8:s,m9:d,m10:h,m11:l,m12:m,m13:k,m14:p,m15:g}})},a=[]},"6ae6":function(e,t,n){},"860c":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=n("4d38"),a=n("6af6"),i=n("92f9"),r={components:{NavBar:function(){n.e("components/NavBar").then(function(){return resolve(n("a7d8"))}.bind(null,n)).catch(n.oe)},footerPage:function(){Promise.all([n.e("pages/admin/common/vendor"),n.e("pages/admin/components/footerPage/index")]).then(function(){return resolve(n("49d8"))}.bind(null,n)).catch(n.oe)}},data:function(){return{imgHost:u.HTTP_REQUEST_URL,iconColor:"#FFFFFF",isScrolling:!1,avatar:"",nickname:"",phone:"",outofstock:0,policeforce:0,unshipped_count:0,refunding_count:0,after_price:0,after_number:0,after_pay_number:0,today_visits:0,getHeight:this.$util.getWXStatusHeight(),identity:0}},onLoad:function(){this.getUserInfo()},methods:{hasAnyStoreManageAuth:function(){return this.hasKefuAuth(["kefu-admin-product-list","kefu-order-list","kefu-order-writeoff-submit","kefu-refund-list","kefu-admin-user-list","kefu-behalf","kefu-chat"])},getUserInfo:function(){var e=this;(0,i.getUserInfo)().then((function(t){var n=t.data,u=n.avatar,a=n.nickname,i=n.phone;e.avatar=u,e.nickname=a,e.phone=i,e.identity=t.data.identity,e.$store.commit("UPDATE_USERINFO",t.data),e.hasKefuAuth("kefu-admin-workbench-entry")&&(e.getOrderTime(),e.getOrderStaging())}))},getOrderTime:function(){var e=this;(0,a.getOrderTime)({type:1}).then((function(t){var n=t.data,u=n.after_number,a=n.after_pay_number,i=n.after_price,r=n.today_visits;e.after_number=u,e.after_pay_number=a,e.after_price=i,e.today_visits=r}))},getOrderStaging:function(){var e=this;(0,a.getOrderStaging)().then((function(t){var n=t.data,u=n.outofstock,a=n.policeforce,i=n.unshipped_count,r=n.refunding_count;e.outofstock=u,e.policeforce=a,e.unshipped_count=Number(i),e.refunding_count=Number(r)}))},checkIdentity:function(){var t=this;(0,i.checkIdentityApi)({identity:0}).then((function(n){(0,i.getUserInfo)().then((function(n){t.$store.commit("UPDATE_USERINFO",n.data),e.switchTab({url:"/pages/index/index"})}))})).catch((function(e){return t.$util.Tips({title:e})}))},toChat:function(){this.isKefuAuthUser()&&this.checkKefuAuth("kefu-chat")&&e.navigateTo({url:"/pages/annex/web_view/index?url=".concat(u.HTTP_REQUEST_URL,"/kefu")})},toGoods:function(){if(this.checkKefuAuth("kefu-admin-product-list")){e.scanCode({scanType:["barCode"],success:function(t){e.navigateTo({url:"/pages/admin/goods/index?keyword=".concat(t.result)})},fail:function(e){}})}}}};t.default=r}).call(this,n("df3c")["default"])},"8ed9":function(e,t,n){"use strict";n.r(t);var u=n("60a5"),a=n("eeaa");for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);n("452d");var r=n("828b"),o=Object(r["a"])(a["default"],u["b"],u["c"],!1,null,"4badf226",null,!1,u["a"],void 0);t["default"]=o.exports},eeaa:function(e,t,n){"use strict";n.r(t);var u=n("860c"),a=n.n(u);for(var i in u)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(i);t["default"]=a.a}},[["4062","common/runtime","common/vendor"]]]);