1 |
- (function(t){function e(e){for(var a,r,o=e[0],i=e[1],d=e[2],f=0,l=[];f<o.length;f++)r=o[f],Object.prototype.hasOwnProperty.call(u,r)&&u[r]&&l.push(u[r][0]),u[r]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a]);s&&s(e);while(l.length)l.shift()();return c.push.apply(c,d||[]),n()}function n(){for(var t,e=0;e<c.length;e++){for(var n=c[e],a=!0,r=1;r<n.length;r++){var o=n[r];0!==u[o]&&(a=!1)}a&&(c.splice(e--,1),t=i(i.s=n[0]))}return t}var a={},r={app:0},u={app:0},c=[];function o(t){return i.p+"static/js/"+({}[t]||t)+"."+{"chunk-0eee12ff":"bc69b463","chunk-2750f497":"94063e66","chunk-2b08471c":"787f5133","chunk-2d0a3959":"d0142d0d","chunk-2d0c190b":"e26c5ff0","chunk-2d222948":"1eef153a","chunk-2d229882":"2b5f40c6","chunk-385c1232":"a2c13692","chunk-3b409886":"bdee8403","chunk-3d0adc22":"6a73ee3c","chunk-5051ebbe":"f51a1c27","chunk-5cdf33a8":"01b82322","chunk-18d65f86":"a7b6d90b","chunk-1d2a19b0":"033f27fc","chunk-210ed456":"adb9dd49","chunk-370226ef":"a328b8b9","chunk-52ca2540":"985806d0","chunk-7709c110":"5baeefbe","chunk-ab7ccd9c":"fe121e46","chunk-10fc7546":"9b6b77b9","chunk-25b8fa37":"0491ed80","chunk-b3b16a94":"33a297ab","chunk-ef630e42":"3093cfb7","chunk-f78198a6":"b55e0aab","chunk-63a2e174":"45dfd2fa","chunk-4795ad6a":"6c8d1b38","chunk-caab5d34":"d361da52","chunk-65449529":"1d30143e","chunk-70b9cbbe":"b00f3f53","chunk-958e7c32":"c1165b09","chunk-40fa5b30":"d8dbba5e","chunk-2d0cb684":"2471d9fe","chunk-2d22c700":"63d4a821","chunk-e8851a3e":"bea2d539","chunk-f8e08c60":"61ccbaf8","chunk-acb44fe2":"3c5ed07b","chunk-ce808440":"434e924b","chunk-e104970a":"714a1ac7","chunk-f75d4388":"611e5124"}[t]+".js"}function i(e){if(a[e])return a[e].exports;var n=a[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(t){var e=[],n={"chunk-0eee12ff":1,"chunk-2b08471c":1,"chunk-3d0adc22":1,"chunk-5051ebbe":1,"chunk-5cdf33a8":1,"chunk-18d65f86":1,"chunk-1d2a19b0":1,"chunk-210ed456":1,"chunk-370226ef":1,"chunk-52ca2540":1,"chunk-7709c110":1,"chunk-ab7ccd9c":1,"chunk-10fc7546":1,"chunk-25b8fa37":1,"chunk-b3b16a94":1,"chunk-ef630e42":1,"chunk-f78198a6":1,"chunk-63a2e174":1,"chunk-4795ad6a":1,"chunk-caab5d34":1,"chunk-70b9cbbe":1,"chunk-958e7c32":1,"chunk-40fa5b30":1,"chunk-ce808440":1,"chunk-e104970a":1,"chunk-f75d4388":1};r[t]?e.push(r[t]):0!==r[t]&&n[t]&&e.push(r[t]=new Promise((function(e,n){for(var a="static/css/"+({}[t]||t)+"."+{"chunk-0eee12ff":"7b58fa11","chunk-2750f497":"31d6cfe0","chunk-2b08471c":"5555713c","chunk-2d0a3959":"31d6cfe0","chunk-2d0c190b":"31d6cfe0","chunk-2d222948":"31d6cfe0","chunk-2d229882":"31d6cfe0","chunk-385c1232":"31d6cfe0","chunk-3b409886":"31d6cfe0","chunk-3d0adc22":"6ad24168","chunk-5051ebbe":"f2f3d518","chunk-5cdf33a8":"f445de10","chunk-18d65f86":"dc453092","chunk-1d2a19b0":"fbfcc2de","chunk-210ed456":"609732be","chunk-370226ef":"58d77fcb","chunk-52ca2540":"197f325d","chunk-7709c110":"efdf03a4","chunk-ab7ccd9c":"7891d348","chunk-10fc7546":"b7de242f","chunk-25b8fa37":"cefdd0d0","chunk-b3b16a94":"3fc82264","chunk-ef630e42":"1cf950de","chunk-f78198a6":"74a6fc14","chunk-63a2e174":"8ef2d0b6","chunk-4795ad6a":"c06e92d6","chunk-caab5d34":"ac014900","chunk-65449529":"31d6cfe0","chunk-70b9cbbe":"12ae541b","chunk-958e7c32":"f2f3d518","chunk-40fa5b30":"874a10ad","chunk-2d0cb684":"31d6cfe0","chunk-2d22c700":"31d6cfe0","chunk-e8851a3e":"31d6cfe0","chunk-f8e08c60":"31d6cfe0","chunk-acb44fe2":"31d6cfe0","chunk-ce808440":"f2f3d518","chunk-e104970a":"37203f4b","chunk-f75d4388":"f2f3d518"}[t]+".css",u=i.p+a,c=document.getElementsByTagName("link"),o=0;o<c.length;o++){var d=c[o],f=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(f===a||f===u))return e()}var l=document.getElementsByTagName("style");for(o=0;o<l.length;o++){d=l[o],f=d.getAttribute("data-href");if(f===a||f===u)return e()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=e,s.onerror=function(e){var a=e&&e.target&&e.target.src||u,c=new Error("Loading CSS chunk "+t+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=a,delete r[t],s.parentNode.removeChild(s),n(c)},s.href=u;var h=document.getElementsByTagName("head")[0];h.appendChild(s)})).then((function(){r[t]=0})));var a=u[t];if(0!==a)if(a)e.push(a[2]);else{var c=new Promise((function(e,n){a=u[t]=[e,n]}));e.push(a[2]=c);var d,f=document.createElement("script");f.charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.src=o(t);var l=new Error;d=function(e){f.onerror=f.onload=null,clearTimeout(s);var n=u[t];if(0!==n){if(n){var a=e&&("load"===e.type?"missing":e.type),r=e&&e.target&&e.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+r+")",l.name="ChunkLoadError",l.type=a,l.request=r,n[1](l)}u[t]=void 0}};var s=setTimeout((function(){d({type:"timeout",target:f})}),12e4);f.onerror=f.onload=d,document.head.appendChild(f)}return Promise.all(e)},i.m=t,i.c=a,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(n,a,function(e){return t[e]}.bind(null,a));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/final/",i.oe=function(t){throw console.error(t),t};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],f=d.push.bind(d);d.push=e,d=d.slice();for(var l=0;l<d.length;l++)e(d[l]);var s=f;c.push(["221a","chunk-vendors"]),n()})({"058b":function(t,e,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(t){return t.user.id},token:function(t){return t.user.token},headimgurl:function(t){return t.user.headimgurl},name:function(t){return t.user.name},nickname:function(t){return t.user.nickname},phone:function(t){return t.user.phone},setting:function(t){return t.user.setting},auths:function(t){return t.user.auths},hasAuthorization:function(t){return function(e){return t.user.auths.some((function(t){return t===e}))}},roles:function(t){return t.user.roles},customer:function(t){return t.user.customer},role_name:function(t){return t.user.role_name},dept_name:function(t){return t.user.dept_name},userinfo:function(t){return t.user.userinfo},my:function(t){return t.user.my},supplier:function(t){return t.user.supplier}}),c=u,o=n("eaf8");a["default"].use(r["a"]);var i=n("0678"),d=i.keys().reduce((function(t,e){var n=e.replace(/^\.\/(.*)\.\w+$/,"$1"),a=i(e);return t[n]=a.default,t}),{}),f=n("47ba"),l=f.keys().reduce((function(t,e){var n=e.replace(/^\.\/(.*)\.\w+$/,"$1"),a=f(e);return t[n]=a.default,t}),{});d=Object(o["b"])(d,l);var s=new r["a"].Store({modules:d,getters:c});e["a"]=s},"0678":function(t,e,n){var a={"./user.js":"584f"};function r(t){var e=u(t);return n(e)}function u(t){if(!n.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}r.keys=function(){return Object.keys(a)},r.resolve=u,t.exports=r,r.id="0678"},1854:function(t,e,n){"use strict";var a={development:{baseApi:"http://localhost:5000/api/final/",baseUrl:"http://localhost:5000/"},production:{baseApi:"/api/final/",baseUrl:"https://pm.nczyzs.com/"}};e["a"]=a["production"]},"221a":function(t,e,n){"use strict";n.r(e);n("9cb7");var a=n("66fd"),r=(n("d1cf"),n("ee83")),u=(n("6d73"),n("473d")),c=(n("342a"),n("1437")),o=(n("5d17"),n("f9bd")),i=(n("2b28"),n("9ed2")),d=(n("414a"),n("7a82")),f=(n("a909"),n("3acc")),l=(n("3c32"),n("417e")),s=(n("4142"),n("39d1")),h=(n("91d5"),n("f0ca")),b=(n("e17f"),n("2241")),m=(n("1f87"),n("510b")),p=(n("77f8"),n("dc0f")),k=(n("db2c"),n("1125")),O=(n("e930"),n("8f80")),j=(n("5f5f"),n("f253")),g=(n("8a58"),n("e41f")),v=(n("c3a6"),n("ad06")),_=(n("0ec5"),n("21ab")),E=(n("3df5"),n("2830")),y=(n("4b0a"),n("2bb1")),w=(n("7844"),n("5596")),T=(n("e7e5"),n("d399")),S=(n("bda7"),n("5e46")),P=(n("da3c"),n("0b33")),x=(n("0653"),n("34e9")),N=(n("c194"),n("7744")),A=(n("2994"),n("2bdd")),I=(n("5246"),n("6b41")),M=(n("8fec"),n("7bd9")),D=(n("a52c"),n("2ed4")),C=(n("537a"),n("ac28")),L=(n("4056"),n("44bf")),U=(n("66cf"),n("343b")),z=(n("be7f"),n("565f")),R=(n("38d5"),n("772a")),K=(n("66b9"),n("b650")),F=(n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("2b0e")),$=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg-gray-100 min-h-screen text-gray-600",attrs:{id:"app"}},[e("Loading",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}]}),e("router-view")],1)},q=[],H=function(){var t=this,e=t._self._c;return e("div",{staticClass:"fixed z-max w-full h-full flex justify-center items-center bg-white bg-opacity-50"},[e("van-loading",{attrs:{type:"spinner",color:"#1989fa"}})],1)},G=[],B=(n("ac1e"),n("543e"));F["default"].use(B["a"]);var Y={name:"Loading",data:function(){return{}}},W=Y,J=n("2877"),Q=Object(J["a"])(W,H,G,!1,null,null,null),V=Q.exports,X={components:{Loading:V},computed:{loading:function(){return this.$store.state.loading.loading}}},Z=X,tt=Object(J["a"])(Z,$,q,!1,null,null,null),et=tt.exports,nt=n("058b"),at=(n("c740"),n("c975"),n("d3b7"),n("3ca3"),n("ddb0"),n("8c4f")),rt=n("e311"),ut=function(){var t=this,e=t._self._c;return e("div",[e("router-view"),e("app-footer"),e("tabbar")],1)},ct=[],ot=function(){var t=this,e=t._self._c;return e("p",{staticClass:"text-center pb-20 pt-10 text-gray-400 text-xs"},[t._v(t._s(t.data))])},it=[],dt=n("da93"),ft=n.n(dt),lt={name:"Footer",data:function(){return{data:dt["footer"]}}},st=lt,ht=Object(J["a"])(st,ot,it,!1,null,null,null),bt=ht.exports,mt=function(){var t=this,e=t._self._c;return e("van-tabbar",{staticClass:"z-max",attrs:{route:""}},[t.supplier?t._e():e("van-tabbar-item",{attrs:{to:"/myworksite",icon:"wap-home-o"}},[t._v("工地")]),t.supplier?t._e():e("van-tabbar-item",{attrs:{to:"/workers",icon:"friends-o"}},[t._v("工人")]),e("van-tabbar-item",{attrs:{to:"/personal",icon:"contact"}},[t._v("我的")])],1)},pt=[],kt=n("5354"),Ot={data:function(){return{supplier:!1,active:0,icon:{repair_active:"repair",repair_inactive:"repair"}}},mounted:function(){this.supplier=this.$store.getters.supplier},methods:{checkAuth:kt["a"]}},jt=Ot,gt=Object(J["a"])(jt,mt,pt,!1,null,null,null),vt=gt.exports,_t={name:"Page",components:{AppFooter:bt,Tabbar:vt}},Et=_t,yt=Object(J["a"])(Et,ut,ct,!1,null,null,null),wt=yt.exports,Tt=function(){var t=this,e=t._self._c;return e("div",[e("router-view"),e("app-footer")],1)},St=[],Pt={name:"Page",components:{AppFooter:bt}},xt=Pt,Nt=Object(J["a"])(xt,Tt,St,!1,null,null,null),At=Nt.exports,It=n("da93");F["default"].use(at["a"]);var Mt=[{path:"/redirect",children:[{path:"/redirect/:path(.*)",component:function(){return n.e("chunk-2d0a3959").then(n.bind(null,"0399"))}}]},{path:"/404",component:function(){return n.e("chunk-2d0c190b").then(n.bind(null,"471c"))},hidden:!0},{path:"/login",component:function(){return n.e("chunk-385c1232").then(n.bind(null,"4df46"))},meta:{title:"登录"},hidden:!0},{path:"/register",component:function(){return n.e("chunk-3b409886").then(n.bind(null,"4895"))},meta:{title:"注册"},hidden:!0},{path:"/personal/password",component:At,children:[{path:"",component:function(){return n.e("chunk-2d229882").then(n.bind(null,"de9d"))},meta:{title:"修改密码"}}]},{path:"/",component:wt,redirect:"/personal",children:[{path:"/myworksite",component:function(){return n.e("chunk-0eee12ff").then(n.bind(null,"a752"))},meta:{title:"我的工地"}},{path:"/orders",component:function(){return n.e("chunk-5051ebbe").then(n.bind(null,"0e00"))},meta:{title:"材料订单"}},{path:"/materialsettles",component:function(){return Promise.all([n.e("chunk-5cdf33a8"),n.e("chunk-52ca2540")]).then(n.bind(null,"b27d"))},meta:{title:"材料结算"}},{path:"/collects",component:function(){return n.e("chunk-ce808440").then(n.bind(null,"e8e0"))},meta:{title:"汇总"}},{path:"/workers",component:function(){return n.e("chunk-958e7c32").then(n.bind(null,"c841"))},meta:{title:"工人管理"}},{path:"/address",component:function(){return Promise.all([n.e("chunk-63a2e174"),n.e("chunk-4795ad6a")]).then(n.bind(null,"63ac"))},meta:{title:"通讯录",tabbar:!0}},{path:"/personal",component:function(){return n.e("chunk-70b9cbbe").then(n.bind(null,"8311"))},meta:{title:"个人信息"}},{path:"/selectmaterial",component:function(){return Promise.all([n.e("chunk-5cdf33a8"),n.e("chunk-210ed456")]).then(n.bind(null,"4d43"))},meta:{title:"材料"}},{path:"/materials",component:function(){return Promise.all([n.e("chunk-5cdf33a8"),n.e("chunk-7709c110")]).then(n.bind(null,"d9b9"))},meta:{title:"材料"}}]},{path:"/nav",component:At,children:[{path:"",component:function(){return n.e("chunk-2d222948").then(n.bind(null,"cee5"))},meta:{title:"后台入口"}}]},{path:"/qa",component:At,children:[{path:"list",component:function(){return n.e("chunk-acb44fe2").then(n.bind(null,"0c5b"))},meta:{title:"常见问题"}},{path:":id(\\d+)/info",component:function(){return n.e("chunk-2750f497").then(n.bind(null,"8d51"))},meta:{title:"问题详情"}}]},{path:"/worksite",component:At,children:[{path:"/addworksite",component:function(){return n.e("chunk-3d0adc22").then(n.bind(null,"33e6"))},meta:{title:"添加工地"}},{path:"/detail/:id(\\d+)",component:function(){return n.e("chunk-2b08471c").then(n.bind(null,"45f0"))},meta:{title:"工地详情"}},{path:"/table/:id(\\d+)",component:function(){return Promise.all([n.e("chunk-ab7ccd9c"),n.e("chunk-40fa5b30"),n.e("chunk-f8e08c60")]).then(n.bind(null,"8875"))},meta:{title:"决算表详情"}},{path:"/collect/:id(\\d+)",component:function(){return Promise.all([n.e("chunk-ab7ccd9c"),n.e("chunk-40fa5b30"),n.e("chunk-2d22c700")]).then(n.bind(null,"f2db"))},meta:{title:"汇总详情"}},{path:"/table/:id(\\d+)/worker",component:function(){return n.e("chunk-958e7c32").then(n.bind(null,"c841"))},meta:{title:"工人管理"}},{path:"/material/:id(\\d+)",component:function(){return Promise.all([n.e("chunk-ab7ccd9c"),n.e("chunk-40fa5b30"),n.e("chunk-e8851a3e")]).then(n.bind(null,"e68b"))},meta:{title:"材料详情"}},{path:"/settle/:id(\\d+)",component:function(){return Promise.all([n.e("chunk-ab7ccd9c"),n.e("chunk-40fa5b30"),n.e("chunk-2d0cb684")]).then(n.bind(null,"4a12"))},meta:{title:"结算详情"}},{path:"/selectmat/:id(\\d+)",component:function(){return n.e("chunk-f75d4388").then(n.bind(null,"d023"))},meta:{title:"选材"}},{path:"/selectmaterial/:id(\\d+)",component:function(){return Promise.all([n.e("chunk-5cdf33a8"),n.e("chunk-210ed456")]).then(n.bind(null,"4d43"))},meta:{title:"选材"}},{path:"/templatematerial/:id(\\d+)",component:function(){return Promise.all([n.e("chunk-5cdf33a8"),n.e("chunk-1d2a19b0")]).then(n.bind(null,"73a4"))},meta:{title:"选材"}},{path:"/pkgmaterial/:id(\\d+)",component:function(){return Promise.all([n.e("chunk-5cdf33a8"),n.e("chunk-f78198a6")]).then(n.bind(null,"b074"))},meta:{title:"选材"}},{path:"/pkgmat/:id(\\d+)",component:function(){return Promise.all([n.e("chunk-5cdf33a8"),n.e("chunk-b3b16a94")]).then(n.bind(null,"2a45"))},meta:{title:"选材单"}},{path:"/confirmorder/:id(\\d+)",component:function(){return Promise.all([n.e("chunk-5cdf33a8"),n.e("chunk-370226ef")]).then(n.bind(null,"31d2"))},meta:{title:"确认订单"}},{path:"/orderlist",component:function(){return Promise.all([n.e("chunk-5cdf33a8"),n.e("chunk-ab7ccd9c"),n.e("chunk-10fc7546")]).then(n.bind(null,"c60f"))},meta:{title:"材料订单"}},{path:"/order/:id(\\d+)",component:function(){return Promise.all([n.e("chunk-5cdf33a8"),n.e("chunk-ab7ccd9c"),n.e("chunk-25b8fa37")]).then(n.bind(null,"9860"))},meta:{title:"订单详情"}},{path:"/modifyorder/:id(\\d+)",component:function(){return Promise.all([n.e("chunk-5cdf33a8"),n.e("chunk-18d65f86")]).then(n.bind(null,"aac8"))},meta:{title:"修改订单"}},{path:"/materialsettle/:id(\\d+)",component:function(){return Promise.all([n.e("chunk-5cdf33a8"),n.e("chunk-ef630e42")]).then(n.bind(null,"6db9"))},meta:{title:"材料结算"}}]},{path:"/worker",component:At,children:[{path:"add",component:function(){return n.e("chunk-e104970a").then(n.bind(null,"0180"))},meta:{title:"添加工人"}},{path:":id(\\d+)/edit",component:function(){return n.e("chunk-e104970a").then(n.bind(null,"0180"))},meta:{title:"编辑工人"}}]},{path:"/personal/info",component:At,children:[{path:"",component:function(){return n.e("chunk-65449529").then(n.bind(null,"067f"))},meta:{title:"个人信息"}}]},{path:"/personal/select",component:At,children:[{path:"",component:function(){return Promise.all([n.e("chunk-63a2e174"),n.e("chunk-caab5d34")]).then(n.bind(null,"5630"))},meta:{title:"选择人员"}}]},{path:"*",redirect:"/404"}],Dt=new at["a"]({routes:Mt}),Ct=["/login","/nav","/register"];Dt.beforeEach((function(t,e,n){var a=t.meta&&t.meta.title;a&&(document.title=It.title+"-"+a);var r=Object(rt["a"])();if(r)if("/login"===t.path)n({path:"/"});else{var u=nt["a"].getters.user_id;0===u?nt["a"].dispatch("user/getInfo").then((function(){n()})):n()}else-1!==Ct.findIndex((function(e){return 0==t.path.indexOf(e)}))?n():n("/login?redirect=".concat(t.path))}));var Lt=Dt,Ut=(n("b972"),n("bf29"),n("e886"),n("bc3a")),zt=n.n(Ut),Rt=n("1854"),Kt=n("8237"),Ft=n.n(Kt),$t=n("bd0c"),qt=n.n($t),Ht=n("5c96"),Gt=n.n(Ht),Bt=(n("0fae"),function(t){t.directive("auth",{inserted:function(t,e){Object(kt["a"])(e.value)||t.remove()}}),t.directive("auth-all",{inserted:function(t,e){Object(kt["a"])(e.value,!0)||t.remove()}})});F["default"].use(qt.a,{ak:"jUGYKqjP0ThYsH4m0IMXWDZCQUbkzVGB"}),F["default"].use(Gt.a),F["default"].use(K["a"]),F["default"].use(R["a"]),F["default"].use(z["a"]),F["default"].use(U["a"]),F["default"].use(L["a"]),F["default"].use(C["a"]),F["default"].use(D["a"]),F["default"].use(M["a"]),F["default"].use(I["a"]),F["default"].use(A["a"]),F["default"].use(N["a"]),F["default"].use(x["a"]),F["default"].use(P["a"]),F["default"].use(S["a"]),F["default"].use(T["a"]),F["default"].use(w["a"]),F["default"].use(y["a"]),F["default"].use(E["a"]),F["default"].use(_["a"]),F["default"].use(v["a"]),F["default"].use(g["a"]),F["default"].use(j["a"]),F["default"].use(O["a"]),F["default"].use(k["a"]),F["default"].use(p["a"]),F["default"].use(m["a"]),F["default"].use(b["a"]),F["default"].use(h["a"]),F["default"].use(s["a"]),F["default"].use(l["a"]),F["default"].use(f["a"]),F["default"].use(d["a"]),F["default"].use(i["a"]),F["default"].use(o["a"]),F["default"].use(c["a"]),F["default"].use(u["a"]),F["default"].use(r["a"]),F["default"].use(a["a"]),F["default"].config.productionTip=!1,F["default"].prototype.$env=Rt["a"],F["default"].prototype.$axios=zt.a,F["default"].prototype.$settings=ft.a,F["default"].prototype.$md5=Ft.a,F["default"].use(Bt),new F["default"]({router:Lt,store:nt["a"],el:"#app",render:function(t){return t(et)}})},2779:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n("9f4c");function r(t){return Object(a["a"])({url:"login",method:"post",data:t})}},"47ba":function(t,e,n){var a={"./loading.js":"b9a8"};function r(t){var e=u(t);return n(e)}function u(t){if(!n.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}r.keys=function(){return Object.keys(a)},r.resolve=u,t.exports=r,r.id="47ba"},5354:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("a623"),n("45fc"),n("d3b7");var a=n("058b");function r(t,e){"undefined"===typeof e&&(e=!1);var n=a["a"].getters.hasAuthorization;return"string"===typeof t?n(t):t&&t instanceof Array&&t.length>0?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)}}});
|