(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-488c0862"],{"077d":function(t,e,n){},"11ab":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAShJREFUaEPtmT0OgkAQhd9GzmBNrY260OshsLbScAtvgdDYewnpTMzCRTyDrqWJodi/QSFDvfNm53uTZWAFBv6Ige8fXMCvHWQH2AFPAp0tJEuV6Zeee2oHD2/z9Pgt2l1Apa7QWAffgY+gQN3skw0X4APRK9bGgUVxiyNEsVdCgmCVp7VRCxHkJpPkFxkZWkNhdsAQFNkydoAMraEwO2AIimzZOB2QVXMG9H+NEhqP5pBsjUYJyeM0QcvbTKOyVBcAGcE23CVtCnDP0n/kOE+h/jm6Z2QH3NmFiWQHwnB0V2EH3NmFiRynA8tTO5vo5zQMo3Aqxj+2eBoNB/2jZDPMDd6BVXHfAeK/vsgAGF9wUHQAleY4j1EqWhS67AAFVRtNdsCGFsXaN55TUTEoyk3KAAAAAElFTkSuQmCC"},"3d64":function(t,e,n){"use strict";var i=n("077d");n.n(i).a},"42c4":function(t,e,n){"use strict";var i=n("5530"),a=n("2f62"),s=n("35cc"),r={data:function(){return{language:""}},components:{},computed:Object(i.a)({},Object(a.d)("user",["currentLanguage"])),created:function(){"cn"===this.currentLanguage&&(this.language="中文"),"en"===this.currentLanguage&&(this.language="English"),this.$i18n.locale=this.currentLanguage},methods:Object(i.a)(Object(i.a)({},Object(a.c)({SET_CURRENT_LANGUAGE:"user/SET_CURRENT_LANGUAGE"})),{},{handleCommand:function(t){"cn"===t&&(this.language="中文"),"en"===t&&(this.language="English"),this.$i18n.locale=t,this.SET_CURRENT_LANGUAGE(t);var e={};e.id=localStorage.getItem("userId"),e.note=t,Object(s.i)(e)}})},c=(n("515a"),n("2877")),o=Object(c.a)(r,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"wrapper"},[e("el-dropdown",{on:{command:this.handleCommand}},[e("img",{staticClass:"global",attrs:{src:n("964a")}}),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{attrs:{command:"cn"}},[this._v("中文")]),e("el-dropdown-item",{attrs:{command:"en"}},[this._v("English")])],1)],1)],1)}),[],!1,null,"9de65690",null);e.a=o.exports},4460:function(t,e,n){"use strict";var i=n("a408");n.n(i).a},"515a":function(t,e,n){"use strict";var i=n("c670");n.n(i).a},5643:function(t,e,n){"use strict";var i=n("8729");n.n(i).a},"5a8f":function(t,e,n){"use strict";var i=n("5c4a");n.n(i).a},"5b2b":function(t,e,n){"use strict";var i=n("2b0e");e.a=new i.default},"5c4a":function(t,e,n){},"5fcd":function(t,e,n){"use strict";var i=n("db71");n.n(i).a},6408:function(t,e,n){},6482:function(t,e,n){"use strict";var i=n("8c8e");n.n(i).a},8729:function(t,e,n){},"8c8e":function(t,e,n){},"8cb8":function(t,e,n){},"964a":function(t,e,n){t.exports=n.p+"img/fanyi.20ba92ea.svg"},9915:function(t,e,n){"use strict";var i=n("5b2b"),a={name:"setting",data:function(){return{}},methods:{handleShowSetting:function(){i.a.$emit("setting-panel",!0)}}},s=n("2877"),r=Object(s.a)(a,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"setting",on:{click:this.handleShowSetting}},[e("i",{staticClass:"iconfont icon-setting1 cursor text-color"})])}),[],!1,null,null,null);e.a=r.exports},9993:function(t,e,n){"use strict";var i=n("b678");n.n(i).a},a408:function(t,e,n){},a9c9:function(t,e,n){"use strict";n.r(e);n("7db0"),n("c740"),n("4160"),n("a434"),n("b0c0"),n("498a"),n("159b");var i=n("5530"),a={name:"binvoice-anner",data:function(){return{}}},s=(n("5643"),n("2877")),r=Object(s.a)(a,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"invoice-banner"})}),[],!1,null,"ba767c9c",null).exports,c=(n("4de4"),n("2f62")),o={name:"head-nav",props:["MenuList"],data:function(){return{unfoldMenuList:[],foldMenuList:[],viewportWidth:"",num:""}},created:function(){this.winWidth(),window.addEventListener("resize",this.winWidth)},methods:{winWidth:function(){var t=0;t="cn"==this.currentLanguage?166:250,this.viewportWidth=window.innerWidth,this.num=Math.floor(this.viewportWidth/t),this.num<=5||this.num,this.filterdMenuList()},goDetail:function(t,e){this.$emit("goDetail",t,e)},filterdMenuList:function(){var t=this;this.unfoldMenuList=this.MenuList.filter((function(e,n){return n<=t.num})),this.foldMenuList=this.MenuList.filter((function(e,n){return n>t.num}))}},computed:Object(i.a)({},Object(c.d)("user",["currentLanguage"]))},u=(n("b317"),Object(s.a)(o,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"h100 headMenu a-center d-flex"},[t._l(t.unfoldMenuList,(function(e,n){return i("div",{key:n,staticClass:"c-000 Pointerhover h100 d-flex a-center p-x-2",class:[t.$route.path.includes(e.routeName)?"activeTitle":""],staticStyle:{cursor:"pointer","font-size":"1rem"},on:{click:function(n){return t.goDetail(e.id,e.routeName)}}},[i("span",[t._v(t._s(t.$t("menu."+e.routeName)))])])})),i("el-dropdown",{staticStyle:{"padding-left":"26px"},attrs:{placement:"bottom"}},[i("img",{staticStyle:{width:"25px"},attrs:{src:n("11ab"),alt:""}}),i("el-dropdown-menu",{staticStyle:{"background-color":"#fff"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.foldMenuList,(function(e,n){return i("div",{key:n,staticClass:"c-000 zdPointerhover h100 d-flex a-center",class:[t.$route.path.includes(e.routeName)?"activeTitle":""],staticStyle:{cursor:"pointer","font-size":"1rem"},on:{click:function(n){return t.goDetail(e.id,e.routeName)}}},[i("el-dropdown-item",[i("span",{class:[t.$route.path.includes(e.routeName)?"sactiveTitle":""]},[t._v(t._s(t.$t("menu."+e.routeName)))])])],1)})),0)],1)],2)}),[],!1,null,"b1d70a04",null).exports),l={name:"invoice-breadcrumb",props:["breadList"],data:function(){return{}},watch:{breadList:function(t){}}},d=(n("5a8f"),Object(s.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"main-top"},["index"!=t.$route.name?n("div",{staticClass:"bg-fff d-flex a-center p-x-3 beard-wrap"},[n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[n("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[t._v(t._s(t.$t("home")))]),t._l(t.breadList,(function(e,i){return n("el-breadcrumb-item",{key:i,staticClass:"cursor",attrs:{to:{path:e.path}}},[t._v(t._s(t.$t(e.meta.name)))])}))],2)],1):t._e()])}),[],!1,null,"2b537189",null).exports),h={name:"invoice-menu",props:["MenuList"],data:function(){return{isCollapse:!0,languageCn:"cn"==this.$i18n.locale}},mounted:function(){},created:function(){},methods:{goDetail:function(t,e){this.$emit("goDetail",t,e)},onChangeItem:function(t){this.$emit("onChangeItem",t)}}},m=(n("4460"),Object(s.a)(h,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-aside",{staticClass:"slideMenu"},[n("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":t.$route.name,collapse:t.isCollapse,"unique-opened":""},on:{select:t.onChangeItem}},t._l(t.MenuList,(function(e){return n("el-menu-item",{key:e.id,attrs:{index:e.routeName},on:{click:function(n){return t.goDetail(e.id,e.routeName)}}},[n("i",{class:e.icon}),t.languageCn?n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.title))]):t._e(),t.languageCn?t._e():n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.name))])])})),1)],1)}),[],!1,null,"2c9f6240",null).exports),f=n("10bd"),g={name:"system-header-logo",data:function(){return{systemTitle:""}},props:{},mounted:function(){var t=this;Object(f.E)().then((function(e){t.systemTitle=e.result.sysName})),this.getLogoId1()},methods:Object(i.a)({},Object(c.b)({getLogoId1:"common/getLogoId"})),computed:Object(i.a)({},Object(c.d)({appTitle:function(t){return t.common.projectInfo.systemTitle},url:function(t){return t.user.url+"/api/img/logoPc.png"}}))},p=(n("9993"),Object(s.a)(g,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"head-left h100 d-flex a-center system-header-log"},[e("div",{staticClass:" d-flex j-center a-center c-000 "},[e("img",{staticClass:"m-left-1",staticStyle:{width:"30px",height:"30px"},attrs:{src:this.url,alt:""}}),e("h1",{staticClass:"f20 ststemTitle f-weight"},[this._v(" "+this._s(this.appTitle)+" ")])])])}),[],!1,null,"02fd442c",null).exports),v={name:"secondMenu",props:["AsideMenu"],data:function(){return{languageCn:"cn"==this.$i18n.locale}},created:function(){},computed:Object(i.a)({},Object(c.d)("supplier",["abnormalCount"])),methods:{clickHandle:function(t){setTimeout((function(){}),2e3),this.$emit("clickHandle",t)}}},b=(n("c661"),Object(s.a)(v,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{},t._l(t.AsideMenu,(function(e,i){return n("li",{key:i,staticClass:"d-flex subAsideItem a-center ",class:[e.routeName.trim()==t.$route.name.trim()?"isSubActice":""],staticStyle:{height:"40px","padding-left":"30px"},on:{click:function(n){return t.clickHandle(e)}}},[t.languageCn?n("el-badge",{attrs:{value:t.abnormalCount,max:10,hidden:"异常"!=e.title}},[t._v(t._s("报表"==e.title?"费用明细报表":e.title))]):t._e(),t.languageCn?t._e():n("el-badge",{attrs:{value:t.abnormalCount,max:10,hidden:"异常"!=e.title}},[t._v(t._s("报表"==e.title?"费用明细报表":e.name))])],1)})),0)}),[],!1,null,"bbcd38fe",null).exports),C=n("9915"),A=n("5b2b"),_={name:"panel",data:function(){return{drawer:!1,direction:"rtl"}},mounted:function(){var t=this;A.a.$on("setting-panel",(function(e){t.drawer=e}))}},w=(n("6482"),Object(s.a)(_,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"panel"},[n("el-drawer",{attrs:{title:"项目设置","custom-class":"system-setting",visible:t.drawer,direction:t.direction,size:"18%"},on:{"update:visible":function(e){t.drawer=e}}},[t._t("default")],2)],1)}),[],!1,null,"6e33f6f0",null).exports);n("cca6"),n("99af"),n("ac1f"),n("5319");var E={name:"setting-detail",data:function(){return{systemSetting:{}}},computed:Object(i.a)({},Object(c.d)({setting:function(t){return t.app.setting}})),methods:Object(i.a)(Object(i.a)({},Object(c.c)({CHANGE_SETTING:"app/CHANGE_SETTING"})),{},{switchChange:function(t){this.CHANGE_SETTING(this.systemSetting),function(t,e,n){if(t){var i=t.getAttribute("class");i=i.replace(n,""),t.className=e?"".concat(i," ").concat(n," "):i}}(document.documentElement,this.systemSetting[t],t)}}),mounted:function(){var t=Object.assign({},this.setting);this.systemSetting=t}},O=(n("cc86"),Object(s.a)(E,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"setting-detail"},[n("el-divider",[t._v("界面设置")]),n("div",{staticClass:"grey-mode m-bottom-2"},[n("div",[t._v("灰色模式")]),n("el-switch",{attrs:{"active-color":"#3399cc","inactive-color":"#ccc"},on:{change:function(e){return t.switchChange("grey")}},model:{value:t.systemSetting.grey,callback:function(e){t.$set(t.systemSetting,"grey",e)},expression:"systemSetting.grey"}})],1),n("div",{staticClass:"grey-mode"},[n("div",[t._v("色弱模式")]),n("el-switch",{attrs:{"active-color":"#3399cc","inactive-color":"#ccc"},on:{change:function(e){return t.switchChange("weak")}},model:{value:t.systemSetting.weak,callback:function(e){t.$set(t.systemSetting,"weak",e)},expression:"systemSetting.weak"}})],1),t._t("default")],2)}),[],!1,null,"62920a05",null).exports),x={name:"header-org",data:function(){return{org:""}},computed:Object(i.a)({},Object(c.d)("user",["orgs"])),methods:Object(i.a)({},Object(c.c)({SET_CURRENT_ORG:"user/SET_CURRENT_ORG"})),watch:{org:function(t){this.SET_CURRENT_ORG(t)}},created:function(){var t;0!=this.orgs.length&&(this.org=null!==(t=this.orgs[0].id)&&void 0!==t?t:"");this.SET_CURRENT_ORG(this.org)}},N=(n("3d64"),Object(s.a)(x,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header-org"},[n("el-select",{attrs:{placeholder:"请选择组织"},model:{value:t.org,callback:function(e){t.org=e},expression:"org"}},t._l(t.orgs,(function(t,e){return n("el-option",{key:e,attrs:{label:t.orgName,value:t.id}})})),1)],1)}),[],!1,null,"0ce238a6",null).exports),S=n("42c4"),$={data:function(){return{MenuList:[],AsideMenu:[],RouteArr:[{name:"index",title:"首页"}],breadList:[],systemTitle:""}},components:{invoiceBanner:r,headNav:u,invoiceBreadcrumb:d,asideMenu:m,headLogo:p,secondMenu:b,setting:C.a,panel:w,settingDetail:O,org:N,ChangeLanguage:S.a},computed:Object(i.a)(Object(i.a)({},Object(c.d)({isShow:function(t){return t.app.isCollapse}})),{},{showSecond:function(){return this.AsideMenu.length>0&&"index"!=this.$route.name&&1!=this.$route.meta.show&&"InvoiceMatch"!==this.$route.name&&"FileUpload"!==this.$route.name&&"invoiceDetail"!==this.$route.name}}),watch:{$route:function(){this.getBreadcrumb()}},created:function(){var t=this;Object(f.E)().then((function(e){t.systemTitle=e.result.sysName}));var e=this.$route.name,n=this.$route.meta.name;"index"!=e&&"auth"!=n&&(this.AsideMenu=JSON.parse(localStorage.getItem("AsideMenu"))||[],this.RouteArr.push({name:this.$route.name,title:this.$route.meta.name})),this.getBreadcrumb();var i=JSON.parse(localStorage.getItem("menu"));this.MenuList=i},beforeRouteUpdate:function(t,e,n){if("auth"!=t.meta.name){var i=t.name,a=t.meta.name;this.RouteArr.findIndex((function(t){return t.title==a}))<0&&"auth"!=a&&this.RouteArr.push({name:i,title:a})}n()},methods:{getBreadcrumb:function(){var t=this.$route.matched,e=[];t.forEach((function(t){"auth"!=t.meta.name&&e.push(t)})),this.breadList=e},clickHandle:function(t){var e=this;t.routeName=t.routeName.trim(),"系统样式"==t.name?Object(f.E)().then((function(n){e.$router.push({name:t.routeName,params:{id:n.result.id}})})):this.$router.push({name:t.routeName})},closeCurrent:function(t){var e=this.RouteArr.findIndex((function(e){return e.name==t}));"index"!=this.RouteArr[e].name&&this.RouteArr.splice(e,1)},goCurrentClick:function(t){this.$router.push({name:t})},goDetail:function(t,e){var n=this.MenuList.find((function(e){return e.id==t}));n.menu.length>0?this.AsideMenu=n.menu:this.AsideMenu=[],this.$router.push({name:e})},onChangeItem:function(t){var e=this.$route.name,n=this.$route.meta.name;t==e?console.warn("当前路由已经打开"):this.$router.push({name:t}),this.RouteArr.findIndex((function(t){return t.title==n}))<0&&"auth"!=n&&this.RouteArr.push({name:e,title:n})},titleChange:function(t){}},mounted:function(){var t=this;window.onbeforeunload=function(){localStorage.setItem("AsideMenu",JSON.stringify(t.AsideMenu))}}},y=(n("5fcd"),Object(s.a)($,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"Auth"},[n("el-container",[n("invoice-banner"),n("el-header",{staticClass:"p-relative",staticStyle:{"border-bottom":"1px solid rgba(0, 21, 41, 0.08)"}},[n("div",{staticClass:"header h100 d-flex",class:{"j-sb":!t.isShow}},[n("head-logo"),n("headNav",{attrs:{MenuList:t.MenuList},on:{goDetail:t.goDetail}}),n("div",{staticClass:"m-right-4 d-flex a-center"},[n("org"),n("MyDropMenu"),n("Refresh"),n("setting",{staticClass:"m-x-2"}),n("Screen"),n("ChangeLanguage",{staticClass:"cursor"})],1)],1)]),n("el-container",{staticClass:"app-main"},[n("asideMenu",{attrs:{MenuList:t.MenuList},on:{onChangeItem:t.onChangeItem,goDetail:t.goDetail}}),n("el-main",[n("invoice-breadcrumb",{staticClass:"hasBread",attrs:{breadList:t.breadList}}),n("div",{staticClass:"d-flex flex-1 calcheight"},[t.showSecond?n("div",{staticClass:"asideHeight"},[n("secondMenu",{attrs:{AsideMenu:t.AsideMenu},on:{clickHandle:t.clickHandle}})],1):t._e(),n("div",{staticClass:"h100",staticStyle:{flex:"1",width:"0"}},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("router-view",{staticClass:"w100 h100 contentHeight"})],1)],1)])],1)],1)],1),n("panel",[n("settingDetail")],1)],1)}),[],!1,null,null,null));e.default=y.exports},b317:function(t,e,n){"use strict";var i=n("df02");n.n(i).a},b678:function(t,e,n){},c661:function(t,e,n){"use strict";var i=n("8cb8");n.n(i).a},c670:function(t,e,n){},cc86:function(t,e,n){"use strict";var i=n("6408");n.n(i).a},db71:function(t,e,n){},df02:function(t,e,n){}}]);