You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
22 KiB
1 lines
22 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9afa8a36"],{2834:function(t,e,a){"use strict";a("bb28")},"504c":function(t,e,a){var s=a("9e1e"),l=a("0d58"),i=a("6821"),r=a("52a7").f;t.exports=function(t){return function(e){var a,n=i(e),o=l(n),c=o.length,u=0,d=[];while(c>u)a=o[u++],s&&!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 s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[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:"container"},[a("el-form",{attrs:{size:"small","label-width":"120px",inline:!0}},[a("el-form-item",{attrs:{label:"秒杀状态:"}},[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:"活动商品状态:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",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:"标签:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",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:"关键字搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称,关键字,产品编号"},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"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),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"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","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",[t._v(t._s(e.row.storeCategory?e.row.storeCategory.cate_name:"-"))])]),t._v(" "),a("el-form-item",{attrs:{label:"商品分类:"}},[e.row.merCateId.length?t._l(e.row.merCateId,(function(e,s){return a("span",{key:s,staticClass:"mr10"},[t._v(t._s(e.category.cate_name))])})):a("span",[t._v("-")])],2),t._v(" "),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:{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,"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:"stock",label:"标签","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.mer_labels,(function(e,s){return a("div",{key:s,staticClass:"label-list"},[t._v(t._s(e.name))])}))}}])}),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":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("seckillReviewStatusFilter")(e.row.status)))]),t._v(" "),-1==e.row.status||-2==e.row.status?a("span",{staticStyle:{"font-size":"12px"}},[a("br"),t._v("\n 原因:"+t._s(e.row.refusal)+"\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",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",{staticClass:"mr10",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:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, 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:"700px"},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 sp"},[a("label",{staticClass:"name"},[t._v("商品ID:")]),t._v(t._s(t.formValidate.product_id))]),t._v(" "),a("div",{staticClass:"list sp"},[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",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[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:"260","tooltip-effect":"dark","row-key":function(t){return t.id}}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,s){return a("el-table-column",{key:s,attrs:{align:"center",label:t.manyTabTit[s].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[s])}})]}}],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"},[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:"800px","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",{staticClass:"selWidth",attrs:{clearable:"",multiple:"",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}})})),1)],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("labelForm")}}},[t._v("提交")])],1)],1):t._e()],1)},l=[],i=(a("7f7f"),a("c80c")),r=(a("96cf"),a("3b8d")),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,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:{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["v"])().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["Db"])(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["r"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategoryList:function(){var t=this;Object(n["q"])().then((function(e){t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getLstFilterApi:function(){var t=this;Object(n["Fb"])().then((function(e){t.headeNum=e.data})).catch((function(e){t.$message.error(e.message)}))},watCh:function(t){var e=this,a={},s={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},s["value"+e]=""})),this.ManyAttrValue.forEach((function(t,a){var s=Object.values(t.detail).sort().join("/");e.attrInfo[s]&&(e.ManyAttrValue[a]=e.attrInfo[s])})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){e.attrInfo[Object.values(t.detail).sort().join("/")]=t})),this.manyTabTit=a,this.manyTabDate=s},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 s;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loading=!1,s=a.data,e.formValidate={product_id:s.product_id,image:s.image,slider_image:s.slider_image,store_name:s.store_name,store_info:s.store_info,start_time:s.seckillActive&&s.seckillActive.start_time?s.seckillActive.start_time+":00:00":"",end_time:s.seckillActive&&s.seckillActive.end_time?s.seckillActive.end_time+":00:00":"",start_day:s.seckillActive&&s.seckillActive.start_day?s.seckillActive.start_day.slice(0,10):"",end_day:s.seckillActive&&s.seckillActive.end_day?s.seckillActive.end_day.slice(0,10):"",brand_id:s.brand_id,cate_id:s.cate_id?s.cate_id:"",mer_cate_id:s.mer_cate_id,unit_name:s.unit_name,sort:s.sort,is_good:s.is_good,temp_id:s.temp_id,is_show:s.is_show,attr:s.attr,extension_type:s.extension_type,content:s.content,spec_type:s.spec_type,is_gift_bag:s.is_gift_bag,create_time:s.create_time,product_status:s.product_status,status:s.status,all_pay_count:s.seckillActive?s.seckillActive.all_pay_count:"",once_pay_count:s.seckillActive?s.seckillActive.once_pay_count:"",stock:s.stock,stock_count:s.stock_count,seckill_status:s.seckill_status,us_status:s.us_status},0===e.formValidate.spec_type?e.OneattrValue=s.attrValue:(e.ManyAttrValue=s.attrValue,e.watCh(e.formValidate.attr)),console.log(e.ManyAttrValue),e.fullscreenLoading=!1,e.formValidate.seckill_date=[s.start_time,s.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){if(this.dialogLabel=!0,this.product_id=t.product_id,t.mer_labels&&t.mer_labels.length){var e=t.mer_labels.map((function(t){return t.product_label_id}));this.labelForm={mer_labels:e}}else this.labelForm={mer_labels:[]}},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&Object(n["Sb"])(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["ub"])(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["Bb"])(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["Cb"])(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["Eb"])(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("2834"),a("2877")),v=Object(b["a"])(m,s,l,!1,null,"57654de8",null);e["default"]=v.exports},8615:function(t,e,a){var s=a("5ca1"),l=a("504c")(!1);s(s.S,"Object",{values:function(t){return l(t)}})},bb28:function(t,e,a){}}]); |