shop_mer_admin/mer/js/chunk-123dc9b4.7a709f78.js

1 line
41 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-123dc9b4"],{"040d":function(e,t,a){},"504c":function(e,t,a){var i=a("9e1e"),r=a("0d58"),l=a("6821"),s=a("52a7").f;e.exports=function(e){return function(t){var a,o=l(t),n=r(o),c=n.length,d=0,m=[];while(c>d)a=n[d++],i&&!s.call(o,a)||m.push(e?[a,o[a]]:o[a]);return m}}},"64a3":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:e.currentTab,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"选择秒杀商品"}}),e._v(" "),a("el-step",{attrs:{title:"填写基础信息"}}),e._v(" "),a("el-step",{attrs:{title:"修改商品详情"}})],1)],1),e._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:e.ruleValidate,model:e.formValidate,"label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{directives:[{name:"show",rawName:"v-show",value:0===e.currentTab,expression:"currentTab === 0"}],staticStyle:{overflow:"hidden"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"选择商品:",prop:"spike_image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.add()}}},[e.formValidate.spike_image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.spike_image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1)],1)],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1===e.currentTab,expression:"currentTab === 1"}]},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"商品主图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1")}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[e._l(e.formValidate.slider_image,(function(t,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"false"},on:{dragstart:function(a){return e.handleDragStart(a,t)},dragover:function(a){return a.preventDefault(),e.handleDragOver(a,t)},dragenter:function(a){return e.handleDragEnter(a,t)},dragend:function(a){return e.handleDragEnd(a,t)}}},[a("img",{attrs:{src:t}}),e._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(t){return e.handleRemove(i)}}})])})),e._v(" "),e.formValidate.slider_image.length<10?a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("2")}}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])]):e._e()],2)])],1),e._v(" "),a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{attrs:{size:"small",placeholder:"请输入商品名称"},model:{value:e.formValidate.store_name,callback:function(t){e.$set(e.formValidate,"store_name",t)},expression:"formValidate.store_name"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"商户商品分类:"}},[a("el-cascader",{staticClass:"selWidth",attrs:{size:"small",options:e.merCateList,props:e.propsMer,clearable:""},model:{value:e.formValidate.mer_cate_id,callback:function(t){e.$set(e.formValidate,"mer_cate_id",t)},expression:"formValidate.mer_cate_id"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"平台商品分类:",prop:"cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{size:"small",options:e.categoryList,props:e.props,clearable:""},model:{value:e.formValidate.cate_id,callback:function(t){e.$set(e.formValidate,"cate_id",t)},expression:"formValidate.cate_id"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀商品关键字:"}},[a("el-input",{attrs:{size:"small",placeholder:"请输入商品关键字"},model:{value:e.formValidate.keyword,callback:function(t){e.$set(e.formValidate,"keyword",t)},expression:"formValidate.keyword"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"秒杀活动简介:",prop:"store_info"}},[a("el-input",{attrs:{type:"textarea",size:"small",rows:3,placeholder:"请输入秒杀活动简介"},model:{value:e.formValidate.store_info,callback:function(t){e.$set(e.formValidate,"store_info",t)},expression:"formValidate.store_info"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀活动日期:"}},[a("i",{staticClass:"required"},[e._v("*")]),e._v(" "),a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"请选择活动时间"},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"活动日期内最多购买件数:",prop:"all_pay_count","label-width":"210px"}},[a("el-input-number",{attrs:{size:"small"},model:{value:e.formValidate.all_pay_count,callback:function(t){e.$set(e.formValidate,"all_pay_count",t)},expression:"formValidate.all_pay_count"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀活动时间:"}},[a("i",{staticClass:"required"},[e._v("*")]),e._v(" "),a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd",attrs:{placeholder:"请选择",size:"small"},on:{change:e.onchangeTime2},model:{value:e.timeVal2,callback:function(t){e.timeVal2=t},expression:"timeVal2"}},e._l(e.spikeTimeList,(function(e){return a("el-option",{key:e.seckill_time_id,attrs:{label:e.name,value:e.name}})})),1)],1)])],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀时间段内最多购买件数:",prop:"once_pay_count","label-width":"210px"}},[a("el-input-number",{attrs:{size:"small"},model:{value:e.formValidate.once_pay_count,callback:function(t){e.$set(e.formValidate,"once_pay_count",t)},expression:"formValidate.once_pay_count"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"单位:",prop:"unit_name"}},[a("el-input",{staticStyle:{width:"250px"},attrs:{size:"small",placeholder:"请输入单位"},model:{value:e.formValidate.unit_name,callback:function(t){e.$set(e.formValidate,"unit_name",t)},expression:"formValidate.unit_name"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"排序:","label-width":"210px"}},[a("el-input-number",{attrs:{size:"small",placeholder:"请输入排序序号"},model:{value:e.formValidate.sort,callback:function(t){e.$set(e.formValidate,"sort",t)},expression:"formValidate.sort"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{model:{value:e.formValidate.delivery_way,callback:function(t){e.$set(e.formValidate,"delivery_way",t)},expression:"formValidate.delivery_way"}},e._l(e.deliveryList,(function(t){return a("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.name)+"\n ")])})),1)],1)])],1),e._v(" "),(2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0])&&0==e.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:e.formValidate.delivery_free,callback:function(t){e.$set(e.formValidate,"delivery_free",t)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1):e._e(),e._v(" "),0==e.formValidate.delivery_free&&(2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0])&&0==e.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr15",attrs:{size:"small",placeholder:"请选择"},model:{value:e.formValidate.temp_id,callback:function(t){e.$set(e.formValidate,"temp_id",t)},expression:"formValidate.temp_id"}},e._l(e.shippingList,(function(e){return a("el-option",{key:e.shipping_template_id,attrs:{label:e.name,value:e.shipping_template_id}})})),1),e._v(" "),a("el-button",{attrs:{size:"small"},on:{click:e.addTem}},[e._v("添加运费模板")])],1)])],1):e._e(),e._v(" "),e.labelList.length?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品标签:"}},[a("el-select",{staticClass:"selWidthd",attrs:{size:"small",multiple:"",placeholder:"请选择"},model:{value:e.formValidate.mer_labels,callback:function(t){e.$set(e.formValidate,"mer_labels",t)},expression:"formValidate.mer_labels"}},e._l(e.labelList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台保障服务:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择",size:"small",clearable:""},model:{value:e.formValidate.guarantee_template_id,callback:function(t){e.$set(e.formValidate,"guarantee_template_id",t)},expression:"formValidate.guarantee_template_id"}},e._l(e.guaranteeList,(function(e){return a("el-option",{key:e.guarantee_template_id,attrs:{label:e.template_name,value:e.guarantee_template_id}})})),1),e._v(" "),a("el-button",{attrs:{size:"small"},on:{click:e.addServiceTem}},[e._v("添加服务说明模板")])],1)])],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"活动状态:"}},[a("el-radio-group",{model:{value:e.formValidate.is_show,callback:function(t){e.$set(e.formValidate,"is_show",t)},expression:"formValidate.is_show"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("关闭")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("开启")])],1)],1)],1)],1),e._v(" "),e.formData.length>0&&1===e.currentTab&&e.formValidate.mer_form_id?a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"关联系统表单:"}},[a("span",{staticClass:"explanation"},[e._v("如需改活动商品系统表单,请前往对应普通商品>编辑>修改系统表单即可实现")])])],1),e._v(" "),a("el-col",{attrs:{span:16}},[a("el-form-item",[a("div",{staticStyle:{width:"350px"}},[a("iframe",{ref:"iframe",staticClass:"iframe-box",staticStyle:{"min-height":"300px"},attrs:{id:"iframe",src:e.formUrl,frameborder:"0"}})])])],1)],1):e._e(),e._v(" "),a("el-row",[1===e.formValidate.spec_type&&e.formValidate.attr.length>0?a("el-col",{staticClass:"noForm",attrs:{span:24}},[a("el-form-item",{attrs:{label:"批量设置:"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:e.oneFormBatch,border:"",size:"small"}},[a("el-table-column",{attrs:{align:"center",label:"商品规格","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"acea-row row-between-wrapper",staticStyle:{cursor:"pointer"},on:{click:e.batchAttr}},[a("div",{staticStyle:{width:"45px"}},[e._v(e._s(e.oneFormBatch[0]["attr"]))]),e._v(" "),a("i",{staticClass:"el-icon-arrow-down"})])]}}],null,!1,552951624)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(t){return e.modalPicTap("1","pi")}}},[t.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,772438934)}),e._v(" "),e._l(e.attrValue,(function(t,i){return a("el-table-column",{key:i,attrs:{label:e.formThead[i].title,align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",["商品编号"===e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text",size:"small",disabled:""},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):a("el-input",{staticClass:"priceBox",attrs:{type:"number",size:"small",min:"0",disabled:"秒杀价"!==e.formThead[i].title&&"限量"!==e.formThead[i].title,"controls-position":"right"},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"80"}},[[a("el-button",{staticClass:"submission",attrs:{type:"text",size:"small"},on:{click:e.batchAdd}},[e._v("批量添加")])]],2)],2)],1)],1):e._e()],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===e.formValidate.spec_type?a("el-form-item",{attrs:{label:"规格列表:"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:e.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1","dan","pi")}}},[e.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1357914119)}),e._v(" "),e._l(e.attrValue,(function(t,i){return a("el-table-column",{key:i,attrs:{label:e.formThead[i].title,align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return["限量"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"number",size:"small",min:0},on:{change:function(a){return e.judgInventory(t.row)}},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):"秒杀价"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"number",size:"small",min:0},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):"商品编号"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text",size:"small"},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):a("span",[e._v(e._s(t.row[i]))])]}}],null,!0)})}))],2)],1):e._e()],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[1===e.formValidate.spec_type&&e.formValidate.attr.length>0?a("el-form-item",{attrs:{label:"规格列表:"}},[a("el-table",{ref:"multipleSelection",staticClass:"tabNumWidth",attrs:{size:"small",data:e.ManyAttrValue,"tooltip-effect":"dark","row-key":function(e){return e.id}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{align:"center",type:"selection","reserve-selection":!0,"min-width":"50"}}),e._v(" "),e.manyTabDate?e._l(e.manyTabDate,(function(t,i){return a("el-table-column",{key:i,attrs:{align:"center",label:e.manyTabTit[i].title,"min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"priceBox",class:t.row.select?"selectOn":"",domProps:{textContent:e._s(t.row[i])}})]}}],null,!0)})})):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(a){return e.modalPicTap("1","duo",t.$index)}}},[t.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,3478746955)}),e._v(" "),e._l(e.attrValue,(function(t,i){return a("el-table-column",{key:i,attrs:{label:e.formThead[i].title,align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return["限量"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"number",size:"small",min:0},on:{change:function(a){return e.judgInventory(t.row,t.$index)}},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):"秒杀价"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"number",size:"small",min:0},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):"商品编号"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text",size:"small"},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):a("span",[e._v(e._s(t.row[i]))])]}}],null,!0)})}))],2)],1):e._e()],1)],1),e._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab === 2"}]},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("ueditorFrom",{attrs:{content:e.formValidate.content},model:{value:e.formValidate.content,callback:function(t){e.$set(e.formValidate,"content",t)},expression:"formValidate.content"}})],1)],1)],1),e._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:e.currentTab>0,expression:"currentTab>0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:e.handleSubmitUp}},[e._v("上一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:0==e.currentTab,expression:"currentTab == 0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest1("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.currentTab,expression:"currentTab == 1"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest2("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("提交")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handlePreview("formValidate")}}},[e._v("预览")])],1)],1)],1),e._v(" "),e.attrShow?a("el-dialog",{attrs:{visible:e.attrShow,title:"请选择商品规格",width:"320px"},on:{"update:visible":function(t){e.attrShow=t}}},[e.attrShow?a("attr-list",{attrs:{attrs:e.attrsList},on:{activeData:e.activeAttr,close:e.labelAttr,subAttrs:e.subAttrs}}):e._e()],1):e._e(),e._v(" "),a("goods-list",{ref:"goodsList",attrs:{isSeckill:!0},on:{getProduct:e.getProduct}}),e._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":e.getGuaranteeList}}),e._v(" "),e.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(t){t.stopPropagation(),e.previewVisible=!1}}}),e._v(" "),e.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"product-type":1,"preview-key":e.previewKey}}):e._e()],1):e._e()],1)},r=[],l=a("2909"),s=a("c7eb"),o=(a("c5f6"),a("96cf"),a("1da1")),n=(a("8615"),a("55dd"),a("7f7f"),a("ac6a"),a("b85c")),c=(a("28a5"),a("ef0d")),d=a("7719"),m=a("ae43"),u=a("8c98"),f=a("7acc"),p=a("c4c8"),g=a("83d6"),h=a("bbcc"),_=a("5f87"),v=a("ed08"),b={old_product_id:"",image:"",spike_image:"",slider_image:[],store_name:"",store_info:"",start_day:"",end_day:"",start_time:"",end_time:"",all_pay_count:1,once_pay_count:1,is_open_recommend:1,is_open_state:1,is_show:1,keyword:"",cate_id:"",mer_cate_id:[],unit_name:"",integral:0,sort:0,is_good:0,temp_id:"",guarantee_template_id:"",delivery_way:[],mer_labels:[],delivery_free:0,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},y={price:{title:"秒杀价"},cost:{title:"成本价"},ot_price:{title:"市场价"},old_stock:{title:"库存"},stock:{title:"限量"},bar_code:{title:"商品编号"},weight:{title:"重量KG"},volume:{title:"体积(m³)"}},w=[{name:"店铺推荐",value:"is_good"}],V={name:"SeckillProductAdd",components:{ueditorFrom:c["a"],goodsList:d["a"],guaranteeService:m["a"],previewBox:u["a"],attrList:f["a"]},data:function(){var e=h["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(_["a"])();return{myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:e,imageUrl:e,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},dialogVisible:!1,product_id:"",multipleSelection:[],optionsCate:{value:"store_category_id",label:"cate_name",children:"children",emitPath:!1},roterPre:g["roterPre"],selectRule:"",checkboxGroup:[],recommend:w,tabs:[],fullscreenLoading:!1,props:{emitPath:!1},propsMer:{emitPath:!1,multiple:!0},active:0,OneattrValue:[Object.assign({},b.attrValue[0])],ManyAttrValue:[Object.assign({},b.attrValue[0])],merCateList:[],categoryList:[],shippingList:[],guaranteeList:[],spikeTimeList:[],deliveryList:[],labelList:[],formThead:Object.assign({},y),formValidate:Object.assign({},b),timeVal:"",timeVal2:"",maxStock:"",addNum:0,singleSpecification:{},multipleSpecifications:[],formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},grid2:{lg:10,md:12,sm:24,xs:24},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,manyFormValidate:[],images:[],currentTab:0,isChoice:"",grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,ruleValidate:{store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],activity_date:[{required:!0,message:"请输入秒杀活动日期",trigger:"blur"}],activity_time:[{required:!0,message:"请输入秒杀活动日期",trigger:"blur"}],all_pay_count:[{required:!0,message:"请输入购买次数",trigger:"blur"},{pattern:/^\+?[1-9][0-9]*$/,message:"最小为1"}],once_pay_count:[{required:!0,message:"请输入购买次数",trigger:"blur"},{pattern:/^\+?[1-9][0-9]*$/,message:"最小为1"}],mer_cate_id:[{required:!0,message:"请选择商户分类",trigger:"change",type:"array",min:"1"}],cate_id:[{required:!0,message:"请选择平台分类",trigger:"change"}],keyword:[{required:!0,message:"请输入商品关键字",trigger:"blur"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],store_info:[{required:!0,message:"请输入秒杀活动简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],spike_image:[{required:!0,message:"请选择商品",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},previewVisible:!1,previewKey:"",deliveryType:[],attrs:[],attrsList:[],activeAtter:[],attrShow:!1,formData:[],formUrl:"",baseURL:h["a"].httpUrl||"http://localhost:8080",formList:[]}},computed:{attrValue:function(){var e=Object.assign({},b.attrValue[0]);return delete e.image,e},oneFormBatch:function(){var e=[Object.assign({},b.attrValue[0])];return e[0]["attr"]="全部",delete e[0].bar_code,e}},watch:{"formValidate.attr":{handler:function(e){1===this.formValidate.spec_type&&this.watCh(e)},immediate:!1,deep:!0}},created:function(){this.tempRoute=Object.assign({},this.$route),this.$route.params.id&&1===this.formValidate.spec_type&&this.$watch("formValidate.attr",this.watCh)},mounted:function(){var e=this;this.getCategorySelect(),this.getCategoryList(),this.getShippingList(),this.getGuaranteeList(),this.getSpikeTimeList(),this.$store.dispatch("settings/setEdit",!0),this.getLabelLst(),this.formValidate.slider_image=[],this.$route.params.id?(this.setTagsViewTitle(),this.getInfo(this.$route.params.id)):this.productCon(),this.formValidate.attr.map((function(t){e.$set(t,"inputVisible",!1)}))},methods:{getLabelLst:function(){var e=this;Object(p["A"])().then((function(t){e.labelList=t.data})).catch((function(t){e.$message.error(t.message)}))},productCon:function(){var e=this;Object(p["db"])().then((function(t){e.deliveryType=t.data.delivery_way.map(String);var a=0==e.formValidate.type?"快递配送":"虚拟发货";2==e.deliveryType.length?2==e.formValidate.type?e.deliveryList=[{value:"2",name:a}]:e.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:a}]:1==e.deliveryType.length&&"1"==e.deliveryType[0]&&2!=e.formValidate.type?e.deliveryList=[{value:"1",name:"到店自提"}]:(e.deliveryList=[{value:"2",name:a}],e.formValidate.delivery_way=["2"])})).catch((function(t){e.$message.error(t.message)}))},add:function(){this.$refs.goodsList.dialogVisible=!0},getProduct:function(e){this.formValidate.spike_image=e.src,this.product_id=e.id,console.log(this.product_id)},handleSelectionChange:function(e){this.multipleSelection=e},onchangeTime:function(e){this.timeVal=e,this.formValidate.start_day=e?e[0]:"",this.formValidate.end_day=e?e[1]:""},onchangeTime2:function(e){this.timeVal2=e,this.formValidate.start_time=e?e.split("-")[0]:"",this.formValidate.end_time=e?e.split("-")[1]:""},setTagsViewTitle:function(){var e="编辑商品",t=Object.assign({},this.tempRoute,{title:"".concat(e,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",t)},batchAttr:function(){this.attrShow=!0},activeAttr:function(e){this.attrsList=e},labelAttr:function(){this.attrShow=!1},getAttr:function(){this.oneFormBatch[0].attr="全部";var e=this.attrs;e.map((function(e){e.details=[],e.detail.map((function(t){e.details.push({name:t,select:!1})}))})),this.attrsList=e},doCombination:function(e){var t=e.length-1,a=[],i=[];return r(e,0);function r(e,l){var s,o=Object(n["a"])(e[l]);try{for(o.s();!(s=o.n()).done;){var c=s.value;a[l]=c,l<t?r(e,l+1):i.push(a.join(","));var d=a;a=[];for(var m=0,u=d;m<u.length;m++){var f=u[m];a.push(f)}}}catch(p){o.e(p)}finally{o.f()}return i}},subAttrs:function(e){var t=[];this.attrsList.forEach((function(e,a){var i=[];e.details.forEach((function(e){e.select&&i.push(e.name)})),i.length&&t.push(i)}));var a=[];t.length&&(a=this.doCombination(t)),this.attrShow=!1,this.activeAtter=t,this.oneFormBatch[0].attr=a.length?a.join(";"):"全部";var i=this.ManyAttrValue;i.forEach((function(e){e.select=!1,a.length?a.forEach((function(t){e.sku.split("").length,t.split("").length,e.sku==t&&(e.select=!0)})):e.select=!0})),this.$nextTick((function(){this.$set(this,"ManyAttrValue",i)})),console.log(this.ManyAttrValue)},watCh:function(e){var t=this,a={},i={};this.formValidate.attr.forEach((function(e,t){a["value"+t]={title:e.value},i["value"+t]=""})),this.ManyAttrValue.forEach((function(e,a){var i=Object.values(e.detail).sort().join("/");t.attrInfo[i]&&(t.ManyAttrValue[a]=t.attrInfo[i])})),this.attrInfo={},this.ManyAttrValue.forEach((function(e){t.attrInfo[Object.values(e.detail).sort().join("/")]=e})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a),console.log(this.formThead)},judgInventory:function(e,t){var a=e.stock;"undefined"===typeof t?this.singleSpecification[0]["old_stock"]<a&&(this.$message.warning("限量不能大于库存!"),this.OneattrValue[0]["stock"]=this.singleSpecification[0]["old_stock"]):(console.log(this.multipleSpecifications[t]["old_stock"]),this.multipleSpecifications[t]["old_stock"]<a&&(this.$message.warning("限量不能大于库存!"),this.ManyAttrValue[t]["stock"]=this.multipleSpecifications[t]["old_stock"]))},addTem:function(){var e=this;this.$modalTemplates(0,(function(){e.getShippingList()}))},addServiceTem:function(){this.$refs.serviceGuarantee.add()},getCategorySelect:function(){var e=this;Object(p["u"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.message)}))},getCategoryList:function(){var e=this;Object(p["t"])().then((function(t){e.categoryList=t.data})).catch((function(t){e.$message.error(t.message)}))},getShippingList:function(){var e=this;Object(p["Db"])().then((function(t){e.shippingList=t.data}))},getGuaranteeList:function(){var e=this;Object(p["G"])().then((function(t){e.guaranteeList=t.data}))},getSpikeTimeList:function(){var e=this;Object(p["yb"])().then((function(t){e.spikeTimeList=t.data,e.spikeTimeList.map((function(t){e.$set(t,"name",t.start_time+":00:00 - "+t.end_time+":00:00")}))}))},delAttrTable:function(e){this.ManyAttrValue.splice(e,1)},batchAdd:function(){var e,t=Object(n["a"])(this.ManyAttrValue);try{for(t.s();!(e=t.n()).done;){var a=e.value;a.select&&(""!=this.oneFormBatch[0].attr&&this.$set(a,"attr",this.oneFormBatch[0].attr),""!=this.oneFormBatch[0].image&&this.$set(a,"image",this.oneFormBatch[0].image),null!=this.oneFormBatch[0].price&&""!=this.oneFormBatch[0].price&&this.$set(a,"price",this.oneFormBatch[0].price),null!=this.oneFormBatch[0].stock&&""!=this.oneFormBatch[0].stock&&this.$set(a,"stock",this.oneFormBatch[0].stock))}}catch(i){t.e(i)}finally{t.f()}},addBtn:function(){this.clearAttr(),this.isBtn=!0},offAttrName:function(){this.isBtn=!1},clearAttr:function(){this.formDynamic.attrsName="",this.formDynamic.attrsVal=""},handleRemoveAttr:function(e){this.formValidate.attr.splice(e,1),this.manyFormValidate.splice(e,1)},handleClose:function(e,t){e.splice(t,1)},getInfo:function(e){var t=this;this.fullscreenLoading=!0,Object(p["Ab"])(e).then(function(){var e=Object(o["a"])(Object(s["a"])().mark((function e(a){var i;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data,t.attrs=i.attr||[],i.attrValue.forEach((function(e){e.select=!0})),t.formValidate={type:i.type,old_product_id:i.product_id,image:i.image,spike_image:i.image,slider_image:i.slider_image,store_name:i.store_name,store_info:i.store_info,start_day:i.seckillActive?i.seckillActive.start_day:"",end_day:i.seckillActive?i.seckillActive.end_day:"",start_time:i.seckillActive?i.seckillActive.start_time+":00":"",end_time:i.seckillActive?i.seckillActive.end_time+":00":"",cate_id:i.cate_id,mer_cate_id:i.mer_cate_id||[],mer_form_id:i.mer_form_id,unit_name:i.unit_name,sort:i.sort,is_good:i.is_good,keyword:i.keyword,temp_id:Object(v["c"])(t.shippingList,"shipping_template_id",i.temp_id),guarantee_template_id:Object(v["c"])(t.guaranteeList,"guarantee_template_id",i.guarantee_template_id),is_show:i.is_show,attr:i.attr,extension_type:i.extension_type,content:i.content,spec_type:i.spec_type,is_gift_bag:i.is_gift_bag,all_pay_count:i.seckillActive?i.seckillActive.all_pay_count:"1",once_pay_count:i.seckillActive?i.seckillActive.once_pay_count:"1",delivery_way:i.delivery_way&&i.delivery_way.length?i.delivery_way:t.deliveryType,delivery_free:i.delivery_free?i.delivery_free:0,mer_labels:i.mer_labels&&i.mer_labels.length?i.mer_labels.map(Number):[]},i.mer_form_id&&(t.getFormList(),t.getFormInfo()),0===t.formValidate.spec_type?(t.OneattrValue=i.attrValue,t.singleSpecification=JSON.parse(JSON.stringify(i.attrValue))):(t.multipleSelection=i.attrValue,t.$nextTick((function(){i.attrValue.forEach((function(e){t.$refs.multipleSelection.toggleRowSelection(e,!0)}))})),t.ManyAttrValue=i.attrValue,t.multipleSpecifications=JSON.parse(JSON.stringify(i.attrValue)),t.ManyAttrValue.forEach((function(e){t.attrInfo[Object.values(e.detail).sort().join("/")]=e}))),1===t.formValidate.is_good&&t.checkboxGroup.push("is_good"),t.fullscreenLoading=!1,t.$route.params.id&&i.seckillActive&&(t.timeVal=[i.seckillActive.start_day,i.seckillActive.end_day],t.timeVal2=i.seckillActive.start_time+":00:00-"+i.seckillActive.end_time+":00:00"),t.getAttr(),t.productCon();case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)}))},getFormList:function(){var e=this;Object(p["k"])().then((function(t){e.formList=t.data})).catch((function(t){e.$message.error(t.message)}))},getFormInfo:function(){var e=this;Object(p["j"])(this.formValidate.mer_form_id).then((function(t){e.formData=t.data;var a=1e3*(new Date).getTime(),i="".concat(e.baseURL,"/pages/admin/system_form/index?inner_frame=1&time=").concat(a,"&form_id=").concat(e.formValidate.mer_form_id);e.formUrl=i})).catch((function(t){e.$message.error(t.message)}))},handleRemove:function(e){this.formValidate.slider_image.splice(e,1)},modalPicTap:function(e,t,a){var i=this,r=[];this.$modalUpload((function(l){"1"!==e||t||(i.formValidate.image=l[0],i.OneattrValue[0].image=l[0]),"2"!==e||t||l.map((function(e){r.push(e.attachment_src),i.formValidate.slider_image.push(e),i.formValidate.slider_image.length>10&&(i.formValidate.slider_image.length=10)})),"1"===e&&"dan"===t&&(i.OneattrValue[0].image=l[0]),"1"===e&&"duo"===t&&(i.ManyAttrValue[a].image=l[0]),"1"===e&&"pi"===t&&(i.oneFormBatch[0].image=l[0])}),e)},handleSubmitUp:function(){this.currentTab--<0&&(this.currentTab=0)},handleSubmitNest1:function(e){this.formValidate.spike_image?(this.currentTab++,this.$route.params.id||this.getInfo(this.product_id)):this.$message.warning("请选择商品!")},handleSubmitNest2:function(e){var t=this;1===this.formValidate.spec_type?this.formValidate.attrValue=this.multipleSelection:(this.formValidate.attrValue=this.OneattrValue,this.formValidate.attr=[]),this.$refs[e].validate((function(e){if(e){if(!t.formValidate.store_name||!t.formValidate.cate_id||!t.formValidate.unit_name||!t.formValidate.store_info||!t.formValidate.image||!t.formValidate.slider_image||!t.formValidate.start_day||!t.formValidate.end_day||!t.formValidate.start_time||!t.formValidate.end_time)return void t.$message.warning("请填写完整商品信息!");if(t.formValidate.all_pay_count<t.formValidate.once_pay_count)return void t.$message.warning("日期内购买次数必须大于时间段内购买次数!");if(!t.formValidate.attrValue||0==t.formValidate.attrValue.length)return void t.$message.warning("请选择商品规格!");t.currentTab++}}))},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(a){a?(t.$store.dispatch("settings/setEdit",!1),t.fullscreenLoading=!0,t.loading=!0,t.$route.params.id?Object(p["Cb"])(t.$route.params.id,t.formValidate).then(function(){var a=Object(o["a"])(Object(s["a"])().mark((function a(i){return Object(s["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.fullscreenLoading=!1,t.$message.success(i.message),t.$router.push({path:t.roterPre+"/marketing/seckill/list"}),t.$refs[e].resetFields(),t.formValidate.slider_image=[],t.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.loading=!1,t.$message.error(e.message)})):Object(p["zb"])(t.formValidate).then(function(){var a=Object(o["a"])(Object(s["a"])().mark((function a(i){return Object(s["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.fullscreenLoading=!1,t.$message.success(i.message),t.$router.push({path:t.roterPre+"/marketing/seckill/list"}),t.$refs[e].resetFields(),t.formValidate.slider_image=[],t.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.loading=!1,t.$message.error(e.message)}))):t.formValidate.store_name&&t.formValidate.cate_id&&t.formValidate.unit_name&&t.formValidate.store_info&&t.formValidate.image&&t.formValidate.slider_image||t.$message.warning("请填写完整商品信息!")}))},handlePreview:function(e){var t=this;Object(p["xb"])(this.formValidate).then(function(){var e=Object(o["a"])(Object(s["a"])().mark((function e(a){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.previewVisible=!0,t.previewKey=a.data.preview_key;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))},validate:function(e,t,a){!1===t&&this.$message.warning(a)},handleDragStart:function(e,t){this.dragging=t},handleDragEnd:function(e,t){this.dragging=null},handleDragOver:function(e){e.dataTransfer.dropEffect="move"},handleDragEnter:function(e,t){if(e.dataTransfer.effectAllowed="move",t!==this.dragging){var a=Object(l["a"])(this.formValidate.slider_image),i=a.indexOf(this.dragging),r=a.indexOf(t);a.splice.apply(a,[r,0].concat(Object(l["a"])(a.splice(i,1)))),this.formValidate.slider_image=a}},addCustomDialog:function(e){}}},k=V,x=(a("7e68"),a("2877")),C=Object(x["a"])(k,i,r,!1,null,"b955f8e8",null);t["default"]=C.exports},"6d8f":function(e,t,a){"use strict";a("040d")},7719:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.dialogVisible?a("el-dialog",{attrs:{title:"商品信息",visible:e.dialogVisible,width:"900px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"divBox"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small",inline:"","label-width":"85px"}},[a("el-form-item",{attrs:{label:"商品分类:"}},[a("el-select",{staticClass:"dialogWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.getList()}},model:{value:e.tableFrom.mer_cate_id,callback:function(t){e.$set(e.tableFrom,"mer_cate_id",t)},expression:"tableFrom.mer_cate_id"}},e._l(e.merCateList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"商品搜索:"}},[a("el-input",{staticClass:"dialogWidth",attrs:{placeholder:"请输入商品名称,关键字,产品编号",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(t)}},model:{value:e.tableFrom.keyword,callback:function(t){e.$set(e.tableFrom,"keyword",t)},expression:"tableFrom.keyword"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.getList}},[e._v("查询")])],1)],1)],1),e._v(" "),e.resellShow?a("div",{staticClass:"mb10"},[e.resellShow?a("el-alert",{attrs:{title:"注:添加为预售商品后,原普通商品会下架;如该商品已开启其它营销活动,请勿选择!",type:"warning","show-icon":""}}):e._e()],1):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.tableData.data,size:"small"}},[a("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:t.row.product_id},nativeOn:{change:function(a){return e.getTemplateRow(t.row)}},model:{value:e.templateRadio,callback:function(t){e.templateRadio=t},expression:"templateRadio"}},[e._v(" ")])]}}],null,!1,3465899556)}),e._v(" "),a("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1)]}}],null,!1,2331550732)}),e._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"230"}}),e._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"库存","min-width":"70"}})],1),e._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)]):e._e()},r=[],l=a("c4c8"),s=a("83d6"),o={name:"GoodsList",props:{resellShow:{type:Boolean,default:!1},isSeckill:{type:Boolean,default:!1}},data:function(){return{dialogVisible:!1,templateRadio:0,merCateList:[],roterPre:s["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:6,cate_id:"",store_name:"",keyword:"",is_gift_bag:0,status:1,is_ficti:this.isSeckill?"":0,is_action:this.isSeckill?"":1},multipleSelection:{},checked:[]}},mounted:function(){var e=this;this.getList(),this.getCategorySelect(),window.addEventListener("unload",(function(t){return e.unloadHandler(t)}))},methods:{getTemplateRow:function(e){this.multipleSelection={src:e.image,id:e.product_id},this.dialogVisible=!1,this.$emit("getProduct",this.multipleSelection)},getCategorySelect:function(){var e=this;Object(l["u"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.message)}))},getList:function(){var e=this;this.listLoading=!0,Object(l["B"])(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(e){this.tableFrom.page=e,this.getList()},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList()}}},n=o,c=(a("6d8f"),a("2877")),d=Object(c["a"])(n,i,r,!1,null,"66c2b532",null);t["a"]=d.exports},"7e68":function(e,t,a){"use strict";a("a7d7")},8615:function(e,t,a){var i=a("5ca1"),r=a("504c")(!1);i(i.S,"Object",{values:function(e){return r(e)}})},a7d7:function(e,t,a){}}]);