12 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["app"],{0:function(e,t,n){n("db4d"),e.exports=n("56d7")},"028b":function(e,t,n){"use strict";n("3f4d")},"057c":function(e,t,n){"use strict";n.r(t),n("a630"),n("3ca3"),n("d3b7"),n("6062"),n("ddb0"),n("99af");var i=Array.from(new Set(["el-icon-platform-eleme","el-icon-eleme","el-icon-delete-solid","el-icon-delete","el-icon-s-tools","el-icon-setting","el-icon-user-solid","el-icon-user","el-icon-phone","el-icon-phone-outline","el-icon-more","el-icon-more-outline","el-icon-star-on","el-icon-star-off","el-icon-s-goods","el-icon-goods","el-icon-warning","el-icon-warning-outline","el-icon-question","el-icon-info","el-icon-remove","el-icon-circle-plus","el-icon-success","el-icon-error","el-icon-zoom-in","el-icon-zoom-out","el-icon-remove-outline","el-icon-circle-plus-outline","el-icon-circle-check","el-icon-circle-close","el-icon-s-help","el-icon-help","el-icon-minus","el-icon-plus","el-icon-check","el-icon-close","el-icon-picture","el-icon-picture-outline","el-icon-picture-outline-round","el-icon-upload","el-icon-upload2","el-icon-download","el-icon-camera-solid","el-icon-camera","el-icon-video-camera-solid","el-icon-video-camera","el-icon-message-solid","el-icon-bell","el-icon-s-cooperation","el-icon-s-order","el-icon-s-platform","el-icon-s-fold","el-icon-s-unfold","el-icon-s-operation","el-icon-s-promotion","el-icon-s-home","el-icon-s-release","el-icon-s-ticket","el-icon-s-management","el-icon-s-open","el-icon-s-shop","el-icon-s-marketing","el-icon-s-flag","el-icon-s-comment","el-icon-s-finance","el-icon-s-claim","el-icon-s-custom","el-icon-s-opportunity","el-icon-s-data","el-icon-s-check","el-icon-s-grid","el-icon-menu","el-icon-share","el-icon-d-caret","el-icon-caret-left","el-icon-caret-right","el-icon-caret-bottom","el-icon-caret-top","el-icon-bottom-left","el-icon-bottom-right","el-icon-back","el-icon-right","el-icon-bottom","el-icon-top","el-icon-top-left","el-icon-top-right","el-icon-arrow-left","el-icon-arrow-right","el-icon-arrow-down","el-icon-arrow-up","el-icon-d-arrow-left","el-icon-d-arrow-right","el-icon-video-pause","el-icon-video-play","el-icon-refresh","el-icon-refresh-right","el-icon-refresh-left","el-icon-finished","el-icon-sort","el-icon-sort-up","el-icon-sort-down","el-icon-rank","el-icon-loading","el-icon-view","el-icon-c-scale-to-original","el-icon-date","el-icon-edit","el-icon-edit-outline","el-icon-folder","el-icon-folder-opened","el-icon-folder-add","el-icon-folder-remove","el-icon-folder-delete","el-icon-folder-checked","el-icon-tickets","el-icon-document-remove","el-icon-document-delete","el-icon-document-copy","el-icon-document-checked","el-icon-document","el-icon-document-add","el-icon-printer","el-icon-paperclip","el-icon-takeaway-box","el-icon-search","el-icon-monitor","el-icon-attract","el-icon-mobile","el-icon-scissors","el-icon-umbrella","el-icon-headset","el-icon-brush","el-icon-mouse","el-icon-coordinate","el-icon-magic-stick","el-icon-reading","el-icon-data-line","el-icon-data-board","el-icon-pie-chart","el-icon-data-analysis","el-icon-collection-tag","el-icon-film","el-icon-suitcase","el-icon-suitcase-1","el-icon-receiving","el-icon-collection","el-icon-files","el-icon-notebook-1","el-icon-notebook-2","el-icon-toilet-paper","el-icon-office-building","el-icon-school","el-icon-table-lamp","el-icon-house","el-icon-no-smoking","el-icon-smoking","el-icon-shopping-cart-full","el-icon-shopping-cart-1","el-icon-shopping-cart-2","el-icon-shopping-bag-1","el-icon-shopping-bag-2","el-icon-sold-out","el-icon-sell","el-icon-present","el-icon-box","el-icon-bank-card","el-icon-money","el-icon-coin","el-icon-wallet","el-icon-discount","el-icon-price-tag","el-icon-news","el-icon-guide","el-icon-male","el-icon-female","el-icon-thumb","el-icon-cpu","el-icon-link","el-icon-connection","el-icon-open","el-icon-turn-off","el-icon-set-up","el-icon-chat-round","el-icon-chat-line-round","el-icon-chat-square","el-icon-chat-dot-round","el-icon-chat-dot-square","el-icon-chat-line-square","el-icon-message","el-icon-postcard","el-icon-position","el-icon-turn-off-microphone","el-icon-microphone","el-icon-close-notification","el-icon-bangzhu","el-icon-time","el-icon-odometer","el-icon-crop","el-icon-aim","el-icon-switch-button","el-icon-full-screen","el-icon-copy-document","el-icon-mic","el-icon-stopwatch","el-icon-medal-1","el-icon-medal","el-icon-trophy","el-icon-trophy-1","el-icon-first-aid-kit","el-icon-discover","el-icon-place","el-icon-location","el-icon-location-outline","el-icon-location-information","el-icon-add-location","el-icon-delete-location","el-icon-map-location","el-icon-alarm-clock","el-icon-timer","el-icon-watch-1","el-icon-watch","el-icon-lock","el-icon-unlock","el-icon-key","el-icon-service","el-icon-mobile-phone","el-icon-bicycle","el-icon-truck","el-icon-ship","el-icon-basketball","el-icon-football","el-icon-soccer","el-icon-baseball","el-icon-wind-power","el-icon-light-rain","el-icon-lightning","el-icon-heavy-rain","el-icon-sunrise","el-icon-sunrise-1","el-icon-sunset","el-icon-sunny","el-icon-cloudy","el-icon-partly-cloudy","el-icon-cloudy-and-sunny","el-icon-moon","el-icon-moon-night","el-icon-dish","el-icon-dish-1","el-icon-food","el-icon-chicken","el-icon-fork-spoon","el-icon-knife-fork","el-icon-burger","el-icon-tableware","el-icon-sugar","el-icon-dessert","el-icon-ice-cream","el-icon-hot-water","el-icon-water-cup","el-icon-coffee-cup","el-icon-cold-drink","el-icon-goblet","el-icon-goblet-full","el-icon-goblet-square","el-icon-goblet-square-full","el-icon-refrigerator","el-icon-grape","el-icon-watermelon","el-icon-cherry","el-icon-apple","el-icon-pear","el-icon-orange","el-icon-coffee","el-icon-ice-tea","el-icon-ice-drink","el-icon-milk-tea","el-icon-potato-strips","el-icon-lollipop","el-icon-ice-cream-square","el-icon-ice-cream-round"].concat(["el-icon-info","el-icon-error","el-icon-success","el-icon-warning","el-icon-question","el-icon-back","el-icon-arrow-left","el-icon-arrow-down","el-icon-arrow-right","el-icon-arrow-up","el-icon-caret-left","el-icon-caret-bottom","el-icon-caret-top","el-icon-caret-right","el-icon-d-arrow-left","el-icon-d-arrow-right","el-icon-minus","el-icon-plus","el-icon-remove","el-icon-circle-plus","el-icon-remove-outline","el-icon-circle-plus-outline","el-icon-close","el-icon-check","el-icon-circle-close","el-icon-circle-check","el-icon-zoom-out","el-icon-zoom-in","el-icon-d-caret","el-icon-sort","el-icon-sort-down","el-icon-sort-up","el-icon-tickets","el-icon-document","el-icon-goods","el-icon-sold-out","el-icon-news","el-icon-message","el-icon-date","el-icon-printer","el-icon-time","el-icon-bell","el-icon-mobile-phone","el-icon-service","el-icon-view","el-icon-menu","el-icon-more","el-icon-more-outline","el-icon-star-on","el-icon-star-off","el-icon-location","el-icon-location-outline","el-icon-phone","el-icon-phone-outline","el-icon-picture","el-icon-picture-outline","el-icon-delete","el-icon-search","el-icon-edit","el-icon-edit-outline","el-icon-rank","el-icon-refresh","el-icon-share","el-icon-setting","el-icon-upload","el-icon-upload2","el-icon-download","el-icon-loading"]))),o={name:"IconList",model:{prop:"value",event:"change"},props:["value","disabled"],data:function(){return{newValue:"",elList:i,iconList:[]}},watch:{value:function(e){this.newValue=e}},created:function(){this.initFun()},methods:{changeVal:function(e){this.$emit("change",e)},initFun:function(){this.iconList=[]}}};n("82a3"),n=n("2877"),n=Object(n.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"g-box"},[e._l(e.iconList,(function(t,i){return n("div",{key:i,staticClass:"g-block",on:{click:function(n){return e.changeVal("iconfont "+t)}}},[n("i",{staticClass:"iconfont",class:t})])})),e._l(e.elList,(function(t,i){return n("div",{key:i+"-el",staticClass:"g-block",on:{click:function(n){return e.changeVal(t)}}},[n("i",{class:t})])}))],2)}),[],!1,null,"16c10c3f",null);t.default=n.exports},"06c2":function(e,t,n){"use strict";n("6ef7")},"0781":function(e,t,n){"use strict";n.r(t);var i=n("24ab"),o=(i=n.n(i),n("83d6")),r=(n=n.n(o),o=n.a.showSettings,n.a.tagsView),a=n.a.fixedHeader;n=n.a.sidebarLogo,i={theme:i.a.theme,showSettings:o,tagsView:r,fixedHeader:a,sidebarLogo:n};t.default={namespaced:!0,state:i,mutations:{CHANGE_SETTING:function(e,t){var n=t.key;t=t.value;e.hasOwnProperty(n)&&(e[n]=t)}},actions:{changeSetting:function(e,t){(0,e.commit)("CHANGE_SETTING",t)}}}},"07cd":function(e,t,n){"use strict";n("1d35")},"082a":function(e,t,n){"use strict";n.r(t);var i=n("53ca"),o=(n("d3b7"),n("159b"),n("ddb0"),n("2ca0"),n("b0c0"),n("4de4"),n("fb6a"),n("82f2")),r=[];o.keys().forEach((function(e){e.startsWith("./index")||e.startsWith("./request")||(e=o(e),r.push(e.default||e))})),t.default={install:function(e){r.forEach((function(t){if("function"==typeof t)e.prototype["$"+t.name]=t;else if("object"===Object(i.a)(t))for(var n in t)e.prototype["$"+n]=t[n]})),e.filter("ellipsis",(function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:25;return e?e.length>t?e.slice(0,t)+"...":e:""}))}}},"0905":function(e,t,n){"use strict";n("cc1d")},"097d":function(e,t,n){"use strict";n("3743")},"0f9a":function(e,t,n){"use strict";n.r(t);var i=n("2909"),o=n("1da1"),r=(n("96cf"),n("b0c0"),n("d3b7"),n("498a"),n("4de4"),n("159b"),n("99af"),n("3ca3"),n("ddb0"),n("d81d"),n("5daa")),a=n("5f87"),c={},s=(window.ajaxTimeout=2e4,Object(o.a)(regeneratorRuntime.mark((function e(){var t,n,i,s,l,u,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=0<d.length&&void 0!==d[0]?d[0]:"",i=3<d.length&&void 0!==d[3]?d[3]:{},s=4<d.length&&void 0!==d[4]?d[4]:c,l=5<d.length?d[5]:void 0,n=t.method.toLowerCase(),u={method:n,baseURL:"",url:r.a.baseURL+t.url,data:t.data,params:i,processData:!0,timeout:window.ajaxTimeout,headers:s,onUploadProgress:l},l&&"function"==typeof l&&(u.onUploadProgress=l),axios.interceptors.request.use((function(e){return e.data.token||(e.data.token=Object(a.d)()),e}),(function(e){return Promise.reject(new Error("服务器异常,请联系管理员!"))})),axios.interceptors.response.use(function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){return Promise.reject(e.response.data)})),e.abrupt("return",new Promise((function(e,t){axios(u).then((function(t){e(t.data)})).catch((function(e){t(e)}))})));case 12:case"end":return e.stop()}}),e)})))),l={},u=(window.ajaxTimeout=2e4,Object(o.a)(regeneratorRuntime.mark((function e(){var t,n,i,c,s,u,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=0<d.length&&void 0!==d[0]?d[0]:"",i=3<d.length&&void 0!==d[3]?d[3]:{},c=4<d.length&&void 0!==d[4]?d[4]:l,s=5<d.length?d[5]:void 0,n=t.method.toLowerCase(),u={method:n,baseURL:"",url:r.a.aoldBaseURL+t.url,data:t.data,params:i,processData:!0,timeout:window.ajaxTimeout,headers:c,onUploadProgress:s},s&&"function"==typeof s&&(u.onUploadProgress=s),axios.interceptors.request.use((function(e){return e.data.token||(e.data.token=Object(a.d)()),e}),(function(e){return Promise.reject(new Error("服务器异常,请联系管理员!"))})),axios.interceptors.response.use(function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){return Promise.reject(e.response.data)})),e.abrupt("return",new Promise((function(e,t){axios(u).then((function(t){e(t.data)})).catch((function(e){t(e)}))})));case 12:case"end":return e.stop()}}),e)})))),d={token:Object(a.d)(),name:"",userid:Object(a.e)(),avatar:n("8efb"),introduction:"",roles:["admin"],btnList:Object(a.a)(),navList:Object(a.b)(),business_companyNo:Object(a.f)()||""};t.default={namespaced:!0,state:d,mutations:{SET_TOKEN:function(e,t){""===(e.token=t)?Object(a.i)():Object(a.o)(t)},SET_USER_ID:function(e,t){""===(e.userid=t)?Object(a.j)():Object(a.p)(t)},SET_MENU:function(e,t){e.menu=t},SET_HAS:function(e,t){e.has=t},SET_INTRODUCTION:function(e,t){e.introduction=t},SET_NAME:function(e,t){e.name=t},SET_AVATAR:function(e,t){e.avatar=t},SET_ROLES:function(e,t){e.roles=t},navListFn:function(e,t){e.navList=t=t||[],Object(a.m)(t)},btnListFn:function(e,t){e.btnList=t=t||[],Object(a.l)(t)},business_companyNo:function(e,t){""===(e.business_companyNo=t)?Object(a.k)():Object(a.q)(t)}},actions:{change_company:function(e,t){var n=e.commit;return new Promise((function(e,i){n("business_companyNo",t),e("ok")}))},login:function(e,t){var n=e.commit,i=t.username,o=t.password;return new Promise((function(e,t){var r;r={username:i.trim(),password:o},s({url:"Api/login",method:"post",data:r}).then((function(t){var i=t.code,o=t.data;0===i&&(i=o.token,o=o.userinfo.id,n("SET_TOKEN",i),n("SET_USER_ID",o),n("business_companyNo","1")),e(t)})).catch((function(e){t(e)}))}))},dingUserInfor:function(e,t){var n=e.commit;return new Promise(function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(i,o){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s({url:"Api/dintalk",method:"post",data:t}).then((function(e){var t=e.code;e=e.data;0===t?(t=e.token,e=e.id,n("SET_TOKEN",t),n("SET_USER_ID",e),n("business_companyNo","1"),i("success")):i("error")})).catch((function(e){o(e)}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())},getMenuList:function(e){return Object(o.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.commit,e.that,t.abrupt("return",new Promise(function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(t,o){var c,l,f,h,p,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.d)()){e.next=4;break}t("noToken"),e.next=21;break;case 4:if(c={},"1"===(l=d.business_companyNo))return e.next=9,s({url:"Admin/menu",method:"post",data:{}});e.next=12;break;case 9:c=e.sent,e.next=19;break;case 12:if("2"===l)return e.next=15,u({url:"Admin/menu",method:"post",data:{}});e.next=18;break;case 15:c=e.sent,e.next=19;break;case 18:c={code:0,data:[],massage:""};case 19:f=(h=c).code,h=h.data,0===f?(h=(h=h).filter((function(e){return e.child&&0<e.child.length})),p=[],m=[],h.forEach((function(e){var t={name:e.menu_route,path:"/".concat("1"===l?"caixiao":"aold").concat(e.menu_route),meta:{title:e.menu_name,icon:e.menu_img},children:[]};e.child.forEach((function(e){var n={path:e.menu_route,name:e.menu_route,meta:{title:e.menu_name,icon:e.menu_img},url:e.menu_url};e={menu_route:e.menu_route,action:e.action};m.push(e),t.children.push(n)})),p.push(t)})),r("navListFn",p),r("btnListFn",m),function(e){var t=[{path:"/person",component:function(){return Promise.resolve().then(n.bind(null,"c1f7"))},redirect:"/person/my-message",hidden:!0,alwaysShow:!0,meta:{title:"个人中心",icon:"user"},children:[{path:"my-message",component:function(){return n.e("chunk-b7b50378").then(n.bind(null,"2cc2"))},name:"MyMessage",alwaysShow:!0,meta:{title:"我的信息",noCache:!0,breadcrumb:!0}},{path:"change-phone",component:function(){return n.e("chunk-4c2099a0").then(n.bind(null,"fdb1"))},name:"ChangePhone",alwaysShow:!0,meta:{title:"更换手机号",noCache:!0,breadcrumb:!0}},{path:"change-password",component:function(){return n.e("chunk-55382053").then(n.bind(null,"a9ad"))},name:"ChangePassword",alwaysShow:!0,meta:{title:"修改密码",noCache:!0,breadcrumb:!0}}]},{path:"/welcome",component:function(){return Promise.resolve().then(n.bind(null,"c1f7"))},redirect:"/welcome/dashboard",children:[{path:"dashboard",component:function(){return n.e("chunk-f42a35d4").then(n.bind(null,"9406"))},name:"Dashboard",meta:{title:"首页",icon:"dashboard",affix:!0}}]}],o=d.business_companyNo;e.map((function(e){return e.component=function(e){return Promise.resolve().then(function(){var t=[n("c1f7")];e.apply(null,t)}.bind(this)).catch(n.oe)},e.children&&0<e.children.length&&(e.redirect="/".concat(e.name,"/").concat(e.children[0].name),e.children.map((function(e){return e.component=function(t){return Promise.all([n.e("chunk-705e55d2"),n.e("chunk-0c3efc7e")]).then(function(){var i=[n("feca")("./".concat("1"===o?"caixiao":"aold","/").concat(e.url,".vue"))];t.apply(null,i)}.bind(this)).catch(n.oe)},e}))),e})),t.push.apply(t,Object(i.a)(e)),window.vm.$router.addRoutes(t)}(p),t("success")):t(101===f||102===f?"noToken":c);case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 2:case"end":return t.stop()}}),t)})))()},logout:function(e){var t=e.commit,n=(e.state,e.dispatch);return new Promise((function(e,i){t("SET_TOKEN",""),t("SET_USER_ID",""),t("SET_ROLES",[]),t("SET_MENU",""),t("SET_HAS",""),t("business_companyNo",""),Object(a.h)(),Object(a.g)(),n("tagsView/delAllViews",null,{root:!0}),e()}))},resetToken:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),t("SET_USER_ID",""),t("SET_ROLES",[]),Object(a.j)(),e()}))}}}},1:function(e,t){},1004:function(e,t,n){"use strict";n.r(t),n("ac1f"),n("00b4"),n("d3b7"),n("25f0"),t.default={rulesPhone:function(e,t,n){/^1[23456789]\d{9}$/.test(t)?n():n(new Error("请输入正确的手机号"))},rulesNumber:function(e,t,n){/^[0-9]*$/.test(t)?n():n(new Error("请输入数字"))},rulesTwoNumber:function(e,t,n){/^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/.test(t)?n():n(new Error("请输入正确格式"))},rulesNumberHander:function(e,t,n){/(^[1-9][0-9]$)|(^100&)|(^[1-9]$)$/.test(t)?n():n(new Error("请输入1-100的数字"))},positiveInteger:function(e,t,n){/^[1-9]\d*$/.test(t)?n():n(new Error("请输入正整数"))},positiveTwoDecimal:function(e,t,n){t="number"==typeof t?t+"":"0","0"==t||!/^[0-9]+(.[0-9]{2})?$/.test(t)||/^[1-9]\d*$/.test(t)?n(new Error("请输入两位小数的正数")):n()},positiveTwoOrOneDecimal:function(e,t,n){t="number"==typeof t?t.toString():"0","0"===t||!/^[0-9]+(.[0-9]{1,2})?$/.test(t)||/^[1-9]\d*$/.test(t)?n(new Error("请输入1-2位小数的正数")):n()},rulesPassword:/^(\w){6,12}$/,rulesPhonePattern:/^1[23456789]\d{9}$/,validatorInteger:/^[1-9]\d*$/,rulesPassword2:/^[a-zA-Z]w{1,4}$/,rulesUserName:/^[\u4E00-\u9FA5]+$/,rulesPeopleID:/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,rulesHuzhao:/^((1[45]\d{7})|(G\d{8})|(P\d{7})|(S\d{7,8}))?$/,rulesEmail:/^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/,rulesYZCode:/^[1-9][0-9]{5}$/,rulesCarId:/(^[\u4E00-\u9FA5]{1}[A-Z0-9]{6}$)|(^[A-Z]{2}[A-Z0-9]{2}[A-Z0-9\u4E00-\u9FA5]{1}[A-Z0-9]{4}$)|(^[\u4E00-\u9FA5]{1}[A-Z0-9]{5}[挂学警军港澳]{1}$)|(^[A-Z]{2}[0-9]{5}$)|(^(08|38){1}[A-Z0-9]{4}[A-Z0-9挂学警军港澳]{1}$)/}},"10fb":function(e,t,n){e.exports=n.p+"static/img/logo.66bee2dc.gif"},1191:function(e,t,n){"use strict";var i=n("1b69");t.a={list:function(e,t){return Object(i.a)("Admin/versionlist",e,"post",t)}}},"15d1":function(e,t,n){"use strict";n("33e6")},"1b69":function(e,t,n){"use strict";var i=n("1da1"),o=(n("96cf"),n("d3b7"),n("5daa")),r=n("5f87"),a={};window.ajaxTimeout=2e4,t.a=Object(i.a)(regeneratorRuntime.mark((function e(){var t,n,c,s,l,u,d,f=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=0<f.length&&void 0!==f[0]?f[0]:"",n=1<f.length&&void 0!==f[1]?f[1]:{},c=2<f.length&&void 0!==f[2]?f[2]:"GET",s=3<f.length&&void 0!==f[3]?f[3]:{},l=4<f.length&&void 0!==f[4]?f[4]:a,u=5<f.length?f[5]:void 0,c=c.toLowerCase(),d={method:c,baseURL:"",url:o.a.baseURL+t,data:n,params:s,processData:!0,timeout:window.ajaxTimeout,headers:l,onUploadProgress:u},u&&"function"==typeof u&&(d.onUploadProgress=u),axios.interceptors.request.use((function(e){return e.data.token||(e.data.token=Object(r.d)()),e}),(function(e){return Promise.reject(new Error("服务器异常,请联系管理员!"))})),axios.interceptors.response.use(function(){var e=Object(i.a)(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 200===t.status&&100<=(n=t.data.code)&&n<=104&&(Object(r.i)(),Object(r.h)(),Object(r.g)()),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){return Promise.reject(e.response.data)})),e.abrupt("return",new Promise((function(e,t){axios(d).then((function(t){e(t.data)})).catch((function(e){e.response&&e.response.data?t(e.response.data):t(e)}))})));case 12:case"end":return e.stop()}}),e)})))},"1d35":function(e,t,n){},2470:function(e,t,n){"use strict";n.r(t);var i={name:"ShySelect",model:{prop:"value",event:"change"},props:["value","array","placeholder"],data:function(){return{newValue:this.value,minWidth:""}},watch:{newValue:function(e){this.$emit("change",e)},value:function(e){this.newValue=e}},methods:{setMinWidth:function(e){var t;this.array&&0<this.array.length?this.minWidth=e.srcElement.clientWidth:(t=document.getElementsByClassName("el-select-dropdown__empty"))&&0<t.length&&(t[0].style["min-width"]=e.srcElement.clientWidth+2+"px")}}};n=n("2877"),n=Object(n.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:e.placeholder},on:{focus:e.setMinWidth},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.array,(function(t){return n("el-option",{key:t.value,style:{"min-width":e.minWidth+2+"px"},attrs:{label:t.label,value:t.value}})})),1)}),[],!1,null,null,null);t.default=n.exports},"24ab":function(e,t,n){e.exports={theme:"#1890ff"}},2600:function(e,t,n){},"2a16":function(e,t,n){},3205:function(e,t,n){"use strict";var i=n("1b69"),o="Admin/";t.a={list1:function(e,t){return Object(i.a)(o+"customerlist",e,"post",t)},list2:function(e,t){return Object(i.a)(o+"companylist",e,"post",t)},list3:function(e,t){return Object(i.a)(o+"supplierlist",e,"post",t)},list4:function(e,t){return Object(i.a)(o+"ratelist",e,"post",t)},list:function(e,t){return Object(i.a)(o+"interlist",e,"post",t)},add:function(e,t){return Object(i.a)(o+"interadd",e,"post",t)},detail:function(e,t){return Object(i.a)(o+"interinfo",e,"post",t)},update:function(e,t){return Object(i.a)(o+"intersave",e,"post",t)},getcat:function(e,t){return Object(i.a)(o+"getcat",e,"post",t)},accountall:function(e,t){return Object(i.a)(o+"userall",e,"post",t)}}},"33e6":function(e,t,n){},3743:function(e,t,n){},"3cee":function(e,t,n){"use strict";n.r(t),t.default={initPwd:function(e,t,n,i,o,r){var a="";if("0"==t&&"0"==n&&"0"==i)return a;for(var c=e-=1;0<=c;c--){var s=Math.floor(94*Math.random()+33);"0"==t&&48<=s&&s<=57||"0"==n&&(65<=s&&s<=90||97<=s&&s<=122)||"0"==i&&(33<=s&&s<=47||58<=s&&s<=64||91<=s&&s<=96||123<=s&&s<=127)?c++:a+=String.fromCharCode(s)}return"0"==o?"0"==r?a.toUpperCase():a.toLowerCase():a}}},"3ea1":function(e,t,n){"use strict";n("2600")},"3f4d":function(e,t,n){},4360:function(e,t,n){"use strict";n("d3b7"),n("ddb0"),n("ac1f"),n("5319");var i=n("2f62"),o=(n("b0c0"),{sidebar:function(e){return e.app.sidebar},size:function(e){return e.app.size},searchSize:function(e){return e.app.searchSize},tablebtnSize:function(e){return e.app.tablebtnSize},device:function(e){return e.app.device},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},userid:function(e){return e.user.userid},introduction:function(e){return e.user.introduction},roles:function(e){return e.user.roles},errorLogs:function(e){return e.errorLog.logs},btnList:function(e){return e.user.btnList},navList:function(e){return e.user.navList},business_companyNo:function(e){return e.user.business_companyNo}}),r=(Vue.use(i.a),n("c653"));n=r.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1");t=r(t);return e[n]=t.default,e}),{}),i=new i.a.Store({modules:n,getters:o});t.a=i},"4d49":function(e,t,n){"use strict";n.r(t),n("a434"),t.default={namespaced:!0,state:{logs:[]},mutations:{ADD_ERROR_LOG:function(e,t){e.logs.push(t)},CLEAR_ERROR_LOG:function(e){e.logs.splice(0)}},actions:{addErrorLog:function(e,t){(0,e.commit)("ADD_ERROR_LOG",t)},clearErrorLog:function(e){(0,e.commit)("CLEAR_ERROR_LOG")}}}},"4e0f":function(e,t,n){"use strict";n("2a16")},5594:function(e,t,n){"use strict";var i=n("1da1"),o=(n("96cf"),n("d3b7"),n("5daa")),r=n("5f87"),a={};window.ajaxTimeout=2e4,t.a=Object(i.a)(regeneratorRuntime.mark((function e(){var t,n,c,s,l,u,d,f=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=0<f.length&&void 0!==f[0]?f[0]:"",n=1<f.length&&void 0!==f[1]?f[1]:{},c=2<f.length&&void 0!==f[2]?f[2]:"GET",s=3<f.length&&void 0!==f[3]?f[3]:{},l=4<f.length&&void 0!==f[4]?f[4]:a,u=5<f.length?f[5]:void 0,c=c.toLowerCase(),d={method:c,baseURL:"",url:o.a.aoldBaseURL+t,data:n,params:s,processData:!0,timeout:window.ajaxTimeout,headers:l,onUploadProgress:u},u&&"function"==typeof u&&(d.onUploadProgress=u),axios.interceptors.request.use((function(e){return e.data.token||(e.data.token=Object(r.d)()),e}),(function(e){return Promise.reject(new Error("服务器异常,请联系管理员!"))})),axios.interceptors.response.use(function(){var e=Object(i.a)(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 200===t.status&&100<=(n=t.data.code)&&n<=104&&(Object(r.i)(),Object(r.h)(),Object(r.g)()),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){return Promise.reject(e.response.data)})),e.abrupt("return",new Promise((function(e,t){axios(d).then((function(t){e(t.data)})).catch((function(e){e.response&&e.response.data?t(e.response.data):t(e)}))})));case 12:case"end":return e.stop()}}),e)})))},"55b4":function(e,t,n){"use strict";n("731a")},"56d7":function(e,t,n){"use strict";n.r(t);var i={},o=(t=(n.r(i),n.d(i,"parseTime",(function(){return v.c})),n.d(i,"formatTime",(function(){return v.b})),n.d(i,"timeAgo",(function(){return y})),n.d(i,"numberFormatter",(function(){return x})),n.d(i,"toThousandFilter",(function(){return k})),n.d(i,"uppercaseFirst",(function(){return O})),n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("a434"),n("2ca0"),n("fb6a"),n("d3b7"),n("159b"),n("b64b"),n("4de4"),n("ac1f"),n("5319"),n("3ca3"),n("ddb0"),n("c1f7"),VueRouter),new t({mode:"hash",base:"/",scrollBehavior:function(){return{y:0}},routes:[{path:"/",redirect:"/loadingPage"},{path:"/loadingPage",component:function(){return n.e("chunk-9a80af00").then(n.bind(null,"7e10"))},hidden:!0},{path:"/login",component:function(){return n.e("chunk-49a35529").then(n.bind(null,"9ed6"))},hidden:!0},{path:"/forget-password",component:function(){return n.e("chunk-1720724a").then(n.bind(null,"43b9"))},hidden:!0,noCache:!0}]})),r=t.prototype.push,a=(t=(t.prototype.push=function(e){return r.call(this,e).catch((function(e){return e}))},Vue.use(t),o),o=(n("f5df1"),n("e05f"),n("6944")),o=n.n(o),n("5f87")),c={name:"NoAuth",data:function(){return{errGif:n("cc6c")+"?"+ +new Date}},methods:{back:function(e){e||this.$route.query.noGoBack?window.vm.$router.push({path:"/welcome/dashboard"}):window.vm.$router.go(-1)}}},s=(n("07cd"),n("2877")),l=(c=Object(s.a)(c,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"noAuth"},[t("el-row",[t("el-col",{attrs:{span:10}},[t("h1",{staticClass:"text-jumbo text-ginormous"},[e._v("哎呀!")]),t("h2",{staticStyle:{padding:"30px 0 20px 0"}},[e._v("你无权限访问该数据!")]),t("h4",{staticStyle:{padding:"15px 0 20px 3px"}},[e._v("请联系领导解决")]),t("ul",{staticClass:"list-unstyled"},[t("li",[e._v("或者你可以去:")]),t("li",{staticClass:"link-type"},[t("span",{on:{click:function(t){return e.back(1)}}},[e._v(" 回首页 ")])]),t("li",{staticClass:"link-type"},[t("span",{on:{click:e.back}},[e._v(" 返回上一页 ")])])])]),t("el-col",{attrs:{span:14}},[t("img",{attrs:{src:e.errGif,width:"313",height:"428",alt:"那个女孩把冰淇淋掉了!"}})])],1)],1)}),[],!1,null,"87b7c3a6",null).exports,n("5c96")),u=(l=n.n(l),n("0808"),n("24ab"),n("b20f"),n("b0c0"),n("9302")),d=[],f=(u.keys().forEach((function(e){var t=u(e);e.startsWith("./gRegion")||d.push(t.default||t)})),{install:function(e){d.forEach((function(t){e.component(t.name,t)}))}}),h=n("1da1"),p=(n("96cf"),n("61f7")),m=(n("e9c4"),n("5daa")),g={name:"App",data:function(){return{code:""}},created:function(){var e=this;return Object(h.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("isDingDing"===Object(p.a)())return t.next=3,e.testing();t.next=5;break;case 3:t.next=7;break;case 5:return t.next=7,e.getMenu();case 7:case"end":return t.stop()}}),t)})))()},methods:{testing:function(){var e=this;return Object(h.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.next=2;var n=function(){var t=Object(h.a)(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.code=n,null!=e.code&&""!=e.code)return t.next=4,e.setcode(e.code);t.next=6;break;case 4:t.next=8;break;case 6:return t.next=8,e.logout();case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return void dd.ready((function(){dd.runtime.permission.requestAuthCode({corpId:m.a.corpId,onSuccess:function(e){n(e.code)},onFail:function(e){alert("fail"),alert(JSON.stringify(e))}})}));case 2:case"end":return t.stop()}}),t)})))()},setcode:function(e){var t=this;return Object(h.a)(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:i={code:e},t.$store.dispatch("user/dingUserInfor",i).then(function(){var e=Object(h.a)(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("success"===n)return e.next=3,t.getMenu();e.next=5;break;case 3:e.next=7;break;case 5:return e.next=7,t.logout();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch(function(){var e=Object(h.a)(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.logout();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},getMenu:function(){var e=this;return Object(h.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$store.dispatch("user/getMenuList",e).then(function(){var t=Object(h.a)(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("noToken"===n)return t.next=3,e.logout();t.next=5;break;case 3:t.next=11;break;case 5:if("success"!==n){t.next=9;break}"/loadingPage"!==e.$route.path&&"/"!==e.$route.path&&"/login"!==e.$route.path||window.vm.$router.replace("/welcome"),t.next=11;break;case 9:return t.next=11,e.logout();case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch(function(){var t=Object(h.a)(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.logout();case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},logout:function(){var e=this;return Object(h.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("/login"!==e.$route.path)return t.next=3,e.$store.dispatch("user/logout");t.next=4;break;case 3:e.$router.push("/login");case 4:case"end":return t.stop()}}),t)})))()}}},b=(n("5c0b"),Object(s.a)(g,(function(){var e=this.$createElement;e=this._self._c||e;return e("div",{attrs:{id:"app"}},[e("router-view")],1)}),[],!1,null,null,null).exports),v=(s=n("4360"),g=n("082a"),n("a9e3"),n("b680"),n("25f0"),n("ed08"));function w(e,t){return 1===e?e+t:e+t+"s"}function y(e){return e=Date.now()/1e3-Number(e),e<3600?w(~~(e/60)," minute"):e<86400?w(~~(e/3600)," hour"):w(~~(e/86400)," day")}function x(e,t){for(var n=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],i=0;i<n.length;i++)if(e>=n[i].value)return(e/n[i].value).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+n[i].symbol;return e.toString()}function k(e){return(+e||0).toString().replace(/^-?\d+/g,(function(e){return e.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function O(e){return e.charAt(0).toUpperCase()+e.slice(1)}Vue.filter("money",(function(e){return parseFloat(e).toFixed(2)})),Vue.filter("num",(function(e){return parseInt(e)}));var _=n("95ff");_=n.n(_);Array.prototype.remove=function(e){e=this.indexOf(e),-1<e&&this.splice(e,1)},"function"!=typeof String.prototype.startsWith&&(String.prototype.startsWith=function(e){return this.slice(0,e.length)===e}),Vue.component("noAuth",c),Vue.use(f),Vue.use(o.a,{defaultOptions:{zIndex:9999}}),Vue.use(g.default),Vue.use(_.a),Object.keys(i).forEach((function(e){Vue.filter(e,i[e])})),Vue.config.productionTip=!1,Vue.use(l.a),window.vm=new Vue({router:t,store:s.a,render:function(e){return e(b)}}).$mount("#app"),null!==Object(a.d)()&&void 0!==Object(a.d)()&&""!==Object(a.d)()||(Object(a.h)(),Object(a.g)(),Object(a.i)(),t.replace({name:"login"}))},"5c0b":function(e,t,n){"use strict";n("9c0c")},"5daa":function(e,t,n){"use strict";n=n("f121"),t.a={baseURL:n.api.baseApi,testURL:n.api.testApi,aoldBaseURL:n.api.aoldBaseApi,corpId:n.ding.CorpId,agentId:n.ding.AgentId}},"5f87":function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"o",(function(){return d})),n.d(t,"i",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"p",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"m",(function(){return b})),n.d(t,"h",(function(){return v})),n.d(t,"a",(function(){return w})),n.d(t,"l",(function(){return y})),n.d(t,"g",(function(){return x})),n.d(t,"c",(function(){return k})),n.d(t,"n",(function(){return O})),n.d(t,"f",(function(){return _})),n.d(t,"q",(function(){return E})),n.d(t,"k",(function(){return S}));t=n("a78e");var i=n.n(t),o=(n="Purchase-Console-","".concat(n,"oken")),r="".concat(n,"Menu"),a="".concat(n,"MenuBtn"),c="".concat(n,"Notice"),s="".concat(n,"UserId"),l="".concat(n,"businessCompanyNo");function u(){return i.a.get(o)}function d(e){return i.a.set(o,e)}function f(){return i.a.remove(o)}function h(){return i.a.get(s)}function p(e){return i.a.set(s,e)}function m(){return i.a.remove(s)}function g(){var e=i.a.get(r);return e?JSON.parse(e):[]}function b(e){return i.a.set(r,e)}function v(){return i.a.remove(r)}function w(){return i.a.get(a)}function y(e){return i.a.set(a,e)}function x(){return i.a.remove(a)}function k(){return i.a.get(c)}function O(e){return i.a.set(c,e)}function _(){return i.a.get(l)}function E(e){return i.a.set(l,e)}function S(){return i.a.remove(l)}},"60cc":function(e,t,n){"use strict";n("a642")},"61f7":function(e,t,n){"use strict";function i(e){return/^(https?:|mailto:|tel:)/.test(e)}function o(e){return/^[A-Za-z]+$/.test(e)}function r(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function a(e){return/^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(e)}function c(e){return/^([0-9]{3,4}-)?[0-9]{7,8}$/.test(e)}function s(e){return e=e.split("-"),3===e.length&&f(e[0])&&h(e[1])&&p(e[2])}function l(e){return e=e.split("-"),2===e.length&&f(e[0])&&h(e[1])}function u(e){return e=e.split("-"),2===e.length&&h(e[0])&&p(e[1])}function d(e){return e=e.split("-"),1===e.length&&h(e[0])}function f(e){return/0\d{2,3}?$/.test(e)&&(3==e.length||4==e.length)}function h(e){return/\d{7,8}$/.test(e)&&(7==e.length||8==e.length)}function p(e){return/\d{1,6}$/.test(e)&&0<e.length&&e.length<7}function m(e){return/[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}/.test(e)}function g(e){return/[\u4e00-\u9fa5]$/.test(e)}function b(e){return/^[0-9]*$/.test(e)}function v(e){return/^[0-9A-Za-z]*$/.test(e)}function w(e){return/[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g.test(e)}function y(){var e=navigator.userAgent.toLowerCase(),t="";return-1!=e.indexOf("micromessenger")&&(t="Weixin"),-1!=e.indexOf("huawei-anyoffice")&&(t="Welink"),""===(t=-1!=e.indexOf("dingtalk")?"isDingDing":t)?"otherBrowser":t}function x(e){e=new Date(e);var t=e.getFullYear()+"-",n=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",i=e.getDate()+" ",o=(o=e.getHours())<10?"0".concat(o,":"):o+":",r=(r=e.getMinutes())<10?"0".concat(r,":"):r+":";e=e.getSeconds();return t+n+i+o+r+(e<10?"0".concat(e):e)}n.d(t,"e",(function(){return i})),n.d(t,"o",(function(){return o})),n.d(t,"p",(function(){return r})),n.d(t,"g",(function(){return a})),n.d(t,"h",(function(){return c})),n.d(t,"k",(function(){return s})),n.d(t,"j",(function(){return l})),n.d(t,"m",(function(){return u})),n.d(t,"l",(function(){return d})),n.d(t,"f",(function(){return m})),n.d(t,"c",(function(){return g})),n.d(t,"i",(function(){return b})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return w})),n.d(t,"a",(function(){return y})),n.d(t,"n",(function(){return x})),n("ac1f"),n("00b4"),n("498a"),n("d3b7"),n("1276")},6222:function(e,t,n){"use strict";n.r(t);var i=n("1da1"),o=n("5530"),r=(n("a9e3"),n("b0c0"),n("d3b7"),n("159b"),n("96cf"),n("3205")),a=n("b89a"),c=n("9f53"),s=n("2f62");o={name:"search-select",props:["code","placeholder","size","type","isDetail","disabled","names"],computed:Object(o.a)({},Object(s.b)(["business_companyNo"])),mixins:[c.a],data:function(){return{activeOptions:[],code:[],selectLoading:!1,searchName:""}},watch:{names:function(e){this.searchName=e,this.isDetail&&this.searchName&&this.remoteMethod(this.searchName)}},created:function(){this.activeOptions=[],this.initForm()},methods:{initForm:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.selectLoading=!1;case 1:case"end":return t.stop()}}),t)})))()},selectChange:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$emit("end",e.code);case 1:case"end":return t.stop()}}),t)})))()},remoteMethod:function(e){var t=this;return Object(i.a)(regeneratorRuntime.mark((function n(){var i,o,c,s,l,u;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.selectLoading=!0,""===e){n.next=32;break}if(t.activeOptions=[],i={page:1,size:50,name:e,company:e},o={},c=Number(t.type),"1"===t.business_companyNo)return n.next=9,r.a["list".concat(c)](c<4?{}:i);n.next=12;break;case 9:o=n.sent,n.next=15;break;case 12:return n.next=14,a.a["list".concat(c)](c<4?{}:i);case 14:o=n.sent;case 15:if(1===c?delete i.name:2!==c&&3!==c||delete i.company,s=(u=o).code,l=u.data,u=u.message,0!==s){n.next=24;break}t.activeOptions,("4"===t.type?l:l.list).forEach((function(e){e={code:"1"===t.type||"2"===t.type?e.companyNo||"":"3"===t.type?e.code||"":e.id||"",name:"1"===t.type?e.companyName||"":"2"===t.type?e.company_name||"":"3"===t.type?e.name||"":e.rate+"%"||!1},t.activeOptions.push(e)})),n.next=30;break;case 24:if(100<=s&&s<=104)return n.next=27,t.logout();n.next=29;break;case 27:n.next=30;break;case 29:t.$message.warning(u);case 30:n.next=33;break;case 32:t.activeOptions=[];case 33:t.selectLoading=!1;case 34:case"end":return n.stop()}}),n)})))()}}},n("55b4"),s=n("2877"),c=Object(s.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",remote:"","multiple-limit":1,"reserve-keyword":"",size:e.size,placeholder:e.placeholder,disabled:e.disabled,"remote-method":e.remoteMethod,loading:e.selectLoading},on:{change:e.selectChange},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return n("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)}),[],!1,null,"709a3539",null);t.default=c.exports},"653b":function(e,t,n){"use strict";n("cc7b")},"6cae":function(e,t,n){"use strict";n("872d")},"6ef7":function(e,t,n){},"731a":function(e,t,n){},7509:function(e,t,n){"use strict";n.r(t);var i=n("2909"),o=n("3835"),r=n("b85c");n("d3b7"),n("caad"),n("2532"),n("b0c0"),n("ddb0"),n("a434"),n("4de4"),n("fb6a"),t.default={namespaced:!0,state:{visitedViews:[],cachedViews:[]},mutations:{ADD_VISITED_VIEW:function(e,t){e.visitedViews.some((function(e){return e.path===t.path}))||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.name)||t.meta.noCache||e.cachedViews.push(t.name)},DEL_VISITED_VIEW:function(e,t){var n,i=Object(r.a)(e.visitedViews.entries());try{for(i.s();!(n=i.n()).done;){var a=Object(o.a)(n.value,2),c=a[0];if(a[1].path===t.path){e.visitedViews.splice(c,1);break}}}catch(e){i.e(e)}finally{i.f()}},DEL_CACHED_VIEW:function(e,t){t=e.cachedViews.indexOf(t.name),-1<t&&e.cachedViews.splice(t,1)},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.path===t.path}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){t=e.cachedViews.indexOf(t.name),e.cachedViews=-1<t?e.cachedViews.slice(t,t+1):[]},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var n,i=Object(r.a)(e.visitedViews);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.path===t.path){Object.assign(o,t);break}}}catch(e){i.e(e)}finally{i.f()}}},actions:{addView:function(e,t){e=e.dispatch,e("addVisitedView",t),e("addCachedView",t)},addVisitedView:function(e,t){(0,e.commit)("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){(0,e.commit)("ADD_CACHED_VIEW",t)},delView:function(e,t){var n=e.dispatch,o=e.state;return new Promise((function(e){n("delVisitedView",t),n("delCachedView",t),e({visitedViews:Object(i.a)(o.visitedViews),cachedViews:Object(i.a)(o.cachedViews)})}))},delVisitedView:function(e,t){var n=e.commit,o=e.state;return new Promise((function(e){n("DEL_VISITED_VIEW",t),e(Object(i.a)(o.visitedViews))}))},delCachedView:function(e,t){var n=e.commit,o=e.state;return new Promise((function(e){n("DEL_CACHED_VIEW",t),e(Object(i.a)(o.cachedViews))}))},delOthersViews:function(e,t){var n=e.dispatch,o=e.state;return new Promise((function(e){n("delOthersVisitedViews",t),n("delOthersCachedViews",t),e({visitedViews:Object(i.a)(o.visitedViews),cachedViews:Object(i.a)(o.cachedViews)})}))},delOthersVisitedViews:function(e,t){var n=e.commit,o=e.state;return new Promise((function(e){n("DEL_OTHERS_VISITED_VIEWS",t),e(Object(i.a)(o.visitedViews))}))},delOthersCachedViews:function(e,t){var n=e.commit,o=e.state;return new Promise((function(e){n("DEL_OTHERS_CACHED_VIEWS",t),e(Object(i.a)(o.cachedViews))}))},delAllViews:function(e,t){var n=e.dispatch,o=e.state;return new Promise((function(e){n("delAllVisitedViews",t),n("delAllCachedViews",t),e({visitedViews:Object(i.a)(o.visitedViews),cachedViews:Object(i.a)(o.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(Object(i.a)(n.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(Object(i.a)(n.cachedViews))}))},updateVisitedView:function(e,t){(0,e.commit)("UPDATE_VISITED_VIEW",t)}}}},7600:function(e,t,n){"use strict";n("c2d6")},"82a3":function(e,t,n){"use strict";n("cc02")},"82f2":function(e,t,n){var i={"./AES.js":"d2843","./cookie.js":"aa18","./date.js":"b29c","./index.js":"082a","./initPwd.js":"3cee","./storage.js":"a0c0","./toLevelArr.js":"b3a8","./uuid.js":"a1f3","./validate.js":"1004"};function o(e){return e=r(e),n(e)}function r(e){if(n.o(i,e))return i[e];throw(e=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",e}o.keys=function(){return Object.keys(i)},o.resolve=r,(e.exports=o).id="82f2"},"83d6":function(e,t){e.exports={title:"采销平台结算系统",showSettings:!0,tagsView:!0,fixedHeader:!0,sidebarLogo:!0,errorLog:"production"}},"84a2":function(e,t,n){},"872d":function(e,t,n){},"8bbf":function(e,t){e.exports=Vue},"8efb":function(e,t,n){e.exports=n.p+"static/img/avatar.ecba1844.gif"},9302:function(e,t,n){var i={"./editor-shy/main.vue":"9f32","./icon-list/main.vue":"057c","./search-select/index.vue":"6222","./shy-select/main.vue":"2470","./shy-tree/main.vue":"b570"};function o(e){return e=r(e),n(e)}function r(e){if(n.o(i,e))return i[e];throw(e=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",e}o.keys=function(){return Object.keys(i)},o.resolve=r,(e.exports=o).id="9302"},"9c0c":function(e,t,n){},"9f32":function(e,t,n){"use strict";n.r(t),n("a9e3"),n("fb6a"),n("d3b7"),n("159b");var i=n("953d"),o=(n("a753"),n("8096"),n("14e1"),[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]);i={name:"EditorShy",components:{quillEditor:i.quillEditor},props:{value:{type:String},maxSize:{type:Number,default:3e3}},data:function(){var e=this;return{content:this.value,editorOption:{theme:"snow",placeholder:"您想说点什么?",modules:{toolbar:{container:o,handlers:{image:function(t){var n=e.$refs.myQuillEditor;t?e.$refs.uploadImg.$el.childNodes[0].click():n.quill.format("image",!1)}}}}}}},watch:{value:function(e){this.content=e}},mounted:function(){var e=this;this.$nextTick((function(){try{var t=e.$refs.myQuillEditor.$el.children,n=(t=Array.prototype.slice.call(t),0);t.forEach((function(e){n+=e.offsetHeight})),e.$refs.editorBox.style.height=n+"px"}catch(t){}}))},methods:{onEditorBlur:function(){},onEditorFocus:function(){},onEditorChange:function(){this.$emit("input",this.content)},getImgUrl:function(e){var t=this.$refs.myQuillEditor.quill,n=t.getSelection().index;t.insertEmbed(n,"image",e),this.$message({message:"图片请设置左对齐",type:"warning"}),t.setSelection(n+1)}}},n("60cc"),n=n("2877"),n=Object(n.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{ref:"editorBox"},[t("file-upload",{ref:"uploadImg",staticStyle:{float:"left",display:"none"},attrs:{"img-url":"",index:"","btn-name":"","async-key":"uploadFile"},on:{event:e.getImgUrl}}),t("quill-editor",{ref:"myQuillEditor",staticClass:"editor",attrs:{options:e.editorOption},on:{blur:function(t){return e.onEditorBlur(t)},focus:function(t){return e.onEditorFocus(t)},change:function(t){return e.onEditorChange(t)}},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1)}),[],!1,null,null,null);t.default=n.exports},"9f53":function(e,t,n){"use strict";var i=n("1da1");n("96cf"),t.a={methods:{logout:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("/login"!==e.$route.path)return t.next=7,e.$store.dispatch("user/logout");t.next=8;break;case 7:e.$router.push("/login");case 8:case"end":return t.stop()}}),t)})))()}}}},a0c0:function(e,t,n){"use strict";n.r(t),n("e9c4");var i=window.localStorage;t.default={getStorage:function(e){return"string"!=typeof e&&alert("获取localStorage出错 - 输入参数必须是一个字符串"),JSON.parse(i.getItem(e))},setStorage:function(e,t){"string"!=typeof e&&alert("设置localStorage出错 - 第一个输入参数必须是一个字符串"),i.setItem(e,JSON.stringify(t))},delStorage:function(e){if("string"==typeof e)i.removeItem(e);else if(e instanceof Array)for(var t=e.length-1;0<=t;t--)i.removeItem(e[t]);else alert("删除localStorage出错 - 请输入一个字符串或数组对象")},clearStorage:function(){i.clear()}}},a1f3:function(e,t,n){"use strict";n.r(t),n("a15b"),t.default={getUuId:function(){for(var e=[],t="0123456789abcdef",n=0;n<32;n++)e[n]=t.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=t.substr(3&e[19]|8,1),e.join("")}}},a642:function(e,t,n){},aa18:function(e,t,n){"use strict";n.r(t),n("ac1f"),n("1276"),n("4d63"),n("2c3e"),n("25f0"),n("466d");var i,o=document,r=(n=window.location.hostname,"localhost"===n||"127.0.0.1"===n?";domain="+n+";path=/":(i=n.split(".").length,";domain=."+n.split(".")[i-2]+"."+n.split(".")[i-1]+";path=/")),a={setCookie:function(e,t,n){n=new Date(n),n=isNaN(n)?"":";expires="+n.toGMTString(),o.cookie=e+"="+t+n+";path=/"},getCookie:function(e){return e=new RegExp("(^| )"+e+"=([^;]*)(;|$)"),e=o.cookie.match(e),e?decodeURIComponent(e[2]):""},delCookieDomain:function(e){var t=new Date;t.setTime(t.getTime()-100),o.cookie=e+"= ;expires="+t.toGMTString()+r},delCookie:function(e){var t=new Date;t.setTime(t.getTime()-864e5),a.setCookie(e,"",t),a.getCookie(e)&&a.delCookieDomain(e)},clearCookie:function(){var e=o.cookie.split(";");if(e)for(var t=e.length;t--;){var n=new Date;n.setTime(n.getTime()-100),o.cookie=e[t].split("=")[0]+'=" ";expires='+n.toGMTString()+r}}};t.default=a},adee:function(e,t,n){"use strict";n("b7d2")},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b29c:function(e,t,n){"use strict";n.r(t),n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("2c3e"),n("25f0"),n("fb6a"),n("99af"),t.default={dateFormat:function(e,t){if(!e||!t)return"";if("string"!=typeof e&&"number"!=typeof e||(e=new Date(e)),isNaN(e))return"";var n,i={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),i)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?"000":("00"+i[n]).substr((""+i[n]).length)));return t},datePlus24:function(e){return new Date(864e5*parseInt((e+864e5)/864e5)-288e5)},dateTransform:function(e){var t,n;return e&&8===e.length?(t=e.slice(0,4),n=e.slice(4,6),e=e.slice(6,8),"".concat(t,"-").concat(n,"-").concat(e)):""},UTCto0800:function(e){return e=new Date(e),e.getTime()+60*e.getTimezoneOffset()*1e3}}},b2ff:function(e,t,n){},b36e:function(e,t,n){},b3a8:function(e,t,n){"use strict";n.r(t),n("b0c0"),n("d3b7"),n("159b"),n("e9c4"),t.default={toLevelArr:function(e){var t,n=[];return e&&"TypeError"!==e.name&&0===e.code&&e.data&&e.data.arrays&&0<e.data.arrays.length&&(t=e.data.arrays,e.data.showNames.length<5&&e.data.showNames.unshift("期"),t.forEach((function(t,i){var o=JSON.parse(JSON.stringify(t));delete o.nexts,o.label=o.numberShow+e.data.showNames[0],o.idThis=i+"",o.pid=0,o.isLeaf=!1,n.push(o),t.nexts.forEach((function(t,o){var r=JSON.parse(JSON.stringify(t));delete r.nexts,r.label=r.numberShow+e.data.showNames[1],r.idThis=i+"-"+o,r.pid=i+"",r.isLeaf=!1,n.push(r),t.nexts.forEach((function(t,r){var a=JSON.parse(JSON.stringify(t));delete a.nexts,a.label=a.numberShow+e.data.showNames[2],a.idThis=i+"-"+o+"-"+r,a.pid=i+"-"+o,a.isLeaf=!1,n.push(a),t.nexts.forEach((function(t,a){var c=JSON.parse(JSON.stringify(t));delete c.nexts,c.label=c.numberShow+e.data.showNames[3],c.idThis=i+"-"+o+"-"+r+"-"+a,c.pid=i+"-"+o+"-"+r,n.push(c),t.nexts&&0<t.nexts.length?(c.isLeaf=!1,t.nexts.forEach((function(t,c){t=JSON.parse(JSON.stringify(t)),delete t.nexts,t.label=t.numberShow+e.data.showNames[4],t.idThis=i+"-"+o+"-"+r+"-"+a+"-"+c,t.pid=i+"-"+o+"-"+r+"-"+a,t.isLeaf=!0,n.push(t)}))):c.isLeaf=!0}))}))}))}))),n}}},b570:function(e,t,n){"use strict";n.r(t),n("7db0"),n("d3b7");var i={name:"shyTree",components:{shyTree:void 0},props:["value","level"],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"menuOperator"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{newValue:"",index:0,iconFont:[{down:"el-icon-arrow-up",up:"el-icon-arrow-down"},{down:"el-icon-folder-remove",up:"el-icon-folder-add"},{down:"el-icon-minus",up:"el-icon-plus"},{down:"iconfont icon-jiantouxia",up:"iconfont icon-up"}]}},methods:{addEdit:function(e,t,n,i,o,r){this.$emit("addEdit",e,t,n,i,o,r)},editInterface:function(e){this.$emit("editInterface",e)},openChildren:function(e,t,n,i){if(3===n)return!1;this.$emit("openChildren",e,t,n,i)},remove:function(e,t,n,i){this.$emit("remove",e,t,n,i)}}};n("0905"),n=n("2877"),n=Object(n.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"shy-tree"},[e.value&&0<e.value.length?n("div",e._l(e.value,(function(t){return n("div",{key:t.updatetime,staticClass:"shy-tree-node"},[t.child&&0<t.child.length?n("i",{directives:[{name:"show",rawName:"v-show",value:e.level<3,expression:"level < 3"}],class:e.iconFont[e.index].down,staticStyle:{"font-size":"18px","margin-right":"10px"},on:{click:function(n){return e.openChildren(t.id,t.pid,e.level,t.child&&0<t.child.length)}}}):n("i",{directives:[{name:"show",rawName:"v-show",value:e.level<3,expression:"level < 3"}],class:e.iconFont[e.index].up,staticStyle:{"font-size":"18px","margin-right":"10px"},on:{click:function(n){return e.openChildren(t.id,t.pid,e.level,t.child&&0<t.child.length)}}}),t.menu_img?n("i",{directives:[{name:"show",rawName:"v-show",value:e.level<3,expression:"level < 3"}],class:t.menu_img,on:{click:function(n){return e.openChildren(t.id,t.pid,e.level,t.child&&0<t.child.length)}}}):e._e(),n("span",{staticClass:"label",on:{click:function(n){return e.openChildren(t.id,t.pid,e.level,t.child&&0<t.child.length)}}},[e._v(" "+e._s(t.menu_name||t.action_name)+" ")]),n("span",{staticClass:"btn-list"},[e.level<3&&e.powers.some((function(e){return"003"==e}))?n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.addEdit("0",t.id,e.level+1,!1,!0,{})}}},[e._v(" 添加 ")]):e._e(),e.powers.some((function(e){return"005"==e}))?n("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(n){return e.addEdit(t.id,3===e.level?t.menuid:t.pid,e.level,!1,!1,t)}}},[e._v(" 修改 ")]):e._e(),e.powers.some((function(e){return"004"==e}))?n("el-button",{attrs:{type:"1"===t.status?"primary":"info",size:"mini"},on:{click:function(n){return e.remove(t.id,3===e.level?t.menuid:t.pid,e.level,t.status)}}},[e._v(" "+e._s("1"===t.status?"改为禁用":"改为启用")+" ")]):e._e()],1),t.child&&0<t.child.length?n("shy-tree",{attrs:{value:t.child,level:e.level+1},on:{addEdit:e.addEdit,openChildren:e.openChildren,editInterface:e.editInterface,remove:e.remove}}):e._e()],1)})),0):n("div",{staticClass:"no-data"},[e._v("暂无数据")])])}),[],!1,null,null,null);t.default=n.exports},b698:function(e,t,n){"use strict";n("b36e")},b7d2:function(e,t,n){},b89a:function(e,t,n){"use strict";var i=n("5594"),o="Admin/";t.a={list1:function(e,t){return Object(i.a)(o+"customerlist",e,"post",t)},list2:function(e,t){return Object(i.a)(o+"companylist",e,"post",t)},list3:function(e,t){return Object(i.a)(o+"supplierlist",e,"post",t)},list4:function(e,t){return Object(i.a)(o+"ratelist",e,"post",t)},list:function(e,t){return Object(i.a)(o+"interlist",e,"post",t)},add:function(e,t){return Object(i.a)(o+"interadd",e,"post",t)},detail:function(e,t){return Object(i.a)(o+"interinfo",e,"post",t)},update:function(e,t){return Object(i.a)(o+"intersave",e,"post",t)},getcat:function(e,t){return Object(i.a)(o+"getcat",e,"post",t)}}},b94d:function(e,t,n){"use strict";n("84a2")},bcaa:function(e,t,n){},c1f7:function(e,t,n){"use strict";n.r(t);var i=n("5530"),o=(n("a9e3"),n("ed08")),r={name:"RightPanel",props:{clickNotClose:{default:!1,type:Boolean},buttonTop:{default:250,type:Number}},data:function(){return{show:!1}},computed:{theme:function(){return this.$store.state.settings.theme}},watch:{show:function(e){e&&!this.clickNotClose&&this.addEventClick(),Object(e?o.a:o.d)(document.body,"showRightPanel")}},mounted:function(){this.insertToBody()},beforeDestroy:function(){this.$refs.rightPanel.remove()},methods:{addEventClick:function(){window.addEventListener("click",this.closeSidebar)},closeSidebar:function(e){e.target.closest(".rightPanel")||(this.show=!1,window.removeEventListener("click",this.closeSidebar))},insertToBody:function(){var e=this.$refs.rightPanel,t=document.querySelector("body");t.insertBefore(e,t.firstChild)}}},a=(n("fab5"),n("b94d"),n("2877")),c=(r=Object(a.a)(r,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{ref:"rightPanel",staticClass:"rightPanel-container",class:{show:e.show}},[t("div",{staticClass:"rightPanel-background"}),t("div",{staticClass:"rightPanel"},[t("div",{staticClass:"handle-button",style:{top:e.buttonTop+"px","background-color":e.theme},on:{click:function(t){e.show=!e.show}}},[t("i",{class:e.show?"el-icon-close":"el-icon-setting"})]),t("div",{staticClass:"rightPanel-items"},[e._t("default")],2)])])}),[],!1,null,"dfcc24a0",null).exports,{name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}}),s=(c=(n("3ea1"),n("028b"),Object(a.a)(c,(function(){var e=this.$createElement;e=this._self._c||e;return e("section",{staticClass:"app-main"},[e("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[e("keep-alive",{attrs:{include:this.cachedViews}},[e("router-view",{key:this.key})],1)],1)],1)}),[],!1,null,"c50dfc96",null).exports),n("1da1")),l=(n("96cf"),n("ac1f"),n("5319"),n("841c"),n("e9c4"),n("2f62")),u=(n("2ca0"),n("4de4"),n("d3b7"),n("99af"),n("b0c0"),n("498a"),n("bd11")),d=n.n(u),f=(u={data:function(){return{levelList:null}},watch:{$route:function(e){e.path.startsWith("/redirect/")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/welcome/dashboard",meta:{title:"首页"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){return e=e&&e.name,!!e&&e.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params;return d.a.compile(e)(t)},handleLink:function(e){var t=e.redirect;e=e.path;t?window.vm.$router.push(t):window.vm.$router.push(this.pathCompile(e))}}},u=(n("adee"),Object(a.a)(u,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,i){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||i==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1)}),[],!1,null,"87a3bc58",null).exports),{name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}}),h=(f=(n("6cae"),Object(a.a)(f,(function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticStyle:{padding:"0 15px"},on:{click:this.toggleClick}},[e("svg",{staticClass:"hamburger",class:{"is-active":this.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[e("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])}),[],!1,null,"07560e0a",null).exports),n("93bf")),p=n.n(h),m=(h={name:"Screenfull",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!p.a.enabled)return this.$message({message:"you browser can not work",type:"warning"}),!1;p.a.toggle()},change:function(){this.isFullscreen=p.a.isFullscreen},init:function(){p.a.enabled&&p.a.on("change",this.change)},destroy:function(){p.a.enabled&&p.a.off("change",this.change)}}},h=(n("15d1"),Object(a.a)(h,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",[t("i",{class:{"el-icon-full-screen rt1":e.isFullscreen,"el-icon-rank rt2":!e.isFullscreen},on:{click:e.click}})])}),[],!1,null,"652774a4",null).exports),{data:function(){return{sizeOptions:[{label:"Default",value:"default"},{label:"Medium",value:"medium"},{label:"Small",value:"small"},{label:"Mini",value:"mini"}]}},computed:{size:function(){return this.$store.getters.size}},methods:{handleSetSize:function(e){this.$ELEMENT.size=e,this.$store.dispatch("app/setSize",e),this.refreshView(),this.$message({message:"Switch Size Success",type:"success"})},refreshView:function(){var e=this,t=(this.$store.dispatch("tagsView/delAllCachedViews",this.$route),this.$route.fullPath);this.$nextTick((function(){e.$router.replace({path:"/redirect"+t})}))}}}),g=(m=Object(a.a)(m,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleSetSize}},[n("div",[n("svg-icon",{attrs:{"class-name":"size-icon","icon-class":"size"}})],1),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.sizeOptions,(function(t){return n("el-dropdown-item",{key:t.value,attrs:{disabled:e.size===t.value,command:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1)],1)}),[],!1,null,null,null).exports,n("1191")),b=n("9f53"),v=n("5f87"),w=(u={components:{Breadcrumb:u,Hamburger:f,Screenfull:h,SizeSelect:m},computed:Object(i.a)({},Object(l.b)(["sidebar","avatar","device"])),mixins:[b.a],data:function(){return{companyNo:"",companyList:[{value:"1",label:"采销平台结算"},{value:"2",label:"516结算"}],showModel:!1,loading:!1,isShow:!0,statsTime:0,endTime:0,checked:!1,lastNotice:null,parmValue:{type:"",page:1,size:15},activeMsg:null}},mounted:function(){this.companyNo=Object(v.f)()||"",this.openNotice(1)},methods:{business_companyNo_change:function(e){var t=this;this.$store.dispatch("user/change_company",e).then((function(e){t.getMenu()}))},getMenu:function(){var e=this;this.$store.dispatch("user/getMenuList",this).then((function(t){var n=e.$route.path;"/loadingPage"===n||"/"===n||"/login"===n?window.vm.$router.replace("/welcome"):"1"===e.companyNo?e.routerReplace("/aold","/caixiao"):"2"===e.companyNo&&e.routerReplace("/caixiao","/aold")})).catch((function(e){}))},routerReplace:function(e,t){var n=this.$route.path;-1!==n.search(e)&&(n=n.replace(e,t),window.vm.$router.replace(n))},openNotice:function(e){var t=this;return Object(s.a)(regeneratorRuntime.mark((function n(){var i,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return Object(v.c)()&&0<Object(v.c)().length?t.lastNotice=JSON.parse(Object(v.c)()):t.lastNotice=null,t.loading=!0,n.next=4,g.a.list(t.parmValue);case 4:if(!((i=n.sent)&&0===i.code&&i.data&&i.data.list&&0<i.data.list.length)){n.next=12;break}t.activeMsg=i.data.list[0],t.isShow=!0,t.lastNotice+""!="null"?t.activeMsg.addtime===t.lastNotice.addtime&&"1"===t.lastNotice.type?t.checked=!0:t.checked=!1:(o={type:t.checked?"1":"0",addtime:t.activeMsg.addtime},Object(v.n)(JSON.stringify(o)),t.checked=!1),1===e?t.typeShow():t.showModel=!0,n.next=19;break;case 12:if(i&&100<=i.code&&i.code<=104)return n.next=15,t.logout();n.next=17;break;case 15:n.next=19;break;case 17:t.activeMsg=null,t.isShow=!1;case 19:t.loading=!1;case 20:case"end":return n.stop()}}),n)})))()},typeShow:function(){var e=(new Date).valueOf();"VER"===this.activeMsg.sys_type?(this.statsTime=new Date(this.activeMsg.addtime).valueOf(),this.endTime=this.statsTime+6048e5,e>this.statsTime&&e<this.endTime&&!this.checked?this.showModel=!0:this.showModel=!1):(this.statsTime=0,this.endTime=new Date(this.activeMsg.addtime).valueOf(),e<this.endTime&&!this.checked?this.showModel=!0:this.showModel=!1)},toggleSideBar:function(){this.$route.this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=this;return Object(s.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("user/logout");case 2:e.$router.push("/login?redirect=".concat(e.$route.fullPath));case 3:case"end":return t.stop()}}),t)})))()},submit:function(){var e={type:this.checked?"1":"0",addtime:this.activeMsg.addtime};Object(v.n)(JSON.stringify(e)),this.showModel=!1}}},f=(n("d75e"),Object(a.a)(u,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}),n("div",{staticClass:"right-menu fr"},["mobile"!==e.device?[e.isShow?n("i",{staticClass:"el-icon-message-solid right-menu-item hover-effect shake",staticStyle:{height:"50px",width:"40px","line-height":"52px","font-size":"22px"},on:{click:e.openNotice}}):e._e(),n("screenfull",{staticClass:"right-menu-item hover-effect",attrs:{id:"screenfull"}})]:e._e(),n("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click"}},[n("div",{staticClass:"avatar-wrapper"},[n("img",{staticClass:"user-avatar",attrs:{src:e.avatar+"?imageView2/1/w/80/h/80"}}),n("i",{staticClass:"el-icon-caret-bottom"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("router-link",{attrs:{to:"/person/my-message"}},[n("el-dropdown-item",[e._v("我的信息")])],1),n("router-link",{attrs:{to:"/person/change-phone"}},[n("el-dropdown-item",[e._v("更换手机号")])],1),n("router-link",{attrs:{to:"/person/change-password"}},[n("el-dropdown-item",[e._v("修改密码")])],1),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.logout(t)}}},[n("span",{staticStyle:{display:"block"}},[e._v("退出登录")])])],1)],1)],2),n("el-select",{staticClass:"fr right-menu-item",staticStyle:{width:"200px",margin:"12px 16px 0 0"},attrs:{size:"mini",placeholder:"系统名称"},on:{change:e.business_companyNo_change},model:{value:e.companyNo,callback:function(t){e.companyNo=t},expression:"companyNo"}},e._l(e.companyList,(function(e,t){return n("el-option",{key:e.value+t,attrs:{label:e.label,value:e.value}})})),1),n("el-dialog",{attrs:{title:"系统公告",center:!0,align:"left",top:"8vh",width:"800px","close-on-click-modal":!1,visible:e.showModel,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:e.submit,"update:visible":function(t){e.showModel=t}}},[n("el-card",{staticStyle:{"margin-top":"-20px"}},[null!==e.activeMsg?n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{span:24}},[n("div",{staticStyle:{padding:"0 0 22px 0"}},[n("el-alert",{staticClass:"my-el-alert",attrs:{closable:!1,"show-icon":"",center:"",title:e.activeMsg.module,type:"VER"===e.activeMsg.sys_type?"success":"warning"}})],1),n("el-form",{staticClass:"demo-table-expand",staticStyle:{"padding-left":"25px"},attrs:{size:"mini","label-position":"left","label-width":"82px"}},[n("el-row",["VER"===e.activeMsg.sys_type?n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"版本编号:"}},[n("p",{staticStyle:{margin:"0"}},[e._v(e._s(e.activeMsg.version))])])],1):e._e(),n("el-col",{attrs:{span:"VER"===e.activeMsg.sys_type?12:24}},[n("el-form-item",{attrs:{label:"VER"===e.activeMsg.sys_type?"更新时间:":"预计时间:"}},[n("p",{staticStyle:{margin:"0"}},[e._v(" "+e._s(e.activeMsg.addtime)+" ")])])],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"更新内容:"}},[n("p",{staticStyle:{margin:"0"},domProps:{innerHTML:e._s(e.activeMsg.system)}})])],1),n("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[n("el-checkbox",{staticClass:"fl",staticStyle:{"padding-top":"5px"},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},[e._v("我已知晓,后续不再提示!")]),n("el-button",{attrs:{type:"primary",plain:""},on:{click:e.submit}},[e._v("关闭 ")])],1)],1)],1)],1)],1):e._e()],1)],1)],1)}),[],!1,null,"3d2cfda8",null).exports),n("fb6a"),n("00b4"),n("4d63"),n("2c3e"),n("25f0"),n("159b"),n("a15b"),n("b680"),n("f6f8").version),y="#409EFF",x=(h={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(e,t){this.theme=e},immediate:!0},theme:function(e){var t=this;return Object(s.a)(regeneratorRuntime.mark((function n(){var i,o,r,a,c,s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=t.chalk?t.theme:y,"string"!=typeof e)return n.abrupt("return");n.next=3;break;case 3:if(o=t.getThemeCluster(e.replace("#","")),r=t.getThemeCluster(i.replace("#","")),a=t.$message({message:" Compiling the theme",customClass:"theme-message",type:"success",duration:0,iconClass:"el-icon-loading"}),c=function(e,n){return function(){var i=t.getThemeCluster(y.replace("#","")),r=(i=t.updateStyle(t[e],i,o),document.getElementById(n));r||((r=document.createElement("style")).setAttribute("id",n),document.head.appendChild(r)),r.innerText=i}},t.chalk){n.next=12;break}return s="https://unpkg.com/element-ui@".concat(w,"/lib/theme-chalk/index.css"),n.next=12,t.getCSSString(s,"chalk");case 12:c("chalk","chalk-style")(),[].slice.call(document.querySelectorAll("style")).filter((function(e){return e=e.innerText,new RegExp(i,"i").test(e)&&!/Chalk Variables/.test(e)})).forEach((function(e){var n=e.innerText;"string"==typeof n&&(e.innerText=t.updateStyle(n,r,o))})),t.$emit("change",e),a.close();case 18:case"end":return n.stop()}}),n)})))()}},methods:{updateStyle:function(e,t,n){var i=e;return t.forEach((function(e,t){i=i.replace(new RegExp(e,"ig"),n[t])})),i},getCSSString:function(e,t){var n=this;return new Promise((function(i){var o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&200===o.status&&(n[t]=o.responseText.replace(/@font-face{[^}]+}/,""),i())},o.open("GET",e),o.send()}))},getThemeCluster:function(e){for(var t,n,i,o,r,a,c,s,l=[e],u=0;u<=9;u++)l.push((t=e,n=Number((u/10).toFixed(2)),o=i=void 0,i=parseInt(t.slice(0,2),16),o=parseInt(t.slice(2,4),16),t=parseInt(t.slice(4,6),16),0===n?[i,o,t].join(","):(i+=Math.round(n*(255-i)),o+=Math.round(n*(255-o)),t+=Math.round(n*(255-t)),i=i.toString(16),o=o.toString(16),t=t.toString(16),"#".concat(i).concat(o).concat(t))));return l.push((r=e,a=.1,c=parseInt(r.slice(0,2),16),s=parseInt(r.slice(2,4),16),r=parseInt(r.slice(4,6),16),c=Math.round((1-a)*c),s=Math.round((1-a)*s),r=Math.round((1-a)*r),c=c.toString(16),s=s.toString(16),r=r.toString(16),"#".concat(c).concat(s).concat(r))),l}}},m=(n("06c2"),{components:{ThemePicker:Object(a.a)(h,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:e.theme,callback:function(t){e.theme=t},expression:"theme"}})}),[],!1,null,null,null).exports},data:function(){return{}},computed:{fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:e})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:e})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:e})}}},methods:{themeChange:function(e){this.$store.dispatch("settings/changeSetting",{key:"theme",value:e})}}}),b=(n("653b"),Object(a.a)(m,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"drawer-container"},[t("div",[t("h3",{staticClass:"drawer-title"},[e._v("页面样式设置")]),t("div",{staticClass:"drawer-item"},[t("span",[e._v("主题颜色")]),t("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:e.themeChange}})],1),t("div",{staticClass:"drawer-item"},[t("span",[e._v("页面标签")]),t("el-switch",{staticClass:"drawer-switch",model:{value:e.tagsView,callback:function(t){e.tagsView=t},expression:"tagsView"}})],1),t("div",{staticClass:"drawer-item"},[t("span",[e._v("固定头部")]),t("el-switch",{staticClass:"drawer-switch",model:{value:e.fixedHeader,callback:function(t){e.fixedHeader=t},expression:"fixedHeader"}})],1),t("div",{staticClass:"drawer-item"},[t("span",[e._v("侧边栏图标")]),t("el-switch",{staticClass:"drawer-switch",model:{value:e.sidebarLogo,callback:function(t){e.sidebarLogo=t},expression:"sidebarLogo"}})],1)])])}),[],!1,null,"7dd2664b",null).exports),u={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"采销平台结算系统",logo:n("10fb")}}},h=(n("b698"),Object(a.a)(u,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[t("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?t("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/welcome/dashboard"}},[t("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title))])]):t("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/welcome/dashboard"}},[t("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title))])])],1)],1)}),[],!1,null,"c1cb0870",null).exports),m=n("df7c"),n.n(m)),k=n("61f7"),O=(u=(n("caad"),n("2532"),{name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){t=t.props;var n=t.icon,i=(t=t.title,[]);return n&&(n.includes("el-icon")?i.push(e("i",{class:[n,"sub-el-icon"]})):i.push(e("svg-icon",{attrs:{"icon-class":n}}))),t&&i.push(e("span",{slot:"title"},[t])),i}}),m=(n("4e0f"),Object(a.a)(u,void 0,void 0,!1,null,"4f8af8bb",null).exports),u={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(k.e)(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},m={name:"SidebarItem",components:{Item:m,AppLink:Object(a.a)(u,(function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)}),[],!1,null,null,null).exports},mixins:[{computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e,t=this,n=this.$refs.subMenu;n&&(e=n.handleMouseleave,n.handleMouseleave=function(n){"mobile"!==t.device&&e(n)})}}}],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],n=1<arguments.length?arguments[1]:void 0;t=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===t.length||0===t.length&&(this.onlyOneChild=Object(i.a)(Object(i.a)({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Object(k.e)(e)?e:Object(k.e)(this.basePath)?this.basePath:x.a.resolve(this.basePath,e)}}},u=Object(a.a)(m,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?n("div",[e._v(e._s(e.item))]):n("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)}),[],!1,null,null,null).exports,m=n("cf1e"),n.n(m)),_=(m={components:{SidebarItem:u,Logo:h},computed:Object(i.a)(Object(i.a)({},Object(l.b)(["navList","sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta;e=e.path;return t.activeMenu||e},showLogo:function(){return!1},variables:function(){return O.a},isCollapse:function(){return!1;//! this.sidebar.opened;
- }})},u=Object(a.a)(m,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.navList,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)}),[],!1,null,null,null).exports,n("b85c")),E=n("2909"),S=(h=(n("c740"),{name:"ScrollPane",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},mounted:function(){this.scrollWrapper.addEventListener("scroll",this.emitScroll,!0)},beforeDestroy:function(){this.scrollWrapper.removeEventListener("scroll",this.emitScroll)},methods:{handleScroll:function(e){e=e.wheelDelta||40*-e.deltaY;var t=this.scrollWrapper;t.scrollLeft=t.scrollLeft+e/4},emitScroll:function(){this.$emit("scroll")},moveToTarget:function(e){var t=this.$refs.scrollContainer.$el.offsetWidth,n=this.scrollWrapper,i=this.$parent.$refs.tag,o=null,r=null;0<i.length&&(o=i[0],r=i[i.length-1]),o===e?n.scrollLeft=0:r===e?n.scrollLeft=n.scrollWidth-t:(o=i.findIndex((function(t){return t===e})),r=i[o-1],o=(i=i[o+1]).$el.offsetLeft+i.$el.offsetWidth+4,i=r.$el.offsetLeft-4,o>n.scrollLeft+t?n.scrollLeft=o-t:i<n.scrollLeft&&(n.scrollLeft=i))}}}),m=(n("097d"),{components:{ScrollPane:Object(a.a)(h,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-scrollbar",{ref:"scrollContainer",staticClass:"scroll-container",attrs:{vertical:!1},nativeOn:{wheel:function(t){return t.preventDefault(),e.handleScroll(t)}}},[e._t("default")],2)}),[],!1,null,"1a78fbad",null).exports},data:function(){return{visible:!1,top:0,left:0,selectedTag:{},affixTags:[],fallPathConfig:[{value:"1",path:"caixiao"},{value:"2",path:"aold"}]}},computed:Object(i.a)(Object(i.a)({},Object(l.b)(["size","business_companyNo"])),{},{visitedViews:function(){return this.$store.state.tagsView.visitedViews},routes:function(){return this.$store.state.user.btnList},maxNo:function(){return this.business_companyNo}}),watch:{maxNo:function(e,t){this.closeOthersTags()},$route:function(){this.addTags(),this.moveToCurrentTag()},visible:function(e){e?document.body.addEventListener("click",this.closeMenu):document.body.removeEventListener("click",this.closeMenu)}},mounted:function(){this.initTags(),this.addTags()},methods:{isActive:function(e){return e.path===this.$route.path},isAffix:function(e){return e.meta&&e.meta.affix},filterAffixTags:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"/",o=[];return e.forEach((function(e){var r;e.meta&&e.meta.affix&&(r=x.a.resolve(n,e.path),o.push({fullPath:r,path:r,name:e.name,meta:Object(i.a)({},e.meta)})),e.children&&1<=(r=t.filterAffixTags(e.children,e.path)).length&&(o=[].concat(Object(E.a)(o),Object(E.a)(r)))})),o},initTags:function(){var e,t=this.affixTags=this.filterAffixTags(this.routes),n=Object(_.a)(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.name&&this.$store.dispatch("tagsView/addVisitedView",i)}}catch(e){n.e(e)}finally{n.f()}},addTags:function(){return this.$route.name&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var e=this,t=this.$refs.tag;this.$nextTick((function(){var n,i=Object(_.a)(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.to.path===e.$route.path){e.$refs.scrollPane.moveToTarget(o),o.to.fullPath!==e.$route.fullPath&&e.$store.dispatch("tagsView/updateVisitedView",e.$route);break}}}catch(n){i.e(n)}finally{i.f()}}))},refreshSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delCachedView",e).then((function(){var n=e.fullPath;t.$nextTick((function(){t.$router.replace({path:"/redirect"+n})}))}))},closeSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delView",e).then((function(n){n=n.visitedViews,t.isActive(e)&&t.toLastView(n,e)}))},closeOthersTags:function(){var e=this;window.vm.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){e.moveToCurrentTag()}))},closeAllTags:function(e){var t=this;this.$store.dispatch("tagsView/delAllViews").then((function(n){n=n.visitedViews,t.affixTags.some((function(t){return t.path===e.path}))||t.toLastView(n,e)}))},toLastView:function(e,t){e=e.slice(-1)[0],e?window.vm.$router.push(e.fullPath):"Dashboard"===t.name?this.$router.replace({path:"/redirect"+t.fullPath}):window.vm.$router.push("/welcome/dashboard")},openMenu:function(e,t){var n=this.$el.getBoundingClientRect().left,i=this.$el.offsetWidth-105;n=t.clientX-n+15;this.left=i<n?i:n,this.top=t.clientY,this.visible=!0,this.selectedTag=e},closeMenu:function(){this.visible=!1},handleScroll:function(){this.closeMenu()}}}),h=(n("f92d"),n("cfaa"),Object(a.a)(m,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tags-view-container",attrs:{id:"tags-view-container"}},[n("scroll-pane",{ref:"scrollPane",staticClass:"tags-view-wrapper",on:{scroll:e.handleScroll}},e._l(e.visitedViews,(function(t){return n("router-link",{key:t.path,ref:"tag",refInFor:!0,staticClass:"tags-view-item",class:e.isActive(t)?"active":"",attrs:{to:{path:t.path,query:t.query,fullPath:t.fullPath},tag:"span"},nativeOn:{mouseup:function(n){if("button"in n&&1!==n.button)return null;e.isAffix(t)||e.closeSelectedTag(t)},contextmenu:function(n){return n.preventDefault(),e.openMenu(t,n)}}},[e._v(" "+e._s(t.title)+" "),e.isAffix(t)?e._e():n("span",{staticClass:"el-icon-close",on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.closeSelectedTag(t)}}})])})),1),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:e.left+"px",top:e.top+"px"}},[n("li",{on:{click:function(t){return e.refreshSelectedTag(e.selectedTag)}}},[e._v("Refresh")]),e.isAffix(e.selectedTag)?e._e():n("li",{on:{click:function(t){return e.closeSelectedTag(e.selectedTag)}}},[e._v("Close")]),n("li",{on:{click:e.closeOthersTags}},[e._v("Close Others")]),n("li",{on:{click:function(t){return e.closeAllTags(e.selectedTag)}}},[e._v("Close All")])])],1)}),[],!1,null,"4eb4bae4",null).exports),n("4360")),C=document.body;m={name:"Layout",components:{AppMain:c,Navbar:f,RightPanel:r,Settings:b,Sidebar:u,TagsView:h},mixins:[{watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&S.a.dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){this.$_isMobile()&&(S.a.dispatch("app/toggleDevice","mobile"),S.a.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){return C.getBoundingClientRect().width-1<992},$_resizeHandler:function(){var e;document.hidden||(e=this.$_isMobile(),S.a.dispatch("app/toggleDevice",e?"mobile":"desktop"),e&&S.a.dispatch("app/closeSideBar",{withoutAnimation:!0}))}}}],computed:Object(i.a)(Object(i.a)({},Object(l.c)({sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},showSettings:function(e){return e.settings.showSettings},needTagsView:function(e){return e.settings.tagsView},fixedHeader:function(e){return e.settings.fixedHeader}})),{},{classObj:function(){return{hideSidebar:!1,openSidebar:this.sidebar.opened,withoutAnimation:this.sidebar.withoutAnimation,mobile:!1}}}),methods:{handleClickOutside:function(){this.$store.dispatch("app/closeSideBar",{withoutAnimation:!1})}}},n("7600"),c=Object(a.a)(m,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"app-wrapper",class:e.classObj},[t("sidebar",{staticClass:"sidebar-container"}),t("div",{staticClass:"main-container",class:{hasTagsView:e.needTagsView}},[t("div",{class:{"fixed-header":e.fixedHeader}},[t("navbar"),e.needTagsView?t("tags-view"):e._e()],1),t("app-main")],1)],1)}),[],!1,null,"08575d37",null);t.default=c.exports},c2d6:function(e,t,n){},c5fa:function(e,t,n){},c653:function(e,t,n){var i={"./app.js":"d9cd","./errorLog.js":"4d49","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function o(e){return e=r(e),n(e)}function r(e){if(n.o(i,e))return i[e];throw(e=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",e}o.keys=function(){return Object.keys(i)},o.resolve=r,(e.exports=o).id="c653"},cc02:function(e,t,n){},cc1d:function(e,t,n){},cc6c:function(e,t,n){e.exports=n.p+"static/img/401.089007e7.gif"},cc7b:function(e,t,n){},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},cfaa:function(e,t,n){"use strict";n("e1eb")},d2843:function(e,t,n){"use strict";n.r(t),n("d3b7"),n("25f0");var i=n("3452"),o=n.n(i);t.default={encrypt:function(e,t){return t=o.a.enc.Utf8.parse(t=t||"TFEUyxO9PDJlyyg7"),e=o.a.enc.Utf8.parse(e),o.a.AES.encrypt(e,t,{mode:o.a.mode.ECB,padding:o.a.pad.Pkcs7}).toString()},decrypt:function(e,t){return t=o.a.enc.Utf8.parse(t=t||"TFEUyxO9PDJlyyg7"),e=o.a.AES.decrypt(e,t,{mode:o.a.mode.ECB,padding:o.a.pad.Pkcs7}),o.a.enc.Utf8.stringify(e).toString()}}},d75e:function(e,t,n){"use strict";n("b2ff")},d9cd:function(e,t,n){"use strict";n.r(t);var i=n("a78e"),o=n.n(i);n={sidebar:{opened:!o.a.get("sidebarStatus")||!!+o.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop",searchSize:"small",size:o.a.get("size")||"mini",tablebtnSize:"mini"};t.default={namespaced:!0,state:n,mutations:{TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?o.a.set("sidebarStatus",1):o.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){o.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_SIZE:function(e,t){e.size=t,o.a.set("size",t)}},actions:{toggleSideBar:function(e){(0,e.commit)("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){(0,e.commit)("CLOSE_SIDEBAR",t.withoutAnimation)},toggleDevice:function(e,t){(0,e.commit)("TOGGLE_DEVICE",t)},setSize:function(e,t){(0,e.commit)("SET_SIZE",t)}}}},e1eb:function(e,t,n){},ed08:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return s}));var i=n("53ca");function o(e,t){if(0===arguments.length||!e)return null;t=t||"{y}-{m}-{d} {h}:{i}:{s}",e="object"===Object(i.a)(e)?e:("number"==typeof(e="string"==typeof e?/^[0-9]+$/.test(e)?parseInt(e):e.replace(new RegExp(/-/gm),"/"):e)&&10===e.toString().length&&(e*=1e3),new Date(e));var n={y:e.getFullYear(),m:e.getMonth()+1,d:e.getDate(),h:e.getHours(),i:e.getMinutes(),s:e.getSeconds(),a:e.getDay()};return t.replace(/{([ymdhisa])+}/g,(function(e,t){var i=n[t];return"a"===t?["日","一","二","三","四","五","六"][i]:i.toString().padStart(2,"0")}))}function r(e,t){e=10===(""+e).length?1e3*parseInt(e):+e;var n=new Date(e),i=(Date.now()-n)/1e3;return i<30?"刚刚":i<3600?Math.ceil(i/60)+"分钟前":i<86400?Math.ceil(i/3600)+"小时前":i<172800?"1天前":t?o(e,t):n.getMonth()+1+"月"+n.getDate()+"日"+n.getHours()+"时"+n.getMinutes()+"分"}function a(e,t){return e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function c(e,t){a(e,t)||(e.className+=" "+t)}function s(e,t){a(e,t)&&(t=new RegExp("(\\s|^)"+t+"(\\s|$)"),e.className=e.className.replace(t," "))}n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("2c3e"),n("25f0"),n("d3b7"),n("4d90"),n("a15b"),n("d81d"),n("b64b"),n("1276"),n("159b"),n("fb6a"),n("a630"),n("3ca3"),n("6062"),n("ddb0"),n("466d")},f121:function(e,t,n){n=n("f1e0"),e.exports=n},f1e0:function(e,t){e.exports={title:"采销平台结算系统",baseUrl:"http://wx.wxhr.sit.futurelab.tv",api:{baseApi:"http://caixiao.sitw.wanyuhengtong.com/",testApi:"http://inv.test241.wanyuhengtong.com/",aoldBaseApi:"http://inv.sitw.wanyuhengtong.com/"},fileURL:"https://api2.edusit.zretchome.com",appId:"wx5ac3a2c2d72b6f26",ding:{CorpId:"dingc78fa4301e1a424a35c2f4657eb6378f",AgentId:"1184953963"}}},f92d:function(e,t,n){"use strict";n("c5fa")},fab5:function(e,t,n){"use strict";n("bcaa")}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);
|