(function(t){function e(e){for(var a,r,o=e[0],i=e[1],d=e[2],f=0,l=[];f0?e?t.every((function(t){return n(t)})):t.some((function(t){return n(t)})):(console.error("need auths! Like v-auths=\"['admin','editor']\""),!1)}},"584f":function(t,e,n){"use strict";n.r(e);n("c975"),n("d3b7");var a=n("e311"),r=n("2779"),u=n("8a59"),c={id:0,token:Object(a["a"])(),name:"",nickname:"",role_name:"",dept_name:"",phone:"",headimgurl:"",house:{},setting:{},auths:[],roles:[{role:3,label:"业务员",name:"salesman"},{role:2,label:"设计师",name:"designer"},{role:6,label:"项目经理",name:"manager"},{role:4,label:"工程主管",name:"project_manager"},{role:5,label:"工程队长",name:"project_leader"},{role:1,label:"客服",name:"servicer"},{role:17,label:"质检",name:"quality"},{role:16,label:"工程助理",name:"assistant"}],customer:!1,userinfo:{},my:1,supplier:!1},o={SET_TOKEN:function(t,e){t.token=e},SET_NAME:function(t,e){t.name=e},SET_ROLE_NAME:function(t,e){t.role_name=e},SET_DEPT_NAME:function(t,e){t.dept_name=e},SET_NICK_NAME:function(t,e){t.nickname=e},SET_HEADIMGURL:function(t,e){t.headimgurl=e},SET_PHONE:function(t,e){t.phone=e},SET_SETTING:function(t,e){t.setting=e},SET_ID:function(t,e){t.id=e},SET_AUTHS:function(t,e){t.auths=e},SET_CUSTOMER:function(t,e){t.customer=e},SET_USERINFO:function(t,e){t.userinfo=e},SET_MY:function(t,e){t.my=e},SET_SUPPLIER:function(t,e){t.supplier=e}},i={login:function(t,e){var n=t.commit;return new Promise((function(t,u){Object(r["a"])(e).then((function(e){200!==e.code&&u(e.msg),n("SET_TOKEN",e.data.token),Object(a["c"])(e.data.token),t()})).catch((function(t){u(t)}))}))},logout:function(t){var e=t.commit,n=t.state;return new Promise((function(t,r){Object(u["l"])(n.token).then((function(n){e("SET_TOKEN",""),e("SET_ID",0),Object(a["b"])(),t()})).catch((function(t){r(t)}))}))},unbindWeixin:function(t){var e=t.commit,n=t.state;return new Promise((function(t,r){Object(u["n"])(n.token).then((function(n){e("SET_TOKEN",""),e("SET_ID",0),Object(a["b"])(),t()})).catch((function(t){r(t)}))}))},getInfo:function(t){var e=t.commit,n=t.state;return new Promise((function(t,a){Object(u["o"])(n.token).then((function(n){e("SET_USERINFO",n.data);var a=n.data,r=a.id,u=a.username,c=a.phone,o=a.role_name,i=a.dept_name,d=a.headimgurl,f=a.nickname,l=a.auths,s=a.setting,h=a.role_ids;e("SET_ID",r),e("SET_PHONE",c),e("SET_NAME",u),e("SET_ROLE_NAME",o),e("SET_DEPT_NAME",i),e("SET_HEADIMGURL",d),e("SET_NICK_NAME",f),e("SET_SETTING",s),e("SET_AUTHS",l),e("SET_CUSTOMER",-1!=h.split(",").indexOf("1")),e("SET_MY",-1==h.split(",").indexOf("8")?1:0),e("SET_SUPPLIER",-1!=h.split(",").indexOf("27")),console.log(n),t(n.data)})).catch((function(t){a(t)}))}))},updateInfo:function(t,e){var n=t.commit;t.state;return new Promise((function(t,a){Object(u["m"])(e).then((function(e){n("SET_ID",0),t(e.data)})).catch((function(t){a(t)}))}))},updatePassword:function(t,e){var n=t.commit;t.state;return new Promise((function(t,r){Object(u["m"])(e).then((function(e){n("SET_ID",0),n("SET_TOKEN",""),Object(a["b"])(),t(e.data)})).catch((function(t){r(t)}))}))},resetToken:function(t){var e=t.commit;return new Promise((function(t){e("SET_TOKEN",""),Object(a["b"])(),t()}))}};e["default"]={namespaced:!0,state:c,mutations:o,actions:i}},"8a59":function(t,e,n){"use strict";n.d(e,"o",(function(){return r})),n.d(e,"l",(function(){return u})),n.d(e,"n",(function(){return c})),n.d(e,"m",(function(){return o})),n.d(e,"D",(function(){return i})),n.d(e,"E",(function(){return d})),n.d(e,"bb",(function(){return f})),n.d(e,"Y",(function(){return l})),n.d(e,"cb",(function(){return s})),n.d(e,"db",(function(){return h})),n.d(e,"eb",(function(){return b})),n.d(e,"k",(function(){return m})),n.d(e,"z",(function(){return p})),n.d(e,"Gb",(function(){return k})),n.d(e,"Q",(function(){return O})),n.d(e,"P",(function(){return j})),n.d(e,"N",(function(){return g})),n.d(e,"e",(function(){return v})),n.d(e,"x",(function(){return _})),n.d(e,"t",(function(){return E})),n.d(e,"O",(function(){return y})),n.d(e,"f",(function(){return w})),n.d(e,"ab",(function(){return T})),n.d(e,"Z",(function(){return S})),n.d(e,"K",(function(){return P})),n.d(e,"d",(function(){return x})),n.d(e,"M",(function(){return N})),n.d(e,"L",(function(){return A})),n.d(e,"F",(function(){return I})),n.d(e,"b",(function(){return M})),n.d(e,"H",(function(){return D})),n.d(e,"G",(function(){return C})),n.d(e,"a",(function(){return L})),n.d(e,"v",(function(){return U})),n.d(e,"yb",(function(){return z})),n.d(e,"X",(function(){return R})),n.d(e,"W",(function(){return K})),n.d(e,"R",(function(){return F})),n.d(e,"g",(function(){return $})),n.d(e,"y",(function(){return q})),n.d(e,"u",(function(){return H})),n.d(e,"s",(function(){return G})),n.d(e,"S",(function(){return B})),n.d(e,"T",(function(){return Y})),n.d(e,"U",(function(){return W})),n.d(e,"h",(function(){return J})),n.d(e,"lb",(function(){return Q})),n.d(e,"Eb",(function(){return V})),n.d(e,"kb",(function(){return X})),n.d(e,"ob",(function(){return Z})),n.d(e,"tb",(function(){return tt})),n.d(e,"V",(function(){return et})),n.d(e,"rb",(function(){return nt})),n.d(e,"sb",(function(){return at})),n.d(e,"ib",(function(){return rt})),n.d(e,"hb",(function(){return ut})),n.d(e,"gb",(function(){return ct})),n.d(e,"Cb",(function(){return ot})),n.d(e,"pb",(function(){return it})),n.d(e,"Db",(function(){return dt})),n.d(e,"Fb",(function(){return ft})),n.d(e,"ub",(function(){return lt})),n.d(e,"j",(function(){return st})),n.d(e,"Ab",(function(){return ht})),n.d(e,"zb",(function(){return bt})),n.d(e,"J",(function(){return mt})),n.d(e,"w",(function(){return pt})),n.d(e,"Bb",(function(){return kt})),n.d(e,"B",(function(){return Ot})),n.d(e,"fb",(function(){return jt})),n.d(e,"vb",(function(){return gt})),n.d(e,"jb",(function(){return vt})),n.d(e,"mb",(function(){return _t})),n.d(e,"qb",(function(){return Et})),n.d(e,"A",(function(){return yt})),n.d(e,"nb",(function(){return wt})),n.d(e,"c",(function(){return Tt})),n.d(e,"I",(function(){return St})),n.d(e,"wb",(function(){return Pt})),n.d(e,"C",(function(){return xt})),n.d(e,"r",(function(){return Nt})),n.d(e,"p",(function(){return At})),n.d(e,"q",(function(){return It})),n.d(e,"xb",(function(){return Mt})),n.d(e,"i",(function(){return Dt}));var a=n("9f4c");function r(t){return Object(a["a"])({url:"info",method:"get",params:t})}function u(){return Object(a["a"])({url:"logout",method:"post"})}function c(){return Object(a["a"])({url:"unbind_weixin",method:"post"})}function o(t){return Object(a["a"])({url:"password",method:"put",data:t})}function i(t){return Object(a["a"])({url:"admins",method:"get",params:t})}function d(t){return Object(a["a"])({url:"depts",method:"get",params:t})}function f(t){return Object(a["a"])({url:"finalsite/list",method:"post",data:t})}function l(t,e){return Object(a["a"])({url:"finalsite/".concat(t),method:"post",data:e})}function s(t){return Object(a["a"])({url:"worktypes",method:"get",params:t})}function h(t,e){return Object(a["a"])({url:"worker/".concat(t),method:"post",data:e})}function b(t){return Object(a["a"])({url:"worker/list",method:"post",data:t})}function m(t){return Object(a["a"])({url:"worker/add",method:"post",data:t})}function p(t,e){return Object(a["a"])({url:"worker/edit/".concat(t),method:"post",data:e})}function k(t,e){return Object(a["a"])({url:"finalsitetable/dispatchworker/".concat(t),method:"put",data:e})}function O(t,e){return Object(a["a"])({url:"finalsitetable/".concat(t),method:"post",data:e})}function j(t){return Object(a["a"])({url:"finalsitetable/list",method:"post",data:t})}function g(t){return Object(a["a"])({url:"finalsiteitem/list",method:"post",data:t})}function v(t){return Object(a["a"])({url:"finalsiteitem/add",method:"post",data:t})}function _(t,e){return Object(a["a"])({url:"finalsiteitem/edit/".concat(t),method:"post",data:e})}function E(t){return Object(a["a"])({url:"finalsiteitem/del/".concat(t),method:"post"})}function y(t){return Object(a["a"])({url:"finalsiteprocess/list",method:"post",data:t})}function w(t){return Object(a["a"])({url:"finalsiteprocess/add",method:"post",data:t})}function T(t){return Object(a["a"])({url:"finalsitecollect/list",method:"post",data:t})}function S(t,e){return Object(a["a"])({url:"finalsitecollect/".concat(t),method:"post",data:e})}function P(t,e){return Object(a["a"])({url:"finalsettle/".concat(t),method:"post",data:e})}function x(t){return Object(a["a"])({url:"finalsettleprocess/add",method:"post",data:t})}function N(t){return Object(a["a"])({url:"finalsettle/list",method:"post",data:t})}function A(t){return Object(a["a"])({url:"finalsettleprocess/list",method:"post",data:t})}function I(t,e){return Object(a["a"])({url:"finalmaterial/".concat(t),method:"post",data:e})}function M(t){return Object(a["a"])({url:"finalmaterialprocess/add",method:"post",data:t})}function D(t){return Object(a["a"])({url:"finalmaterialprocess/list",method:"post",data:t})}function C(t){return Object(a["a"])({url:"finalmaterialitem/list",method:"post",data:t})}function L(t){return Object(a["a"])({url:"finalmaterialitem/add",method:"post",data:t})}function U(t,e){return Object(a["a"])({url:"finalmaterialitem/edit/".concat(t),method:"post",data:e})}function z(t,e){return Object(a["a"])({url:"selectmatlist/".concat(t),method:"post",data:e})}function R(t){return Object(a["a"])({url:"materials",method:"post",data:t})}function K(t){return Object(a["a"])({url:"materialtypes",method:"post",data:t})}function F(t){return Object(a["a"])({url:"materialcarts",method:"post",data:t})}function $(t){return Object(a["a"])({url:"materialcartadd",method:"post",data:t})}function q(t,e){return Object(a["a"])({url:"materialcartedit/".concat(t),method:"post",data:e})}function H(t,e){return Object(a["a"])({url:"materialcartdel/".concat(t),method:"post",data:e})}function G(t){return Object(a["a"])({url:"materialordercreate",method:"post",data:t})}function B(t,e){return Object(a["a"])({url:"materialorder/".concat(t),method:"post",data:e})}function Y(t){return Object(a["a"])({url:"materialorderitems",method:"post",data:t})}function W(t){return Object(a["a"])({url:"materialorderprocess",method:"post",data:t})}function J(t){return Object(a["a"])({url:"materialorderprocessadd",method:"post",data:t})}function Q(t){return Object(a["a"])({url:"materialorderprocesscheck",method:"post",data:t})}function V(t){return Object(a["a"])({url:"suppliermaterialorders",method:"post",data:t})}function X(t){return Object(a["a"])({url:"materialordercartadd",method:"post",data:t})}function Z(t){return Object(a["a"])({url:"materialsettleadd",method:"post",data:t})}function tt(t){return Object(a["a"])({url:"materialsettles",method:"post",data:t})}function et(t,e){return Object(a["a"])({url:"materialsettle/".concat(t),method:"post",data:e})}function nt(t){return Object(a["a"])({url:"materialsettleprocess",method:"post",data:t})}function at(t){return Object(a["a"])({url:"materialsettleprocessadd",method:"post",data:t})}function rt(t){return Object(a["a"])({url:"materialitems",method:"post",data:t})}function ut(t){return Object(a["a"])({url:"materialcartselectitem",method:"post",data:t})}function ct(t){return Object(a["a"])({url:"materialcartbatchadd",method:"post",data:t})}function ot(t){return Object(a["a"])({url:"supplieraccounts",method:"post",data:t})}function it(t){return Object(a["a"])({url:"materialsettlededuction",method:"post",data:t})}function dt(t){return Object(a["a"])({url:"suppliercontractdeductions",method:"post",data:t})}function ft(t){return Object(a["a"])({url:"supplierpunishdeductions",method:"post",data:t})}function lt(t){return Object(a["a"])({url:"myshops",method:"post",data:t})}function st(t){return Object(a["a"])({url:"finalsite/add",method:"post",data:t})}function ht(t){return Object(a["a"])({url:"selectmaterialadd",method:"post",data:t})}function bt(t,e){return Object(a["a"])({url:"finalselectmaterial/".concat(t),method:"post",data:e})}function mt(t){return Object(a["a"])({url:"finalselectmaterialitem/list",method:"post",data:t})}function pt(t,e){return Object(a["a"])({url:"finalselectmaterialitem/edit/".concat(t),method:"post",data:e})}function kt(t){return Object(a["a"])({url:"selectmaterialordercreate",method:"post",data:t})}function Ot(t){return Object(a["a"])({url:"finalchangetypes",method:"post",data:t})}function jt(t){return Object(a["a"])({url:"matauxiliarys",method:"post",data:t})}function gt(t){return Object(a["a"])({url:"ordercartbatchadd",method:"post",data:t})}function vt(t){return Object(a["a"])({url:"materialleadercheck",method:"post",data:t})}function _t(t){return Object(a["a"])({url:"materialordersatic",method:"post",data:t})}function Et(t){return Object(a["a"])({url:"finalmaterialsettleexport",method:"post",data:t})}function yt(t){return Object(a["a"])({url:"finalarea",method:"post",data:t})}function wt(t){return Object(a["a"])({url:"finalmaterialordersettleexport",method:"post",data:t})}function Tt(t){return Object(a["a"])({url:"finalorderpunish/add",method:"post",data:t})}function St(t){return Object(a["a"])({url:"finalorderpunishs",method:"post",data:t})}function Pt(t){return Object(a["a"])({url:"orderpunishdeductions",method:"post",data:t})}function xt(t){return Object(a["a"])({url:"finalmaterialsettlepaymentexport/".concat(t),method:"get"})}function Nt(t,e){return Object(a["a"])({url:"matpickwork/managercompleted/".concat(t),method:"put",data:e})}function At(t,e){return Object(a["a"])({url:"matpickwork/acceptancepassed/".concat(t),method:"put",data:e})}function It(t,e){return Object(a["a"])({url:"matpickwork/acceptancefailed/".concat(t),method:"put",data:e})}function Mt(t,e){return Object(a["a"])({url:"matpickwork/extensionRequest/".concat(t),method:"put",data:e})}function Dt(t,e){return Object(a["a"])({url:"matpickwork/addMsg/".concat(t),method:"put",data:e})}},"9f4c":function(t,e,n){"use strict";n("9a83");var a=n("f564"),r=(n("d9e2"),n("d401"),n("d3b7"),n("bc3a")),u=n.n(r),c=n("058b"),o=n("e311"),i=n("1854"),d=u.a.create({baseURL:i["a"].baseApi,timeout:2e4});d.interceptors.request.use((function(t){var e=Object(o["a"])();return e&&(t.headers["Access-Token"]=e),t}),(function(t){return console.log(t),Promise.reject(t)})),d.interceptors.response.use((function(t){var e=t.data;return 200!==e.code?(Object(a["a"])({type:"danger",message:e.message}),Promise.reject(new Error(e.message||"Error"))):e}),(function(t){return console.log(t),t&&t.response?(Object(a["a"])({type:"danger",message:t.response.data.message}),401===t.response.status&&c["a"].dispatch("user/resetToken").then((function(){location.reload()}))):Object(a["a"])({type:"danger",message:t.message}),Promise.reject(t)})),e["a"]=d},b9a8:function(t,e,n){"use strict";n.r(e);var a={loading:!1},r={showLoading:function(t){t.loading=!0},hideLoading:function(t){t.loading=!1}},u={};e["default"]={namespaced:!0,state:a,mutations:r,actions:u}},bf29:function(t,e,n){},da93:function(t,e){t.exports={title:"无同",footer:"@2021 工人标准化系统",logo:"https://image.nczyzs.com/17537730014078257006196893495.png",imageDomain:"https://image.nczyzs.com/",validCss:["bg-gray-500","text-gray-500","text-yellow-500","text-blue-500","text-pink-500","text-purple-500","text-indigo-500","text-red-500"]}},e311:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return i}));var a=n("a78e"),r=n.n(a),u="Work-Token";function c(){return r.a.get(u)}function o(t){return r.a.set(u,t)}function i(){return r.a.remove(u)}},e886:function(t,e,n){},eaf8:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"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(t,e){return"object"!==Object(a["a"])(t)&&(t={}),Array.isArray(e)?e.slice():(Object.keys(e).forEach((function(n){var r=e[n];"object"===Object(a["a"])(r)?t[n]=u(t[n],r):t[n]=r})),t)}}});