zx/public/mer/js/chunk-3aab591d.4dac6649.js

1 line
46 KiB
JavaScript
Raw Permalink 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-3aab591d"],{"504c":function(t,a,e){var s=e("9e1e"),i=e("0d58"),l=e("6821"),r=e("52a7").f;t.exports=function(t){return function(a){var e,o=l(a),c=i(o),n=c.length,u=0,d=[];while(n>u)e=c[u++],s&&!r.call(o,e)||d.push(t?[e,o[e]]:o[e]);return d}}},"5cda":function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"divBox"},[e("div",{staticClass:"selCard"},[e("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small","label-width":"85px",inline:!0}},[e("el-form-item",{attrs:{label:"商品名称:",prop:"keyword"}},[e("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称,关键字,产品编号",clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(a){t.$set(t.tableFrom,"keyword",a)},expression:"tableFrom.keyword"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"活动名称:",prop:"active_name"}},[e("el-input",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请输入活动名称"},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.active_name,callback:function(a){t.$set(t.tableFrom,"active_name",a)},expression:"tableFrom.active_name"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"商品状态:",prop:"us_status"}},[e("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(a){return t.getList(1)}},model:{value:t.tableFrom.us_status,callback:function(a){t.$set(t.tableFrom,"us_status",a)},expression:"tableFrom.us_status"}},t._l(t.productStatusList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),e("el-form-item",{attrs:{label:"活动状态:",prop:"active_status"}},[e("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(a){return t.getList(1)}},model:{value:t.tableFrom.active_status,callback:function(a){t.$set(t.tableFrom,"active_status",a)},expression:"tableFrom.active_status"}},t._l(t.seckillStatusList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),e("el-form-item",[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),e("el-button",{attrs:{size:"small"},on:{click:function(a){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),e("el-card",{staticClass:"mt14"},[e("el-tabs",{on:{"tab-click":function(a){t.getList(1),t.getLstFilterApi()}},model:{value:t.tableFrom.type,callback:function(a){t.$set(t.tableFrom,"type",a)},expression:"tableFrom.type"}},t._l(t.headeNum,(function(t,a){return e("el-tab-pane",{key:a,attrs:{name:t.type.toString(),label:t.name+"("+t.count+")"}})})),1),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"mt14",attrs:{data:t.tableData.data,size:"small","row-class-name":t.tableRowClassName},on:{rowclick:function(a){return a.stopPropagation(),t.closeEdit(a)}}},[e("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-form",{staticClass:"demo-table-expand demo-table-expand1",attrs:{"label-position":"left",inline:""}},[e("el-form-item",{attrs:{label:"品牌:"}},[e("span",{staticClass:"mr10"},[t._v(t._s(a.row.brand?a.row.brand.brand_name:"其他"))])]),t._v(" "),e("el-form-item",{attrs:{label:"市场价格:"}},[e("span",[t._v(t._s(t._f("filterEmpty")(a.row.ot_price)))])]),t._v(" "),e("el-form-item",{attrs:{label:"成本价:"}},[e("span",[t._v(t._s(t._f("filterEmpty")(a.row.cost)))])]),t._v(" "),e("el-form-item",{attrs:{label:"收藏:"}},[e("span",[t._v(t._s(t._f("filterEmpty")(a.row.care_count)))])])],1)]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),t._v(" "),e("el-table-column",{attrs:{label:"商品图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[e("div",{staticClass:"demo-image__preview"},[e("el-image",{attrs:{src:t.row.image,"preview-src-list":[t.row.image]}})],1)]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"商品名称","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-tooltip",{attrs:{placement:"top","open-delay":600}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(a.row.store_name))]),t._v(" "),e("span",{staticClass:"line2"},[t._v(t._s(a.row.store_name))])])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"seckillActive.name",label:"活动名称","min-width":"120"}}),t._v(" "),e("el-table-column",{attrs:{prop:"sales",label:"已售数量","min-width":"90"}}),t._v(" "),e("el-table-column",{attrs:{prop:"stock",label:"限量剩余","min-width":"90"}}),t._v(" "),e("el-table-column",{attrs:{prop:"price",label:"秒杀价","min-width":"90"}}),t._v(" "),e("el-table-column",{attrs:{prop:"sort",align:"center",label:"排序","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[a.row.index===t.tabClickIndex?e("span",[e("el-input",{attrs:{type:"number",maxlength:"300",size:"mini",autofocus:""},on:{blur:function(e){return t.inputBlur(a)}},model:{value:a.row["sort"],callback:function(e){t.$set(a.row,"sort",t._n(e))},expression:"scope.row['sort']"}})],1):e("span",{on:{dblclick:function(e){return e.stopPropagation(),t.tabClick(a.row)}}},[t._v(t._s(a.row["sort"]))])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"商品状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(t._f("productStatusFilter")(a.row.us_status)))])]}}])}),t._v(" "),7==t.tableFrom.type?e("el-table-column",{key:"1",attrs:{label:"审核状态","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v("审核未通过")]),t._v(" "),e("span",{staticStyle:{display:"block","font-size":"12px",color:"red"}},[t._v("\n 原因:"+t._s(a.row.refusal)+"\n ")])]}}],null,!1,3473615490)}):t._e(),t._v(" "),e("el-table-column",{attrs:{prop:"seckillActive.status_text",label:"活动状态","min-width":"90"}}),t._v(" "),e("el-table-column",{attrs:{prop:"status",label:"上/下架","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,width:55,"active-text":"上架","inactive-text":"下架"},on:{change:function(e){return t.onchangeIsShow(a.row)}},model:{value:a.row.is_show,callback:function(e){t.$set(a.row,"is_show",e)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),e("el-table-column",{key:"8",attrs:{label:"操作","min-width":5==t.tableFrom.type?"120":"160",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.goDetail(a.row.product_id)}}},[t._v("详情")]),t._v(" "),5!=t.tableFrom.type?e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.handlePreview(a.row.product_id)}}},[t._v("预览")]):t._e(),t._v(" "),e("el-dropdown",{staticClass:"ml10"},[e("span",{staticClass:"el-dropdown-link"},[t._v("\n 更多"),e("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[5!=t.tableFrom.type?e("el-dropdown-item",{nativeOn:{click:function(e){return t.onEdit(a.row.product_id)}}},[t._v("编辑")]):t._e(),t._v(" "),5!=t.tableFrom.type?e("el-dropdown-item",{nativeOn:{click:function(e){return t.onEditLabel(a.row)}}},[t._v("编辑标签")]):t._e(),t._v(" "),2==t.tableFrom.type||5==t.tableFrom.type||7==t.tableFrom.type?e("el-dropdown-item",{nativeOn:{click:function(e){return t.handleDelete(a.row.product_id)}}},[t._v(t._s(2==t.tableFrom.type||7==t.tableFrom.type?"加入回收站":"删除"))]):t._e(),t._v(" "),5==t.tableFrom.type?e("el-dropdown-item",{nativeOn:{click:function(e){return t.handleRestore(a.row.product_id)}}},[t._v("恢复商品")]):t._e()],1)],1)]}}])})],1),t._v(" "),e("div",{staticClass:"block"},[e("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?e("el-dialog",{attrs:{title:"秒杀商品详情",center:"",visible:t.dialogVisible,width:"660px"},on:{"update:visible":function(a){t.dialogVisible=a}}},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-top":"5px"}},[e("div",{staticClass:"box-container"},[e("div",{staticClass:"title"},[t._v("基本信息")]),t._v(" "),e("div",{staticClass:"acea-row"},[e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v("商品ID")]),t._v(t._s(t.formValidate.product_id))]),t._v(" "),e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v("商品名称:")]),e("span",[t._v(t._s(t.formValidate.store_name))])]),t._v(" "),e("div",{staticClass:"list sp100 image"},[e("label",{staticClass:"name"},[t._v("商品图:")]),t._v(" "),e("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.formValidate.image}})]),t._v(" "),e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v("商品信息:")]),t._v(" "),0===t.formValidate.spec_type?e("div",[e("el-table",{attrs:{data:t.OneattrValue,size:"small"}},[e("el-table-column",{attrs:{align:"center",label:"秒杀价格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row["price"]))])]}}],null,!1,1703924291)}),t._v(" "),e("el-table-column",{attrs:{align:"center",label:"已售商品数量","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row["sales"]))])]}}],null,!1,703426790)})],1)],1):t._e(),t._v(" "),1===t.formValidate.spec_type?e("div",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[e("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(a,s){return e("el-table-column",{key:s,attrs:{align:"center",label:t.manyTabTit[s].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",{staticClass:"priceBox",domProps:{textContent:t._s(a.row[s])}})]}}],null,!0)})})):t._e(),t._v(" "),e("el-table-column",{attrs:{align:"center",label:"秒杀价格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row["price"]))])]}}],null,!1,1703924291)}),t._v(" "),e("el-table-column",{attrs:{align:"center",label:"已售商品数量","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row["sales"]))])]}}],null,!1,703426790)})],2)],1):t._e()])]),t._v(" "),e("div",{staticClass:"title",staticStyle:{"margin-top":"20px"}},[t._v("秒杀商品活动信息")]),t._v(" "),e("div",{staticClass:"acea-row"},[t.formValidate.mer_labels_data&&t.formValidate.mer_labels_data.length?e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v("商户标签:")]),t._v(" "),t._l(t.formValidate.mer_labels_data,(function(a,s){return e("span",{key:s,staticClass:"value-item"},[t._v(" "+t._s(a)+" ")])}))],2):t._e(),t._v(" "),e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v("秒杀简介:")]),t._v(t._s(t.formValidate.store_info))]),t._v(" "),e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v("秒杀活动日期:")]),t._v(t._s(t.formValidate.start_day+"-"+t.formValidate.end_day))]),t._v(" "),e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v("秒杀活动时间:")]),t._v(t._s(t.formValidate.start_time+"-"+t.formValidate.end_time))]),t._v(" "),e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v("活动日期内最多购买次数:")]),t._v(t._s(t.formValidate.all_pay_count))]),t._v(" "),e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v("秒杀时间段内最多购买次数:")]),t._v(t._s(t.formValidate.once_pay_count))]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("审核状态:")]),t._v(t._s(1===t.formValidate.status?"审核通过":0===t.formValidate.status?"未审核":"审核未通过"))]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("商品状态:")]),t._v(t._s(1===t.formValidate.us_status?"上架显示":-1===t.formValidate.us_status?"平台关闭":"下架"))]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("秒杀活动状态:")]),t._v(t._s(0===t.formValidate.seckill_status?"未开始":1===t.formValidate.seckill_status?"正在进行":"已结束"))]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("创建时间:")]),t._v(t._s(t.formValidate.create_time))])])])])]):t._e(),t._v(" "),t.previewVisible?e("div",[e("div",{staticClass:"bg",on:{click:function(a){a.stopPropagation(),t.previewVisible=!1}}}),t._v(" "),t.previewVisible?e("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?e("el-dialog",{attrs:{title:"选择标签",visible:t.dialogLabel,width:"470px","before-close":t.handleClose},on:{"update:visible":function(a){t.dialogLabel=a}}},[e("el-form",{ref:"labelForm",attrs:{model:t.labelForm},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",[e("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",multiple:"",size:"small",placeholder:"请选择"},model:{value:t.labelForm.mer_labels,callback:function(a){t.$set(t.labelForm,"mer_labels",a)},expression:"labelForm.mer_labels"}},t._l(t.merProductLabelList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id.toString()}})})),1)],1)],1),t._v(" "),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{size:"small"},on:{click:function(a){t.dialogLabel=!1}}},[t._v("取消")]),t._v(" "),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return t.submitForm("labelForm")}}},[t._v("提交")])],1)],1):t._e(),t._v(" "),e("pro-detail",{ref:"proDetail",attrs:{productId:t.product_id,drawer:t.drawer},on:{closeDrawer:t.closeDrawer,changeDrawer:t.changeDrawer,getList:t.getList}})],1)},i=[],l=(e("7f7f"),e("8615"),e("ac6a"),e("55dd"),e("db72")),r=e("b7be"),o=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("el-drawer",{attrs:{"with-header":!1,visible:t.drawer,size:"1100px",direction:t.direction,"before-close":t.handleClose},on:{"update:visible":function(a){t.drawer=a}}},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[e("div",{staticClass:"head"},[e("div",{staticClass:"full"},[e("img",{staticClass:"order_icon",attrs:{src:t.orderImg,alt:""}}),t._v(" "),e("div",{staticClass:"text"},[e("div",{staticClass:"title"},[t._v(t._s(t.productData.store_name))]),t._v(" "),e("div",[e("span",{staticClass:"mr20"},[t._v("商品ID"+t._s(t.productData.product_id))])])]),t._v(" "),e("div",[t.isEdit?e("el-button",{attrs:{size:"small"},on:{click:t.cancelEdit}},[t._v("取消")]):t._e(),t._v(" "),t.isEdit||0!=t.productData.status&&1!=t.productData.status?t._e():e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.handleEdit}},[t._v("编辑")]),t._v(" "),t.isEdit?e("el-button",{attrs:{type:"success",size:"small"},on:{click:t.saveInfo}},[t._v("完成")]):t._e()],1)]),t._v(" "),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("类型")]),t._v(" "),e("div",[t._v(t._s(0==t.productData.type?"普通商品":1==t.productData.type?"虚拟商品":"卡密商品"))])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("状态")]),t._v(" "),e("div",[t._v(t._s(1==t.productData.status?"上架显示":"下架"))])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("销量")]),t._v(" "),e("div",[t._v(t._s(t.productData.sales))])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("库存")]),t._v(" "),e("div",[t._v(t._s(t.productData.stock))])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("创建时间")]),t._v(" "),e("div",[t._v(t._s(t.productData.create_time))])])])]),t._v(" "),e("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":t.tabClick},model:{value:t.activeName,callback:function(a){t.activeName=a},expression:"activeName"}},[e("el-tab-pane",{attrs:{label:"基本信息",name:"basic"}},[e("div",{staticClass:"section"},[e("ul",{staticClass:"list"},[e("li",{staticClass:"item item100"},[e("div",{staticClass:"item-title"},[t._v("封面图:")]),t._v(" "),e("img",{staticStyle:{width:"40px",height:"40px","margin-right":"12px"},attrs:{src:t.productData.image}})]),t._v(" "),e("li",{staticClass:"item item100"},[e("div",{staticClass:"item-title"},[t._v("轮播图:")]),t._v(" "),t._l(t.productData.slider_image,(function(t,a){return e("img",{key:a,staticStyle:{width:"40px",height:"40px","margin-right":"12px"},attrs:{src:t}})}))],2)]),t._v(" "),e("li",{staticClass:"item item100"},[e("div",{staticClass:"item-title"},[t._v("商品简介:")]),t._v(" "),e("div",{staticClass:"value"},[t._v(t._s(t.productData.store_info))])]),t._v(" "),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("平台分类:")]),t._v(" "),e("div",{staticClass:"value"},[t._v(t._s(t.productData.storeCategory&&t.productData.storeCategory.cate_name||"-"))])]),t._v(" "),t.productData.merCateId&&t.productData.merCateId.length>0?e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("商户分类:")]),t._v(" "),e("div",{staticClass:"value"},t._l(t.productData.merCateId,(function(a,s){return e("span",{key:s},[t._v(t._s(a.category&&a.category.cate_name)+"    ")])})),0)]):t._e(),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("商品标签:")]),t._v(" "),t.productData.mer_labels&&t.productData.mer_labels_data.length||t.productData.sys_labels_data&&t.productData.sys_labels_data.length?e("div",{staticClass:"value"},[t.productData.mer_labels_data&&t.productData.mer_labels_data.length?t._l(t.productData.mer_labels_data,(function(a,s){return e("span",{key:s,staticClass:"value-item"},[t._v(" "+t._s(a)+" ")])})):t._e(),t._v(" "),t.productData.sys_labels_data&&t.productData.sys_labels_data.length?t._l(t.productData.sys_labels_data,(function(a,s){return e("span",{key:s,staticClass:"value-item"},[t._v(" "+t._s(a)+" ")])})):t._e()],2):e("div",{staticClass:"value"},[e("span",[t._v("-")])])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("品牌选择:")]),t._v(" "),e("div",{staticClass:"value"},[t._v(t._s(t.productData.brand&&t.productData.brand.brand_name||"其它"))])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("单位:")]),t._v(" "),e("div",{staticClass:"value"},[t._v(t._s(t.productData.unit_name))])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("关键字:")]),t._v(" "),e("div",{staticClass:"value"},[t._v(t._s(t.productData.keyword||"-"))])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("配送方式:")]),t._v(" "),0==t.productData.type?[2==t.productData.delivery_way.length?e("div",{staticClass:"value"},[t._v("快递/到店自提")]):1==t.productData.delivery_way.length?e("div",[t._v(t._s(1==t.productData.delivery_way[0]?"到店自提":"快递"))]):t._e()]:[1==t.productData.type?e("div",{staticClass:"value"},[t._v("虚拟发货")]):2==t.productData.type?e("div",{staticClass:"value"},[t._v("卡密发货")]):t._e()]],2)]),t._v(" "),t.productData.video_link?e("ul",{staticClass:"list"},[e("li",{staticClass:"item item100"},[e("div",{staticClass:"item-title"},[t._v("主图视频:")]),t._v(" "),e("video",{staticStyle:{width:"300px",height:"150px","border-radius":"10px"},attrs:{src:t.productData.video_link,controls:"controls"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")])])]):t._e()])]),t._v(" "),e("el-tab-pane",{attrs:{label:"活动与规格",name:"goods"}},[e("div",{staticClass:"section"},[e("div",{staticClass:"title mt14"},[t._v("参与活动信息:")]),t._v(" "),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("活动名称:")]),t._v(" "),e("div",{staticClass:"value"},[t._v(t._s(t.productData.seckillActive&&t.productData.seckillActive.name||"-"))])]),t._v(" "),t.mer_svip_status?e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("活动状态:")]),t._v(" "),e("div",{staticClass:"value"},[t._v(t._s(t.productData.seckillActive&&t.productData.seckillActive.status_text||"-"))])]):t._e(),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("规格:")]),t._v(" "),e("div",{staticClass:"value"},[t._v(t._s(1==t.productData.spec_type?"多规格":"单规格"))])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("活动日期:")]),t._v(" "),t.productData.seckillActive?e("div",{staticClass:"value mt1-5"},[t._v(t._s(t.productData.seckillActive.start_day+" - "+t.productData.seckillActive.end_day))]):t._e()]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("审核状态:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("seckillProductStatus")(t.productData.status))+"\n "),t.productData.refusal?e("span",[t._v("(未通过原因:"+t._s(t.productData.refusal)+")")]):t._e()])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("单次限购:")]),t._v(" "),t.productData.seckillActive&&t.productData.seckillActive.once_pay_count?e("div",{staticClass:"value"},[t._v(t._s(t.productData.seckillActive.once_pay_count+"("+t.productData.unit_name+")"))]):e("div",{staticClass:"value"},[t._v("不限购")])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("活动场次:")]),t._v(" "),t.productData.seckillActive?e("div",{staticClass:"value"},t._l(t.productData.seckillActive.seckill_time_text_arr,(function(a,s){return e("div",{key:s},[t._v(t._s(a))])})),0):e("div",{staticClass:"value"},[t._v("-")])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("活动限购:")]),t._v(" "),t.productData.seckillActive&&t.productData.seckillActive.all_pay_count?e("div",{staticClass:"value"},[t._v(t._s(t.productData.seckillActive.all_pay_count+"("+t.productData.unit_name+")"))]):e("div",{staticClass:"value"},[t._v("不限购")])])])]),t._v(" "),e("div",{staticClass:"section",staticStyle:{"margin-top":"50px"}},[t.isEdit?e("div",[e("span",{staticClass:"title"},[t._v("批量设置:")]),t._v(" "),e("el-table",{staticClass:"disabledTable mt14",attrs:{data:t.batchData,size:"small",border:"","highlight-current-row":""}},[e("el-table-column",{attrs:{prop:"spec",align:"center",label:"规格",width:"80"}}),t._v(" "),e("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"}},[[e("div",{staticClass:"demo-image__preview"},[e("el-image",{staticStyle:{width:"60px",height:"60px"},attrs:{src:t.ManyAttrValue[0]["image"]}})],1)]],2),t._v(" "),e("el-table-column",{attrs:{align:"center",label:"成本价","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-input",{staticClass:"priceBox",attrs:{size:"small",disabled:""},model:{value:a.row.cost,callback:function(e){t.$set(a.row,"cost",e)},expression:"scope.row.cost"}})]}}],null,!1,1964778828)}),t._v(" "),e("el-table-column",{attrs:{align:"center",label:"售价","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-input",{staticClass:"priceBox",attrs:{size:"small",disabled:""},model:{value:a.row.cost,callback:function(e){t.$set(a.row,"cost",e)},expression:"scope.row.cost"}})]}}],null,!1,1964778828)}),t._v(" "),e("el-table-column",{attrs:{align:"center",label:"库存","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-input",{staticClass:"priceBox",attrs:{size:"small",disabled:""},model:{value:a.row.cost,callback:function(e){t.$set(a.row,"cost",e)},expression:"scope.row.cost"}})]}}],null,!1,1964778828)}),t._v(" "),e("el-table-column",{attrs:{align:"center",label:"限量","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-input-number",{staticClass:"priceBox",attrs:{min:0,size:"small"},model:{value:a.row.stock,callback:function(e){t.$set(a.row,"stock",e)},expression:"scope.row.stock"}})]}}],null,!1,1802353667)}),t._v(" "),e("el-table-column",{attrs:{align:"center",label:"秒杀价","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-input-number",{staticClass:"priceBox",attrs:{min:0,size:"small"},model:{value:a.row.price,callback:function(e){t.$set(a.row,"price",e)},expression:"scope.row.price"}})]}}],null,!1,2092668238)}),t._v(" "),e("el-table-column",{attrs:{label:"操作",width:"100"}},[[e("el-button",{staticClass:"submission",attrs:{type:"text",size:"small"},on:{click:t.batchAdd}},[t._v("批量设置")])]],2)],1)],1):t._e(),t._v(" "),e("div",{staticClass:"mt14"},[e("div",{staticClass:"title"},[t._v("规格列表:")]),t._v(" "),0===t.productData.spec_type?[e("el-table",{staticClass:"tabNumWidth mt14",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[e("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[e("div",{staticClass:"demo-image__preview"},[e("el-image",{staticStyle:{width:"60px",height:"60px"},attrs:{src:t.row.image}})],1)]}}],null,!1,323865937)}),t._v(" "),t._l(t.attrValue,(function(a,s){return e("el-table-column",{key:s,attrs:{label:t.formThead[s].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(a){return[!t.isEdit||t.isEdit&&"限量"!=t.formThead[s].title&&"秒杀价"!=t.formThead[s].title?e("span",{staticClass:"priceBox",domProps:{textContent:t._s(a.row[s])}}):["限量"==t.formThead[s].title?e("el-input",{staticClass:"priceBox",attrs:{type:"number",size:"small",min:0,max:a.row["old_stock"]},model:{value:a.row[s],callback:function(e){t.$set(a.row,s,e)},expression:"scope.row[iii]"}}):"秒杀价"==t.formThead[s].title?e("el-input",{staticClass:"priceBox",attrs:{type:"number",size:"small",min:0},model:{value:a.row[s],callback:function(e){t.$set(a.row,s,e)},expression:"scope.row[iii]"}}):t._e()]]}}],null,!0)})}))],2)]:t._e(),t._v(" "),1===t.productData.spec_type?[e("el-table",{staticClass:"tabNumWidth mt14",attrs:{data:t.ManyAttrValue,border:"",height:1==t.ManyAttrValue.length?"128":t.ManyAttrValue.length>2&&t.ManyAttrValue.length<5?"300":t.ManyAttrValue.length>=5?"400":"200",size:"mini"}},[t.manyTabDate?t._l(t.manyTabDate,(function(a,s){return e("el-table-column",{key:s,attrs:{align:"center",label:t.manyTabTit[s].title,"min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",{staticClass:"priceBox",domProps:{textContent:t._s(a.row[s])}})]}}],null,!0)})})):t._e(),t._v(" "),e("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[e("div",{staticClass:"upLoadPicBox"},[e("div",{staticClass:"pictrue tabPic"},[e("img",{attrs:{src:t.row.image}})])])]}}],null,!1,651288578)}),t._v(" "),t._l(t.attrValue,(function(a,s){return e("el-table-column",{key:s,attrs:{label:t.formThead[s].title,align:"center","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[!t.isEdit||t.isEdit&&"限量"!=t.formThead[s].title&&"秒杀价"!=t.formThead[s].title?e("span",{staticClass:"priceBox",domProps:{textContent:t._s(a.row[s])}}):["限量"==t.formThead[s].title?e("el-input",{staticClass:"priceBox",attrs:{type:"number",size:"small",min:0,max:a.row["old_stock"]},model:{value:a.row[s],callback:function(e){t.$set(a.row,s,e)},expression:"scope.row[iii]"}}):"秒杀价"==t.formThead[s].title?e("el-input",{staticClass:"priceBox",attrs:{type:"number",size:"small",min:0},model:{value:a.row[s],callback:function(e){t.$set(a.row,s,e)},expression:"scope.row[iii]"}}):t._e()]]}}],null,!0)})}))],2)]:t._e()],2)])]),t._v(" "),e("el-tab-pane",{attrs:{label:"商品详情",name:"detail"}},[e("div",{staticClass:"section"},[e("div",{staticClass:"contentPic",domProps:{innerHTML:t._s(t.productData.content)}})])]),t._v(" "),e("el-tab-pane",{attrs:{label:"营销信息",name:"marketing"}},[e("div",{staticClass:"section"},[e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("店铺推荐:")]),t._v(" "),e("div",{staticClass:"value"},[t._v(t._s(t.productData.is_good?"是":"否"))])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("平台推荐:")]),t._v(" "),t.productData.is_benefit||t.productData.is_new||t.productData.is_best||t.productData.is_hot?e("div",{staticClass:"value"},[t.productData.is_benefit?e("span",{staticClass:"value-item"},[t._v("促销单品")]):t._e(),t._v(" "),t.productData.is_new?e("span",{staticClass:"value-item"},[t._v("首发新品")]):t._e(),t._v(" "),t.productData.is_best?e("span",{staticClass:"value-item"},[t._v("精品推荐")]):t._e(),t._v(" "),t.productData.is_hot?e("span",{staticClass:"value-item"},[t._v("热门榜单")]):t._e()]):e("div",{staticClass:"value-item"},[t._v("无")])]),t._v(" "),t.productData.star?e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("平台推荐星级:")]),t._v(" "),e("div",{staticClass:"value"},[e("el-rate",{attrs:{disabled:"",colors:t.colors},model:{value:t.productData.star,callback:function(a){t.$set(t.productData,"star",a)},expression:"productData.star"}})],1)]):t._e(),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("收藏人数:")]),t._v(" "),e("div",{staticClass:"value"},[e("span",[t._v(" "+t._s(t.productData.care_count)+"人")])])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("已售数量:")]),t._v(" "),e("div",{staticClass:"value"},[e("span",[t._v(" "+t._s(t.productData.ficti)+" (指手动添加数量)")])])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("实际销量 ")]),t._v(" "),e("div",{staticClass:"value"},[e("span",[t._v(" "+t._s(t.productData.sales-t.productData.ficti)+" (指实际售出数量)")])])])])])]),t._v(" "),e("el-tab-pane",{attrs:{label:"其它信息",name:"others"}},[e("div",{staticClass:"section"},[e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("支持退款:")]),t._v(" "),e("div",{staticClass:"value"},[t._v(t._s(t.productData.refund_switch?"是":"否"))])]),t._v(" "),t.productData.guarantee?e("li",{staticClass:"item item100"},[e("div",{staticClass:"item-title"},[t._v("保障服务:")]),t._v(" "),e("div",{staticClass:"value",staticStyle:{width:"250px"}},[e("span",[t._v(t._s(t.productData.guarantee.template_name))]),t._v(" "),t.productData.guarantee.templateValue&&t.productData.guarantee.templateValue.length>0?e("div",{staticStyle:{display:"inline"}},[t._v("\n 【"),t._l(t.productData.guarantee.templateValue,(function(a,s){return e("span",{key:s,staticClass:"value-temp"},[t._v(t._s(a.value&&a.value.guarantee_name))])})),t._v("】\n ")],2):t._e()])]):t._e(),t._v(" "),t.productData.refusal?e("li",{staticClass:"item"},[e("div",{staticClass:"item-title"},[t._v("审核拒绝原因:")]),t._v(" "),e("div",{staticClass:"value"},[t._v(t._s(t.productData.refusal))])]):t._e()])]),t._v(" "),e("div",{staticClass:"section"},[e("ul",{staticStyle:{padding:"0","margin-top":"50px"}},[e("li",{staticClass:"item item100"},[e("div",{staticClass:"item-title"},[t._v("商户商品参数:")]),t._v(" "),e("div",{staticClass:"value",staticStyle:{width:"721px"}},[e("el-table",{ref:"tableParameter",staticClass:"ones",attrs:{border:"",data:t.merParams,"row-key":"parameter_value_id",size:"small"}},[e("el-table-column",{attrs:{align:"center",label:"参数名称",width:"360"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.name))])]}}])}),t._v(" "),e("el-table-column",{attrs:{align:"center",label:"参数值",width:"360"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.value))])]}}])})],1)],1)]),t._v(" "),e("li",{staticClass:"item item100"},[e("div",{staticClass:"item-title"},[t._v("平台商品参数:")]),t._v(" "),e("div",{staticClass:"value",staticStyle:{width:"721px"}},[e("el-table",{ref:"tableParameter",staticClass:"ones",attrs:{border:"",data:t.sysParams,"row-key":"parameter_value_id",size:"small"}},[e("el-table-column",{attrs:{align:"center",label:"参数名称",width:"360"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.name))])]}}])}),t._v(" "),e("el-table-column",{attrs:{align:"center",label:"参数值",width:"360"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.value))])]}}])})],1)],1)]),t._v(" "),e("li",{staticClass:"item item100 acea-row row-middle"},[e("div",{staticClass:"item-title"},[t._v("排序:")]),t._v(" "),t.isEdit?e("el-input",{staticClass:"selWidth",attrs:{type:"number",maxlength:"300",size:"small"},model:{value:t.productData.sort,callback:function(a){t.$set(t.productData,"sort",t._n(a))},expression:"productData.sort"}}):e("span",{staticClass:"mt1-5"},[t._v(t._s(t.productData.sort))])],1)])])])],1)],1)])],1)},c=[],n=e("c80c"),u=(e("96cf"),e("3b8d")),d=e("2d63"),v=e("bd86"),_=e("bbcc"),m=[{name:"是否热卖",value:"is_hot"},{name:"优品推荐",value:"is_good"},{name:"促销单品",value:"is_benefit"},{name:"是否精品",value:"is_best"},{name:"是否新品",value:"is_new"}],p={image:"",slider_image:[],store_name:"",store_info:"",keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],unit_name:"",sort:0,is_show:0,is_benefit:0,is_new:0,is_good:0,temp_id:"",params:[],attrValue:[{image:"",svip_price:null,cost:null,ot_price:null,old_stock:null,stock:null,price:null,bar_code:"",weight:null,volume:null}],attr:[],selectRule:"",extension_type:0,content:"",spec_type:0},b={svip_price:{title:"付费会员价"},cost:{title:"成本价"},ot_price:{title:"售价"},old_stock:{title:"库存"},stock:{title:"限量"},price:{title:"秒杀价"},bar_code:{title:"商品编号"},weight:{title:"重量KG"},volume:{title:"体积(m³)"}},f={components:{},props:{drawer:{type:Boolean,default:!1}},data:function(){return{loading:!0,fullscreenLoading:!1,productId:"",direction:"rtl",activeName:"basic",isEdit:!1,isAudit:!1,innerHeight:"",recommend:m,checkboxGroup:[],productData:{},formThead:Object.assign({},b),manyTabDate:{},manyTabTit:{},OneattrValue:[Object.assign({},p.attrValue[0])],ManyAttrValue:[Object.assign({},p.attrValue[0])],svip_type:0,mer_svip_status:0,orderImg:e("a71a"),merParams:[],sysParams:[],formUrl:"",baseURL:_["a"].httpUrl||"http://localhost:8080",timeVal:[],recordData:{data:[],total:0},recordForm:{type:"",date:"",page:1,limit:10},colors:["#99A9BF","#F7BA2A","#FF9900"],formValidate:{},batchData:[Object(v["a"])({spec:"全部",cost:"-",ot_price:"-",stock:"",price:"",old_stock:"-"},"ot_price","-")]}},computed:{attrValue:function(){var t=Object.assign({},p.attrValue[0]);return 0!=this.svip_type&&0!=this.mer_svip_status||delete t.svip_price,delete t.image,t}},filters:{},methods:{handleEdit:function(){this.isEdit=!0,this.activeName="goods"},cancelEdit:function(){this.isEdit=!1},batchAdd:function(){var t,a=Object(d["a"])(this.ManyAttrValue);try{for(a.s();!(t=a.n()).done;){var e=t.value;null!=this.batchData[0].price&&""!=this.batchData[0].price&&this.$set(e,"price",this.batchData[0].price),null!=this.batchData[0].stock&&""!=this.batchData[0].stock&&this.$set(e,"stock",this.batchData[0].stock)}}catch(s){a.e(s)}finally{a.f()}},saveInfo:function(){var t=this,a=0==this.productData.spec_type?this.OneattrValue:this.ManyAttrValue;Object(r["mb"])(this.productId,{attr_value:a,sort:this.productData.sort}).then(function(){var a=Object(u["a"])(Object(n["a"])().mark((function a(e){return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.fullscreenLoading=!1,t.$message.success(e.message),t.getInfo(t.productId,!1),t.$emit("getList",""),t.isEdit=!1;case 5:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()).catch((function(a){t.fullscreenLoading=!1,t.$message.error(a.message)}))},handleClose:function(){this.activeName="basic",this.$emit("closeDrawer")},getInfo:function(t,a){var e=this;this.isEdit=a,this.activeName=a?"goods":"basic",this.loading=!0,this.productId=t,this.batchData=[Object(v["a"])({spec:"全部",cost:"-",ot_price:"-",stock:"",price:"",old_stock:"-"},"ot_price","-")],Object(r["fb"])(t).then((function(t){e.loading=!1,e.productData=t.data,e.mer_svip_status=t.data.mer_svip_status,e.svip_type=t.data.svip_price_type,0===e.productData.spec_type?e.OneattrValue=t.data.attrValue:e.ManyAttrValue=t.data.attrValue;var a={},s={};if(e.productData.attr.forEach((function(t,e){a["value"+e]={title:t.value},s["value"+e]=""})),e.manyTabDate=s,e.manyTabTit=a,e.checkboxGroup=[],e.formThead=Object.assign({},e.formThead,a),1===e.productData.is_hot&&e.checkboxGroup.push("is_hot"),1===e.productData.is_good&&e.checkboxGroup.push("is_good"),1===e.productData.is_benefit&&e.checkboxGroup.push("is_benefit"),1===e.productData.is_best&&e.checkboxGroup.push("is_best"),1===e.productData.is_new&&e.checkboxGroup.push("is_new"),e.formValidate={star:t.data.star,rank:t.data.rank},e.sysParams=[],e.merParams=[],t.data.params&&t.data.params.length>0)for(var i=0;i<t.data.params.length;i++)0==t.data.params[i]["mer_id"]?e.sysParams.push(t.data.params[i]):e.merParams.push(t.data.params[i]);e.loading=!1})).catch((function(t){e.$message.error(t.message),e.loading=!1}))},tabClick:function(t){}}},h=f,g=(e("982d"),e("2877")),C=Object(g["a"])(h,o,c,!1,null,"929339d8",null),w=C.exports,y=e("8c98"),k=e("83d6"),D=e("2f62"),A={name:"SeckillProductList",components:{previewBox:y["a"],proDetail:w},data:function(){return{props:{emitPath:!1},roterPre:k["roterPre"],headeNum:[],listLoading:!0,labelLoading:!0,tableData:{data:[],total:0},seckillStatusList:[{label:"正在进行",value:1},{label:"未开始",value:0},{label:"已结束",value:-1}],productStatusList:[{label:"上架显示",value:1},{label:"下架",value:0},{label:"平台关闭",value:-1}],tableFrom:{page:1,limit:20,active_name:"",mer_cate_id:"",cate_id:"",mer_labels:"",keyword:"",type:this.$route.query.type?this.$route.query.type:"1",seckill_status:"",us_status:""},modals:!1,dialogVisible:!1,manyTabTit:{},manyTabDate:{},attrInfo:{},tabClickIndex:"",previewVisible:!1,goodsId:"",product_id:"",previewKey:"",drawer:!1,dialogLabel:!1,labelForm:{}}},computed:Object(l["a"])({},Object(D["b"])(["merCateList","merProductLabelList","sysCateList"])),mounted:function(){this.merProductLabelList.length||this.$store.dispatch("product/getProductLabel"),this.getLstFilterApi(),this.getList("")},methods:{searchReset:function(){this.$refs.searchForm.resetFields(),this.getList(1)},tableRowClassName:function(t){var a=t.row,e=t.rowIndex;a.index=e},tabClick:function(t){this.tabClickIndex=t.index},inputBlur:function(t){var a=this;(!t.row.sort||t.row.sort<0)&&(t.row.sort=0),Object(r["jb"])(t.row.product_id,{sort:t.row.sort}).then((function(t){a.$message.success(t.message),a.closeEdit(),a.getList("")})).catch((function(t){a.$message.error(t.message)}))},changeDrawer:function(t){this.drawer=t},closeDrawer:function(){this.drawer=!1},closeEdit:function(){this.tabClickIndex=null},handleClose:function(){this.dialogLabel=!1},onEdit:function(t){this.product_id=t,this.drawer=!0,this.$refs.proDetail.getInfo(t,!0),this.loading=!0},handleRestore:function(t){var a=this;this.$modalSure("恢复商品").then((function(){Object(r["pb"])(t).then((function(t){a.$message.success(t.message),a.getLstFilterApi(),a.getList("")})).catch((function(t){a.$message.error(t.message)}))}))},getLstFilterApi:function(){var t=this;Object(r["rb"])().then((function(a){t.headeNum=a.data})).catch((function(a){t.$message.error(a.message)}))},watCh:function(t){var a=this,e={},s={};this.formValidate.attr.forEach((function(t,a){e["value"+a]={title:t.value},s["value"+a]=""})),this.ManyAttrValue.forEach((function(t,e){var s=Object.values(t.detail).sort().join("/");a.attrInfo[s]&&(a.ManyAttrValue[e]=a.attrInfo[s])})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){a.attrInfo[Object.values(t.detail).sort().join("/")]=t})),this.manyTabTit=e,this.manyTabDate=s},goDetail:function(t){this.product_id=t,this.drawer=!0,this.$refs.proDetail.getInfo(t,!1),this.loading=!0},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 a=this;this.$refs[t].validate((function(t){t&&Object(r["Db"])(a.product_id,a.labelForm).then((function(t){var e=t.message;a.$message.success(e),a.getList(""),a.dialogLabel=!1}))}))},handlePreview:function(t){this.previewVisible=!0,this.goodsId=t,this.previewKey=""},getList:function(t){var a=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(r["lb"])(this.tableFrom).then((function(t){a.tableData.data=t.data.list,a.tableData.total=t.data.count,a.listLoading=!1})).catch((function(t){a.listLoading=!1,a.$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,a){var e=this;this.$modalSure("5"!==this.tableFrom.type?"加入回收站":"删除该商品").then((function(){"5"===e.tableFrom.type?Object(r["nb"])(t).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)})):Object(r["ob"])(t).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)}))}))},onchangeIsShow:function(t){var a=this;Object(r["qb"])(t.product_id,t.is_show).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)}))}}},x=A,L=(e("9c71"),Object(g["a"])(x,s,i,!1,null,"c79cc33a",null));a["default"]=L.exports},8615:function(t,a,e){var s=e("5ca1"),i=e("504c")(!1);s(s.S,"Object",{values:function(t){return i(t)}})},"982d":function(t,a,e){"use strict";e("afcc")},"9c71":function(t,a,e){"use strict";e("b9f8")},a71a:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAC6JJREFUeF7tnWtsHNUVx//nztiOk5DwfrRCgAI00CaUl0ikUjk7DjTlA6iUQAOUpwR9IloeIbF3Z9cmPNTyKKKqaBtAhVQx0FYVUkTwrE0rFRCoaUJFGx4iopQ2JKEkxiRZz72nmnXWsR17d9a7O3NnMvPN2nPP4//z3TkzO3cuoczRZu8+0eDmZQAvAmg+gEOZQeXGJJ81VgEiMIBPAN4EUJ+kwpp+u3XLZFEnhHVBB5/kGupeAr4JQDQ25cR7jQooBp41pVi+vpveG+/rAMCptHsdCXoYjENqDJwMD1IBwgArviWfMx8fHXYMYCsj7wBwX5B5JbHqrsCdTta4v+R1BHBx5hKtrnu4xGHgCjDz9aWZXATsnXOlqTYmX8uBs2hMQMKA4YozvHNyEXAqI9cSsLQx0RKvYSjAQE8+a1xO+y6F3k265TAwNDSmklSYQ1ZGrgBwd0NDJc7DUmAlWRn3RYDaw8ogidtIBbjXm8FbARzdyDCJ79AU+MgDvBdAc2gpJIEbqUCBUmlZIEJTI6MkvsNRgBlDCeBwtA8kagI4EJnDC5IADk/7QCIngAORObwgCeDwtA8kcgI4EJ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