(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-97cba434"],{"15f7":function(e,t,n){},"53f3":function(e,t,n){"use strict";n("15f7")},"6ed5":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=77)}({0:function(e,t,n){"use strict";function i(e,t,n,i,o,s,a,l){var r,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),a?(r=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=r):o&&(r=l?function(){o.call(this,this.$root.$options.shadowRoot)}:o),r)if(c.functional){c._injectStyles=r;var u=c.render;c.render=function(e,t){return r.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,r):[r]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},10:function(e,t){e.exports=n("f3ad")},13:function(e,t){e.exports=n("eedf")},15:function(e,t){e.exports=n("5128")},2:function(e,t){e.exports=n("5924")},20:function(e,t){e.exports=n("4897")},23:function(e,t){e.exports=n("41f8")},47:function(e,t){e.exports=n("722f")},6:function(e,t){e.exports=n("6b7c")},7:function(e,t){e.exports=n("2b0e")},77:function(e,t,n){"use strict";n.r(t);var i=n(7),o=n.n(i),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"msgbox-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-message-box__wrapper",attrs:{tabindex:"-1",role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{staticClass:"el-message-box",class:[e.customClass,e.center&&"el-message-box--center"]},[null!==e.title?n("div",{staticClass:"el-message-box__header"},[n("div",{staticClass:"el-message-box__title"},[e.icon&&e.center?n("div",{class:["el-message-box__status",e.icon]}):e._e(),n("span",[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-message-box__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:function(t){e.handleAction(e.distinguishCancelAndClose?"close":"cancel")},keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction(e.distinguishCancelAndClose?"close":"cancel")}}},[n("i",{staticClass:"el-message-box__close el-icon-close"})]):e._e()]):e._e(),n("div",{staticClass:"el-message-box__content"},[n("div",{staticClass:"el-message-box__container"},[e.icon&&!e.center&&""!==e.message?n("div",{class:["el-message-box__status",e.icon]}):e._e(),""!==e.message?n("div",{staticClass:"el-message-box__message"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2):e._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showInput,expression:"showInput"}],staticClass:"el-message-box__input"},[n("el-input",{ref:"input",attrs:{type:e.inputType,placeholder:e.inputPlaceholder},nativeOn:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputEnter(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),n("div",{staticClass:"el-message-box__errormsg",style:{visibility:e.editorErrorMessage?"visible":"hidden"}},[e._v(e._s(e.editorErrorMessage))])],1)]),n("div",{staticClass:"el-message-box__btns"},[e.showCancelButton?n("el-button",{class:[e.cancelButtonClasses],attrs:{loading:e.cancelButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("cancel")}},nativeOn:{click:function(t){e.handleAction("cancel")}}},[e._v("\n          "+e._s(e.cancelButtonText||e.t("el.messagebox.cancel"))+"\n        ")]):e._e(),n("el-button",{directives:[{name:"show",rawName:"v-show",value:e.showConfirmButton,expression:"showConfirmButton"}],ref:"confirm",class:[e.confirmButtonClasses],attrs:{loading:e.confirmButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("confirm")}},nativeOn:{click:function(t){e.handleAction("confirm")}}},[e._v("\n          "+e._s(e.confirmButtonText||e.t("el.messagebox.confirm"))+"\n        ")])],1)])])])},a=[];s._withStripped=!0;var l=n(15),r=n.n(l),c=n(6),u=n.n(c),d=n(10),f=n.n(d),p=n(13),h=n.n(p),m=n(2),b=n(20),g=n(47),v=n.n(g),_=void 0,y={success:"success",info:"info",warning:"warning",error:"error"},C={mixins:[r.a,u.a],props:{modal:{default:!0},lockScroll:{default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},closeOnHashChange:{default:!0},center:{default:!1,type:Boolean},roundButton:{default:!1,type:Boolean}},components:{ElInput:f.a,ElButton:h.a},computed:{icon:function(){var e=this.type,t=this.iconClass;return t||(e&&y[e]?"el-icon-"+y[e]:"")},confirmButtonClasses:function(){return"el-button--primary "+this.confirmButtonClass},cancelButtonClasses:function(){return""+this.cancelButtonClass}},methods:{getSafeClose:function(){var e=this,t=this.uid;return function(){e.$nextTick((function(){t===e.uid&&e.doClose()}))}},doClose:function(){var e=this;this.visible&&(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),_.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout((function(){e.action&&e.callback(e.action,e)})))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?"close":"cancel")},handleInputEnter:function(){if("textarea"!==this.inputType)return this.handleAction("confirm")},handleAction:function(e){("prompt"!==this.$type||"confirm"!==e||this.validate())&&(this.action=e,"function"===typeof this.beforeClose?(this.close=this.getSafeClose(),this.beforeClose(e,this,this.close)):this.doClose())},validate:function(){if("prompt"===this.$type){var e=this.inputPattern;if(e&&!e.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||Object(b["t"])("el.messagebox.error"),Object(m["addClass"])(this.getInputElement(),"invalid"),!1;var t=this.inputValidator;if("function"===typeof t){var n=t(this.inputValue);if(!1===n)return this.editorErrorMessage=this.inputErrorMessage||Object(b["t"])("el.messagebox.error"),Object(m["addClass"])(this.getInputElement(),"invalid"),!1;if("string"===typeof n)return this.editorErrorMessage=n,Object(m["addClass"])(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(m["removeClass"])(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var e=this.$el.querySelector(".el-message-box__btns .el-button"),t=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return e||t},getInputElement:function(){var e=this.$refs.input.$refs;return e.input||e.textarea},handleClose:function(){this.handleAction("close")}},watch:{inputValue:{immediate:!0,handler:function(e){var t=this;this.$nextTick((function(n){"prompt"===t.$type&&null!==e&&t.validate()}))}},visible:function(e){var t=this;e&&(this.uid++,"alert"!==this.$type&&"confirm"!==this.$type||this.$nextTick((function(){t.$refs.confirm.$el.focus()})),this.focusAfterClosed=document.activeElement,_=new v.a(this.$el,this.focusAfterClosed,this.getFirstFocus())),"prompt"===this.$type&&(e?setTimeout((function(){t.$refs.input&&t.$refs.input.$el&&t.getInputElement().focus()}),500):(this.editorErrorMessage="",Object(m["removeClass"])(this.getInputElement(),"invalid")))}},mounted:function(){var e=this;this.$nextTick((function(){e.closeOnHashChange&&window.addEventListener("hashchange",e.close)}))},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener("hashchange",this.close),setTimeout((function(){_.closeDialog()}))},data:function(){return{uid:1,title:void 0,message:"",type:"",iconClass:"",customClass:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,action:"",confirmButtonText:"",cancelButtonText:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",editorErrorMessage:null,callback:null,dangerouslyUseHTMLString:!1,focusAfterClosed:null,isOnComposition:!1,distinguishCancelAndClose:!1}}},w=C,k=n(0),x=Object(k["a"])(w,s,a,!1,null,null,null);x.options.__file="packages/message-box/src/main.vue";var E=x.exports,$=n(9),S=n.n($),B=n(23),O="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I={title:null,message:"",type:"",iconClass:"",showInput:!1,showClose:!0,modalFade:!0,lockScroll:!0,closeOnClickModal:!0,closeOnPressEscape:!0,closeOnHashChange:!0,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:"",cancelButtonText:"",confirmButtonClass:"",cancelButtonClass:"",customClass:"",beforeClose:null,dangerouslyUseHTMLString:!1,center:!1,roundButton:!1,distinguishCancelAndClose:!1},T=o.a.extend(E),A=void 0,j=void 0,D=[],M=function(e){if(A){var t=A.callback;"function"===typeof t&&(j.showInput?t(j.inputValue,e):t(e)),A.resolve&&("confirm"===e?j.showInput?A.resolve({value:j.inputValue,action:e}):A.resolve(e):!A.reject||"cancel"!==e&&"close"!==e||A.reject(e))}},L=function(){j=new T({el:document.createElement("div")}),j.callback=M},F=function e(){if(j||L(),j.action="",(!j.visible||j.closeTimer)&&D.length>0){A=D.shift();var t=A.options;for(var n in t)t.hasOwnProperty(n)&&(j[n]=t[n]);void 0===t.callback&&(j.callback=M);var i=j.callback;j.callback=function(t,n){i(t,n),e()},Object(B["isVNode"])(j.message)?(j.$slots.default=[j.message],j.message=null):delete j.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach((function(e){void 0===j[e]&&(j[e]=!0)})),document.body.appendChild(j.$el),o.a.nextTick((function(){j.visible=!0}))}},U=function e(t,n){if(!o.a.prototype.$isServer){if("string"===typeof t||Object(B["isVNode"])(t)?(t={message:t},"string"===typeof arguments[1]&&(t.title=arguments[1])):t.callback&&!n&&(n=t.callback),"undefined"!==typeof Promise)return new Promise((function(i,o){D.push({options:S()({},I,e.defaults,t),callback:n,resolve:i,reject:o}),F()}));D.push({options:S()({},I,e.defaults,t),callback:n}),F()}};U.setDefaults=function(e){U.defaults=e},U.alert=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":O(t))?(n=t,t=""):void 0===t&&(t=""),U(S()({title:t,message:e,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},U.confirm=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":O(t))?(n=t,t=""):void 0===t&&(t=""),U(S()({title:t,message:e,$type:"confirm",showCancelButton:!0},n))},U.prompt=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":O(t))?(n=t,t=""):void 0===t&&(t=""),U(S()({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},U.close=function(){j.doClose(),j.visible=!1,D=[],A=null};var N=U;t["default"]=N},9:function(e,t){e.exports=n("7f4d")}})},"722f":function(e,t,n){"use strict";t.__esModule=!0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n("e452"),s=a(o);function a(e){return e&&e.__esModule?e:{default:e}}var l,r=r||{};r.Dialog=function(e,t,n){var o=this;if(this.dialogNode=e,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"===typeof t?this.focusAfterClosed=document.getElementById(t):"object"===("undefined"===typeof t?"undefined":i(t))?this.focusAfterClosed=t:this.focusAfterClosed=null,"string"===typeof n?this.focusFirst=document.getElementById(n):"object"===("undefined"===typeof n?"undefined":i(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():s.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,l=function(e){o.trapFocus(e)},this.addListeners()},r.Dialog.prototype.addListeners=function(){document.addEventListener("focus",l,!0)},r.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",l,!0)},r.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){e.focusAfterClosed.focus()}))},r.Dialog.prototype.trapFocus=function(e){s.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(s.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&s.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t.default=r.Dialog},"9e1f":function(e,t,n){},a15b:function(e,t,n){"use strict";var i=n("23e7"),o=n("44ad"),s=n("fc6a"),a=n("a640"),l=[].join,r=o!=Object,c=a("join",",");i({target:"Array",proto:!0,forced:r||!c},{join:function(e){return l.call(s(this),void 0===e?",":e)}})},e452:function(e,t,n){"use strict";t.__esModule=!0;var i=i||{};i.Utils=i.Utils||{},i.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(i.Utils.attemptFocus(n)||i.Utils.focusFirstDescendant(n))return!0}return!1},i.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(i.Utils.attemptFocus(n)||i.Utils.focusLastDescendant(n))return!0}return!1},i.Utils.attemptFocus=function(e){if(!i.Utils.isFocusable(e))return!1;i.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return i.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},i.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},i.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var i=document.createEvent(n),o=arguments.length,s=Array(o>2?o-2:0),a=2;a<o;a++)s[a-2]=arguments[a];return i.initEvent.apply(i,[t].concat(s)),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent("on"+t,i),e},i.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},t.default=i.Utils},fc42:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"brandxk pagex"},[n("div",{staticClass:"brand-con"},[n("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.formInline}},[n("el-form-item",{attrs:{label:"品牌"}},[n("el-autocomplete",{attrs:{"trigger-on-focus":!1,"fetch-suggestions":e.querySearchAsync2,placeholder:"请输入品牌"},on:{select:e.handleSelectBrandName},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submit(t)}},model:{value:e.formInline.brand_name,callback:function(t){e.$set(e.formInline,"brand_name",t)},expression:"formInline.brand_name"}})],1),n("el-form-item",{attrs:{label:"关键词"}},[n("el-input",{attrs:{placeholder:"请输入关键词"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submit(t)}},model:{value:e.formInline.keyword,callback:function(t){e.$set(e.formInline,"keyword",t)},expression:"formInline.keyword"}})],1),n("el-form-item",[n("div",{staticClass:"search-btn",on:{click:e.submit}},[e._v("搜索")])])],1),n("div",{staticClass:"btn-nav clr"},[n("div",{staticClass:"fl dcg  updatex",on:{click:e.updateBrand}},[e._v("修改")]),n("div",{staticClass:"fl dcg ",on:{click:e.downOut}},[e._v("导出")]),n("a",{ref:"downs",staticStyle:{display:"none"},attrs:{href:e.downHref,target:"_blank"}},[e._v("下载")]),n("div",{staticClass:"fl dcg delbtn",on:{click:e.del}},[e._v("删除")])]),e.tableData?n("div",{staticClass:"data-box th-all"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""},on:{"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{fixed:"",type:"selection",width:"37"}}),n("el-table-column",{attrs:{prop:"internal_standard_name",label:"内部标准名称","min-width":"15%"}}),n("el-table-column",{attrs:{prop:"brand_name",label:"品牌","min-width":"15%"}}),n("el-table-column",{attrs:{prop:"region",label:"地区","min-width":"15%"}}),n("el-table-column",{attrs:{prop:"brand_logo",label:"LOGO","min-width":"10%"},scopedSlots:e._u([{key:"default",fn:function(e){return e.row.brand_logo?[n("img",{staticClass:"brand-img",attrs:{src:e.row.brand_logo,alt:""}})]:void 0}}],null,!0)}),n("el-table-column",{attrs:{prop:"sku_num",label:"型号量","min-width":"10%"}}),n("el-table-column",{attrs:{prop:"remark",label:"品牌备注","min-width":"15%"}}),n("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"15%"}}),n("el-table-column",{attrs:{prop:"update_time",label:"更新时间","min-width":"15%"}})],1),n("el-pagination",{attrs:{layout:"prev, pager, next,jumper","page-size":e.limit,total:e.total,"current-page":e.page},on:{"current-change":e.handleCurrentChange}})],1):e._e(),n("el-dialog",{attrs:{title:"修改品牌",visible:e.dialogVisible,width:"1000px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("div",{staticClass:"kc-mask"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.updateBranddata,border:""}},[n("el-table-column",{attrs:{prop:"brand_name",label:"品牌",width:"180"}}),n("el-table-column",{attrs:{prop:"region",label:"地区",width:"100"}}),n("el-table-column",{attrs:{prop:"brand_logo",label:"LOGO","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(e){return e.row.brand_logo?[n("img",{staticClass:"brand-img",attrs:{src:e.row.brand_logo,alt:""}})]:void 0}}],null,!0)}),n("el-table-column",{attrs:{prop:"internal_standard_name",label:"内部标准名称","min-width":"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{attrs:{placeholder:"点击修改"},model:{value:t.row.internal_standard_name,callback:function(n){e.$set(t.row,"internal_standard_name",n)},expression:"scope.row.internal_standard_name"}})]}}])}),n("el-table-column",{attrs:{prop:"remark",label:"品牌备注",width:"320"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{attrs:{placeholder:"点击修改"},model:{value:t.row.remark,callback:function(n){e.$set(t.row,"remark",n)},expression:"scope.row.remark"}})]}}])})],1)],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.submitUpdate}},[e._v("确 定")])],1)])],1),n("Menu")],1)},o=[],s=(n("9e1f"),n("450d"),n("6ed5")),a=n.n(s),l=(n("5466"),n("ecdf")),r=n.n(l),c=(n("38a0"),n("ad41")),u=n.n(c),d=(n("1951"),n("eedf")),f=n.n(d),p=(n("425f"),n("4105")),h=n.n(p),m=(n("1f1a"),n("4e4b")),b=n.n(m),g=(n("6611"),n("e772")),v=n.n(g),_=(n("10cb"),n("f3ad")),y=n.n(_),C=(n("eca7"),n("3787")),w=n.n(C),k=(n("a7cc"),n("df33")),x=n.n(k),E=(n("672e"),n("101e")),$=n.n(E),S=(n("3db2"),n("58b8")),B=n.n(S),O=(n("0fb7"),n("f529")),I=n.n(O),T=(n("a9e3"),n("a15b"),n("2b0e")),A=n("2251");n("e8d6");T["default"].prototype.$message=I.a,T["default"].use(f.a).use(h.a).use(b.a).use(v.a).use(y.a).use(w.a).use(x.a).use($.a).use(B.a),T["default"].use(r.a).use(u.a);var j={name:"brand",data:function(){return{dialogVisible:!1,updateBranddata:[],total:0,limit:10,page:1,downHref:"",formInline:{brand_name:"",brand_id:"",keyword:""},disabled:!1,tableData:"",timer:null,multipleSelection:[]}},watch:{"formInline.brand_name":function(e){if(e){var t=[];this.brandList=this.brandList||[];for(var n=0;n<this.brandList.length;n++)t.push(this.brandList[n].value);-1==t.indexOf(e)&&(this.formInline.brand_id="")}else this.formInline.brand_id=""}},created:function(){this.getData()},computed:{},methods:{getData:function(){var e=this;this.$http("get","/api/brand/get_brand_list",{page:this.page,limit:this.limit,brand_id:this.formInline.brand_id,brand_name:this.formInline.brand_name,keyword:this.formInline.keyword}).then((function(t){0===t.err_code?(e.tableData=t.data.list||[],e.total=Number(t.data.total)||0):e.$message(t.err_msg)}))},updateBrand:function(){this.multipleSelection.length>1?this.$message("只能选择一条数据"):0!=this.multipleSelection.length?(this.updateBranddata=JSON.parse(JSON.stringify(this.multipleSelection)),this.dialogVisible=!0):this.$message("请至少选择一条数据")},submitUpdate:function(){var e=this,t={id:this.updateBranddata[0].id,remark:this.updateBranddata[0].remark,internal_standard_name:this.updateBranddata[0].internal_standard_name};this.$http("post","/api/brand/update_brand",t).then((function(t){0==t.err_code?(e.$message("修改成功"),e.getData(),e.dialogVisible=!1):e.$message(t.err_msg)}))},querySearchAsync2:function(e,t){var n=this;this.$http("get","/api/search/getbrand",{brand_name:this.formInline.brand_name}).then((function(e){if(0==e.err_code){var i=e.data||[];n.brandList=[],n.formInline.brand_id="";for(var o=0;o<i.length;o++)n.brandList.push({value:i[o]["brand_name"],brand_id:i[o]["brand_id"]});t(n.brandList)}}))},handleSelectBrandName:function(e){console.log(this.brandList),this.formInline.brand_name=e.value,this.formInline.brand_id=e.brand_id},submit:function(){this.formInline.keyword&&1==this.formInline.keyword.length?this.$message("关键词不能少于2个字符"):(this.page=1,this.getData())},downOut:function(){var e=this;this.disabled?this.$message("正在导出中,请不要重复点击"):this.$http("post","/api/brand/export_brand",{brand_id:this.formInline.brand_id,brand_name:this.formInline.brand_name,keyword:this.formInline.keyword}).then((function(t){0==t.err_code&&(e.disabled=!0,e.$message("正在导出中,请耐心等待"),e.timer=setInterval((function(){e.disabled?e.resultDown(t.data):clearInterval(e.timer)}),3e3))}))},resultDown:function(e){var t=this;this.$http("get","/api/export/get_export_data",{id:e}).then((function(e){0==e.err_code?(t.disabled=!1,t.$message("导出成功"),t.downHref=e.data,setTimeout((function(){t.$refs.downs.click()}),10)):-1==e.err_code&&(t.$message(e.data),t.disabled=!1)}),(function(e){t.$message("网络出现问题,请检查网络"),t.disabled=!1}))},del:function(){var e=this;if(0!=this.multipleSelection.length){for(var t=[],n=0;n<this.multipleSelection.length;n++)t.push(this.multipleSelection[n]["id"]);a.a.confirm("确认到删除当前勾选数据吗?",{type:"error"}).then((function(){e.$http("post","/api/brand/delete_brand",{id:t.join(",")}).then((function(t){0===t.err_code?(e.$message("删除成功"),e.getData()):e.$message(t.err_msg)}))})).catch((function(){}))}else this.$message("请至少选择一条数据")},handleCurrentChange:function(e){this.page=e,this.getData()},handleSelectionChange:function(e){this.multipleSelection=e||[],console.log(this.multipleSelection)}},components:{Menu:A["a"]}},D=j,M=(n("53f3"),n("2877")),L=Object(M["a"])(D,i,o,!1,null,"5c755d60",null);t["default"]=L.exports}}]);