1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["app"],{0:function(e,t,n){n("db4d"),e.exports=n("56d7")},"057c":function(e,t,n){"use strict";n.r(t);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(){return{newValue:"",elList:i,iconList:[]}},watch:{value:function(e){this.newValue=e}},created(){this.initFun()},methods:{changeVal(e){this.$emit("change",e)},initFun(){this.iconList=[]}}};n("82a3"),n=n("2877"),o=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=o.exports},"0781":function(e,t,n){"use strict";n.r(t);var i=n("24ab"),o=n.n(i),a=n("83d6"),{showSettings:c,tagsView:i,fixedHeader:n,sidebarLogo:a}=n.n(a).a;a={theme:o.a.theme,showSettings:c,tagsView:i,fixedHeader:n,sidebarLogo:a};t.default={namespaced:!0,state:a,mutations:{CHANGE_SETTING:(e,{key:t,value:n})=>{e.hasOwnProperty(t)&&(e[t]=n)}},actions:{changeSetting({commit:e},t){e("CHANGE_SETTING",t)}}}},"07cd":function(e,t,n){"use strict";n("7039")},"082a":function(e,t,n){"use strict";n.r(t);const i=n("82f2"),o=[];i.keys().forEach(e=>{e.startsWith("./index")||e.startsWith("./request")||(e=i(e),o.push(e.default||e))}),t.default={install(e){o.forEach(t=>{if("function"==typeof t)e.prototype["$"+t.name]=t;else if("object"==typeof t)for(var n in t)e.prototype["$"+n]=t[n]}),e.filter("ellipsis",(function(e,t=25){return e?e.length>t?e.slice(0,t)+"...":e:""}))}}},"0905":function(e,t,n){"use strict";n("ac30")},"0f9a":function(e,t,n){"use strict";n.r(t);var i=n("5f87");const o={};window.ajaxTimeout=2e4;var a=async(e="",t,n,a={},c=o,s)=>{const r={method:e.method.toLowerCase(),baseURL:"",url:e.url,data:e.data,params:a,processData:!0,timeout:window.ajaxTimeout,headers:c,onUploadProgress:s};return s&&"function"==typeof s&&(r.onUploadProgress=s),axios.interceptors.request.use(e=>(e.data.token||(e.data.token=Object(i.e)()),e),e=>Promise.reject(new Error("服务器异常,请联系管理员!"))),axios.interceptors.response.use(async e=>e,e=>Promise.reject(e.response.data)),new Promise((e,t)=>{axios(r).then(t=>{e(t.data)}).catch(e=>{t(e)})})},c=n("5daa"),s={token:Object(i.e)(),name:"",avatar:n("8efb"),introduction:"",roles:["admin"],btnList:Object(i.a)(),navList:Object(i.c)(),mainList:Object(i.b)()};t.default={namespaced:!0,state:s,mutations:{SET_TOKEN:(e,t)=>{e.token=t},SET_MENU:(e,t)=>{e.menu=t},SET_HAS:(e,t)=>{e.has=t},SET_INTRODUCTION:(e,t)=>{e.introduction=t},SET_NAME:(e,t)=>{e.name=t},SET_AVATAR:(e,t)=>{e.avatar=t},SET_ROLES:(e,t)=>{e.roles=t},mainListFn(e,t){e.mainList=t=t||[],Object(i.k)(t)},navListFn(e,t){e.navList=t=t||[],Object(i.l)(t)},btnListFn(e,t){e.btnList=t=t||[],Object(i.j)(t)}},actions:{login({commit:e},t){const{username:n,password:o}=t;return new Promise((t,s)=>{var r;r={username:n.trim(),password:o},a({url:c.a.userURL+"Api/login",method:"post",data:r}).then(n=>{var{data:o}=n;0===n.code&&(e("SET_TOKEN",o.token),Object(i.n)(o.token)),t(n)}).catch(e=>{s(e)})})},dingUserInfor({commit:e},t){return new Promise(async(n,o)=>{var s;s=t,a({url:c.a.userURL+"Api/dintalk",method:"post",data:s}).then(t=>{var{data:o}=t;0===t.code?(e("SET_TOKEN",o.token),Object(i.n)(o.token),n("success")):n("error")}).catch(e=>{o(e)})})},async getMenuList({commit:e}){return new Promise(async(t,o)=>{if(Object(i.e)()){var s=await a({url:c.a.baseURL+"admin/menu",method:"post",data:{}});if(0===s.code){let i=s.data;i=i.filter(e=>e.child&&0<e.child.length);let o=[],a=[],c=[];i.forEach(e=>{let t={name:e.menu_route,path:"/"+e.menu_route,meta:{title:e.menu_name,icon:e.menu_img},children:[]},n=Object.assign({child:`/${e.menu_route}/`},t);delete n.children,c.push(n),e.child.forEach((e,i)=>{0===i&&(n.child+=e.menu_route),i={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},a.push(e),t.children.push(i)}),o.push(t)}),e("mainListFn",c),e("navListFn",o),e("btnListFn",a),function(e){const t=[{path:"/person",component:()=>Promise.all([n.e("chunk-elementUI"),n.e("chunk-8032ea5e")]).then(n.bind(null,"c1f7")),redirect:"/person/my-message",hidden:!0,alwaysShow:!0,meta:{title:"个人中心",icon:"user"},children:[{path:"my-message",component:()=>n.e("chunk-99ddbe98").then(n.bind(null,"2cc2")),name:"MyMessage",alwaysShow:!0,meta:{title:"我的信息",noCache:!0,breadcrumb:!0}},{path:"change-phone",component:()=>n.e("chunk-11160440").then(n.bind(null,"fdb1")),name:"ChangePhone",alwaysShow:!0,meta:{title:"更换手机号",noCache:!0,breadcrumb:!0}},{path:"change-password",component:()=>n.e("chunk-27491dc0").then(n.bind(null,"a9ad")),name:"ChangePassword",alwaysShow:!0,meta:{title:"修改密码",noCache:!0,breadcrumb:!0}}]},{path:"/welcome",component:()=>Promise.all([n.e("chunk-elementUI"),n.e("chunk-8032ea5e")]).then(n.bind(null,"c1f7")),redirect:"/welcome/dashboard",children:[{path:"dashboard",component:()=>n.e("chunk-f70574aa").then(n.bind(null,"9406")),name:"Dashboard",meta:{title:"首页",icon:"dashboard",affix:!0}}]}];e.map(e=>(e.component=e=>Promise.all([n.e("chunk-elementUI"),n.e("chunk-8032ea5e")]).then(function(){var t=[n("c1f7")];e.apply(null,t)}.bind(this)).catch(n.oe),e.children&&0<e.children.length&&(e.redirect=`/${e.name}/${e.children[0].name}`,e.children.map(e=>(e.component=t=>Promise.all([n.e("chunk-1dc14159"),n.e("chunk-ac656654")]).then(function(){var i=[n("feca")(`./${e.url}.vue`)];t.apply(null,i)}.bind(this)).catch(n.oe),e))),e)),t.push(...e),t.push({path:"404",component:()=>n.e("chunk-95806aaa").then(n.bind(null,"1db4")),hidden:!1,noCache:!0}),t.push({path:"*",redirect:"/404"}),window.vm.$router.addRoutes(t)}(o),t("success")}else 101===s.code||102===s.code?t("noToken"):t(s)}else t("noToken")})},logout({commit:e,dispatch:t}){return new Promise((n,o)=>{e("SET_TOKEN",""),e("SET_ROLES",[]),Object(i.i)(),e("SET_MENU",""),e("SET_HAS",""),Object(i.h)(),Object(i.f)(),Object(i.g)(),t("tagsView/delAllViews",null,{root:!0}),n()})},resetToken({commit:e}){return new Promise(t=>{e("SET_TOKEN",""),e("SET_ROLES",[]),Object(i.i)(),t()})}}}},1:function(e,t){},10:function(e,t){},1004:function(e,t,n){"use strict";n.r(t),t.default={rulesPhone:(e,t,n)=>{/^1[23456789]\d{9}$/.test(t)?n():n(new Error("请输入正确的手机号"))},rulesNumber:(e,t,n)=>{/^[0-9]*$/.test(t)?n():n(new Error("请输入数字"))},rulesTwoNumber:(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:(e,t,n)=>{/(^[1-9][0-9]$)|(^100&)|(^[1-9]$)$/.test(t)?n():n(new Error("请输入1-100的数字"))},positiveInteger:(e,t,n)=>{/^[1-9]\d*$/.test(t)?n():n(new Error("请输入正整数"))},positiveTwoDecimal:(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:(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}$)/}},11:function(e,t){},12:function(e,t){},13:function(e,t){},14:function(e,t){},1500:function(e,t,n){},"1b69":function(e,t,n){"use strict";var i=n("5daa"),o=n("5f87");const a={};window.ajaxTimeout=2e4,t.a=async(e="",t={},n="GET",c={},s=a,r)=>{const l={method:n=n.toLowerCase(),baseURL:"",url:i.a.baseURL+e,data:t,params:c,processData:!0,timeout:window.ajaxTimeout,headers:s,onUploadProgress:r};return r&&"function"==typeof r&&(l.onUploadProgress=r),axios.interceptors.request.use(e=>(e.data.token||(e.data.token=Object(o.e)()),e),e=>Promise.reject(new Error("服务器异常,请联系管理员!"))),axios.interceptors.response.use(async e=>{var t;return 200!==e.status||100<=(t=e.data.code)&&t<=104&&(Object(o.i)(),Object(o.h)(),Object(o.f)()),e},e=>Promise.reject(e.response.data)),new Promise((e,t)=>{axios(l).then(t=>{e(t.data)}).catch(e=>{e.response&&e.response.data?t(e.response.data):t(e)})})}},2:function(e,t){},"244d":function(e,t,n){"use strict";n("29a9")},"245a":function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"oingList",(function(){return r})),n.d(i,"doneList",(function(){return l}));var o={};n.r(o),n.d(o,"stockListAll",(function(){return u})),n.d(o,"statistics",(function(){return d})),n.d(o,"stockLog",(function(){return h})),n.d(o,"orderWarnList",(function(){return p}));t=n("96eb");var a=n.n(t),c={code:0,data:{},mag:""},s={count:0,list:[]};function r(){let e=JSON.parse(JSON.stringify(c)),t=JSON.parse(JSON.stringify(s));t.count=100,t.list=[];for(let n=0;n<15;n++)t.list.push(a.a.mock({id:"@increment","title|1":["备货申请","采购入库","咨询确认单审批","销售确认单审批","销售出库","售后退货申请","售后退货","采购调拨","采购盘点"],orderNo:"@guid","type|1":["待审核","待采购反馈","待发货","待收货","待申请售后"],timestamp:+a.a.Random.date("T"),author:"@cname","reviewer|1":["采购部","网络部","信息部","财务部","客服部","项目部","人事部"],addTime:"@datetime"}));return e.data=t,{url:"process/oingList",type:"post",data:e}}function l(){let e=JSON.parse(JSON.stringify(c)),t=JSON.parse(JSON.stringify(s));t.count=100,t.list=[];for(let n=0;n<15;n++)t.list.push(a.a.mock({id:"@increment","title|1":["备货申请","采购入库","咨询确认单审批","销售确认单审批","销售出库","售后退货申请","售后退货","采购调拨","采购盘点"],orderNo:"@guid","type|1":["待审核","待采购反馈","待发货","待收货","待申请售后"],timestamp:+a.a.Random.date("T"),author:"@cname","reviewer|1":["采购部","网络部","信息部","财务部","客服部","项目部","人事部"],addTime:"@datetime"}));return e.data=t,{url:"process/doneList",type:"post",data:e}}function u(){let e=JSON.parse(JSON.stringify(c));e.data=[];for(let t=0;t<50;t++){let t=a.a.mock({id:"@increment",name:"@ctitle(5)",child:[]});for(let e=0;e<10;e++)t.child.push(a.a.mock({id:"@increment",name:"@ctitle(5)"}));e.data.push(t)}return{url:"stock/stockListAll",type:"post",data:e}}function d(){let e=JSON.parse(JSON.stringify(c));return e.data=a.a.mock({value1:"@integer(300, 5000)",value2:"@integer(300, 5000)",value3:"@integer(300, 5000)",value4:"@integer(300, 5000)",value5:"@integer(300, 5000)"}),{url:"stock/statistics",type:"post",data:e}}function h(){let e=JSON.parse(JSON.stringify(c)),t=JSON.parse(JSON.stringify(s));t.count=100,t.list=[];for(let n=0;n<15;n++)t.list.push(a.a.mock({id:"@increment",author:"@cname","reviewer|1":["采购部","网络部","信息部","财务部","客服部","项目部","人事部"],"type|1":["待入库","待出库","其他入库","其他出库","正式入库","正式出库"],"number|1-100":100,"typeo|1":["采购入库单","销售出库单","售后退货","采购调拨","采购盘点"],addTime:"@datetime"}));return e.data=t,{url:"stock/stockLog",type:"post",data:e}}function p(){let e=JSON.parse(JSON.stringify(c)),t=JSON.parse(JSON.stringify(s));t.count=100,t.list=[];for(let n=0;n<15;n++)t.list.push(a.a.mock({orderNo:"@guid","goods|1":["恰恰瓜子","卫龙辣条","XX月饼","XX潮牌鞋","可口可乐"],"attribute|1":["红色-X码","红色-m码","红色-l码","蓝色-l码","蓝色-l码","蓝色-l码","整装"],"type|1":["潮牌","休闲食品"],"unit|1":["件","双","袋","盒","桶"],"number|1-100":100,"warnNumber|1-50":50,addTime:"@datetime"}));return e.data=t,{url:"stock/orderWarnList",type:"post",data:e}}function m(e,t=!0){if(t)for(var n in e)(e=>{if(!1!==e.isOpen){let t="";t.endsWith("/")||(t+="/"),t+=e.url,a.a.mock(new RegExp(t),e.type,t=>(t.data=t.body?JSON.parse(t.body):null,delete t.body,e.data))}})(e[n]()||{})}a.a.Random,a.a.Random,m(i,!0),m(o,!0)},2470:function(e,t,n){"use strict";n.r(t);var i={name:"ShySelect",model:{prop:"value",event:"change"},props:["value","array","placeholder"],data(){return{newValue:this.value,minWidth:""}},watch:{newValue:function(e){this.$emit("change",e)},value:function(e){this.newValue=e}},methods:{setMinWidth(e){if(this.array&&0<this.array.length)this.minWidth=e.srcElement.clientWidth;else{const t=document.getElementsByClassName("el-select-dropdown__empty");t&&0<t.length&&(t[0].style["min-width"]=e.srcElement.clientWidth+2+"px")}}}};n=n("2877"),i=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=i.exports},"24ab":function(e,t,n){e.exports={theme:"#63cbe7"}},"29a9":function(e,t,n){},"2a97":function(e,t,n){"use strict";n.r(t);var i={name:"staffTree",components:{},props:["list","level"],computed:{powers(){var e=this.$store.getters.btnList.find(e=>"organize"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{newlist:"",index:0}},methods:{setUpEdit(e,t,n){this.$emit("setUpEdit",t,n)}}};n("244d"),n=n("2877"),i=Object(n.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"staff-tree"},[e.list&&0<e.list.length?n("div",e._l(e.list,(function(t,i){return n("div",{key:"user"+i,staticClass:"staff"},[n("i",{staticClass:"el-icon-s-custom user-box"}),n("span",{staticClass:"staff-name"},[e._v(e._s(t.nickname))]),n("span",{staticClass:"btn-list",on:{click:function(e){return e.stopPropagation()}}},[e.powers.some((function(e){return"005"==e}))?n("el-button",{attrs:{type:"1"===t.position?"primary":"info",size:"mini"},on:{click:function(n){return e.setUpEdit(n,t.id,t.position)}}},[e._v(" 设为负责人 ")]):e._e()],1)])})),0):e._e()])}),[],!1,null,null,null);t.default=i.exports},"2d49":function(e,t,n){"use strict";n("1500")},3:function(e,t){},"3cee":function(e,t,n){"use strict";n.r(t),t.default={initPwd:function(e,t,n,i,o,a){var c="";if("0"==t&&"0"==n&&"0"==i)return c;for(var s=e-=1;0<=s;s--){var r=Math.floor(94*Math.random()+33);"0"==t&&48<=r&&r<=57||"0"==n&&(65<=r&&r<=90||97<=r&&r<=122)||"0"==i&&(33<=r&&r<=47||58<=r&&r<=64||91<=r&&r<=96||123<=r&&r<=127)?s++:c+=String.fromCharCode(r)}return"0"==o?"0"==a?c.toUpperCase():c.toLowerCase():c}}},4:function(e,t){},4360:function(e,t,n){"use strict";var i=n("2f62"),o={sidebar:e=>e.app.sidebar,size:e=>e.app.size,searchSize:e=>e.app.searchSize,tablebtnSize:e=>e.app.tablebtnSize,device:e=>e.app.device,visitedViews:e=>e.tagsView.visitedViews,cachedViews:e=>e.tagsView.cachedViews,token:e=>e.user.token,avatar:e=>e.user.avatar,name:e=>e.user.name,introduction:e=>e.user.introduction,roles:e=>e.user.roles,errorLogs:e=>e.errorLog.logs,btnList:e=>e.user.btnList,navList:e=>e.user.navList,mainList:e=>e.user.mainList};Vue.use(i.a);const a=n("c653");n=a.keys().reduce((e,t)=>{var n=t.replace(/^\.\/(.*)\.\w+$/,"$1");t=a(t);return e[n]=t.default,e},{}),o=new i.a.Store({modules:n,getters:o}),t.a=o},"4af7":function(e,t,n){"use strict";const i={};window.ajaxTimeout=2e4,t.a=async(e="",t,n,o,a=i)=>new Promise((t,n)=>{axios.post("/"+(e.url||e),{}).then(e=>{t(e.data)}).catch(e=>{n(e)})})},"4d49":function(e,t,n){"use strict";n.r(t),t.default={namespaced:!0,state:{logs:[]},mutations:{ADD_ERROR_LOG:(e,t)=>{e.logs.push(t)},CLEAR_ERROR_LOG:e=>{e.logs.splice(0)}},actions:{addErrorLog({commit:e},t){e("ADD_ERROR_LOG",t)},clearErrorLog({commit:e}){e("CLEAR_ERROR_LOG")}}}},5:function(e,t){},"56d7":function(e,t,n){"use strict";n.r(t);var i={};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 E})),n.d(i,"toThousandFilter",(function(){return k})),n.d(i,"uppercaseFirst",(function(){return _}));var o=n("a18c"),a=(n("f5df"),n("e05f"),n("6944")),c=n.n(a),s=n("5f87"),r={name:"NoAuth",data(){return{errGif:n("cc6c")+"?"+ +new Date}},methods:{back(e){e||this.$route.query.noGoBack?window.vm.$router.push({path:"/welcome/dashboard"}):window.vm.$router.go(-1)}}},l=(n("07cd"),n("2877")),u=Object(l.a)(r,(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,d=n("5c96");t=n.n(d);n("0808"),n("24ab"),n("b20f");const h=n("9302"),p=[];h.keys().forEach(e=>{var t=h(e);e.startsWith("./gRegion")||p.push(t.default||t)});a={install(e){p.forEach(t=>{e.component(t.name,t)})}};var m=n("61f7"),f=n("8cf3"),g=n("5daa"),w=(r={name:"App",data(){return{code:""}},async created(){await f.a.list(this.parmValue),"isDingDing"===Object(m.a)()?await this.testing():await this.getMenu()},methods:{async testing(){var e;e=async e=>{this.code=e,null!=this.code&&""!=this.code?await this.setcode(this.code):await this.logout()},await dd.ready(()=>{dd.runtime.permission.requestAuthCode({corpId:g.a.corpId,onSuccess:t=>{e(t.code)},onFail:e=>{alert("fail"),alert(JSON.stringify(e))}})})},async setcode(e){this.$store.dispatch("user/dingUserInfor",{code:e}).then(async e=>{"success"===e?await this.getMenu():await this.logout()}).catch(async e=>{await this.logout()})},async getMenu(){this.$store.dispatch("user/getMenuList",this).then(async e=>{"noToken"!==e&&"success"===e?"/loadingPage"!==this.$route.path&&"/"!==this.$route.path&&"/login"!==this.$route.path||window.vm.$router.replace("/welcome"):await this.logout()}).catch(async e=>{await this.logout()})},async logout(){"/login"!==this.$route.path&&(await this.$store.dispatch("user/logout"),this.$router.push("/login"))}}},n("5c0b"),Object(l.a)(r,(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=(d=n("4360"),l=n("082a"),n("ed08"));function b(e,t){return 1===e?e+t:e+t+"s"}function y(e){return e=Date.now()/1e3-Number(e),e<3600?b(~~(e/60)," minute"):e<86400?b(~~(e/3600)," hour"):b(~~(e/86400)," day")}function E(e,t){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"}];for(let 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,e=>e.replace(/(?=(?!\b)(\d{3})+$)/g,","))}function _(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)})),r=n("95ff"),r=n.n(r),n("245a"),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",u),Vue.use(a),Vue.use(c.a,{defaultOptions:{zIndex:9999}}),Vue.use(l.default),Vue.use(r.a),Object.keys(i).forEach(e=>{Vue.filter(e,i[e])}),Vue.config.productionTip=!1,Vue.use(t.a),window.vm=new Vue({router:o.a,store:d.a,render:e=>e(w)}).$mount("#app"),null!==Object(s.e)()&&void 0!==Object(s.e)()&&""!==Object(s.e)()||(Object(s.h)(),Object(s.f)(),Object(s.i)(),o.a.replace({name:"login"}))},"57b5":function(e,t,n){},"5c0b":function(e,t,n){"use strict";n("c58b")},"5daa":function(e,t,n){"use strict";var i=n("f121");t.a={userURL:i.api.userApi,baseURL:i.api.baseApi,corpId:i.ding.CorpId,agentId:i.ding.AgentId}},"5f87":function(e,t,n){"use strict";n.d(t,"e",(function(){return l})),n.d(t,"n",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"l",(function(){return p})),n.d(t,"h",(function(){return m})),n.d(t,"a",(function(){return f})),n.d(t,"j",(function(){return g})),n.d(t,"f",(function(){return w})),n.d(t,"d",(function(){return v})),n.d(t,"m",(function(){return b})),n.d(t,"b",(function(){return y})),n.d(t,"k",(function(){return E})),n.d(t,"g",(function(){return k}));t=n("a78e");var i=n.n(t);const o="Purchase-Console-Token",a="Purchase-Console-Menu",c="Purchase-Console-MenuBtn",s="Purchase-Console-Notice",r="Purchase-Console-MainMenu";function l(){return i.a.get(o)}function u(e){return i.a.set(o,e)}function d(){return i.a.remove(o)}function h(){var e=i.a.get(a);return e?JSON.parse(e):[]}function p(e){return i.a.set(a,e)}function m(){return i.a.remove(a)}function f(){return i.a.get(c)}function g(e){return i.a.set(c,e)}function w(){return i.a.remove(c)}function v(){return i.a.get(s)}function b(e){return i.a.set(s,e)}function y(){return i.a.get(r)}function E(e){return i.a.set(r,e)}function k(){return i.a.remove(r)}},6:function(e,t){},"60cc":function(e,t,n){"use strict";n("cfe2")},"61f7":function(e,t,n){"use strict";function i(e){return/^[A-Za-z]+$/.test(e)}function o(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){let t=!0;return e=e.split("-"),t=(2===e.length||3===e.length)&&function(e){let t=!0,n=!0,i=!0;return t=/0\d{2,3}?$/.test(e[0]),n=(7===e[1].length||8===e[1].length)&&/\d{7,8}$/.test(e[1]),3===e.length&&(i=!(0===e[2].length||6<e[2].length)&&/\d{1,6}$/.test(e[2])),2===e.length?t&&n:t&&n&&i}(e),t}function r(e){return/[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}/.test(e)}function l(e){return/[\u4e00-\u9fa5]$/.test(e)}function u(e){return/^[0-9]*$/.test(e)}function d(e){return/^[0-9A-Za-z]*$/.test(e)}function h(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 p(){const e=navigator.userAgent.toLowerCase();let t="";return-1!=e.indexOf("micromessenger")&&(t="Weixin"),-1!=e.indexOf("huawei-anyoffice")&&(t="Welink"),-1!=e.indexOf("dingtalk")&&(t="isDingDing"),""===t&&(t="otherBrowser"),t}function m(e){const t=new Date(e);var n=t.getFullYear()+"-",i=(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-";e=t.getDate()+" ";let o=t.getHours();o=o<10?`0${o}:`:o+":";let a=t.getMinutes();a=a<10?`0${a}:`:a+":";let c=t.getSeconds();return c=c<10?"0"+c:c,n+i+e+o+a+c}n.d(t,"k",(function(){return i})),n.d(t,"l",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"h",(function(){return c})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return r})),n.d(t,"c",(function(){return l})),n.d(t,"i",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return p})),n.d(t,"j",(function(){return m}))},6222:function(e,t,n){"use strict";n.r(t);var i=n("1b69");const o="admin/";var a={list1:(e,t)=>Object(i.a)(o+"userlist",e,"post",t),detail:(e,t)=>Object(i.a)(o+"userinfo",e,"post",t),update:(e,t)=>Object(i.a)(o+"usersave",e,"post",t),add:(e,t)=>Object(i.a)(o+"accountadd",e,"post",t),delete:(e,t)=>Object(i.a)(o+"delete",e,"post",t),setpwd:(e,t)=>Object(i.a)(o+"passset",e,"post",t),status:(e,t)=>Object(i.a)(o+"userstatus",e,"post",t),getRole:(e,t)=>Object(i.a)(o+"roleall",e,"post",t)},c={name:"search-select",props:["code","placeholder","size","type","isDetail","disabled","names"],mixins:[n("9f53").a],data(){return{activeOptions:[],code:[],selectLoading:!1,searchName:""}},watch:{names:function(e){this.searchName=e,this.isDetail&&this.searchName&&this.remoteMethod(this.searchName)}},created(){this.activeOptions=[],this.initForm()},methods:{async initForm(){this.selectLoading=!1},async selectChange(){this.$emit("end",this.code)},async remoteMethod(e){if(this.selectLoading=!0,""!==e){this.activeOptions=[];let t={page:1,size:50,name:e,company:e},n={};if(n="1"===this.type?(delete t.name,await a.list1(t)):"2"===this.type?(delete t.company,await a.list2(t)):"3"===this.type?(delete t.company,await a.list3(t)):await a.list4({}),n&&0===n.code&&n.data){this.activeOptions;let e=[];e="4"===this.type?n.data:n.data.list,e.forEach(e=>{e={code:"1"===this.type||"2"===this.type?e.companyNo||"":"3"===this.type?e.code||"":e.id||"",name:"1"===this.type?e.companyName||"":"2"===this.type?e.company_name||"":"3"===this.type?e.name||"":e.rate+"%"||!1},this.activeOptions.push(e)})}else n&&100<=n.code&&n.code<=104?await this.logout():this.$message.warning(n.message)}else this.activeOptions=[];this.selectLoading=!1}}};n("b3cf"),n=n("2877"),c=Object(n.a)(c,(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,"6549114c",null);t.default=c.exports},7:function(e,t){},7039:function(e,t,n){},7509:function(e,t,n){"use strict";n.r(t),t.default={namespaced:!0,state:{visitedViews:[],cachedViews:[]},mutations:{ADD_VISITED_VIEW:(e,t)=>{e.visitedViews.some(e=>e.path===t.path)||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:(e,t)=>{e.cachedViews.includes(t.name)||t.meta.noCache||e.cachedViews.push(t.name)},DEL_VISITED_VIEW:(e,t)=>{for(var[n,i]of e.visitedViews.entries())if(i.path===t.path){e.visitedViews.splice(n,1);break}},DEL_CACHED_VIEW:(e,t)=>{t=e.cachedViews.indexOf(t.name),-1<t&&e.cachedViews.splice(t,1)},DEL_OTHERS_VISITED_VIEWS:(e,t)=>{e.visitedViews=e.visitedViews.filter(e=>e.meta.affix||e.path===t.path)},DEL_OTHERS_CACHED_VIEWS:(e,t)=>{t=e.cachedViews.indexOf(t.name),e.cachedViews=-1<t?e.cachedViews.slice(t,t+1):[]},DEL_ALL_VISITED_VIEWS:e=>{var t=e.visitedViews.filter(e=>e.meta.affix);e.visitedViews=t},DEL_ALL_CACHED_VIEWS:e=>{e.cachedViews=[]},UPDATE_VISITED_VIEW:(e,t)=>{for(var n of e.visitedViews)if(n.path===t.path){n=Object.assign(n,t);break}}},actions:{addView({dispatch:e},t){e("addVisitedView",t),e("addCachedView",t)},addVisitedView({commit:e},t){e("ADD_VISITED_VIEW",t)},addCachedView({commit:e},t){e("ADD_CACHED_VIEW",t)},delView({dispatch:e,state:t},n){return new Promise(i=>{e("delVisitedView",n),e("delCachedView",n),i({visitedViews:[...t.visitedViews],cachedViews:[...t.cachedViews]})})},delVisitedView({commit:e,state:t},n){return new Promise(i=>{e("DEL_VISITED_VIEW",n),i([...t.visitedViews])})},delCachedView({commit:e,state:t},n){return new Promise(i=>{e("DEL_CACHED_VIEW",n),i([...t.cachedViews])})},delOthersViews({dispatch:e,state:t},n){return new Promise(i=>{e("delOthersVisitedViews",n),e("delOthersCachedViews",n),i({visitedViews:[...t.visitedViews],cachedViews:[...t.cachedViews]})})},delOthersVisitedViews({commit:e,state:t},n){return new Promise(i=>{e("DEL_OTHERS_VISITED_VIEWS",n),i([...t.visitedViews])})},delOthersCachedViews({commit:e,state:t},n){return new Promise(i=>{e("DEL_OTHERS_CACHED_VIEWS",n),i([...t.cachedViews])})},delAllViews({dispatch:e,state:t},n){return new Promise(i=>{e("delAllVisitedViews",n),e("delAllCachedViews",n),i({visitedViews:[...t.visitedViews],cachedViews:[...t.cachedViews]})})},delAllVisitedViews({commit:e,state:t}){return new Promise(n=>{e("DEL_ALL_VISITED_VIEWS"),n([...t.visitedViews])})},delAllCachedViews({commit:e,state:t}){return new Promise(n=>{e("DEL_ALL_CACHED_VIEWS"),n([...t.cachedViews])})},updateVisitedView({commit:e},t){e("UPDATE_VISITED_VIEW",t)}}}},8:function(e,t){},"82a3":function(e,t,n){"use strict";n("57b5")},"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=a(e),n(e)}function a(e){if(n.o(i,e))return i[e];throw e=new Error("Cannot find module '"+e+"'"),e.code="MODULE_NOT_FOUND",e}o.keys=function(){return Object.keys(i)},o.resolve=a,(e.exports=o).id="82f2"},"83d6":function(e,t){e.exports={title:"采销平台订单系统",showSettings:!0,tagsView:!0,fixedHeader:!0,sidebarLogo:!0,errorLog:"production"}},"8bbf":function(e,t){e.exports=Vue},"8cf3":function(e,t,n){"use strict";var i=n("4af7");t.a={list:(e,t)=>Object(i.a)("stock/orderWarnList",e,"post",t)}},"8efb":function(e,t,n){e.exports=n.p+"static/img/avatar.ecba1844.gif"},9:function(e,t){},9302:function(e,t,n){var i={"./editor-shy/main.vue":"9f32","./icon-list/main.vue":"057c","./organize-tree/main.vue":"fd7e","./search-select/index.vue":"6222","./shy-select/main.vue":"2470","./shy-tree/main.vue":"b570","./staff-tree/main.vue":"2a97"};function o(e){return e=a(e),n(e)}function a(e){if(n.o(i,e))return i[e];throw e=new Error("Cannot find module '"+e+"'"),e.code="MODULE_NOT_FOUND",e}o.keys=function(){return Object.keys(i)},o.resolve=a,(e.exports=o).id="9302"},"9f32":function(e,t,n){"use strict";n.r(t);var i=n("953d");n("a753"),n("8096"),n("14e1");const o=[["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(){return{content:this.value,editorOption:{theme:"snow",placeholder:"您想说点什么?",modules:{toolbar:{container:o,handlers:{image:e=>{const t=this.$refs.myQuillEditor;e?this.$refs.uploadImg.$el.childNodes[0].click():t.quill.format("image",!1)}}}}}}},watch:{value(e){this.content=e}},mounted(){this.$nextTick(()=>{try{let e=this.$refs.myQuillEditor.$el.children;e=Array.prototype.slice.call(e);let t=0;e.forEach(e=>{t+=e.offsetHeight}),this.$refs.editorBox.style.height=t+"px"}catch(e){}})},methods:{onEditorBlur(){},onEditorFocus(){},onEditorChange(){this.$emit("input",this.content)},getImgUrl(e){const t=this.$refs.myQuillEditor.quill;var n=t.getSelection().index;t.insertEmbed(n,"image",e),this.$message({message:"图片请设置左对齐",type:"warning"}),t.setSelection(n+1)}}},n("60cc"),n=n("2877"),i=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=i.exports},"9f53":function(e,t,n){"use strict";t.a={methods:{async logout(){"/login"!==this.$route.path&&(await this.$store.dispatch("user/logout"),this.$router.push("/login"))}}}},a0c0:function(e,t,n){"use strict";n.r(t);const i=window.localStorage;t.default={getStorage:e=>("string"!=typeof e&&alert("获取localStorage出错 - 输入参数必须是一个字符串"),JSON.parse(i.getItem(e))),setStorage:(e,t)=>{"string"!=typeof e&&alert("设置localStorage出错 - 第一个输入参数必须是一个字符串"),i.setItem(e,JSON.stringify(t))},delStorage: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:()=>{i.clear()}}},a18c:function(e,t,n){"use strict";const i=VueRouter;var o=new i({mode:"hash",base:"/",scrollBehavior:()=>({y:0}),routes:[{path:"/",redirect:"/loadingPage"},{path:"/loadingPage",component:()=>n.e("chunk-6842880a").then(n.bind(null,"7e10")),hidden:!0},{path:"/login",component:()=>n.e("chunk-fbb9a152").then(n.bind(null,"9ed6")),hidden:!0},{path:"/forget-password",component:()=>n.e("chunk-b498323c").then(n.bind(null,"43b9")),hidden:!0,noCache:!0}]});const a=i.prototype.push;i.prototype.push=function(e){return a.call(this,e).catch(e=>e)},Vue.use(i),t.a=o},a1f3:function(e,t,n){"use strict";n.r(t),t.default={getUuId:()=>{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("")}}},aa18:function(e,t,n){"use strict";n.r(t);const i=document;var o=window.location.hostname;let a="";a="localhost"===o||"127.0.0.1"===o?";domain="+o+";path=/":(n=o.split(".").length,";domain=."+o.split(".")[n-2]+"."+o.split(".")[n-1]+";path=/");const c=a,s={setCookie:function(e,t,n){n=new Date(n),n=e+"="+t+(isNaN(n)?"":";expires="+n.toGMTString())+";path=/",i.cookie=n},getCookie:function(e){return e=new RegExp("(^| )"+e+"=([^;]*)(;|$)"),e=i.cookie.match(e),e?decodeURIComponent(e[2]):""},delCookieDomain:function(e){var t=new Date;t.setTime(t.getTime()-100),i.cookie=e+"= ;expires="+t.toGMTString()+c},delCookie:function(e){var t=new Date;t.setTime(t.getTime()-864e5),s.setCookie(e,"",t),s.getCookie(e)&&s.delCookieDomain(e)},clearCookie:function(){var e=i.cookie.split(";");if(e)for(let n=e.length;n--;){var t=new Date;t.setTime(t.getTime()-100),i.cookie=e[n].split("=")[0]+'=" ";expires='+t.toGMTString()+c}}};t.default=s},ac30:function(e,t,n){},b20f:function(e,t,n){e.exports={menuText:"azure",menuActiveText:"#076c87",subMenuActiveText:"#076c87",menuBg:"#63cbe7",menuHover:"#63cbe7",subMenuBg:"#7ad3eb",subMenuHover:"#7ad3eb",sideBarWidth:"200px"}},b29c:function(e,t,n){"use strict";n.r(t),t.default={dateFormat:(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:e=>new Date(864e5*parseInt((e+864e5)/864e5)-288e5),dateTransform:e=>e&&8===e.length?`${e.slice(0,4)}-${e.slice(4,6)}-${e.slice(6,8)}`:"",UTCto0800:e=>{let t=new Date(e);return t.getTime()+60*t.getTimezoneOffset()*1e3}}},b3a8:function(e,t,n){"use strict";n.r(t),t.default={toLevelArr:e=>{let t=[];if(e&&"TypeError"!==e.name&&0===e.code&&e.data&&e.data.arrays&&0<e.data.arrays.length){let n=e.data.arrays;e.data.showNames.length<5&&e.data.showNames.unshift("期"),n.forEach((n,i)=>{let o=JSON.parse(JSON.stringify(n));delete o.nexts,o.label=o.numberShow+e.data.showNames[0],o.idThis=i+"",o.pid=0,o.isLeaf=!1,t.push(o),n.nexts.forEach((n,o)=>{let a=JSON.parse(JSON.stringify(n));delete a.nexts,a.label=a.numberShow+e.data.showNames[1],a.idThis=i+"-"+o,a.pid=i+"",a.isLeaf=!1,t.push(a),n.nexts.forEach((n,a)=>{let c=JSON.parse(JSON.stringify(n));delete c.nexts,c.label=c.numberShow+e.data.showNames[2],c.idThis=i+"-"+o+"-"+a,c.pid=i+"-"+o,c.isLeaf=!1,t.push(c),n.nexts.forEach((n,c)=>{let s=JSON.parse(JSON.stringify(n));delete s.nexts,s.label=s.numberShow+e.data.showNames[3],s.idThis=i+"-"+o+"-"+a+"-"+c,s.pid=i+"-"+o+"-"+a,t.push(s),n.nexts&&0<n.nexts.length?(s.isLeaf=!1,n.nexts.forEach((n,s)=>{let r=JSON.parse(JSON.stringify(n));delete r.nexts,r.label=r.numberShow+e.data.showNames[4],r.idThis=i+"-"+o+"-"+a+"-"+c+"-"+s,r.pid=i+"-"+o+"-"+a+"-"+c,r.isLeaf=!0,t.push(r)})):s.isLeaf=!0})})})})}return t}}},b3cf:function(e,t,n){"use strict";n("e83a")},b570:function(e,t,n){"use strict";n.r(t);var i={name:"shyTree",components:{shyTree:void 0},props:["value","level"],computed:{powers(){var e=this.$store.getters.btnList.find(e=>"menuOperator"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){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(e,t,n,i,o,a){this.$emit("addEdit",e,t,n,i,o,a)},editInterface(e){this.$emit("editInterface",e)},openChildren(e,t,n,i){if(3===n)return!1;this.$emit("openChildren",e,t,n,i)},remove(e,t,n,i){this.$emit("remove",e,t,n,i)},deleteMenu(e,t,n,i){this.$emit("deleteMenu",e,t,n,i)}}};n("0905"),n=n("2877"),i=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(),e.powers.some((function(e){return"006"==e}))?n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.deleteMenu(t.id,3===e.level?t.menuid:t.pid,e.level,t.status)}}},[e._v(" 删除 ")]):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,remove:e.remove,deleteMenu:e.deleteMenu}}):e._e()],1)})),0):n("div",{staticClass:"no-data"},[e._v("暂无数据")])])}),[],!1,null,null,null);t.default=i.exports},c58b: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=a(e),n(e)}function a(e){if(n.o(i,e))return i[e];throw e=new Error("Cannot find module '"+e+"'"),e.code="MODULE_NOT_FOUND",e}o.keys=function(){return Object.keys(i)},o.resolve=a,(e.exports=o).id="c653"},cc6c:function(e,t,n){e.exports=n.p+"static/img/401.089007e7.gif"},cfe2:function(e,t,n){},d2843:function(e,t,n){"use strict";n.r(t);var i=n("3452"),o=n.n(i);t.default={encrypt(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(e,t){return t=o.a.enc.Utf8.parse(t=t||"TFEUyxO9PDJlyyg7"),t=o.a.AES.decrypt(e,t,{mode:o.a.mode.ECB,padding:o.a.pad.Pkcs7}),o.a.enc.Utf8.stringify(t).toString()}}},d9cd:function(e,t,n){"use strict";n.r(t);var i=n("a78e"),o=n.n(i);i={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:i,mutations:{TOGGLE_SIDEBAR: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:(e,t)=>{o.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:(e,t)=>{e.device=t},SET_SIZE:(e,t)=>{e.size=t,o.a.set("size",t)}},actions:{toggleSideBar({commit:e}){e("TOGGLE_SIDEBAR")},closeSideBar({commit:e},{withoutAnimation:t}){e("CLOSE_SIDEBAR",t)},toggleDevice({commit:e},t){e("TOGGLE_DEVICE",t)},setSize({commit:e},t){e("SET_SIZE",t)}}}},e83a:function(e,t,n){},ed08:function(e,t,n){"use strict";function i(e,t){if(0===arguments.length||!e)return null;const n=t||"{y}-{m}-{d} {h}:{i}:{s}";let i;i="object"==typeof 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));const o={y:i.getFullYear(),m:i.getMonth()+1,d:i.getDate(),h:i.getHours(),i:i.getMinutes(),s:i.getSeconds(),a:i.getDay()};return n.replace(/{([ymdhisa])+}/g,(e,t)=>{const n=o[t];return"a"===t?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")})}function o(e,t){e=10===(""+e).length?1e3*parseInt(e):+e;const n=new Date(e);var o=(Date.now()-n)/1e3;return o<30?"刚刚":o<3600?Math.ceil(o/60)+"分钟前":o<86400?Math.ceil(o/3600)+"小时前":o<172800?"1天前":t?i(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.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return s}))},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://stock.test241.wanyuhengtong.com/",userApi:"http://inv.test241.wanyuhengtong.com/"},fileURL:"https://api2.edu.futurelab.tv",appId:"wx5ac3a2c2d72b6f26",ding:{CorpId:"dingc78fa4301e1a424a35c2f4657eb6378f",AgentId:"1324690581"}}},fd7e:function(e,t,n){"use strict";n.r(t);var i={name:"organizeTree",props:["list","level"],computed:{powers(){var e=this.$store.getters.btnList.find(e=>"organize"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{newlist:"",index:0}},methods:{addEdit(e,t,n,i,o,a,c){e.stopPropagation(),this.$emit("addEdit",t,n,i,o,a,c)},openChildren(e,t){e.stopPropagation(),this.$emit("openChildren",t)},status(e,t,n,i,o){e.stopPropagation(),this.$emit("status",t,n,i,o)},del(e,t,n,i,o){e.stopPropagation(),this.$emit("del",t,n,i,o)}}};n("2d49"),n=n("2877"),i=Object(n.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"organize-tree"},[e.list&&0<e.list.length?n("div",e._l(e.list,(function(t){return n("div",{key:t.updatetime,staticClass:"organize-tree-node",on:{click:function(n){return e.openChildren(n,t)}}},[n("div",{staticClass:"organize-box"},[n("span",{staticClass:"label"},[e._v(" "+e._s(t.name)+" ")]),n("i",{staticClass:"el-icon-arrow-right"}),n("span",{staticClass:"btn-list",on:{click:function(e){return e.stopPropagation()}}},[e.powers.some((function(e){return"005"==e}))?n("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(n){return e.addEdit(n,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.status(n,t.id,3===e.level?t.menuid:t.pid,e.level,t.status)}}},[e._v(" "+e._s("1"===t.status?"禁用":"启用")+" ")]):e._e(),e.powers.some((function(e){return"006"==e}))?n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.del(n,t.id,3===e.level?t.menuid:t.pid,e.level,t.status)}}},[e._v(" 删除 ")]):e._e()],1)])])})),0):e._e()])}),[],!1,null,null,null);t.default=i.exports}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);
|