app.16145d46.js 10 KB

1
  1. (function(e){function n(n){for(var c,a,u=n[0],i=n[1],d=n[2],h=0,l=[];h<u.length;h++)a=u[h],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&l.push(o[a][0]),o[a]=0;for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c]);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],c=!0,a=1;a<t.length;a++){var u=t[a];0!==o[u]&&(c=!1)}c&&(r.splice(n--,1),e=i(i.s=t[0]))}return e}var c={},a={app:0},o={app:0},r=[];function u(e){return i.p+"static/js/"+({}[e]||e)+"."+{"chunk-034f76bc":"c8562980","chunk-03f11e0c":"97558887","chunk-074870dc":"ce214669","chunk-07c4d6d0":"4f12b0bd","chunk-0c0d0747":"8d0aff14","chunk-12ec8aa1":"aa7be95b","chunk-1619e452":"e6663181","chunk-2d21022e":"7676458f","chunk-2f432dbf":"a78c8af4","chunk-37ea1d2e":"87127904","chunk-4bb52fbc":"e2c1164c","chunk-5412dd05":"fe7b94fd","chunk-59d32064":"fbdf3f0e","chunk-5c9f33f1":"2b576b74","chunk-6e4aceda":"a12b87b7","chunk-6e7194ee":"71685ffa","chunk-70d7c530":"d5dee979","chunk-c370c73c":"32633a20"}[e]+".js"}function i(n){if(c[n])return c[n].exports;var t=c[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-034f76bc":1,"chunk-03f11e0c":1,"chunk-074870dc":1,"chunk-07c4d6d0":1,"chunk-0c0d0747":1,"chunk-12ec8aa1":1,"chunk-1619e452":1,"chunk-2f432dbf":1,"chunk-37ea1d2e":1,"chunk-4bb52fbc":1,"chunk-5412dd05":1,"chunk-59d32064":1,"chunk-5c9f33f1":1,"chunk-6e4aceda":1,"chunk-6e7194ee":1,"chunk-70d7c530":1,"chunk-c370c73c":1};a[e]?n.push(a[e]):0!==a[e]&&t[e]&&n.push(a[e]=new Promise((function(n,t){for(var c="static/css/"+({}[e]||e)+"."+{"chunk-034f76bc":"72535064","chunk-03f11e0c":"f3b87d2c","chunk-074870dc":"1ada4c80","chunk-07c4d6d0":"92795e70","chunk-0c0d0747":"876bcde3","chunk-12ec8aa1":"332bc6dd","chunk-1619e452":"f3c9dfff","chunk-2d21022e":"31d6cfe0","chunk-2f432dbf":"a3eabafc","chunk-37ea1d2e":"fc0f0845","chunk-4bb52fbc":"fa12e492","chunk-5412dd05":"eaaeed29","chunk-59d32064":"d6fa6cf3","chunk-5c9f33f1":"d426bb9f","chunk-6e4aceda":"ae4b4cf0","chunk-6e7194ee":"761d3df6","chunk-70d7c530":"d7272f41","chunk-c370c73c":"4771db74"}[e]+".css",o=i.p+c,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===c||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===c||h===o)return n()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=n,f.onerror=function(n){var c=n&&n.target&&n.target.src||o,r=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=c,delete a[e],f.parentNode.removeChild(f),t(r)},f.href=o;var s=document.getElementsByTagName("head")[0];s.appendChild(f)})).then((function(){a[e]=0})));var c=o[e];if(0!==c)if(c)n.push(c[2]);else{var r=new Promise((function(n,t){c=o[e]=[n,t]}));n.push(c[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 c=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;l.message="Loading chunk "+e+" failed.\n("+c+": "+a+")",l.name="ChunkLoadError",l.type=c,l.request=a,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=c,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 c in e)i.d(t,c,function(n){return e[n]}.bind(null,c));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 c=t("4f35"),a=t.n(c);n["default"]=a.a},"3dfd":function(e,n,t){"use strict";var c=t("4467"),a=t("23be"),o=(t("e3ff"),t("2877")),r=Object(o["a"])(a["default"],c["a"],c["b"],!1,null,null,null);n["default"]=r.exports},4467:function(e,n,t){"use strict";t.d(n,"a",(function(){return c})),t.d(n,"b",(function(){return a}));var c=function(){var e=this,n=e._self._c;e._self._setupProxy;return n("div",{attrs:{id:"app"}},[n("router-view",{staticClass:"content"})],1)},a=[]},"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 c=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=c,document.documentElement.scrollTop=c)})},"56d7":function(e,n,t){"use strict";t.r(n);var c=t("2b0e"),a=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-5412dd05").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-5c9f33f1").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-0c0d0747").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-4bb52fbc").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)},c["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-034f76bc").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");c["default"].use(f["a"]);var s=new f["a"].Store({state:{},mutations:{},actions:{},modules:{}}),p=t("cee4");let m={};const b=p["a"].create(m);m={timeout:0,withCredentials:!0},b.interceptors.request.use((function(e){const n=localStorage.getItem("token"),t=JSON.parse(localStorage.getItem("site")),c="http://fyy_api.qingyaokeji.com";return e.url=c+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)})),b.interceptors.response.use(e=>200===e.status?200===e.data.code?e.data:401===e.data.code?(localStorage.removeItem("mobile_token"),location.reload()):(c["default"].prototype.$Message.error(e.data.msg||"未知错误"),e.data||e):c["default"].prototype.$Message.error("请求超时"),e=>(c["default"].prototype.$Notice.error({title:"请求失败",desc:e}),e));var k=b,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);c["default"].use(x.a),c["default"].use(j.a),c["default"].prototype.func=w,c["default"].use(v["a"]),c["default"].use(y["a"]),c["default"].config.productionTip=!1,c["default"].prototype.axios=k,new c["default"]({router:l,store:s,render:e=>e(a["default"])}).$mount("#app")},8537:function(e,n,t){},e3ff:function(e,n,t){"use strict";t("8537")}});