(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-896babac"],{"15e5":function(e,t,r){},"1a5c":function(e,t,r){},5962:function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e._self._c;return t("section",{staticClass:"quote pagex"},[t("div",{staticClass:"quote-con"},[t("el-form",{ref:"formParam",staticClass:"demo-form-inline",attrs:{inline:!0,model:e.formParam}},[t("el-form-item",{attrs:{label:"报价型号",prop:"goods_name"}},[t("el-autocomplete",{attrs:{clearable:"","trigger-on-focus":!1,"fetch-suggestions":e.querySearchAsync,placeholder:"请输入型号",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSubmit.apply(null,arguments)}},model:{value:e.formParam.goods_name,callback:function(t){e.$set(e.formParam,"goods_name",t)},expression:"formParam.goods_name"}})],1),t("el-form-item",{attrs:{label:"品牌",prop:"brand_name"}},[t("el-autocomplete",{attrs:{clearable:"","trigger-on-focus":!1,"fetch-suggestions":e.querySearchAsyncBrand,placeholder:"请输入品牌",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSubmit.apply(null,arguments)}},model:{value:e.formParam.brand_name,callback:function(t){e.$set(e.formParam,"brand_name",t)},expression:"formParam.brand_name"}})],1),t("el-form-item",{attrs:{label:"状态",prop:"status"}},[t("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.formParam.status,callback:function(t){e.$set(e.formParam,"status",t)},expression:"formParam.status"}},[t("el-option",{attrs:{label:"待确认",value:"7"}}),t("el-option",{attrs:{label:"确认中",value:"1"}}),t("el-option",{attrs:{label:"已选中",value:"2"}}),t("el-option",{attrs:{label:"已成单",value:"3"}}),t("el-option",{attrs:{label:"已关闭",value:"4"}})],1)],1),t("el-form-item",{attrs:{label:"最近报价时间"}},[t("el-date-picker",{staticStyle:{width:"193px"},attrs:{"unlink-panels":!0,"prefix-icon":"prefix-icon-time-style","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.quote_time_val,callback:function(t){e.quote_time_val=t},expression:"quote_time_val"}})],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("搜索")]),t("el-button",{on:{click:function(t){return e.resetForm("formParam")}}},[e._v("重置")])],1)],1),t("div",{staticClass:"operation-area row verCenter bothSide"},[t("div",{staticClass:"operation-button row verCenter"},[t("el-button",{attrs:{type:"primary"},on:{click:e.exportChange}},[e._v("导出")]),t("el-button",{attrs:{type:"primary"},on:{click:e.close}},[e._v("关闭")]),t("el-button",{attrs:{type:"primary"},on:{click:e.update}},[e._v("修改")])],1),e._m(0)]),t("div",{staticClass:"data-box th-all"},[t("el-table",{attrs:{data:e.tableData,border:"","max-height":"600"},on:{"selection-change":e.handleSelectionChange}},[t("el-table-column",{attrs:{fixed:"",type:"selection",width:"40",align:"center"}}),t("el-table-column",{attrs:{prop:"quote_sn",label:"报价单号",width:"200",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"inquiry_goods_name",label:"型号",width:"200",align:"center","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",{staticClass:"price-mores"},[t("el-popover",{attrs:{effect:"light",trigger:"hover",placement:"bottom-start","popper-class":"popper-class-box"}},[t("div",[t("p",{staticClass:"p-text row verCenter"},[t("em",{staticClass:"row"},[e._v("型号")]),t("span",{staticClass:"row verCenter boxsiz"},[e._v(e._s(r.row.inquiry_goods_name))])]),t("p",{staticClass:"p-text row verCenter"},[t("em",{staticClass:"row"},[e._v("品牌")]),t("span",{staticClass:"row verCenter boxsiz"},[e._v(e._s(r.row.inquiry_brand_name))])]),t("p",{staticClass:"p-text row verCenter"},[t("em",{staticClass:"row"},[e._v("数量")]),t("span",{staticClass:"row verCenter boxsiz"},[e._v(e._s(r.row.quote_number))])]),t("p",{staticClass:"p-text row verCenter"},[t("em",{staticClass:"row"},[e._v("批次")]),t("span",{staticClass:"row verCenter boxsiz"},[e._v(e._s(r.row.batch))])]),t("p",{staticClass:"p-text row verCenter"},[t("em",{staticClass:"row"},[e._v("交货日期")]),t("span",{staticClass:"row verCenter boxsiz"},[e._v(e._s(r.row.delivery_time))])])]),t("div",{staticClass:"more-search-btn",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(r.row.inquiry_goods_name))])])],1)]}}])}),t("el-table-column",{attrs:{prop:"inquiry_brand_name",label:"品牌",width:"200",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"inquiry_sn",label:"询价单号",width:"200",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"unchecked_reason",label:"原因",width:"100",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"status",label:"状态",width:"100",align:"center","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(r){return[1==r.row.quote_status?t("el-tag",{attrs:{type:"primary","disable-transitions":""}},[e._v(e._s(r.row.quote_status_val))]):2==r.row.quote_status?t("el-tag",{attrs:{type:"info","disable-transitions":""}},[e._v(e._s(r.row.quote_status_val))]):3==r.row.quote_status?t("el-tag",{attrs:{type:"success","disable-transitions":""}},[e._v(e._s(r.row.quote_status_val))]):4==r.row.quote_status?t("el-tag",{attrs:{type:"danger","disable-transitions":""}},[e._v(e._s(r.row.quote_status_val))]):t("el-tag",{attrs:{type:"primary"}},[e._v(e._s(r.row.quote_status_val))]),t("el-tooltip",{staticClass:"item",attrs:{aa:r,effect:"dark",placement:"top-start"}},[t("i",{staticClass:"el-icon-question",staticStyle:{color:"#ff7e11","margin-left":"5px",cursor:"pointer","font-size":"16px"}}),t("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(r.row.status_tips))])])]}}])}),t("el-table-column",{attrs:{prop:"expire_status_val",label:"报价是否有效",width:"100",align:"center","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.expire_status_val))]),t("el-tooltip",{staticClass:"item",attrs:{aa:r,effect:"dark",placement:"top-start"}},[t("i",{staticClass:"el-icon-question",staticStyle:{color:"#ff7e11","margin-left":"5px",cursor:"pointer","font-size":"16px"}}),t("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(r.row.expire_status_tips))])])]}}])}),t("el-table-column",{attrs:{prop:"quote_number",label:"报价数量",width:"100",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"price",label:"价格",width:"200",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"currency_val",label:"币种",width:"100",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"tax_rate",label:"税率",width:"100",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"batch",label:"批次",width:"100",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"delivery_time",label:"货期",width:"100",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"mpq",label:"最小包装数量",width:"150",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"moq",label:"起订量",width:"100",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"price_other",label:"其他费用",width:"100",align:"center","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(e._f("floatZero")(r.row.price_other)))])]}}])}),t("el-table-column",{attrs:{prop:"expire_time_val",label:"报价有效期",width:"200",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"remark",label:"备注",width:"200",align:"center","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"quote_time",label:"最近报价时间",width:"200",align:"center"}}),t("el-table-column",{attrs:{fixed:"right",label:"操作",width:"110",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("el-button",{staticClass:"yunyin-btn",attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleClick(r.row)}}},[e._v("查看日志")])]}}])})],1),t("el-pagination",{attrs:{layout:"total, sizes, prev, pager, next, jumper","page-sizes":[10,20,50,100,200],total:e.total,"current-page":e.page},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1),t("Menu"),t("el-dialog",{attrs:{title:"报价管理日志","close-on-click-modal":!1,visible:e.dialogVisible,width:"1000px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("el-table",{attrs:{data:e.logs,border:"","max-height":"600"}},[t("el-table-column",{attrs:{prop:"create_time",label:"时间","min-width":"150",align:"center"}}),t("el-table-column",{attrs:{prop:"message",label:"操作说明","min-width":"150",align:"center"}}),t("el-table-column",{attrs:{prop:"operator",label:"操作人","min-width":"150",align:"center"}})],1)],1),t("el-dialog",{staticClass:"xx",attrs:{title:e.title,"close-on-click-modal":!1,visible:e.dialogQuoteVisible,width:"656px"},on:{"update:visible":function(t){e.dialogQuoteVisible=t}}},[t("div",{staticClass:"dialog-form"},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[t("div",{staticClass:"row bothSide zdypop"},[t("div",{staticClass:"box"},[t("el-form-item",{attrs:{label:"报价型号",prop:"goods_name"}},[t("el-input",{attrs:{placeholder:"请输入型号",value:e.ruleForm.goods_name,disabled:""},model:{value:e.ruleForm.goods_name,callback:function(t){e.$set(e.ruleForm,"goods_name",t)},expression:"ruleForm.goods_name"}})],1),t("el-form-item",{attrs:{label:"报价数量",prop:"quote_number"}},[t("el-input",{attrs:{placeholder:"请输入数量",value:e.ruleForm.quote_number},model:{value:e.ruleForm.quote_number,callback:function(t){e.$set(e.ruleForm,"quote_number",t)},expression:"ruleForm.quote_number"}})],1),t("el-form-item",{attrs:{label:"币种",prop:"currency"}},[t("el-select",{on:{change:e.currentChange},model:{value:e.ruleForm.currency,callback:function(t){e.$set(e.ruleForm,"currency",t)},expression:"ruleForm.currency"}},[t("el-option",{attrs:{label:"RMB(人民币)",value:"1"}}),t("el-option",{attrs:{label:"USD(美元)",value:"2"}}),t("el-option",{attrs:{label:"HKD(港币)",value:"3"}}),t("el-option",{attrs:{label:"EUR(欧元)",value:"4"}}),t("el-option",{attrs:{label:"GBP(英磅)",value:"5"}})],1)],1),t("el-form-item",{attrs:{label:"批次",prop:"batch"}},[t("el-popover",{attrs:{placement:"bottom",width:"800",trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("div",{staticClass:"row batch-layer"},[t("div",{staticClass:"batch-box verCenter"},[t("div",{staticClass:"title row bothSide verCenter"},[t("i",{staticClass:"el-icon-arrow-left",on:{click:e.prevChange}}),t("span",[e._v("年份")]),t("i",{staticClass:"el-icon-arrow-right",on:{click:e.nextChange}})]),t("div",{staticClass:"content row"},[t("ul",{staticClass:"row year-list"},e._l(e.year,(function(r,i){return t("li",{staticClass:"row rowCenter verCenter",class:{curr:e.yearIndex==i},on:{click:function(t){return e.tabChange(i,1)}}},[e._v(e._s(r)+"年")])})),0)]),t("div",{staticClass:"footer-btn row verCenter"},[t("el-button",{attrs:{size:"mini",round:""},on:{click:function(t){return e.clear(1,e.index)}}},[e._v("清空")]),t("el-button",{attrs:{size:"mini",round:""},on:{click:function(t){return e.confirm(1,e.year[e.yearIndex])}}},[e._v("确定")])],1)]),t("div",{staticClass:"batch-box verCenter"},[t("div",{staticClass:"title row rowCenter verCenter"},[t("span",[e._v("第一周期")])]),t("div",{staticClass:"content row"},[t("ul",{staticClass:"row period-list"},e._l(e.period,(function(r,i){return t("li",{staticClass:"row rowCenter verCenter",class:{curr:e.periodIndex==i},on:{click:function(t){return e.tabChange(i,2)}}},[e._v(e._s(r))])})),0)]),t("div",{staticClass:"footer-btn row verCenter"},[t("el-button",{attrs:{size:"mini",round:""},on:{click:function(t){return e.clear(1,e.index)}}},[e._v("清空")]),t("el-button",{attrs:{size:"mini",round:""},on:{click:function(t){return e.confirm(2,e.period[e.periodIndex])}}},[e._v("确定")])],1)]),t("div",{staticClass:"batch-box verCenter"},[t("div",{staticClass:"title row rowCenter verCenter"},[t("span",[e._v("第二周期")])]),t("div",{staticClass:"content row"},[t("ul",{staticClass:"row period-list"},e._l(e.period,(function(r,i){return t("li",{staticClass:"row rowCenter verCenter",class:{curr:e.periodIndexTwo==i},on:{click:function(t){return e.tabChange(i,3)}}},[e._v(e._s(r))])})),0)]),t("div",{staticClass:"footer-btn row verCenter"},[t("el-button",{attrs:{size:"mini",round:""},on:{click:function(t){return e.clear(1,e.index)}}},[e._v("清空")]),t("el-button",{attrs:{size:"mini",round:""},on:{click:function(t){return e.confirm(3,e.period[e.periodIndexTwo])}}},[e._v("确定")])],1)])]),t("el-input",{attrs:{slot:"reference",placeholder:"请输入D/C",value:e.ruleForm.batch},slot:"reference",model:{value:e.ruleForm.batch,callback:function(t){e.$set(e.ruleForm,"batch",t)},expression:"ruleForm.batch"}})],1)],1),t("el-form-item",{attrs:{label:"最小包装数量"}},[t("el-input",{attrs:{placeholder:"请输入MPQ",value:e.ruleForm.mpq},model:{value:e.ruleForm.mpq,callback:function(t){e.$set(e.ruleForm,"mpq",t)},expression:"ruleForm.mpq"}})],1),t("el-form-item",{staticClass:"updatebox",attrs:{label:"其他费用"}},[t("el-input",{attrs:{placeholder:"",onkeyup:"if(isNaN(value))execCommand('undo')",onafterpaste:"if(isNaN(value))execCommand('undo')",placeholder:"请输入其他费用",value:e.ruleForm.price_other},model:{value:e.ruleForm.price_other,callback:function(t){e.$set(e.ruleForm,"price_other",t)},expression:"ruleForm.price_other"}})],1)],1),t("div",{staticClass:"box"},[t("el-form-item",{attrs:{label:"报价品牌",prop:"brand_name"}},[t("el-input",{attrs:{placeholder:"请输入品牌",value:e.ruleForm.brand_name,disabled:""},model:{value:e.ruleForm.brand_name,callback:function(t){e.$set(e.ruleForm,"brand_name",t)},expression:"ruleForm.brand_name"}})],1),t("el-form-item",{attrs:{label:"价格",prop:"price_origin"}},[t("el-input",{attrs:{placeholder:"请输入价格",value:e.ruleForm.price_origin},model:{value:e.ruleForm.price_origin,callback:function(t){e.$set(e.ruleForm,"price_origin",t)},expression:"ruleForm.price_origin"}})],1),t("el-form-item",{attrs:{label:"税率"}},[t("el-input",{staticStyle:{width:"100px"},attrs:{disabled:"",value:e.ruleForm.tax_rate},model:{value:e.ruleForm.tax_rate,callback:function(t){e.$set(e.ruleForm,"tax_rate",t)},expression:"ruleForm.tax_rate"}})],1),t("el-form-item",{staticClass:"updatebox",attrs:{label:"货期",prop:"delivery_int"}},[t("el-input",{attrs:{placeholder:"货期",value:e.ruleForm.delivery_int},model:{value:e.ruleForm.delivery_int,callback:function(t){e.$set(e.ruleForm,"delivery_int",t)},expression:"ruleForm.delivery_int"}}),t("div",{staticClass:"selectdw"},[t("el-select",{staticClass:"placehoload",attrs:{placeholder:"请选择"},model:{value:e.ruleForm.delivery_unit_val,callback:function(t){e.$set(e.ruleForm,"delivery_unit_val",t)},expression:"ruleForm.delivery_unit_val"}},[t("el-option",{attrs:{label:"工作日",value:"工作日"}}),t("el-option",{attrs:{label:"周",value:"周"}})],1)],1)],1),t("el-form-item",{attrs:{label:"起订量"}},[t("el-input",{attrs:{placeholder:"请输入起订量",value:e.ruleForm.moq},model:{value:e.ruleForm.moq,callback:function(t){e.$set(e.ruleForm,"moq",t)},expression:"ruleForm.moq"}})],1),t("el-form-item",{attrs:{label:"报价有效期",prop:"expire_time"}},[t("el-date-picker",{attrs:{type:"date",placeholder:"选择报价有效期","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions},model:{value:e.ruleForm.expire_time,callback:function(t){e.$set(e.ruleForm,"expire_time",t)},expression:"ruleForm.expire_time"}})],1)],1)]),t("el-form-item",{attrs:{label:"备注"}},[t("el-input",{attrs:{type:"textarea",placeholder:"请输入备注"},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.dialogQuoteVisible=!1}}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确 定")])],1)])],1)},o=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"text-tip row verCenter"},[t("i",{staticClass:"el-icon-warning"}),t("span",[e._v("该页面展示的数据为:贵司针对猎芯客户发起的询价信息,进行了报价")])])}],n=(r("c628"),r("0653"),r("d52e")),s=r.n(n),a=(r("a2ef"),r("e322")),l=r.n(a),u=(r("15e5"),r("e757")),c=r.n(u),d=(r("9d3c"),r("89bd")),p=r.n(d),m=(r("b911"),r("afab")),h=r.n(m),f=(r("4b07"),r("1ad9")),b=r.n(f),v=(r("a971"),r("3036")),_=r.n(v),g=(r("c5d1"),r("6ec2")),y=r.n(g),w=(r("1a5c"),r("5202")),x=r.n(w),C=(r("30ae"),r("28e0")),k=r.n(C),S=(r("9b8c"),r("ef30")),$=r.n(S),O=(r("2052"),r("473f")),F=r.n(O),q=(r("7b6e"),r("00b5")),E=r.n(q),j=(r("371d"),r("c947")),P=r.n(j),T=(r("27af"),r("678c")),I=r.n(T),D=(r("8f92"),r("0e95")),M=r.n(D),A=(r("a9f4"),r("f3c9")),z=r.n(A),N=(r("ebc9"),r("ad51")),R=r.n(N),B=(r("a506"),r("7bfa")),L=r.n(B),V=(r("3825"),r("faf9")),U=r.n(V),X=(r("2760"),r("bb42")),K=r("2251"),Q=r("9aea"),G=r("e8d6");X["default"].prototype.$message=U.a,X["default"].use(k.a).use($.a).use(F.a).use(E.a).use(P.a).use(I.a).use(M.a).use(z.a).use(R.a).use(L.a),X["default"].use(l.a).use(c.a).use(p.a).use(h.a).use(b.a).use(_.a).use(y.a).use(x.a);var J={name:"quote",data(){return{pickerOptions:{disabledDate(e){return e.getTime()<Date.now()-864e5}},title:"新增报价",total:0,limit:10,page:1,tableData:[],multipleSelection:[],dialogVisible:!1,dialogQuoteVisible:!1,logs:[],quote_time_val:"",yearIndex:-1,periodIndex:-1,periodIndexTwo:-1,pin_obj_id:"",visible:!1,year:["2010","2011","2012","2013","2014","2015","2016","2017","2018","2019","2020","2021","2022","2023","2024"],period:["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54"],ruleForm:{inquiry_id:"",inquiry_sn:"",inquiry_items_id:"",quote_id:"",goods_name:"",quote_number:"",currency:"1",batch:"",mpq:"",price_other:"",brand_name:"",price_origin:"",tax_rate:"13%",delivery_int:"",delivery_unit_val:"工作日",delivery_time:"",moq:"",expire_time:"",remark:""},rules:{goods_name:[{required:!0,message:"请输入报价型号",trigger:"blur"}],quote_number:[{required:!0,message:"请输入报价数量",trigger:"blur"}],currency:[{required:!0,message:"请选择币种",trigger:"blur"}],batch:[{required:!0,message:"请输入批次",trigger:"change"}],price_origin:[{required:!0,message:"请输入价格",trigger:"blur"}],delivery_int:[{required:!0,message:"请输入货期",trigger:"blur"}],expire_time:[{required:!0,message:"请输入报价有效期",trigger:"blur"}]},formParam:{goods_name:"",brand_name:"",quote_time:"",status:""}}},created(){let e=this.$route.query.status;e&&(this.formParam.status=e),this.getData()},methods:{getData(){this.quote_time_val?this.formParam.quote_time=this.quote_time_val[0]+"~"+this.quote_time_val[1]:this.formParam.quote_time="";var e=Object.assign({},{page:this.page},{limit:this.limit},this.formParam);this.$http("get","/api/quote/getlist",e).then(e=>{0===e.code?(this.tableData=e.data.list||[],this.total=e.data.total):this.$message({showClose:!0,message:e.msg,type:"warning"})})},getLogs(e,t){this.$http("GET","/api/log/getLogs",{obj_type:e,obj_id:t}).then(e=>{0===e.code?(this.dialogVisible=!0,this.logs=e.data.list):this.$message({message:e.msg,type:"warning"})})},float(e){let t=Number(e);return t||0},prevChange(){this.yearIndex=-1;let e=this.year[0],t=[];for(let r=0;r<15;r++)t.push(e-(r+1));this.year=t.sort()},nextChange(){this.yearIndex=-1;let e=1*this.year[this.year.length-1],t=[];for(let r=0;r<15;r++)t.push(e+(r+1));this.year=t},tabChange(e,t){1==t?this.yearIndex=e:2==t?this.periodIndex=e:3==t&&(this.periodIndexTwo=e)},clear(e,t){this.visible=!1,this.ruleForm.batch=""},confirm(e,t,r){if(-1==this.yearIndex)return this.$message({message:"请选择年份",type:"warning"}),!1;if(1==e)t=t.toString(),t=t.substring(t.length-2),this.ruleForm.batch=t+"+";else if(2==e){if(!t)return this.$message({message:"请选择第一周期",type:"warning"}),!1;let e=this.year[this.yearIndex].toString();e=e.substring(e.length-2),this.ruleForm.batch=e+t}else if(3==e){if(-1==this.periodIndex)return this.$message({message:"请选择第一周期",type:"warning"}),!1;if(!t)return this.$message({message:"请选择第二周期",type:"warning"}),!1;var i=parseInt(this.period[this.periodIndex]),o=parseInt(t);if(o<=i)return this.$message({message:"不可小于第一周期",type:"warning"}),!1;let e=this.year[this.yearIndex].toString();e=e.substring(e.length-2);let r=this.period[this.periodIndex].toString();r=r.substring(r.length-2),t=t.toString(),t=t.substring(t.length-2);let n=e+r,s=e+t;this.ruleForm.batch=n+"-"+s}this.visible=!1},currentChange(e){this.ruleForm.tax_rate=1==e?"13%":"0%"},submitForm(e){var t=this;this.$refs[e].validate(e=>{if(!e)return!1;var r=this.ruleForm;"13%"==r.tax_rate?r.tax_rate=.13:r.tax_rate=0,this.ruleForm.delivery_time=this.ruleForm.delivery_int+this.ruleForm.delivery_unit_val,this.$http("post","/api/quote/save",r).then(e=>{0==e.code?this.$message({message:"操作成功",type:"success",onClose(){t.dialogQuoteVisible=!1,t.getData()}}):this.$message({message:e.msg,type:"error"})}).catch(e=>{this.$message({message:"网络出现问题",type:"error"})})})},update(){if(1==this.multipleSelection.length)if(1==this.multipleSelection[0].quote_status||7==this.multipleSelection[0].quote_status){var e=this.multipleSelection[0];this.title="修改报价",this.dialogQuoteVisible=!0,this.ruleForm.inquiry_sn=e.inquiry_sn,this.ruleForm.inquiry_id=e.inquiry_id,this.ruleForm.inquiry_items_id=e.inquiry_items_id,this.ruleForm.quote_id=e.quote_id,this.ruleForm.goods_name=e.quote_goods_name,this.ruleForm.brand_name=e.quote_brand_name,this.ruleForm.quote_number=e.quote_number,e.price_origin=this.float(e.price_origin),this.ruleForm.price_origin=e.price_origin,this.ruleForm.currency=e.currency.toString(),this.ruleForm.tax_rate=100*Number(e.tax_rate)+"%",this.ruleForm.batch=e.batch,this.ruleForm.delivery_int=e.delivery_info.delivery_int,this.ruleForm.delivery_unit_val=e.delivery_info.delivery_unit_val,this.ruleForm.mpq=e.mpq,this.ruleForm.moq=e.moq,e.price_other=this.float(e.price_other),this.ruleForm.price_other=e.price_other,this.ruleForm.remark=e.remark,"0000-00-00 00:00:00"==e.expire_time_val?this.ruleForm.expire_time="":this.ruleForm.expire_time=e.expire_time_val}else this.$message({showClose:!0,message:"请勾选状态为确认中和待确认",type:"warning"});else this.$message({showClose:!0,message:"请选择一条询价信息",type:"warning"})},handleClick(e){this.getLogs(505,e.quote_id),console.log(e)},querySearchAsync(e,t){this.$http("get","/api/search/getspu",{spu_name:e}).then(e=>{if(0==e.code)if(e.data.list.length>0){for(var r=e.data.list||[],i=[],o=0;o<r.length;o++)i.push({value:r[o]["spu_name"]});t(i)}else t([])})},querySearchAsyncBrand(e,t){this.$http("get","/api/brand/get_stand_brand",{brand:e}).then(e=>{if(0==e.code)if(e.data.list.length>0){for(var r=e.data.list||[],i=[],o=0;o<r.length;o++)i.push({value:r[o]});t(i)}else t([])})},resetForm(e){this.quote_time_val="",this.$refs[e].resetFields()},onSubmit(){this.page=1,this.getData()},handleSelectionChange(e){this.multipleSelection=e},handleSizeChange(e){this.limit=e,this.getData()},handleCurrentChange(e){this.page=e,this.getData()},exportChange(){var e=[];if(0!=this.multipleSelection.length){for(var t=0;t<this.multipleSelection.length;t++)e.push(this.multipleSelection[t]["quote_id"]);window.location.href=Q["a"]+"/api/quote/export?ids="+e.join(",")+"&token="+G["a"].getCookie("token")}else this.$message({showClose:!0,message:"请至少选择一条数据",type:"warning"})},close(){var e=[];0!=this.multipleSelection.length?(e=this.multipleSelection.map(e=>e.quote_id),this.$http("post","/api/quote/close",{ids:e.join(",")}).then(e=>{0===e.code?(this.$message({message:"关闭成功",type:"success"}),this.getData()):this.$message({showClose:!0,message:e.msg,type:"warning"})})):this.$message({showClose:!0,message:"请至少选择一条数据",type:"warning"})},del(){var e=[];if(0!=this.multipleSelection.length){for(var t=0;t<this.multipleSelection.length;t++)e.push(this.multipleSelection[t]["id"]);s.a.confirm("确认到删除当前勾选数据吗?",{type:"error"}).then(()=>{this.$http("post","/api/quote/delete",{ids:e.join(",")}).then(e=>{0===e.code?(this.$message("删除成功"),this.getData()):this.$message({showClose:!0,message:e.msg,type:"warning"})})}).catch(()=>{})}else this.$message({showClose:!0,message:"请至少选择一条数据",type:"warning"})}},components:{Menu:K["a"]}},H=J,W=(r("986b"),r("0b56")),Z=Object(W["a"])(H,i,o,!1,null,"cc761fea",null);t["default"]=Z.exports},"7bfa":function(e,t,r){e.exports=function(e){var t={};function r(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,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(i,o,function(t){return e[t]}.bind(null,o));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=77)}({0:function(e,t,r){"use strict";function i(e,t,r,i,o,n,s,a){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),i&&(u.functional=!0),n&&(u._scopeId="data-v-"+n),s?(l=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(s)},u._ssrRegister=l):o&&(l=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}r.d(t,"a",(function(){return i}))},2:function(e,t){e.exports=r("22fb")},3:function(e,t){e.exports=r("0b51")},5:function(e,t){e.exports=r("2155")},7:function(e,t){e.exports=r("bb42")},77:function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("span",[r("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[r("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?r("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),r("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)},o=[];i._withStripped=!0;var n=r(5),s=r.n(n),a=r(2),l=r(3),u={name:"ElPopover",mixins:[s.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(l["generateId"])()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,r=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(a["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),r.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(a["on"])(t,"focusin",(function(){e.handleFocus();var r=t.__vue__;r&&"function"===typeof r.focus&&r.focus()})),Object(a["on"])(r,"focusin",this.handleFocus),Object(a["on"])(t,"focusout",this.handleBlur),Object(a["on"])(r,"focusout",this.handleBlur)),Object(a["on"])(t,"keydown",this.handleKeydown),Object(a["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(a["on"])(t,"click",this.doToggle),Object(a["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(a["on"])(t,"mouseenter",this.handleMouseEnter),Object(a["on"])(r,"mouseenter",this.handleMouseEnter),Object(a["on"])(t,"mouseleave",this.handleMouseLeave),Object(a["on"])(r,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(a["on"])(t,"focusin",this.doShow),Object(a["on"])(t,"focusout",this.doClose)):(Object(a["on"])(t,"mousedown",this.doShow),Object(a["on"])(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(a["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(a["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(a["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,r=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&r&&!r.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(a["off"])(e,"click",this.doToggle),Object(a["off"])(e,"mouseup",this.doClose),Object(a["off"])(e,"mousedown",this.doShow),Object(a["off"])(e,"focusin",this.doShow),Object(a["off"])(e,"focusout",this.doClose),Object(a["off"])(e,"mousedown",this.doShow),Object(a["off"])(e,"mouseup",this.doClose),Object(a["off"])(e,"mouseleave",this.handleMouseLeave),Object(a["off"])(e,"mouseenter",this.handleMouseEnter),Object(a["off"])(document,"click",this.handleDocumentClick)}},c=u,d=r(0),p=Object(d["a"])(c,i,o,!1,null,null,null);p.options.__file="packages/popover/src/main.vue";var m=p.exports,h=function(e,t,r){var i=t.expression?t.value:t.arg,o=r.context.$refs[i];o&&(Array.isArray(o)?o[0].$refs.reference=e:o.$refs.reference=e)},f={bind:function(e,t,r){h(e,t,r)},inserted:function(e,t,r){h(e,t,r)}},b=r(7),v=r.n(b);v.a.directive("popover",f),m.install=function(e){e.directive("popover",f),e.component(m.name,m)},m.directive=f;t["default"]=m}})},"89bd":function(e,t,r){e.exports=function(e){var t={};function r(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,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(i,o,function(t){return e[t]}.bind(null,o));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=82)}({0:function(e,t,r){"use strict";function i(e,t,r,i,o,n,s,a){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),i&&(u.functional=!0),n&&(u._scopeId="data-v-"+n),s?(l=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(s)},u._ssrRegister=l):o&&(l=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}r.d(t,"a",(function(){return i}))},5:function(e,t){e.exports=r("2155")},82:function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[r("ul",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[e.size&&"el-dropdown-menu--"+e.size]},[e._t("default")],2)])},o=[];i._withStripped=!0;var n=r(5),s=r.n(n),a={name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[s.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var e=this;this.$on("updatePopper",(function(){e.showPopper&&e.updatePopper()})),this.$on("visible",(function(t){e.showPopper=t}))},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(e){this.currentPlacement=e}}}},l=a,u=r(0),c=Object(u["a"])(l,i,o,!1,null,null,null);c.options.__file="packages/dropdown/src/dropdown-menu.vue";var d=c.exports;d.install=function(e){e.component(d.name,d)};t["default"]=d}})},"8a9a":function(e,t,r){},"986b":function(e,t,r){"use strict";r("8a9a")},"9d3c":function(e,t,r){},a506:function(e,t,r){},afab:function(e,t,r){e.exports=function(e){var t={};function r(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,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(i,o,function(t){return e[t]}.bind(null,o));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=83)}({0:function(e,t,r){"use strict";function i(e,t,r,i,o,n,s,a){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),i&&(u.functional=!0),n&&(u._scopeId="data-v-"+n),s?(l=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(s)},u._ssrRegister=l):o&&(l=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}r.d(t,"a",(function(){return i}))},4:function(e,t){e.exports=r("8c46")},83:function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":e.disabled,"el-dropdown-menu__item--divided":e.divided},attrs:{"aria-disabled":e.disabled,tabindex:e.disabled?null:-1},on:{click:e.handleClick}},[e.icon?r("i",{class:e.icon}):e._e(),e._t("default")],2)},o=[];i._withStripped=!0;var n=r(4),s=r.n(n),a={name:"ElDropdownItem",mixins:[s.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(e){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},l=a,u=r(0),c=Object(u["a"])(l,i,o,!1,null,null,null);c.options.__file="packages/dropdown/src/dropdown-item.vue";var d=c.exports;d.install=function(e){e.component(d.name,d)};t["default"]=d}})},b911:function(e,t,r){},c717:function(e,t,r){e.exports=function(e){var t={};function r(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,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(i,o,function(t){return e[t]}.bind(null,o));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=96)}({0:function(e,t,r){"use strict";function i(e,t,r,i,o,n,s,a){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),i&&(u.functional=!0),n&&(u._scopeId="data-v-"+n),s?(l=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(s)},u._ssrRegister=l):o&&(l=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}r.d(t,"a",(function(){return i}))},96:function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"el-button-group"},[e._t("default")],2)},o=[];i._withStripped=!0;var n={name:"ElButtonGroup"},s=n,a=r(0),l=Object(a["a"])(s,i,o,!1,null,null,null);l.options.__file="packages/button/src/button-group.vue";var u=l.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},e757:function(e,t,r){e.exports=function(e){var t={};function r(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,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(i,o,function(t){return e[t]}.bind(null,o));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=128)}({0:function(e,t,r){"use strict";function i(e,t,r,i,o,n,s,a){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),i&&(u.functional=!0),n&&(u._scopeId="data-v-"+n),s?(l=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(s)},u._ssrRegister=l):o&&(l=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}r.d(t,"a",(function(){return i}))},11:function(e,t){e.exports=r("a7b2")},12:function(e,t){e.exports=r("4199")},128:function(e,t,r){"use strict";r.r(t);var i,o,n=r(12),s=r.n(n),a=r(4),l=r.n(a),u=r(11),c=r.n(u),d=r(14),p=r.n(d),m=r(35),h=r.n(m),f=r(3),b={name:"ElDropdown",componentName:"ElDropdown",mixins:[l.a,c.a],directives:{Clickoutside:s.a},components:{ElButton:p.a,ElButtonGroup:h.a},provide:function(){return{dropdown:this}},props:{trigger:{type:String,default:"hover"},type:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},placement:{type:String,default:"bottom-end"},visibleArrow:{default:!0},showTimeout:{type:Number,default:250},hideTimeout:{type:Number,default:150},tabindex:{type:Number,default:0},disabled:{type:Boolean,default:!1}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(f["generateId"])()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on("menu-item-click",this.handleMenuItemClick)},watch:{visible:function(e){this.broadcast("ElDropdownMenu","visible",e),this.$emit("visible-change",e)},focusing:function(e){var t=this.$el.querySelector(".el-dropdown-selfdefine");t&&(e?t.className+=" focusing":t.className=t.className.replace("focusing",""))}},methods:{getMigratingConfig:function(){return{props:{"menu-align":"menu-align is renamed to placement."}}},show:function(){var e=this;this.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!0}),"click"===this.trigger?0:this.showTimeout))},hide:function(){var e=this;this.disabled||(this.removeTabindex(),this.tabindex>=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!1}),"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(e){var t=e.keyCode;[38,40].indexOf(t)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),e.preventDefault(),e.stopPropagation()):13===t?this.handleClick():[9,27].indexOf(t)>-1&&this.hide()},handleItemKeyDown:function(e){var t=e.keyCode,r=e.target,i=this.menuItemsArray.indexOf(r),o=this.menuItemsArray.length-1,n=void 0;[38,40].indexOf(t)>-1?(n=38===t?0!==i?i-1:0:i<o?i+1:o,this.removeTabindex(),this.resetTabindex(this.menuItems[n]),this.menuItems[n].focus(),e.preventDefault(),e.stopPropagation()):13===t?(this.triggerElmFocus(),r.click(),this.hideOnClick&&(this.visible=!1)):[9,27].indexOf(t)>-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(e){this.removeTabindex(),e.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach((function(e){e.setAttribute("tabindex","-1")}))},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var e=this,t=this.trigger,r=this.show,i=this.hide,o=this.handleClick,n=this.splitButton,s=this.handleTriggerKeyDown,a=this.handleItemKeyDown;this.triggerElm=n?this.$refs.trigger.$el:this.$slots.default[0].elm;var l=this.dropdownElm;this.triggerElm.addEventListener("keydown",s),l.addEventListener("keydown",a,!0),n||(this.triggerElm.addEventListener("focus",(function(){e.focusing=!0})),this.triggerElm.addEventListener("blur",(function(){e.focusing=!1})),this.triggerElm.addEventListener("click",(function(){e.focusing=!1}))),"hover"===t?(this.triggerElm.addEventListener("mouseenter",r),this.triggerElm.addEventListener("mouseleave",i),l.addEventListener("mouseenter",r),l.addEventListener("mouseleave",i)):"click"===t&&this.triggerElm.addEventListener("click",o)},handleMenuItemClick:function(e,t){this.hideOnClick&&(this.visible=!1),this.$emit("command",e,t)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(e){var t=this,r=this.hide,i=this.splitButton,o=this.type,n=this.dropdownSize,s=this.disabled,a=function(e){t.$emit("click",e),r()},l=null;if(i)l=e("el-button-group",[e("el-button",{attrs:{type:o,size:n,disabled:s},nativeOn:{click:a}},[this.$slots.default]),e("el-button",{ref:"trigger",attrs:{type:o,size:n,disabled:s},class:"el-dropdown__caret-button"},[e("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]);else{l=this.$slots.default;var u=l[0].data||{},c=u.attrs,d=void 0===c?{}:c;s&&!d.disabled&&(d.disabled=!0,u.attrs=d)}var p=s?null:this.$slots.dropdown;return e("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:r}],attrs:{"aria-disabled":s}},[l,p])}},v=b,_=r(0),g=Object(_["a"])(v,i,o,!1,null,null,null);g.options.__file="packages/dropdown/src/dropdown.vue";var y=g.exports;y.install=function(e){e.component(y.name,y)};t["default"]=y},14:function(e,t){e.exports=r("28e0")},3:function(e,t){e.exports=r("0b51")},35:function(e,t){e.exports=r("c717")},4:function(e,t){e.exports=r("8c46")}})}}]);