app.1fb37975.js 10 KB

1
  1. (function(e){function n(n){for(var a,c,u=n[0],i=n[1],d=n[2],h=0,l=[];h<u.length;h++)c=u[h],Object.prototype.hasOwnProperty.call(o,c)&&o[c]&&l.push(o[c][0]),o[c]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);f&&f(n);while(l.length)l.shift()();return r.push.apply(r,d||[]),t()}function t(){for(var e,n=0;n<r.length;n++){for(var t=r[n],a=!0,c=1;c<t.length;c++){var u=t[c];0!==o[u]&&(a=!1)}a&&(r.splice(n--,1),e=i(i.s=t[0]))}return e}var a={},c={app:0},o={app:0},r=[];function u(e){return i.p+"static/js/"+({}[e]||e)+"."+{"chunk-03f11e0c":"97558887","chunk-074870dc":"ce214669","chunk-07c4d6d0":"4f12b0bd","chunk-12ec8aa1":"aa7be95b","chunk-1619e452":"e6663181","chunk-2d21022e":"7676458f","chunk-2f432dbf":"a78c8af4","chunk-37ea1d2e":"87127904","chunk-3bb50df8":"ac25f743","chunk-46972d15":"51dfbb3f","chunk-59d32064":"fbdf3f0e","chunk-5a3f9f59":"27e7c855","chunk-6e4aceda":"a12b87b7","chunk-6e7194ee":"71685ffa","chunk-70d7c530":"d5dee979","chunk-837aef8c":"1270780e","chunk-8a32f4ac":"8a07b693","chunk-c370c73c":"32633a20"}[e]+".js"}function i(n){if(a[n])return a[n].exports;var t=a[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-03f11e0c":1,"chunk-074870dc":1,"chunk-07c4d6d0":1,"chunk-12ec8aa1":1,"chunk-1619e452":1,"chunk-2f432dbf":1,"chunk-37ea1d2e":1,"chunk-3bb50df8":1,"chunk-46972d15":1,"chunk-59d32064":1,"chunk-5a3f9f59":1,"chunk-6e4aceda":1,"chunk-6e7194ee":1,"chunk-70d7c530":1,"chunk-837aef8c":1,"chunk-8a32f4ac":1,"chunk-c370c73c":1};c[e]?n.push(c[e]):0!==c[e]&&t[e]&&n.push(c[e]=new Promise((function(n,t){for(var a="static/css/"+({}[e]||e)+"."+{"chunk-03f11e0c":"f3b87d2c","chunk-074870dc":"1ada4c80","chunk-07c4d6d0":"92795e70","chunk-12ec8aa1":"332bc6dd","chunk-1619e452":"f3c9dfff","chunk-2d21022e":"31d6cfe0","chunk-2f432dbf":"a3eabafc","chunk-37ea1d2e":"fc0f0845","chunk-3bb50df8":"c5318735","chunk-46972d15":"1d395afa","chunk-59d32064":"d6fa6cf3","chunk-5a3f9f59":"e3937e23","chunk-6e4aceda":"ae4b4cf0","chunk-6e7194ee":"761d3df6","chunk-70d7c530":"d7272f41","chunk-837aef8c":"e3714a8d","chunk-8a32f4ac":"76a42dbc","chunk-c370c73c":"4771db74"}[e]+".css",o=i.p+a,r=document.getElementsByTagName("link"),u=0;u<r.length;u++){var d=r[u],h=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(h===a||h===o))return n()}var l=document.getElementsByTagName("style");for(u=0;u<l.length;u++){d=l[u],h=d.getAttribute("data-href");if(h===a||h===o)return n()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=n,f.onerror=function(n){var a=n&&n.target&&n.target.src||o,r=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=a,delete c[e],f.parentNode.removeChild(f),t(r)},f.href=o;var s=document.getElementsByTagName("head")[0];s.appendChild(f)})).then((function(){c[e]=0})));var a=o[e];if(0!==a)if(a)n.push(a[2]);else{var r=new Promise((function(n,t){a=o[e]=[n,t]}));n.push(a[2]=r);var d,h=document.createElement("script");h.charset="utf-8",h.timeout=120,i.nc&&h.setAttribute("nonce",i.nc),h.src=u(e);var l=new Error;d=function(n){h.onerror=h.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var a=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src;l.message="Loading chunk "+e+" failed.\n("+a+": "+c+")",l.name="ChunkLoadError",l.type=a,l.request=c,t[1](l)}o[e]=void 0}};var f=setTimeout((function(){d({type:"timeout",target:h})}),12e4);h.onerror=h.onload=d,document.head.appendChild(h)}return Promise.all(n)},i.m=e,i.c=a,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)i.d(t,a,function(n){return e[n]}.bind(null,a));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="",i.oe=function(e){throw console.error(e),e};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],h=d.push.bind(d);d.push=n,d=d.slice();for(var l=0;l<d.length;l++)n(d[l]);var f=h;r.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("56d7")},"23be":function(e,n,t){"use strict";var a=t("4f35"),c=t.n(a);n["default"]=c.a},"3dfd":function(e,n,t){"use strict";var a=t("4467"),c=t("23be"),o=(t("e3ff"),t("2877")),r=Object(o["a"])(c["default"],a["a"],a["b"],!1,null,null,null);n["default"]=r.exports},4467:function(e,n,t){"use strict";t.d(n,"a",(function(){return a})),t.d(n,"b",(function(){return c}));var a=function(){var e=this,n=e._self._c;e._self._setupProxy;return n("div",{attrs:{id:"app"}},[n("router-view",{staticClass:"content"})],1)},c=[]},"4f35":function(e,n){function t(){var e=0;return document.documentElement&&document.documentElement.scrollTop?e=document.documentElement.scrollTop:document.body&&(e=document.body.scrollTop),e}var a=t()||0;document.body.addEventListener("focusin",()=>{}),document.body.addEventListener("focusout",()=>{var e=window.navigator.userAgent;(e.indexOf("iPhone")>0||e.indexOf("iPad")>0)&&(document.body.scrollTop=a,document.documentElement.scrollTop=a)})},"56d7":function(e,n,t){"use strict";t.r(n);var a=t("2b0e"),c=t("3dfd"),o=t("8c4f");const r=[{path:"/cms/refresh",name:"refresh",meta:{index:3},component:e=>t.e("chunk-2d21022e").then(function(){var n=[t("b736")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms/home",name:"Home",meta:{index:3},component:e=>t.e("chunk-837aef8c").then(function(){var n=[t("40cf")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms/work",name:"work",meta:{index:3},component:e=>t.e("chunk-03f11e0c").then(function(){var n=[t("5bf1")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms/mine",name:"Mine",meta:{index:3},component:e=>t.e("chunk-12ec8aa1").then(function(){var n=[t("109a")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms/finish",name:"finish",meta:{index:3},component:e=>t.e("chunk-07c4d6d0").then(function(){var n=[t("0d9e")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms/finish/detail",name:"finishDetail",meta:{index:3},component:e=>t.e("chunk-46972d15").then(function(){var n=[t("7c15")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms/finish/detailed",name:"finishDetailed",meta:{index:3},component:e=>t.e("chunk-5a3f9f59").then(function(){var n=[t("3e1e")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms/Package/index",name:"PackageIndex",meta:{index:3},component:e=>t.e("chunk-37ea1d2e").then(function(){var n=[t("4462")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms/Package/detail",name:"PackageDetail",meta:{index:3},component:e=>t.e("chunk-1619e452").then(function(){var n=[t("4331")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms/Package/detailed",name:"PackageDetailed",meta:{index:3},component:e=>t.e("chunk-70d7c530").then(function(){var n=[t("a42d")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms/dispatch/detail",name:"dispatchDetail",meta:{index:3},component:e=>t.e("chunk-3bb50df8").then(function(){var n=[t("6a30")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms/dispatch/detailed",name:"dispatchDetailed",meta:{index:3},component:e=>t.e("chunk-59d32064").then(function(){var n=[t("b3a6")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms/inventory/detail",name:"inventoryDetail",meta:{index:3},component:e=>t.e("chunk-2f432dbf").then(function(){var n=[t("0119")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms/inventory/index",name:"inventoryIndex",meta:{index:3},component:e=>t.e("chunk-6e7194ee").then(function(){var n=[t("ccd2")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms/ceshi",name:"ceshi",meta:{index:3},component:e=>t.e("chunk-6e4aceda").then(function(){var n=[t("e5c7")];e.apply(null,n)}.bind(this)).catch(t.oe)}];var u=r;const i=o["a"].prototype.push;o["a"].prototype.push=function(e){return i.call(this,e).catch(e=>e)},a["default"].use(o["a"]);const d=[{path:"/",name:"Login",meta:{index:1,title:"九方软件"},component:e=>t.e("chunk-c370c73c").then(function(){var n=[t("a55b")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms/print",name:"print",component:e=>t.e("chunk-8a32f4ac").then(function(){var n=[t("d027")];e.apply(null,n)}.bind(this)).catch(t.oe)},{path:"/cms",name:"Cms",meta:{index:2},component:e=>t.e("chunk-074870dc").then(function(){var n=[t("ea84")];e.apply(null,n)}.bind(this)).catch(t.oe),children:u}],h=new o["a"]({routes:d,mode:"hash",linkActiveClass:"active"});h.beforeEach((e,n,t)=>{if("/"===e.path)t();else{const n=localStorage.getItem("token");n||"/cms/print"===e.path?t():t("/")}t()});var l=h,f=t("2f62");a["default"].use(f["a"]);var s=new f["a"].Store({state:{},mutations:{},actions:{},modules:{}}),p=t("cee4");let m={};const k=p["a"].create(m);m={timeout:0,withCredentials:!0},k.interceptors.request.use((function(e){const n=localStorage.getItem("token"),t=JSON.parse(localStorage.getItem("site")),a="http://fyy_api.qingyaokeji.com";return e.url=a+e.url,"http://121.36.142.167:7774/jbl/api/mes/login"===e.data.url||"http://121.36.142.167:7774/jbl/api/site/all/ignore-action?_allow_anonymous=true"===e.data.url?e.data.header=["Content-Type:application/json"]:e.data.header=["Authorization:Bearer "+n,"Content-Type:application/json","Site:"+t.site],e}),(function(e){return Promise.reject(e)})),k.interceptors.response.use(e=>200===e.status?200===e.data.code?e.data:401===e.data.code?(localStorage.removeItem("mobile_token"),location.reload()):(a["default"].prototype.$Message.error(e.data.msg||"未知错误"),e.data||e):a["default"].prototype.$Message.error("请求超时"),e=>(a["default"].prototype.$Notice.error({title:"请求失败",desc:e}),e));var b=k,v=t("5f5b"),y=t("b1e0"),g=t("f825"),x=t.n(g),w=(t("f8ce"),{stringToHex(e){var n=(new TextEncoder).encode(e),t=Array.prototype.map.call(n,(function(e){return("0"+e.toString(16)).slice(-2)})).join("");return t},hexToString(e){var n=e.match(/.{1,2}/g).map((function(e){return parseInt(e,16)})),t=(new TextDecoder).decode(new Uint8Array(n));return t}}),P=(t("f9e3"),t("2dd8"),t("bb6f")),j=t.n(P);a["default"].use(x.a),a["default"].use(j.a),a["default"].prototype.func=w,a["default"].use(v["a"]),a["default"].use(y["a"]),a["default"].config.productionTip=!1,a["default"].prototype.axios=b,new a["default"]({router:l,store:s,render:e=>e(c["default"])}).$mount("#app")},8537:function(e,n,t){},e3ff:function(e,n,t){"use strict";t("8537")}});