(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1c4cdb55"],{"504c":function(t,e,a){var l=a("9e1e"),s=a("0d58"),i=a("6821"),r=a("52a7").f;t.exports=function(t){return function(e){var a,n=i(e),o=s(n),c=o.length,u=0,d=[];while(c>u)a=o[u++],l&&!r.call(n,a)||d.push(t?[a,n[a]]:n[a]);return d}}},"5cda":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("div",{staticClass:"selCard"},[a("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small","label-width":"85px",inline:!0}},[a("el-form-item",{attrs:{label:"秒杀状态:",prop:"seckill_status"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.seckill_status,callback:function(e){t.$set(t.tableFrom,"seckill_status",e)},expression:"tableFrom.seckill_status"}},t._l(t.seckillStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商品状态:",prop:"us_status"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.us_status,callback:function(e){t.$set(t.tableFrom,"us_status",e)},expression:"tableFrom.us_status"}},t._l(t.productStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商品标签:",prop:"mer_labels"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.mer_labels,callback:function(e){t.$set(t.tableFrom,"mer_labels",e)},expression:"tableFrom.mer_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"关键字:",prop:"keyword"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称,关键字,产品编号",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),a("el-card",{staticClass:"mt14"},[a("el-tabs",{on:{"tab-click":function(e){t.getList(1),t.getLstFilterApi()}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},t._l(t.headeNum,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.type.toString(),label:t.name+"("+t.count+")"}})})),1),t._v(" "),a("div",{staticClass:"mt5"},[a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/seckill/createGoods"}}},[a("el-button",{attrs:{size:"small",type:"primary"}},[a("i",{staticClass:"add"},[t._v("+")]),t._v(" 添加秒杀商品\n ")])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"mt20",attrs:{data:t.tableData.data,size:"small","row-class-name":t.tableRowClassName},on:{rowclick:function(e){return e.stopPropagation(),t.closeEdit(e)}}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-form",{staticClass:"demo-table-expand demo-table-expand1",attrs:{"label-position":"left",inline:""}},[a("el-form-item",{attrs:{label:"品牌:"}},[a("span",{staticClass:"mr10"},[t._v(t._s(e.row.brand?e.row.brand.brand_name:"-"))])]),t._v(" "),a("el-form-item",{attrs:{label:"市场价格:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.ot_price)))])]),t._v(" "),a("el-form-item",{attrs:{label:"成本价:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.cost)))])]),t._v(" "),a("el-form-item",{attrs:{label:"收藏:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.care_count)))])]),t._v(" "),"7"===t.tableFrom.type?a("el-form-item",{key:"1",attrs:{label:"未通过原因:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.care_count)))])]):t._e()],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:t.row.image,"preview-src-list":[t.row.image]}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"活动标题","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"store_info",label:"商品简介","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"price",label:"秒杀价","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sales",label:"已售数量","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{label:"限量剩余","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.stock-e.row.sales))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"秒杀状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("seckillStatusFilter")(e.row.seckill_status)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"秒杀活动日期","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("开始日期:"+t._s(e.row.seckillActive&&e.row.seckillActive.start_day?e.row.seckillActive.start_day.slice(0,10):""))]),t._v(" "),a("div",[t._v("结束日期:"+t._s(e.row.seckillActive&&e.row.seckillActive.end_day?e.row.seckillActive.end_day.slice(0,10):""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"秒杀活动时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("开始时间:"+t._s(e.row.seckillActive&&e.row.seckillActive.start_time?e.row.seckillActive.start_time+":00":""))]),t._v(" "),a("div",[t._v("结束时间:"+t._s(e.row.seckillActive&&e.row.seckillActive.end_time?e.row.seckillActive.end_time+":00":""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"上/下架","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,width:55,"active-text":"上架","inactive-text":"下架"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_show,callback:function(a){t.$set(e.row,"is_show",a)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"商品状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("productStatusFilter")(e.row.us_status)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",align:"center",label:"排序","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.index===t.tabClickIndex?a("span",[a("el-input",{attrs:{type:"number",maxlength:"300",size:"mini",autofocus:""},on:{blur:function(a){return t.inputBlur(e)}},model:{value:e.row["sort"],callback:function(a){t.$set(e.row,"sort",t._n(a))},expression:"scope.row['sort']"}})],1):a("span",{on:{dblclick:function(a){return a.stopPropagation(),t.tabClick(e.row)}}},[t._v(t._s(e.row["sort"]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"200",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/seckill/createGoods/"+e.row.product_id}}},[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("编辑")])],1),t._v(" "),"5"!==t.tableFrom.type?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handlePreview(e.row.product_id)}}},[t._v("预览")]):t._e(),t._v(" "),"5"!==t.tableFrom.type?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEditLabel(e.row)}}},[t._v("编辑标签")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.goDetail(e.row.product_id)}}},[t._v("详情")]),t._v(" "),"5"===t.tableFrom.type?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleRestore(e.row.product_id)}}},[t._v("恢复商品")]):t._e(),t._v(" "),"1"!==t.tableFrom.type&&"3"!==t.tableFrom.type&&"4"!==t.tableFrom.type?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.product_id,e.$index)}}},[t._v(t._s("5"===t.tableFrom.type?"删除":"加入回收站"))]):t._e()]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),t.dialogVisible?a("el-dialog",{attrs:{title:"秒杀商品详情",center:"",visible:t.dialogVisible,width:"660px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-top":"5px"}},[a("div",{staticClass:"box-container"},[a("div",{staticClass:"title"},[t._v("基本信息")]),t._v(" "),a("div",{staticClass:"acea-row"},[a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("商品ID:")]),t._v(t._s(t.formValidate.product_id))]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("商品名称:")]),a("span",[t._v(t._s(t.formValidate.store_name))])]),t._v(" "),a("div",{staticClass:"list sp100 image"},[a("label",{staticClass:"name"},[t._v("商品图:")]),t._v(" "),a("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.formValidate.image}})]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("商品信息:")]),t._v(" "),0===t.formValidate.spec_type?a("div",[a("el-table",{attrs:{data:t.OneattrValue,size:"small"}},[a("el-table-column",{attrs:{align:"center",label:"秒杀价格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["price"]))])]}}],null,!1,1703924291)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"已售商品数量","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["sales"]))])]}}],null,!1,703426790)})],1)],1):t._e(),t._v(" "),1===t.formValidate.spec_type?a("div",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{attrs:{data:t.ManyAttrValue,height:"250",size:"small","tooltip-effect":"dark","row-key":function(t){return t.id}}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,l){return a("el-table-column",{key:l,attrs:{align:"center",label:t.manyTabTit[l].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[l])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"秒杀价格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["price"]))])]}}],null,!1,1703924291)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"已售商品数量","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["sales"]))])]}}],null,!1,703426790)})],2)],1):t._e()])]),t._v(" "),a("div",{staticClass:"title",staticStyle:{"margin-top":"20px"}},[t._v("秒杀商品活动信息")]),t._v(" "),a("div",{staticClass:"acea-row"},[t.formValidate.mer_labels_data&&t.formValidate.mer_labels_data.length?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("商户标签:")]),t._v(" "),t._l(t.formValidate.mer_labels_data,(function(e,l){return a("span",{key:l,staticClass:"value-item"},[t._v(" "+t._s(e)+" ")])}))],2):t._e(),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("秒杀简介:")]),t._v(t._s(t.formValidate.store_info))]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("秒杀活动日期:")]),t._v(t._s(t.formValidate.start_day+"-"+t.formValidate.end_day))]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("秒杀活动时间:")]),t._v(t._s(t.formValidate.start_time+"-"+t.formValidate.end_time))]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("活动日期内最多购买次数:")]),t._v(t._s(t.formValidate.all_pay_count))]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("秒杀时间段内最多购买次数:")]),t._v(t._s(t.formValidate.once_pay_count))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("审核状态:")]),t._v(t._s(1===t.formValidate.status?"审核通过":0===t.formValidate.status?"未审核":"审核未通过"))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("商品状态:")]),t._v(t._s(1===t.formValidate.us_status?"上架显示":-1===t.formValidate.us_status?"平台关闭":"下架"))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("秒杀活动状态:")]),t._v(t._s(0===t.formValidate.seckill_status?"未开始":1===t.formValidate.seckill_status?"正在进行":"已结束"))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("创建时间:")]),t._v(t._s(t.formValidate.create_time))])])])])]):t._e(),t._v(" "),t.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(e){e.stopPropagation(),t.previewVisible=!1}}}),t._v(" "),t.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"goods-id":t.goodsId,"product-type":1,"preview-key":t.previewKey}}):t._e()],1):t._e(),t._v(" "),t.dialogLabel?a("el-dialog",{attrs:{title:"选择标签",visible:t.dialogLabel,width:"470px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogLabel=e}}},[a("el-form",{ref:"labelForm",attrs:{model:t.labelForm},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",multiple:"",size:"small",placeholder:"请选择"},model:{value:t.labelForm.mer_labels,callback:function(e){t.$set(t.labelForm,"mer_labels",e)},expression:"labelForm.mer_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id.toString()}})})),1)],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogLabel=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.submitForm("labelForm")}}},[t._v("提交")])],1)],1):t._e()],1)},s=[],i=(a("7f7f"),a("c7eb")),r=(a("96cf"),a("1da1")),n=(a("8615"),a("ac6a"),a("55dd"),a("c4c8")),o=a("b7be"),c=a("8c98"),u=a("83d6"),d={product_id:"",image:"",slider_image:[],store_name:"",store_info:"",start_day:"",end_day:"",start_time:"",end_time:"",is_open_recommend:1,is_open_state:1,is_show:1,seckill_status:"",keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],unit_name:"",integral:0,sort:0,is_good:0,temp_id:"",seckill_date:"",finalPayment_date:"",delivery_type:1,delivery_day:10,create_time:"",attrValue:[{image:"",price:null,cost:null,ot_price:null,old_stock:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,content:"",spec_type:0,is_gift_bag:0,tattend_two:{},tattend_one:{}},_={name:"ProductList",components:{previewBox:c["a"]},data:function(){return{props:{emitPath:!1},roterPre:u["roterPre"],headeNum:[],listLoading:!0,labelLoading:!0,tableData:{data:[],total:0},seckillStatusList:[{label:"正在进行",value:2},{label:"活动已结束",value:3},{label:"活动未开始",value:1}],productStatusList:[{label:"上架显示",value:1},{label:"下架",value:0},{label:"平台关闭",value:-1}],labelList:[],tableFrom:{page:1,limit:20,mer_cate_id:"",cate_id:"",mer_labels:"",keyword:"",type:this.$route.query.type?this.$route.query.type:"1",seckill_status:"",us_status:"",product_id:this.$route.query.id?this.$route.query.id:""},categoryList:[],merCateList:[],modals:!1,dialogVisible:!1,manyTabTit:{},manyTabDate:{},formValidate:Object.assign({},d),OneattrValue:[Object.assign({},d.attrValue[0])],ManyAttrValue:[Object.assign({},d.attrValue[0])],attrInfo:{},tabClickIndex:"",previewVisible:!1,goodsId:"",previewKey:"",dialogLabel:!1,labelForm:{}}},mounted:function(){this.getLstFilterApi(),this.getCategorySelect(),this.getCategoryList(),this.getLabelLst(),this.getList("")},methods:{searchReset:function(){this.$refs.searchForm.resetFields(),this.getList(1)},tableRowClassName:function(t){var e=t.row,a=t.rowIndex;e.index=a},tabClick:function(t){this.tabClickIndex=t.index},inputBlur:function(t){var e=this;(!t.row.sort||t.row.sort<0)&&(t.row.sort=0),Object(o["ab"])(t.row.product_id,{sort:t.row.sort}).then((function(t){e.closeEdit()})).catch((function(t){}))},closeEdit:function(){this.tabClickIndex=null},handleClose:function(){this.dialogLabel=!1},getLabelLst:function(){var t=this;Object(n["A"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},handleRestore:function(t){var e=this;this.$modalSure("恢复商品").then((function(){Object(n["Kb"])(t).then((function(t){e.$message.success(t.message),e.getLstFilterApi(),e.getList("")})).catch((function(t){e.$message.error(t.message)}))}))},getCategorySelect:function(){var t=this;Object(n["u"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategoryList:function(){var t=this;Object(n["t"])().then((function(e){t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getLstFilterApi:function(){var t=this;Object(n["Mb"])().then((function(e){t.headeNum=e.data})).catch((function(e){t.$message.error(e.message)}))},watCh:function(t){var e=this,a={},l={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},l["value"+e]=""})),this.ManyAttrValue.forEach((function(t,a){var l=Object.values(t.detail).sort().join("/");e.attrInfo[l]&&(e.ManyAttrValue[a]=e.attrInfo[l])})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){e.attrInfo[Object.values(t.detail).sort().join("/")]=t})),this.manyTabTit=a,this.manyTabDate=l},goDetail:function(t){var e=this;this.dialogVisible=!0,this.loading=!0,this.formValidate={},Object(o["Z"])(t).then(function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(a){var l;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loading=!1,l=a.data,e.formValidate={product_id:l.product_id,image:l.image,slider_image:l.slider_image,store_name:l.store_name,store_info:l.store_info,start_time:l.seckillActive&&l.seckillActive.start_time?l.seckillActive.start_time+":00:00":"",end_time:l.seckillActive&&l.seckillActive.end_time?l.seckillActive.end_time+":00:00":"",start_day:l.seckillActive&&l.seckillActive.start_day?l.seckillActive.start_day.slice(0,10):"",end_day:l.seckillActive&&l.seckillActive.end_day?l.seckillActive.end_day.slice(0,10):"",mer_labels_data:l.mer_labels_data,brand_id:l.brand_id,cate_id:l.cate_id?l.cate_id:"",mer_cate_id:l.mer_cate_id,unit_name:l.unit_name,sort:l.sort,is_good:l.is_good,temp_id:l.temp_id,is_show:l.is_show,attr:l.attr,extension_type:l.extension_type,content:l.content,spec_type:l.spec_type,is_gift_bag:l.is_gift_bag,create_time:l.create_time,product_status:l.product_status,status:l.status,all_pay_count:l.seckillActive?l.seckillActive.all_pay_count:"",once_pay_count:l.seckillActive?l.seckillActive.once_pay_count:"",stock:l.stock,stock_count:l.stock_count,seckill_status:l.seckill_status,us_status:l.us_status},0===e.formValidate.spec_type?e.OneattrValue=l.attrValue:(e.ManyAttrValue=l.attrValue,e.watCh(e.formValidate.attr)),console.log(e.ManyAttrValue),e.fullscreenLoading=!1,e.formValidate.seckill_date=[l.start_time,l.end_time];case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.$message.error(t.message)}))},onEditLabel:function(t){this.dialogLabel=!0,this.labelLoading=!0,this.product_id=t.product_id,this.labelForm={mer_labels:t.mer_labels}},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&Object(n["ec"])(e.product_id,e.labelForm).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.dialogLabel=!1}))}))},handlePreview:function(t){this.previewVisible=!0,this.goodsId=t,this.previewKey=""},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["Bb"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},handleDelete:function(t,e){var a=this;this.$modalSure("5"!==this.tableFrom.type?"加入回收站":"删除该商品").then((function(){"5"===a.tableFrom.type?Object(n["Ib"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList(""),a.getLstFilterApi()})).catch((function(t){var e=t.message;a.$message.error(e)})):Object(n["Jb"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList(""),a.getLstFilterApi()})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onchangeIsShow:function(t){var e=this;Object(n["Lb"])(t.product_id,t.is_show).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.getLstFilterApi()})).catch((function(t){var a=t.message;e.$message.error(a)}))}}},m=_,b=(a("5eec"),a("2877")),v=Object(b["a"])(m,l,s,!1,null,"3d3451d7",null);e["default"]=v.exports},"5eec":function(t,e,a){"use strict";a("6ee3")},"6ee3":function(t,e,a){},8615:function(t,e,a){var l=a("5ca1"),s=a("504c")(!1);l(l.S,"Object",{values:function(t){return s(t)}})}}]);