(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app"], { 0: function(e, n, c) {
e.exports = c("56d7");
}, "00d2": function(e, n, c) {
"use strict";
c("5511");
}, "0325": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-sjbb", use: "icon-sjbb-usage", viewBox: "0 0 1024 1024", content: '' });
m.a.add(l);
n["default"] = l;
}, "045d": function(e, n, c) {
"use strict";
c("4597");
}, "0730": function(e, n, c) {
e.exports = c.p + "static/img/user_logo.20ca3d9e.jpg";
}, "0781": function(e, n, c) {
"use strict";
c.r(n);
var a = c("24ab"), d = c.n(a), o = c("83d6"), m = c.n(o), l = m.a.showSettings, t = m.a.tagsView, i2 = m.a.fixedHeader, r = m.a.sidebarLogo, h = { theme: d.a.theme, showSettings: l, tagsView: t, fixedHeader: i2, sidebarLogo: r, r2BackgroundColor: "#1a233a", r2CardBackgroundColor: "#272e48" }, s = { CHANGE_SETTING: function(e2, n2) {
var c2 = n2.key, a2 = n2.value;
e2.hasOwnProperty(c2) && (e2[c2] = a2);
} }, u = { changeSetting: function(e2, n2) {
var c2 = e2.commit;
c2("CHANGE_SETTING", n2);
} };
n["default"] = { namespaced: true, state: h, mutations: s, actions: u };
}, "096e": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-skill", use: "icon-skill-usage", viewBox: "0 0 128 128", content: '' });
m.a.add(l);
n["default"] = l;
}, "0f28": function(e, n, c) {
"use strict";
c("5bcb");
}, "0f9a": function(e, n, c) {
"use strict";
c.r(n);
c("b5aa");
var a = c("3ef1"), d = (c("fc02"), c("aa18"), c("982e"), c("a450"), c("c24f")), o = c("5f87"), m = c("ed08"), l = c("a18c"), t = (c("4360"), c("e8b2"));
c("1bc7");
function i2(e2) {
var n2 = [], c2 = {};
return e2.forEach((function(e3) {
r(n2, c2, e3);
})), n2.push({ path: "*", redirect: "/404", hidden: true }), l["d"].addRoutes(n2), { routes: n2, buttons: c2 };
}
function r(e2, n2, c2) {
var a2 = c2.menuUrl, d2 = c2.menuChildren, o2 = c2.disableds, m2 = c2.menuType, i3 = c2.menuName;
if (a2) if (3 === m2 && "Y" === o2) {
var h2 = l["a"][a2];
if (h2) {
h2.meta.title = i3, e2.push(h2);
var s2 = l["b"][a2], u2 = [];
s2 && (u2 = Object(t["a"])(s2), h2.children = u2), d2 && (h2.children || (h2.children = u2), d2.forEach((function(e3) {
r(u2, n2, e3);
})));
}
} else 4 === m2 && (n2[a2] = "Y" === o2);
}
var h = { token: Object(o["a"])(), name: "", avatar: "", introduction: "", roles: [], account: "", userInfo: {}, companyList: [], logo: "", allSupplierList: [], allSupplierList2: [], batchInfor: {}, settlementInfor: {} }, s = { SET_TOKEN: function(e2, n2) {
e2.token = n2;
}, SET_INTRODUCTION: function(e2, n2) {
e2.introduction = n2;
}, SET_NAME: function(e2, n2) {
e2.name = n2;
}, SET_AVATAR: function(e2, n2) {
e2.avatar = n2;
}, SET_ROLES: function(e2, n2) {
e2.roles = n2;
}, SET_ACCOUNT: function(e2, n2) {
e2.account = n2;
}, SET_INFO: function(e2, n2) {
e2.userInfo = n2;
}, SET_COMPANY: function(e2, n2) {
e2.companyList = n2;
}, SET_LOGO: function(e2, n2) {
e2.logo = n2;
}, SET_SELECT_COMPANY: function(e2, n2) {
}, SET_ALL_SUPPLIER_LIST: function(e2, n2) {
e2.allSupplierList = n2;
}, SET_ALL_SUPPLIER_LIST2: function(e2, n2) {
e2.allSupplierList2 = n2;
}, SET_BATCHINFOR: function(e2, n2) {
e2.batchInfor = n2;
}, SET_SETTLEMENTINFOR: function(e2, n2) {
e2.settlementInfor = n2;
} }, u = { login: function(e2, n2) {
var c2 = e2.commit, a2 = (n2.appId, n2.mobile), m2 = n2.companyId;
return new Promise((function(e3, n3) {
Object(d["e"])({ username: a2, companyId: m2 }).then((function(n4) {
var a3 = n4.data;
window.localStorage.setItem("userInfo", JSON.stringify(a3.account)), c2("SET_TOKEN", a3.token), c2("SET_ACCOUNT", a3.account.accountName), Object(o["d"])(a3.token), Object(o["c"])(a3.account.accountName), e3();
})).catch((function(e4) {
n3(e4);
}));
}));
}, getInfo: function(e2) {
var n2 = e2.commit;
e2.state;
return new Promise((function(e3, c2) {
var a2 = Object(m["g"])(location.href);
a2 && a2.roleId && (localStorage.setItem("roleId", a2["roleId"]), localStorage.setItem("memberId", a2["memberId"]));
var o2 = parseInt(JSON.parse(window.localStorage.getItem("roleId"))), l2 = parseInt(JSON.parse(window.localStorage.getItem("memberId"))), t2 = JSON.parse(window.localStorage.getItem("userInfo"));
Object(d["d"])({ accountName: t2.accountName, roleId: o2, memberId: l2 }).then((function(c3) {
var a3 = c3.code, d2 = c3.data;
if (0 === a3) {
var o3 = d2.companyAuthApplyOrderRespDTOS, m2 = d2.menuSelectAllResponseDTOS, l3 = o3[0], t3 = i2(m2);
n2("permission/ADD_ASYNCROUTES", t3.routes, { root: true }), n2("permission/SET_BUTTONPERMISSION", t3.buttons, { root: true }), window.localStorage.setItem("companyInfo", JSON.stringify(l3));
var r2 = document.querySelector("link[rel*='icon']") || document.createElement("link");
r2.rel = "icon", r2.href = l3.logo, document.getElementsByTagName("head")[0].appendChild(r2), n2("SET_LOGO", l3.logo);
var h2 = { roles: ["admin"], name: l3.contactPeople, avatar: "", introduction: "" };
n2("SET_ROLES", h2.roles), n2("SET_NAME", h2.name), n2("SET_AVATAR", h2.avatar), n2("SET_INTRODUCTION", h2.introduction), n2("SET_COMPANY", d2), e3(h2);
} else console.error("store/modules/user getInfo error");
})).catch((function(e4) {
c2(e4);
}));
}));
}, setInfo: function() {
return new Promise((function(e2, n2) {
var c2 = JSON.parse(localStorage.getItem("companyInfo"));
if (c2.useCockpit = 1, c2.pointCopartnerIds) {
if (Array.isArray(c2.pointCopartnerIds)) ;
else if (c2.pointCopartnerIds.includes(",") ? c2.pointCopartnerIds = c2.pointCopartnerIds.split(",") : c2.pointCopartnerIds = JSON.parse(c2.pointCopartnerIds), !Array.isArray(c2.pointCopartnerIds)) {
var a2 = [];
a2.push(c2.pointCopartnerIds), c2.pointCopartnerIds = a2;
}
}
Object(d["l"])(c2).then((function(n3) {
e2(n3.data);
})).catch((function(e3) {
n2(e3);
}));
}));
}, logout: function(e2) {
var n2 = e2.commit, c2 = (e2.state, e2.dispatch);
return new Promise((function(e3, a2) {
n2("SET_TOKEN", ""), n2("SET_ROLES", []), Object(o["b"])(), Object(l["e"])(), c2("tagsView/delAllViews", null, { root: true }), e3();
}));
}, resetToken: function(e2) {
var n2 = e2.commit;
return new Promise((function(e3) {
n2("SET_TOKEN", ""), n2("SET_ROLES", []), Object(o["b"])(), e3();
}));
}, changeRoles: function(e2, n2) {
var c2 = e2.commit, d2 = e2.dispatch;
return new Promise((function() {
var e3 = Object(a["a"])(regeneratorRuntime.mark((function e4(a2) {
var m2, t2, i3, r2;
return regeneratorRuntime.wrap((function(e5) {
while (1) switch (e5.prev = e5.next) {
case 0:
return m2 = n2 + "-token", c2("SET_TOKEN", m2), Object(o["d"])(m2), e5.next = 1, d2("getInfo");
case 1:
return t2 = e5.sent, i3 = t2.roles, Object(l["e"])(), e5.next = 2, d2("permission/generateRoutes", i3, { root: true });
case 2:
r2 = e5.sent, l["d"].addRoutes(r2), d2("tagsView/delAllViews", null, { root: true }), a2();
case 3:
case "end":
return e5.stop();
}
}), e4);
})));
return function(n3) {
return e3.apply(this, arguments);
};
})());
}, setLogo: function(e2, n2) {
var c2 = e2.commit;
c2("SET_LOGO", n2);
}, setAllSupplierList: function(e2, n2) {
var c2 = e2.commit;
c2("SET_ALL_SUPPLIER_LIST", n2);
}, setAllSupplierList2: function(e2, n2) {
var c2 = e2.commit;
c2("SET_ALL_SUPPLIER_LIST2", n2);
}, setBatchInfor: function(e2, n2) {
var c2 = e2.commit;
c2("SET_BATCHINFOR", n2);
}, setSettlementInfor: function(e2, n2) {
var c2 = e2.commit;
c2("SET_SETTLEMENTINFOR", n2);
} };
n["default"] = { namespaced: true, state: h, mutations: s, actions: u };
}, 1131: function(e, n, c) {
"use strict";
var a = function() {
var e2 = this, n2 = e2.$createElement, c2 = e2._self._c || n2;
return c2("el-dropdown", { staticClass: "international", attrs: { trigger: "click" }, on: { command: e2.handleSetLanguage } }, [c2("div", [c2("svg-icon", { attrs: { "class-name": "international-icon", "icon-class": "international" } }), e2._v(" "), c2("span", { staticStyle: { "font-size": "14px" } }, [e2._v(e2._s(e2.lang))]), e2._v(" "), c2("i", { staticClass: "el-icon-arrow-down el-icon--right" })], 1), e2._v(" "), c2("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, [c2("el-dropdown-item", { attrs: { disabled: "zh" === e2.language, command: "zh" } }, [e2._v("\n 简体中文\n ")]), e2._v(" "), c2("el-dropdown-item", { attrs: { disabled: "en" === e2.language, command: "en" } }, [e2._v("\n English\n ")]), e2._v(" "), c2("el-dropdown-item", { attrs: { disabled: "es" === e2.language, command: "es" } }, [e2._v("\n Español\n ")]), e2._v(" "), c2("el-dropdown-item", { attrs: { disabled: "ja" === e2.language, command: "ja" } }, [e2._v("\n 日本語\n ")])], 1)], 1);
}, d = [], o = { data: function() {
return { lang: "" };
}, computed: { language: function() {
return this.handleSetLanguage(this.$store.getters.language), this.$store.getters.language;
} }, methods: { handleSetLanguage: function(e2) {
switch (e2) {
case "zh":
this.lang = "简体中文";
break;
case "en":
this.lang = "English";
break;
case "es":
this.lang = "Español";
break;
case "ja":
this.lang = "日本語";
break;
default:
this.lang = "简体中文";
break;
}
this.$i18n.locale = e2, this.$store.dispatch("app/setLanguage", e2);
} } }, m = o, l = c("829d"), t = Object(l["a"])(m, a, d, false, null, null, null);
n["a"] = t.exports;
}, "12a5": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-shopping", use: "icon-shopping-usage", viewBox: "0 0 128 128", content: '' });
m.a.add(l);
n["default"] = l;
}, 1430: function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-qq", use: "icon-qq-usage", viewBox: "0 0 128 128", content: '' });
m.a.add(l);
n["default"] = l;
}, 1779: function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-bug", use: "icon-bug-usage", viewBox: "0 0 128 128", content: '' });
m.a.add(l);
n["default"] = l;
}, "17df": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-international", use: "icon-international-usage", viewBox: "0 0 128 128", content: '' });
m.a.add(l);
n["default"] = l;
}, "18f0": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-link", use: "icon-link-usage", viewBox: "0 0 128 128", content: '' });
m.a.add(l);
n["default"] = l;
}, "18fc": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-config", use: "icon-config-usage", viewBox: "0 0 1034 1024", content: '' });
m.a.add(l);
n["default"] = l;
}, "19a5": function(e, n, c) {
"use strict";
c("2b04");
}, "1d04": function(e, n, c) {
}, 2019: function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-fyzx", use: "icon-fyzx-usage", viewBox: "0 0 1024 1024", content: '' });
m.a.add(l);
n["default"] = l;
}, 2366: function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-zzjg", use: "icon-zzjg-usage", viewBox: "0 0 1024 1024", content: '' });
m.a.add(l);
n["default"] = l;
}, "24ab": function(e, n, c) {
e.exports = { theme: "#1890ff" };
}, 2580: function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-language", use: "icon-language-usage", viewBox: "0 0 128 128", content: '' });
m.a.add(l);
n["default"] = l;
}, 2888: function(e, n, c) {
}, "29df": function(e, n, c) {
}, "2a3d": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-password", use: "icon-password-usage", viewBox: "0 0 128 128", content: '' });
m.a.add(l);
n["default"] = l;
}, "2a3e": function(e, n, c) {
"use strict";
c("3b2d");
}, "2ab1": function(e, n, c) {
"use strict";
c("9166");
}, "2abb": function(e, n, c) {
"use strict";
c("b6ff");
}, "2b04": function(e, n, c) {
}, "2d77": function(e, n, c) {
}, "2f11": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-peoples", use: "icon-peoples-usage", viewBox: "0 0 128 128", content: '' });
m.a.add(l);
n["default"] = l;
}, "2f14": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-manyidu", use: "icon-manyidu-usage", viewBox: "0 0 1024 1024", content: '' });
m.a.add(l);
n["default"] = l;
}, "2f92": function(e, n, c) {
}, 3046: function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-money", use: "icon-money-usage", viewBox: "0 0 128 128", content: '' });
m.a.add(l);
n["default"] = l;
}, "30c3": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-example", use: "icon-example-usage", viewBox: "0 0 128 128", content: '' });
m.a.add(l);
n["default"] = l;
}, "31c2": function(e, n, c) {
"use strict";
c.r(n), c.d(n, "filterAsyncRoutes", (function() {
return t;
}));
c("ac67"), c("32ea");
var a = c("5821"), d = (c("1bc7"), c("aa18"), c("982e"), c("a18c"));
function o(e2, n2) {
var c2 = Object.keys(e2);
if (Object.getOwnPropertySymbols) {
var a2 = Object.getOwnPropertySymbols(e2);
n2 && (a2 = a2.filter((function(n3) {
return Object.getOwnPropertyDescriptor(e2, n3).enumerable;
}))), c2.push.apply(c2, a2);
}
return c2;
}
function m(e2) {
for (var n2 = 1; n2 < arguments.length; n2++) {
var c2 = null != arguments[n2] ? arguments[n2] : {};
n2 % 2 ? o(Object(c2), true).forEach((function(n3) {
Object(a["a"])(e2, n3, c2[n3]);
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(c2)) : o(Object(c2)).forEach((function(n3) {
Object.defineProperty(e2, n3, Object.getOwnPropertyDescriptor(c2, n3));
}));
}
return e2;
}
function l(e2, n2) {
return !n2.meta || !n2.meta.roles || e2.some((function(e3) {
return n2.meta.roles.includes(e3);
}));
}
function t(e2, n2) {
var c2 = [];
return e2.forEach((function(e3) {
var a2 = m({}, e3);
l(n2, a2) && (a2.children && (a2.children = t(a2.children, n2)), c2.push(a2));
})), c2;
}
var i2 = { routes: [], addRoutes: [], asyncRoutes: [], buttonsPermission: {} }, r = { SET_ROUTES: function(e2, n2) {
e2.addRoutes = n2, e2.routes = d["c"].concat(n2);
}, ADD_ASYNCROUTES: function(e2, n2) {
e2.asyncRoutes = n2;
}, SET_BUTTONPERMISSION: function(e2, n2) {
e2.buttonsPermission = n2;
} }, h = { generateRoutes: function(e2, n2) {
var c2 = e2.commit, a2 = i2.asyncRoutes;
return new Promise((function(e3) {
var d2;
d2 = n2.includes("admin") ? a2 || [] : t(a2, n2), c2("SET_ROUTES", d2), e3(d2);
}));
} };
n["default"] = { namespaced: true, state: i2, mutations: r, actions: h };
}, 3285: function(e, n, c) {
}, 3289: function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-list", use: "icon-list-usage", viewBox: "0 0 128 128", content: '' });
m.a.add(l);
n["default"] = l;
}, "33ad": function(e, n, c) {
e.exports = c.p + "static/img/logo2.59a37763.png";
}, "3b2d": function(e, n, c) {
}, "3ca4": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-sy", use: "icon-sy-usage", viewBox: "0 0 1024 1024", content: '' });
m.a.add(l);
n["default"] = l;
}, "3f49": function(e, n, c) {
"use strict";
c("fbe2");
}, 4360: function(e, n, c) {
"use strict";
c("8dee"), c("1bc7");
var a = c("6e6d"), d = c("52c1"), o = (c("a450"), { sidebar: function(e2) {
return e2.app.sidebar;
}, language: function(e2) {
return e2.app.language;
}, size: function(e2) {
return e2.app.size;
}, device: function(e2) {
return e2.app.device;
}, visitedViews: function(e2) {
return e2.tagsView.visitedViews;
}, cachedViews: function(e2) {
return e2.tagsView.cachedViews;
}, token: function(e2) {
return e2.user.token;
}, avatar: function(e2) {
return e2.user.avatar;
}, name: function(e2) {
return e2.user.name;
}, introduction: function(e2) {
return e2.user.introduction;
}, roles: function(e2) {
return e2.user.roles;
}, permission_routes: function(e2) {
return e2.permission.routes;
}, errorLogs: function(e2) {
return e2.errorLog.logs;
}, userInfo: function(e2) {
return e2.user.userInfo;
}, account: function(e2) {
return e2.user.account;
}, companyList: function(e2) {
return e2.user.companyList;
}, buttonsPermission: function(e2) {
return e2.permission.buttonsPermission;
}, batchInfor: function(e2) {
return e2.user.batchInfor;
}, settlementInfor: function(e2) {
return e2.user.settlementInfor;
} }), m = o;
a["default"].use(d["a"]);
var l = c("c653"), t = l.keys().reduce((function(e2, n2) {
var c2 = n2.replace(/^\.\/(.*)\.\w+$/, "$1"), a2 = l(n2);
return e2[c2] = a2.default, e2;
}), {}), i2 = new d["a"].Store({ modules: t, getters: m });
n["a"] = i2;
}, 4597: function(e, n, c) {
}, "47f1": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-table", use: "icon-table-usage", viewBox: "0 0 128 128", content: '' });
m.a.add(l);
n["default"] = l;
}, "47ff": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-message", use: "icon-message-usage", viewBox: "0 0 128 128", content: '' });
m.a.add(l);
n["default"] = l;
}, "4b28": function(e, n, c) {
}, "4b78": function(e, n, c) {
}, "4d49": function(e, n, c) {
"use strict";
c.r(n);
var a = { logs: [] }, d = { ADD_ERROR_LOG: function(e2, n2) {
e2.logs.push(n2);
}, CLEAR_ERROR_LOG: function(e2) {
e2.logs.splice(0);
} }, o = { addErrorLog: function(e2, n2) {
var c2 = e2.commit;
c2("ADD_ERROR_LOG", n2);
}, clearErrorLog: function(e2) {
var n2 = e2.commit;
n2("CLEAR_ERROR_LOG");
} };
n["default"] = { namespaced: true, state: a, mutations: d, actions: o };
}, "4d92": function(e, n, c) {
}, "4df5": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-eye", use: "icon-eye-usage", viewBox: "0 0 128 64", content: '' });
m.a.add(l);
n["default"] = l;
}, "516d": function(module, __webpack_exports__, __webpack_require__) {
"use strict";
var core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d0f2"), core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_0__), core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("8dee"), core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1__), core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("e680"), core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_2__), core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("fc02"), core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_3___default = __webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_3__), core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("4057"), core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_4___default = __webpack_require__.n(core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_4__), curryencyTrans = { regYuanToFen: function(e, n) {
var c = 0, a = e.toString(), d = n.toString();
try {
c += a.split(".")[1].length;
} catch (o) {
}
try {
c += d.split(".")[1].length;
} catch (o) {
}
return Number(a.replace(".", "")) * Number(d.replace(".", "")) / Math.pow(10, c);
}, formatMoney: function(e, n, c, a, d) {
n = isNaN(n = Math.abs(n)) ? 2 : n, c = void 0 !== c ? c : "$", a = a || ",", d = d || ".";
var o = e, m = o < 0 ? "-" : "", l = parseInt(o = Math.abs(+o || 0).toFixed(n), 10) + "", t = (t = l.length) > 3 ? t % 3 : 0;
return c + m + (t ? l.substr(0, t) + a : "") + l.substr(t).replace(/(\d{3})(?=\d)/g, "$1" + a) + (n ? d + Math.abs(o - l).toFixed(n).slice(2) : "");
}, chineseNumber: function(e) {
var n = 2;
if (e = e.toString().replace(/,/g, ""), e = e.replace(/^0+/, ""), "" == e) return "零元整";
if (isNaN(e)) return "错误:金额不是合法的数值!";
var c = "", a = "";
e.length > 1 && (0 == e.indexOf("-") && (e = e.replace("-", ""), c = "负"), 0 == e.indexOf("+") && (e = e.replace("+", "")));
var d, o, m, l, t, i2, r, h, s, u, b, f, p = "", v = "", g = "undefined" == typeof n || null == n || Number(n) < 0 || Number(n) > 5;
if (o = e.split("."), o.length > 1) {
p = o[0], v = o[1], g && (n = v.length > 5 ? 5 : v.length);
var w = Number("0." + v);
w *= Math.pow(10, n), w = Math.round(Math.abs(w)), w /= Math.pow(10, n);
var y = w.toString().split(".");
1 == Number(y[0]) && (p = (Number(p) + 1).toString()), v = y.length > 1 ? y[1] : "";
} else p = e, v = "", g && (n = 0);
if (p.length > 44) return "错误:金额值太大了!整数位长【" + p.length.toString() + "】超过了上限——44位/千正/10^43(注:1正=1万涧=1亿亿亿亿亿,10^40)!";
if (m = new Array("零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"), l = new Array("", "拾", "佰", "仟"), t = new Array("", "万", "亿", "兆", "京", "垓", "杼", "穰", "沟", "涧", "正"), i2 = new Array("角", "分", "厘", "毫", "丝"), d = "", Number(p) > 0) {
for (r = 0, h = 0; h < p.length; h++) s = p.length - h - 1, u = p.substr(h, 1), b = s / 4, f = s % 4, "0" == u ? r++ : (r > 0 && (d += m[0]), r = 0, d += m[Number(u)] + l[f]), 0 == f && r < 4 && (d += t[b]);
d += "元";
}
for (h = 0; h < v.length; h++) u = v.substr(h, 1), "0" != u && (d += m[Number(u)] + i2[h]);
return "" == d && (d = "零元"), "" == v && (d += "整"), d = a + c + d, d;
}, aNumber: function aNumber(num) {
for (var numArray = new Array(), unit = "亿万元$", i = 0; i < unit.length; i++) {
var re = eval("/" + (numArray[i - 1] ? unit.charAt(i - 1) : "") + "(.*)" + unit.charAt(i) + "/");
num.match(re) ? (numArray[i] = num.match(re)[1].replace(/^拾/, "壹拾"), numArray[i] = numArray[i].replace(/[零壹贰叁肆伍陆柒捌玖]/g, (function(e) {
return "零壹贰叁肆伍陆柒捌玖".indexOf(e);
})), numArray[i] = numArray[i].replace(/[分角拾佰仟]/g, (function(e) {
return "*" + Math.pow(10, "分角 拾佰仟 ".indexOf(e) - 2) + "+";
})).replace(/^\*|\+$/g, "").replace(/整/, "0"), numArray[i] = "(" + numArray[i] + ")*" + Math.ceil(Math.pow(10, 4 * (2 - i)))) : numArray[i] = 0;
}
return eval(numArray.join("+"));
}, bigNumberTransform: function(e) {
var n = ["", "", ""], c = 1e3, a = 3, d = "", o = 1;
while (e / c >= 1) c *= 10, a += 1;
return a <= 4 ? (n[0] = parseInt(e / 1e3) + "", n[1] = "千") : a <= 8 ? (d = parseInt(a - 4) / 3 > 1 ? "千万" : "万", o = "万" === d ? 1e4 : 1e7, n[0] = e % o === 0 ? parseInt(e / o) + "" : parseFloat(e / o).toFixed(1) + "", n[1] = d) : a <= 16 && (d = (a - 8) / 3 > 1 ? "千亿" : "亿", d = (a - 8) / 4 > 1 ? "万亿" : d, d = (a - 8) / 7 > 1 ? "千万亿" : d, o = 1, "亿" === d ? o = 1e8 : "千亿" === d ? o = 1e11 : "万亿" === d ? o = 1e12 : "千万亿" === d && (o = 1e15), n[0] = e % o === 0 ? parseInt(e / o) + "" : parseFloat(e / o).toFixed(1) + "", n[1] = d), e < 1e3 && (n[0] = e + "", n[1] = ""), n;
}, bigNumberWTTransform: function(e) {
var n = ["", "", ""], c = 1e3, a = 3, d = "", o = 1;
while (e / c >= 1) c *= 10, a += 1;
return a <= 4 ? (n[0] = parseInt(e / 1e3) + "", n[1] = "kW") : a <= 8 && (d = parseInt(a - 3) / 3 > 1 ? "GW" : "kW", o = "kW" === d ? 1e3 : 1e6, n[0] = e % o === 0 ? parseInt(e / o) + "" : parseFloat(e / o).toFixed(1) + "", n[1] = d), e < 1e3 && (n[0] = e + "", n[1] = ""), n;
} };
__webpack_exports__["a"] = curryencyTrans;
}, "51ff": function(e, n, c) {
var a = { "./404.svg": "a14a", "./aq.svg": "5a9b", "./bigdata.svg": "9a22", "./bug.svg": "1779", "./chart.svg": "c829", "./clipboard.svg": "bc35", "./component.svg": "56d6", "./config.svg": "18fc", "./dashboard.svg": "f782", "./documentation.svg": "90fb", "./drag.svg": "9bbf", "./edit.svg": "aa46", "./education.svg": "ad1c", "./email.svg": "cbb7", "./example.svg": "30c3", "./excel.svg": "6599", "./exit-fullscreen.svg": "dbc7", "./eye-open.svg": "d7ec", "./eye.svg": "4df5", "./form.svg": "eb1b", "./fullscreen.svg": "9921", "./fyzx.svg": "2019", "./gdgl.svg": "f9d2", "./gongyin.svg": "8a04", "./guide.svg": "6683", "./gzt.svg": "847d", "./icon.svg": "9d91", "./international.svg": "17df", "./jcxx_wlgl.svg": "a8ee", "./jsc.svg": "79df", "./jsc2.svg": "f272", "./language.svg": "2580", "./link.svg": "18f0", "./list.svg": "3289", "./lock.svg": "ab00", "./manyidu.svg": "2f14", "./message.svg": "47ff", "./money.svg": "3046", "./nested.svg": "dcf8", "./password.svg": "2a3d", "./pdf.svg": "f9a1", "./people.svg": "d056", "./peoples.svg": "2f11", "./qq.svg": "1430", "./qysz.svg": "d7a7", "./renshi.svg": "6a68", "./search.svg": "8e8d", "./shopping.svg": "12a5", "./shujujias.svg": "54ae", "./size.svg": "8644", "./sjbb.svg": "0325", "./skill.svg": "096e", "./star.svg": "708a6", "./sy.svg": "3ca4", "./tab.svg": "8fb7", "./table.svg": "47f1", "./taocan.svg": "58c3", "./theme.svg": "e534", "./tree-table.svg": "e7c83", "./tree.svg": "93cd", "./user.svg": "b3b5", "./wechat.svg": "80da", "./weinao.svg": "b086", "./worker.svg": "c9de", "./yuanshuju.svg": "5bb8", "./zip.svg": "8aa6", "./zzjg.svg": "2366" };
function d(e2) {
var n2 = o(e2);
return c(n2);
}
function o(e2) {
var n2 = a[e2];
if (!(n2 + 1)) {
var c2 = new Error("Cannot find module '" + e2 + "'");
throw c2.code = "MODULE_NOT_FOUND", c2;
}
return n2;
}
d.keys = function() {
return Object.keys(a);
}, d.resolve = o, e.exports = d, d.id = "51ff";
}, 5228: function(e, n, c) {
"use strict";
c("793d");
}, "54ae": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-shujujias", use: "icon-shujujias-usage", viewBox: "0 0 1024 1024", content: '' });
m.a.add(l);
n["default"] = l;
}, 5511: function(e, n, c) {
}, "56d6": function(e, n, c) {
"use strict";
c.r(n);
var a = c("09f1"), d = c.n(a), o = c("dfc6"), m = c.n(o), l = new d.a({ id: "icon-component", use: "icon-component-usage", viewBox: "0 0 128 128", content: '' });
m.a.add(l);
n["default"] = l;
}, "56d7": function(e, n, c) {
"use strict";
c.r(n);
c("32ea"), c("1bc7"), c("a450"), c("25ba"), c("5f1c"), c("6ba0"), c("b47f");
var a = c("6e6d"), d = c("8c92"), o = c.n(d), m = (c("aa93"), c("5422")), l = c.n(m), t = (c("24ab"), c("b20f"), function() {
var e2 = this, n2 = e2.$createElement, c2 = e2._self._c || n2;
return c2("div", { attrs: { id: "app" } }, [c2("router-view")], 1);
}), i2 = [], r = { name: "App", data: function() {
return {};
}, created: function() {
}, mounted: function() {
}, methods: {} }, h = r, s = (c("6508"), c("829d")), u = Object(s["a"])(h, t, i2, false, null, null, null), b = u.exports, f = c("4360"), p = c("a18c"), v = c("9923"), g = function() {
var e2 = this, n2 = e2.$createElement, c2 = e2._self._c || n2;
return e2.isExternal ? c2("div", e2._g({ staticClass: "svg-external-icon svg-icon", style: e2.styleExternalIcon }, e2.$listeners)) : c2("svg", e2._g({ class: e2.svgClass, attrs: { "aria-hidden": "true" } }, e2.$listeners), [c2("use", { attrs: { href: e2.iconName } })]);
}, w = [], y = c("61f7"), k = { name: "SvgIcon", props: { iconClass: { type: String, required: true }, className: { type: String, default: "" } }, computed: { isExternal: function() {
return Object(y["c"])(this.iconClass);
}, iconName: function() {
return "#icon-".concat(this.iconClass);
}, svgClass: function() {
return this.className ? "svg-icon " + this.className : "svg-icon";
}, styleExternalIcon: function() {
return { mask: "url(".concat(this.iconClass, ") no-repeat 50% 50%"), "-webkit-mask": "url(".concat(this.iconClass, ") no-repeat 50% 50%") };
} } }, _ = k, x = (c("5f58"), Object(s["a"])(_, g, w, false, null, "4342976c", null)), C = x.exports;
a["default"].component("svg-icon", C);
var M = c("51ff"), L = function(e2) {
return e2.keys().map(e2);
};
L(M);
c("ac67");
var S = c("5821"), D = (c("8dee"), c("fc02"), c("aa18"), c("982e"), c("b5aa"), c("3ef1")), T = c("38bc"), O = c.n(T), A = (c("70e7"), c("5f87")), j = c("83d6"), V = c.n(j), E = V.a.title || "Vue Element Admin";
function P(e2) {
var n2 = v["a"].te("route.".concat(e2));
if (n2) {
var c2 = v["a"].t("route.".concat(e2));
return "".concat(c2, " - ").concat(E);
}
return "".concat(E);
}
function z(e2, n2) {
var c2 = Object.keys(e2);
if (Object.getOwnPropertySymbols) {
var a2 = Object.getOwnPropertySymbols(e2);
n2 && (a2 = a2.filter((function(n3) {
return Object.getOwnPropertyDescriptor(e2, n3).enumerable;
}))), c2.push.apply(c2, a2);
}
return c2;
}
function I(e2) {
for (var n2 = 1; n2 < arguments.length; n2++) {
var c2 = null != arguments[n2] ? arguments[n2] : {};
n2 % 2 ? z(Object(c2), true).forEach((function(n3) {
Object(S["a"])(e2, n3, c2[n3]);
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(c2)) : z(Object(c2)).forEach((function(n3) {
Object.defineProperty(e2, n3, Object.getOwnPropertyDescriptor(c2, n3));
}));
}
return e2;
}
O.a.configure({ showSpinner: false });
var B = ["/login", "/NoPermission/NoSaasAuth", "/auth-redirect", "/mobile/personnel", "/mobile/finance", "/mobile/equipment", "/mobile/energy", "/mobile/incomeStatement", "/mobile/perContributionStat", "/help"], R = ["/dataPlatform/home", "/dataPlatform/cloudData/incomeStatement", "/dataPlatform/cloudData/perContributionStat", "/dataPlatform/cloudData/monthlyIncome", "/dataPlatform/cloudData/physicalReport"];
p["d"].beforeEach((function() {
var e2 = Object(D["a"])(regeneratorRuntime.mark((function e3(n2, c2, a2) {
var d2, o2, l2, t2, i3, r2, h2, s2, u2, b2, v2, g2, w2, y2, k2;
return regeneratorRuntime.wrap((function(e4) {
while (1) switch (e4.prev = e4.next) {
case 0:
if (O.a.start(), document.title = P(n2.meta.title), d2 = Object(A["a"])(), !d2) {
e4.next = 11;
break;
}
if ("/login" !== n2.path) {
e4.next = 1;
break;
}
o2 = localStorage.getItem("companyInfo") ? JSON.parse(localStorage.getItem("companyInfo")).phoneNumber : "", l2 = o2 == n2.query.phone, l2 ? (a2({ path: "/" }), O.a.done()) : (-1 !== B.indexOf(n2.path) ? a2() : a2("/login?redirect=".concat(n2.path)), O.a.done()), e4.next = 10;
break;
case 1:
if (t2 = f["a"].getters.roles && f["a"].getters.roles.length > 0, console.log("hasRoles", t2), localStorage.getItem("r2BackgroundColor") && f["a"].dispatch("settings/changeSetting", { key: "r2BackgroundColor", value: localStorage.getItem("r2BackgroundColor") }), localStorage.getItem("r2CardBackgroundColor") && f["a"].dispatch("settings/changeSetting", { key: "r2CardBackgroundColor", value: localStorage.getItem("r2CardBackgroundColor") }), i3 = JSON.parse(localStorage.getItem("boardInfo")), !t2) {
e4.next = 5;
break;
}
if ("/goToProject" !== n2.path) {
e4.next = 3;
break;
}
if (!i3 || 1 == i3.cockpit) {
e4.next = 2;
break;
}
return e4.next = 2, f["a"].dispatch("user/setInfo");
case 2:
r2 = "".concat("https://hc-pos.sqygj.cn/"), window.open("".concat(r2)), location.reload(), e4.next = 4;
break;
case 3:
n2.hasOwnProperty("redirectedFrom") && R.includes(n2.path) ? (h2 = p["d"].resolve({ path: n2.path }), window.open(h2.href, "_blank")) : (window.location.href.includes("selectMenu") && (s2 = window.location.href.split("selectMenu")[1], s2 = s2.replace("=", "").replace(/,/g, "/"), localStorage.setItem("selectMenu", JSON.stringify(s2))), a2());
case 4:
O.a.done(), e4.next = 10;
break;
case 5:
return e4.prev = 5, e4.next = 6, f["a"].dispatch("user/getInfo");
case 6:
return u2 = e4.sent, b2 = u2.roles, e4.next = 7, f["a"].dispatch("permission/generateRoutes", b2);
case 7:
v2 = e4.sent, p["d"].addRoutes(v2), "/goToProject" === n2.path ? (console.log("process.env.VUE_APP_JUMP_URL", "https://hc-pos.sqygj.cn/"), g2 = "".concat("https://hc-pos.sqygj.cn/"), window.open("".concat(g2))) : n2.hasOwnProperty("redirectedFrom") && R.includes(n2.path) ? (w2 = p["d"].resolve({ path: n2.path }), window.open(w2.href, "_blank")) : (window.location.href.includes("selectMenu") && (y2 = window.location.href.split("selectMenu")[1], y2 = y2.replace("=", "").replace(/,/g, "/"), localStorage.setItem("selectMenu", JSON.stringify(y2))), a2(I(I({}, n2), {}, { replace: true }))), O.a.done(), e4.next = 10;
break;
case 8:
return e4.prev = 8, k2 = e4["catch"](5), console.log("/error", k2), e4.next = 9, f["a"].dispatch("user/resetToken");
case 9:
m["Message"].error(k2 || "Has Error"), a2("/login?redirect=".concat(n2.path)), a2(), O.a.done();
case 10:
e4.next = 12;
break;
case 11:
-1 !== B.indexOf(n2.path) ? (console.log(1e29), a2(), O.a.done()) : (console.log("****************************"), a2("/login?redirect=".concat(n2.path)), O.a.done());
case 12:
case "end":
return e4.stop();
}
}), e3, null, [[5, 8]]);
})));
return function(n2, c2, a2) {
return e2.apply(this, arguments);
};
})()), p["d"].afterEach((function() {
O.a.done();
})), p["d"].onError((function(e2) {
console.log("router-error", e2);
}));
var N = V.a.errorLog;
function H() {
var e2 = "production";
return Object(y["d"])(N) ? e2 === N : !!Object(y["b"])(N) && N.includes(e2);
}
function $(e2) {
var n2 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1920, c2 = document.documentElement.clientWidth;
return e2 * (c2 / n2) + "px";
}
H() && (a["default"].config.errorHandler = function(e2, n2, c2, d2) {
a["default"].nextTick((function() {
f["a"].dispatch("errorLog/addErrorLog", { err: e2, vm: n2, info: c2, url: window.location.href }), console.error(e2, c2);
}));
});
var F = c("8975");
function U(e2) {
var n2 = f["a"].getters.buttonsPermission;
return console.log(n2[e2], "按钮显示>>>>>"), n2[e2];
}
var G = function() {
var e2 = this, n2 = e2.$createElement, c2 = e2._self._c || n2;
return c2("div", { staticClass: "dv-loading" }, [c2("svg", { attrs: { width: "50px", height: "50px" } }, [c2("circle", { attrs: { cx: "25", cy: "25", r: "20", fill: "transparent", "stroke-width": "3", "stroke-dasharray": "31.415, 31.415", stroke: "#02bcfe", "stroke-linecap": "round" } }, [c2("animateTransform", { attrs: { attributeName: "transform", type: "rotate", values: "0, 25 25;360, 25 25", dur: "1.5s", repeatCount: "indefinite" } }), e2._v(" "), c2("animate", { attrs: { attributeName: "stroke", values: "#02bcfe;#3be6cb;#02bcfe", dur: "3s", repeatCount: "indefinite" } })], 1), e2._v(" "), c2("circle", { attrs: { cx: "25", cy: "25", r: "10", fill: "transparent", "stroke-width": "3", "stroke-dasharray": "15.7, 15.7", stroke: "#3be6cb", "stroke-linecap": "round" } }, [c2("animateTransform", { attrs: { attributeName: "transform", type: "rotate", values: "360, 25 25;0, 25 25", dur: "1.5s", repeatCount: "indefinite" } }), e2._v(" "), c2("animate", { attrs: { attributeName: "stroke", values: "#3be6cb;#02bcfe;#3be6cb", dur: "3s", repeatCount: "indefinite" } })], 1)]), e2._v(" "), c2("div", { staticClass: "loading-tip" }, [e2._t("default")], 2)]);
}, W = [], Q = { name: "Loading" }, q = Q, K = (c("19a5"), Object(s["a"])(q, G, W, false, null, null, null)), Z = K.exports, Y = function(e2) {
e2.component(Z.name, Z);
};
a["default"].directive("points", { inserted: function(e2, n2) {
e2.addEventListener("click", (function() {
e2.disabled || (e2.disabled = true, setTimeout((function() {
e2.disabled = false;
}), n2.value || 1e3));
}));
} });
c("ca9e");
function J(e2) {
var n2 = document.createElement("div");
n2.className = "star-twinkle";
var c2, a2, d2 = e2.getBoundingClientRect(), o2 = (d2.width, d2.height);
if (o2 < 40) {
var m2 = 0.3;
Math.random() < 0.6 ? (c2 = 100 * Math.random(), a2 = Math.random() < 0.5 ? Math.random() * (100 * m2) : 100 - Math.random() * (100 * m2)) : (c2 = Math.random() < 0.5 ? Math.random() * (100 * m2) : 100 - Math.random() * (100 * m2), a2 = 100 * Math.random());
} else {
var l2 = 0.25, t2 = Math.random();
t2 < 0.25 ? (c2 = 100 * Math.random(), a2 = Math.random() * (100 * l2)) : t2 < 0.5 ? (c2 = 100 - Math.random() * (100 * l2), a2 = 100 * Math.random()) : t2 < 0.75 ? (c2 = 100 * Math.random(), a2 = 100 - Math.random() * (100 * l2)) : (c2 = Math.random() * (100 * l2), a2 = 100 * Math.random());
}
var i3 = o2 < 40 ? 3 : 4, r2 = 6 * Math.random() + i3, h2 = 2 * Math.random();
return n2.style.left = c2 + "%", n2.style.top = a2 + "%", n2.style.width = r2 + "px", n2.style.height = r2 + "px", n2.style.animationDelay = h2 + "s", n2;
}
function X(e2) {
if ("static" === getComputedStyle(e2).position && (e2.style.position = "relative"), e2.setAttribute("data-star-twinkle", "true"), !e2.querySelector(".star-container")) {
var n2 = document.createElement("div");
n2.className = "star-container", e2.appendChild(n2);
}
for (var c2 = e2.querySelector(".star-container"), a2 = e2.getBoundingClientRect(), d2 = a2.height, o2 = d2 < 40 ? 4 + Math.floor(3 * Math.random()) : 6 + Math.floor(4 * Math.random()), m2 = 0; m2 < o2; m2++) {
var l2 = J(e2);
c2.appendChild(l2);
}
}
function ee(e2) {
var n2 = e2.querySelector(".star-container");
n2 && n2.remove(), e2.removeAttribute("data-star-twinkle");
}
var ne, ce = { bind: function(e2, n2) {
e2.classList.contains("el-button") && X(e2);
}, update: function(e2, n2) {
e2.classList.contains("el-button") && (ee(e2), false !== n2.value && X(e2));
}, unbind: function(e2) {
ee(e2);
} }, ae = c("4d28"), de = (c("73ab"), c("7d2c")), oe = c.n(de), me = c("dd26"), le = c.n(me), te = /