(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-da09b2bc"],{"2f21":function(t,e,a){"use strict";var l=a("79e5");t.exports=function(t,e){return!!t&&l((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},3792:function(t,e,a){"use strict";a("5a54")},"4cc5":function(t,e,a){"use strict";a("7434")},"504c":function(t,e,a){var l=a("9e1e"),s=a("0d58"),i=a("6821"),r=a("52a7").f;t.exports=function(t){return function(e){var a,n=i(e),o=s(n),c=o.length,u=0,d=[];while(c>u)a=o[u++],l&&!r.call(n,a)||d.push(t?[a,n[a]]:n[a]);return d}}},"55dd":function(t,e,a){"use strict";var l=a("5ca1"),s=a("d8e8"),i=a("4bf8"),r=a("79e5"),n=[].sort,o=[1,2,3];l(l.P+l.F*(r((function(){o.sort(void 0)}))||!r((function(){o.sort(null)}))||!a("2f21")(n)),"Array",{sort:function(t){return void 0===t?n.call(i(this)):n.call(i(this),s(t))}})},"57ff":function(t,e,a){},"5a37":function(t,e,a){"use strict";a("57ff")},"5a54":function(t,e,a){},"6ece":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{inline:"",size:"small","label-width":"110px"}},[a("el-form-item",{staticStyle:{display:"block"},attrs:{label:"状态:"}},[a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.product_status,callback:function(e){t.$set(t.tableFrom,"product_status",e)},expression:"tableFrom.product_status"}},t._l(t.fromList.fromTxt,(function(e,l){return a("el-radio-button",{key:l,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"预售活动状态:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},t._l(t.preSaleStatusList,(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",attrs:{placeholder:"请选择",clearable:""},on:{change:t.getList},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",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.sys_labels,callback:function(e){t.$set(t.tableFrom,"sys_labels",e)},expression:"tableFrom.sys_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-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.is_trader,callback:function(e){t.$set(t.tableFrom,"is_trader",e)},expression:"tableFrom.is_trader"}},[a("el-option",{attrs:{label:"自营",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"非自营",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商户名称:"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.mer_id,callback:function(e){t.$set(t.tableFrom,"mer_id",e)},expression:"tableFrom.mer_id"}},t._l(t.merSelect,(function(t){return a("el-option",{key:t.mer_id,attrs:{label:t.mer_name,value:t.mer_id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"关键字搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入预售商品名称/ID"},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),t._v(" "),a("el-form-item",{attrs:{label:"推荐级别:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.star,callback:function(e){t.$set(t.tableFrom,"star",e)},expression:"tableFrom.star"}},t._l(t.recommendedLevelStatus,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1)],1),t._v(" "),a("el-tabs",{on:{"tab-click":function(e){return t.getList(1)}},model:{value:t.tableFrom.presell_type,callback:function(e){t.$set(t.tableFrom,"presell_type",e)},expression:"tableFrom.presell_type"}},t._l(t.headeNum,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.presell_type.toString(),label:t.title+"("+t.count+")"}})})),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"}},[a("el-table-column",{attrs:{prop:"product_presell_id",label:"ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"商户名称","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.merchant?e.row.merchant.mer_name:""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mer_name",label:"商户类别","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.merchant?a("span",{staticClass:"spBlock"},[t._v(t._s(e.row.merchant.is_trader?"自营":"非自营"))]):t._e()]}}])}),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.product.image,"preview-src-list":[t.row.product.image]}})],1)]}}])}),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(0===e.row.presell_status?"未开始":1===e.row.presell_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.start_time&&e.row.start_time?e.row.start_time.slice(0,10):""))]),t._v(" "),a("div",[t._v("结束日期:"+t._s(e.row.end_time&&e.row.end_time?e.row.end_time.slice(0,10):""))])]}}])}),t._v(" "),"1"===t.tableFrom.presell_type?a("el-table-column",{attrs:{label:"成功/参与人数","min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tattend_one&&e.row.tattend_one.pay)+" / "+t._s(e.row.tattend_one&&e.row.tattend_one.all))])]}}],null,!1,2898212109)}):t._e(),t._v(" "),"2"===t.tableFrom.presell_type?a("el-table-column",{attrs:{label:"第一阶段 | 成功/参与人次","render-header":t.renderheader,"min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tattend_one&&e.row.tattend_one.pay)+" / "+t._s(e.row.tattend_one&&e.row.tattend_one.all))])]}}],null,!1,2898212109)}):t._e(),t._v(" "),"2"===t.tableFrom.presell_type?a("el-table-column",{attrs:{label:"第二阶段 | 成功/参与人次","render-header":t.renderheader,"min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tattend_two&&e.row.tattend_two.pay)+" / "+t._s(e.row.tattend_two&&e.row.tattend_two.all))])]}}],null,!1,649476621)}):t._e(),t._v(" "),a("el-table-column",{attrs:{prop:"seles",label:"已售商品数","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"stock_count",label:"限量","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"限量剩余","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"显示状态","min-width":"100"},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.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"推荐级别","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-rate",{attrs:{disabled:"",colors:t.colors},model:{value:e.row.star,callback:function(a){t.$set(e.row,"star",a)},expression:"scope.row.star"}})]}}])}),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.sys_labels,(function(e,l){return a("div",{key:l,staticClass:"label-list"},[t._v(t._s(e.name))])}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"排序","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.product.rank))])]}}])}),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(0===e.row.product_status?"待审核":1===e.row.product_status?"审核通过":"审核失败"))]),t._v(" "),-1===e.row.product_status||-2===e.row.product_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":"180",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.product_presell_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.handlePreview(e.row.product_presell_id)}}},[t._v("预览")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEditLabel(e.row)}}},[t._v("编辑标签")]),t._v(" "),1===e.row.product_status?a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.toOff(e.row.product_presell_id)}}},[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_presell_id)}}},[t._v("详情")]),t._v(" "),0===e.row.product_status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.toReview(e.row.product_presell_id)}}},[t._v("审核")]):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(" "),a("el-dialog",{attrs:{title:"商品编辑",visible:t.dialogVisible,width:"1000px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":"120px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"活动列表推荐:"}},[a("el-rate",{staticClass:"rate_star",staticStyle:{"margin-top":"4px"},attrs:{colors:t.colors},model:{value:t.formValidate.star,callback:function(e){t.$set(t.formValidate,"star",e)},expression:"formValidate.star"}}),t._v(" "),a("span",{staticStyle:{"margin-top":"4px","font-size":"12px"}},[t._v("备注:5星为最高推荐级别,1星为最低推荐级别,设置后会在商城商品列表、搜索商品列表中体现。")])],1),t._v(" "),a("el-form-item",{attrs:{label:"排序:"}},[a("el-input-number",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入排序序号"},model:{value:t.formValidate.rank,callback:function(e){t.$set(t.formValidate,"rank",e)},expression:"formValidate.rank"}})],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("ueditor-from",{attrs:{content:t.formValidate.content},model:{value:t.formValidate.content,callback:function(e){t.$set(t.formValidate,"content",e)},expression:"formValidate.content"}})],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交")])],1)],1)],1),t._v(" "),a("info-from",{ref:"infoFrom",attrs:{"is-show":t.isShow},on:{subSuccess:t.subSuccess}}),t._v(" "),a("details-data",{ref:"detailsData",attrs:{"is-show":t.isShowDetail}}),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":2,"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:"",filterable:"",multiple:"",placeholder:"请选择"},model:{value:t.labelForm.sys_labels,callback:function(e){t.$set(t.labelForm,"sys_labels",e)},expression:"labelForm.sys_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)},s=[],i=a("c80c"),r=(a("96cf"),a("3b8d")),n=(a("7f7f"),a("28a5"),a("6762"),a("2fdb"),a("c4c8")),o=a("83d6"),c=a("ef0d"),u=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.dialogVisible?a("el-dialog",{staticClass:"projectInfo",attrs:{title:"商品审核",visible:t.dialogVisible,width:"900px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[t.projectData&&t.isShow?a("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[a("el-tab-pane",{attrs:{label:"商品信息",name:"first"}},[a("div",{staticClass:"acea-row"},[a("span",{staticClass:"sp"},[t._v("商品名称:"+t._s(t.projectData.store_name))]),t._v(" "),a("span",{staticClass:"sp"},[t._v("平台分类:"+t._s(t.projectData.storeCategory?t.projectData.storeCategory.cate_name:""))]),t._v(" "),a("span",{staticClass:"sp"},[t._v("品牌:"+t._s(t.projectData.brand?t.projectData.brand.brand_name:""))]),t._v(" "),a("span",{staticClass:"sp"},[t._v("商品关键字:"+t._s(t.projectData.keyword))]),t._v(" "),a("span",{staticClass:"sp"},[t._v("商品单位:"+t._s(t.projectData.unit_name))]),t._v(" "),a("span",{staticClass:"sp"},[t._v("运费模板:"+t._s(t.projectData.temp?t.projectData.temp.name:""))]),t._v(" "),a("span",{staticClass:"sp100"},[t._v("运费说明:"+t._s(t.projectData.temp?t.projectData.temp.info:""))]),t._v(" "),a("span",{staticClass:"sp100"},[t._v("\n 商品分类:\n "),t.projectData.merCateId?t._l(t.projectData.merCateId,(function(e,l){return a("span",{key:l,staticClass:"mr10"},[t._v(t._s(e.category?e.category.cate_name:""))])})):a("span",[t._v("-")])],2),t._v(" "),a("span",{staticClass:"sp100"},[t._v("商品简介:"+t._s(t.projectData.store_info))]),t._v(" "),a("span",{staticClass:"sp100"},[t._v("\n 商品封面图:\n "),a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"60px",height:"60px"},attrs:{src:t.projectData.image,"preview-src-list":[t.projectData.image]}})],1)]),t._v(" "),a("span",{staticClass:"sp100"},[t._v("商品轮播图:\n "),t._l(t.projectData.slider_image,(function(t,e){return a("div",{key:e,staticClass:"pictrue"},[a("el-image",{staticStyle:{width:"60px",height:"60px"},attrs:{src:t,"preview-src-list":[t]}})],1)}))],2)])]),t._v(" "),a("el-tab-pane",{attrs:{label:"商品详情",name:"second"}},[a("span",{staticClass:"sp100"},[t._v("商品详情:")]),t._v(" "),a("div",{staticClass:"contentPic",domProps:{innerHTML:t._s(t.projectData.content)}})]),t._v(" "),a("el-tab-pane",{attrs:{label:"其他设置",name:"third"}},[a("span",{staticClass:"sp100"},[t._v("商品排序:"+t._s(t.projectData.sort))]),t._v(" "),t.projectData.guarantee&&t.projectData.guarantee.templateValue.length?a("span",{staticClass:"third mb20"},[a("span",[t._v("服务保障:")]),t._v(" "),t._l(t.projectData.guarantee.templateValue,(function(e,l){return a("span",{key:l},[e.value?a("span",[t._v(t._s(l+1)+". "+t._s(e.value.guarantee_name)+";")]):t._e()])}))],2):t._e()]),t._v(" "),a("el-tab-pane",{attrs:{label:"商品规格",name:"fourth"}},[a("span",{staticClass:"sp"},[t._v("商品规格:"+t._s(0===t.projectData.spec_type?"单规格":"多规格"))]),t._v(" "),a("span",{staticClass:"sp"},[t._v("佣金设置:"+t._s(0===t.projectData.extension_type?"默认设置":"单独设置"))]),t._v(" "),a("span",{staticClass:"sp100"},[a("span",{staticClass:"mb15",staticStyle:{display:"block"}},[t._v("商品规格:")]),t._v(" "),0===t.projectData.spec_type?[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(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"60px",height:"60px"},attrs:{src:t.row.image}})],1)]}}],null,!1,323865937)}),t._v(" "),t._l(t.attrValue,(function(e,l){return a("el-table-column",{key:l,attrs:{label:t.formThead[l].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[l])}})]}}],null,!0)})})),t._v(" "),1===t.projectData.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row.extension_one)}})]}}],null,!1,102250766)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row.extension_two)}})]}}],null,!1,4284057702)})]:t._e()],2)]:t._e(),t._v(" "),1===t.projectData.spec_type?[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.ManyAttrValue,border:"",size:"mini"}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,l){return a("el-table-column",{key:l,attrs:{align:"center",label:t.manyTabTit[l].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[l])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox"},[a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})])])]}}],null,!1,651288578)}),t._v(" "),t._l(t.attrValue,(function(e,l){return a("el-table-column",{key:l,attrs:{label:t.formThead[l].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox"},[t._v(t._s(e.row[l]))])]}}],null,!0)})})),t._v(" "),1===t.projectData.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox"},[t._v(t._s(e.row.extension_one))])]}}],null,!1,1519547738)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox"},[t._v(t._s(e.row.extension_two))])]}}],null,!1,603129202)})]:t._e()],2)]:t._e()],2)])],1):t._e(),t._v(" "),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"审核状态",prop:"status"}},[a("el-radio-group",{model:{value:t.ruleForm.status,callback:function(e){t.$set(t.ruleForm,"status",e)},expression:"ruleForm.status"}},[a("el-radio",{attrs:{label:1}},[t._v("通过")]),t._v(" "),a("el-radio",{attrs:{label:-1}},[t._v("拒绝")])],1)],1),t._v(" "),-1===t.ruleForm.status?a("el-form-item",{attrs:{label:"原因",prop:"refusal"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入原因"},model:{value:t.ruleForm.refusal,callback:function(e){t.$set(t.ruleForm,"refusal",e)},expression:"ruleForm.refusal"}})],1):t._e(),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("提交")])],1)],1)],1):t._e()},d=[],_=(a("ac6a"),{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:"",attrValue:[{image:"",price:null,down_price:null,cost:null,ot_price:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],selectRule:"",extension_type:0,content:"",spec_type:0}),p={price:{title:"售价"},cost:{title:"成本价"},ot_price:{title:"市场价"},stock:{title:"限量"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},m={price:{title:"售价"},down_price:{title:"定金"},cost:{title:"成本价"},ot_price:{title:"市场价"},stock:{title:"限量"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},f=[{name:"是否热卖",value:"is_hot"},{name:"优品推荐",value:"is_good"},{name:"促销单品",value:"is_benefit"},{name:"是否精品",value:"is_best"},{name:"是否新品",value:"is_new"}],b={name:"Info",props:{isShow:{type:Boolean,default:!0},ids:{type:Array,default:function(){return[]}}},data:function(){return{rules:{status:[{required:!0,message:"请选择审核状态",trigger:"change"}],refusal:[{required:!0,message:"请填写拒绝原因",trigger:"blur"}]},proId:0,ruleForm:{refusal:"",status:1,id:""},formThead:Object.assign({},p),formThead2:Object.assign({},m),manyTabDate:{},manyTabTit:{},loading:!1,dialogVisible:!1,activeNames:"first",projectData:{},recommend:f,OneattrValue:[Object.assign({},_.attrValue[0])],ManyAttrValue:[Object.assign({},_.attrValue[0])],presellObj:[{image:"",price:null,cost:null,ot_price:null,stock:null,bar_code:"",weight:null,volume:null}]}},computed:{attrValue:function(){if(1===this.projectData.presell_type){var t=Object.assign({},this.presellObj[0]);return delete t.image,t}var e=Object.assign({},_.attrValue[0]);return delete e.image,e}},methods:{onSubmit:function(){var t=this;this.ruleForm.id=this.projectData.product_presell_id,Object(n["W"])(this.ruleForm).then((function(e){t.$message.success(e.message),t.dialogVisible=!1,t.activeNames="first",t.$emit("subSuccess")})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},handleClose:function(){this.dialogVisible=!1,this.activeNames="first"},getInfo:function(t){var e=this;this.proId=t,this.loading=!0,Object(n["R"])(t).then((function(t){e.projectData=t.data;var a={},l={};e.projectData.attr.forEach((function(t,e){a["value"+e]={title:t.value},l["value"+e]=""})),e.manyTabDate=l,e.manyTabTit=a,1===e.projectData.presell_type?(e.formThead=Object.assign({},e.formThead,a),0===e.projectData.spec_type?(e.OneattrValue=t.data.attrValue,e.OneattrValue[0]["ot_price"]=e.OneattrValue[0]["price"],e.OneattrValue[0]["price"]=e.OneattrValue[0].presellSku["presell_price"],e.OneattrValue[0]["stock"]=e.OneattrValue[0].presellSku["stock"]):(e.ManyAttrValue=[],t.data.attrValue.forEach((function(t,a){t.presellSku&&(e.ManyAttrValue.push(t),e.ManyAttrValue[a]["ot_price"]=e.ManyAttrValue[a]["price"],e.ManyAttrValue[a]["price"]=e.ManyAttrValue[a].presellSku["presell_price"],e.ManyAttrValue[a]["stock"]=e.ManyAttrValue[a].presellSku["stock"])})))):(e.formThead=Object.assign({},e.formThead2,a),0===e.projectData.spec_type?(e.OneattrValue=t.data.attrValue,e.OneattrValue[0]["ot_price"]=e.OneattrValue[0]["price"],e.OneattrValue[0]["down_price"]=e.OneattrValue[0].presellSku["down_price"],e.OneattrValue[0]["price"]=e.OneattrValue[0].presellSku["presell_price"],e.OneattrValue[0]["stock"]=e.OneattrValue[0].presellSku["stock"]):(e.ManyAttrValue=[],t.data.attrValue.forEach((function(t,a){t.presellSku&&(e.ManyAttrValue.push(t),e.ManyAttrValue[a]["ot_price"]=e.ManyAttrValue[a]["price"],e.ManyAttrValue[a]["price"]=e.ManyAttrValue[a].presellSku["presell_price"],e.ManyAttrValue[a]["stock"]=e.ManyAttrValue[a].presellSku["stock"],e.ManyAttrValue[a]["down_price"]=e.ManyAttrValue[a].presellSku["down_price"])})))),e.loading=!1})).catch((function(t){e.$message.error(t.message),e.loading=!1}))}}},v=b,h=(a("5a37"),a("4cc5"),a("2877")),g=Object(h["a"])(v,u,d,!1,null,"5a4dbc8b",null),y=g.exports,w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return 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"}]},[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("商户名称:")]),t._v(t._s(t.formValidate.merchant&&t.formValidate.merchant.mer_name))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("商户类别:")]),t._v(t._s(1===(t.formValidate.merchant&&t.formValidate.merchant.is_trader)?"自营":"非自营"))]),t._v(" "),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("商品名称:")]),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(" "),2===t.formValidate.presell_type?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["down_price"]))])]}}],null,!1,2160669390)}):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["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,l){return a("el-table-column",{key:l,attrs:{align:"center",label:t.manyTabTit[l].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[l])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"预售价格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["presell_price"]))])]}}],null,!1,1547007341)}),t._v(" "),2===t.formValidate.presell_type?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["down_price"]))])]}}],null,!1,2160669390)}):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["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_time+"-"+t.formValidate.end_time))]),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("尾款支付日期:")]),t._v(t._s(t.formValidate.final_start_time+"-"+t.formValidate.final_end_time))]):t._e(),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("限量:")]),t._v(t._s(t.formValidate.stock_count))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("限量剩余:")]),t._v(t._s(t.formValidate.stock))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("限购件数:")]),t._v(t._s(t.formValidate.pay_count)+"(0为不限制购买数量)")]),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(" "),1===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("预售成功/参与人次:")]),t._v(t._s((t.formValidate.tattend_one&&t.formValidate.tattend_one.pay)+"/"+(t.formValidate.tattend_one&&t.formValidate.tattend_one.all)))]):t._e(),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("第一阶段(定金支付)成功/参与人次:")]),t._v(t._s((t.formValidate.tattend_one&&t.formValidate.tattend_one.pay)+"/"+(t.formValidate.tattend_one&&t.formValidate.tattend_one.all)))]):t._e(),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("第二阶段(尾款支付)成功/参与人次:")]),t._v(t._s((t.formValidate.tattend_two&&t.formValidate.tattend_two.pay)+"/"+(t.formValidate.tattend_two&&t.formValidate.tattend_two.all)))]):t._e(),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("发货时间:")]),t._v(t._s("支付尾款后"+t.formValidate.delivery_day+"天内"))]):t._e(),t._v(" "),1===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("发货时间:")]),t._v(t._s(1===t.formValidate.delivery_type?"支付成功后"+t.formValidate.delivery_day+"天内":"预售结束后"+t.formValidate.delivery_day+"天内"))]):t._e(),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("预售活动状态:")]),t._v(t._s(0===t.formValidate.presell_status?"未开始":1===t.formValidate.presell_status?"正在进行":"已结束"))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("显示状态:")]),t._v(t._s(1===t.formValidate.is_show?"显示":"隐藏"))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("创建时间:")]),t._v(t._s(t.formValidate.create_time))])])])])]):t._e()},V=[],k=(a("8615"),a("55dd"),{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:"",attrValue:[{image:"",price:null,cost:null,ot_price:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],selectRule:"",extension_type:0,content:"",spec_type:0,tattend_one:{},tattend_two:{}}),C={price:{title:"售价"},cost:{title:"成本价"},ot_price:{title:"市场价"},stock:{title:"库存"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},x={name:"Info",props:{isShow:{type:Boolean,default:!0},ids:{type:Array,default:function(){return[]}}},data:function(){return{rules:{status:[{required:!0,message:"请选择审核状态",trigger:"change"}],refusal:[{required:!0,message:"请填写拒绝原因",trigger:"blur"}]},proId:0,ruleForm:{refusal:"",status:1,id:""},formThead:Object.assign({},C),manyTabDate:{},manyTabTit:{},loading:!1,dialogVisible:!1,activeNames:"first",formValidate:{},attrInfo:{},OneattrValue:[Object.assign({},k.attrValue[0])],ManyAttrValue:[Object.assign({},k.attrValue[0])]}},computed:{attrValue:function(){var t=Object.assign({},k.attrValue[0]);return delete t.image,t},oneFormBatch:function(){var t=[Object.assign({},k.attrValue[0])];return delete t[0].bar_code,t}},methods:{handleClose:function(){this.dialogVisible=!1,this.activeNames="first"},watCh:function(t){var e=this,a={},l={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},l["value"+e]=""})),this.ManyAttrValue.forEach((function(t,a){var l=Object.values(t.detail).sort().join("/");e.attrInfo[l]&&(e.ManyAttrValue[a]=e.attrInfo[l])})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){e.attrInfo[Object.values(t.detail).sort().join("/")]=t})),this.manyTabTit=a,this.manyTabDate=l,this.formThead=Object.assign({},this.formThead,a)},getInfo:function(t){var e=this;this.proId=t,this.loading=!0,this.formValidate={},Object(n["V"])(t).then((function(t){var a=t.data;e.formValidate={product_id:a.product_id,image:a.product.image,store_name:a.store_name,store_info:a.store_info,presell_type:a.presell_type?a.presell_type:1,delivery_type:a.delivery_type?a.delivery_type:1,delivery_day:a.delivery_day?a.delivery_day:10,start_time:a.start_time?a.start_time:"",end_time:a.end_time?a.end_time:"",final_start_time:a.final_start_time?a.final_start_time:"",final_end_time:a.final_end_time?a.final_end_time:"",unit_name:a.product.unit_name,is_show:a.is_show,attr:a.product.attr,spec_type:a.product.spec_type,create_time:a.create_time,product:a.product,tattend_one:a.tattend_one,tattend_two:a.tattend_two,presell_status:a.presell_status,status:a.product_status,pay_count:a.pay_count,stock:a.stock,stock_count:a.stock_count,merchant:a.merchant},0===e.formValidate.spec_type?(e.OneattrValue=a.product.attrValue,e.OneattrValue[0].down_price=e.OneattrValue[0].presellSku?e.OneattrValue[0].presellSku.down_price:0,e.OneattrValue[0].presell_price=e.OneattrValue[0].presell_price?e.OneattrValue[0].presellSku.presell_price:0,e.OneattrValue[0].sales=e.OneattrValue[0].presellSku?e.OneattrValue[0].presellSku.seles:0):(e.ManyAttrValue=[],a.product.attrValue.forEach((function(t,a){t.presellSku&&(e.$set(t,"down_price",t.presellSku.down_price),e.$set(t,"presell_price",t.presellSku.presell_price),e.$set(t,"sales",t.presellSku.seles),e.attrInfo[Object.values(t.detail).sort().join("/")]=t,e.ManyAttrValue.push(t))})),e.watCh(e.formValidate.attr)),console.log(e.ManyAttrValue),1===e.formValidate.is_good&&e.checkboxGroup.push("is_good"),e.fullscreenLoading=!1,e.formValidate.preSale_date=[a.start_time,a.end_time],e.formValidate.finalPayment_date=[a.final_start_time,a.final_end_time],e.loading=!1})).catch((function(t){e.$message.error(t.message),e.loading=!1}))}}},S=x,j=(a("3792"),Object(h["a"])(S,w,V,!1,null,"695552eb",null)),F=j.exports,O=a("8c98"),D={name:"preSaleProductList",components:{infoFrom:y,ueditorFrom:c["a"],detailsData:F,previewBox:O["a"]},data:function(){return{colors:["#99A9BF","#F7BA2A","#FF9900"],headeNum:[{count:0,presell_type:1,title:"全款预售"},{count:0,presell_type:2,title:"定金预售"}],props:{emitPath:!1},roterPre:o["roterPre"],listLoading:!0,tableData:{data:[],total:0},preSaleStatusList:[{label:"未开始",value:0},{label:"进行中",value:1},{label:"已结束",value:2}],productStatusList:[{label:"上架显示",value:1},{label:"下架",value:0},{label:"平台关闭",value:-1}],recommendedLevelStatus:[{label:"全部",value:""},{label:"5星",value:5},{label:"4星",value:4},{label:"3星",value:3},{label:"2星",value:2},{label:"1星",value:1}],fromList:{custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"已审核",val:"1"},{text:"审核失败",val:"-1"}]},tableFrom:{page:1,limit:20,keyword:"",product_status:this.$route.query.status?this.$route.query.status:"",status:"",type:"",is_trader:"",mer_id:"",presell_type:this.$route.query.type?this.$route.query.type:"1",us_status:"",sys_labels:"",star:"",product_presell_id:this.$route.query.id?this.$route.query.id:""},product_presell_id:this.$route.query.id?this.$route.query.id:"",product_id:"",modals:!1,dialogVisible:!1,loading:!1,formValidate:{is_hot:0,is_best:0,is_new:0,is_benefit:0,ficti:0,content:"",store_name:"",rank:"",star:0},fullscreenLoading:!0,isShow:!1,isShowDetail:!1,checkboxGroup:[],merSelect:[],ruleValidate:{store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}]},previewVisible:!1,goodsId:"",previewKey:"",labelList:[],dialogLabel:!1,labelForm:{}}},watch:{product_presell_id:function(t,e){this.getList("")}},mounted:function(){this.getList(""),this.getMerSelect(),this.getLabelLst()},methods:{onChangeGroup:function(){this.checkboxGroup.includes("is_benefit")?this.formValidate.is_benefit=1:this.formValidate.is_benefit=0,this.checkboxGroup.includes("is_best")?this.formValidate.is_best=1:this.formValidate.is_best=0,this.checkboxGroup.includes("is_new")?this.formValidate.is_new=1:this.formValidate.is_new=0,this.checkboxGroup.includes("is_hot")?this.formValidate.is_hot=1:this.formValidate.is_hot=0},handleClose:function(){this.dialogVisible=!1,this.dialogLabel=!1},renderheader:function(t,e){var a=e.column;e.$index;return t("span",{},[t("span",{},a.label.split("|")[0]),t("br"),t("span",{},a.label.split("|")[1])])},subSuccess:function(){this.getList("")},getLabelLst:function(){var t=this;Object(n["A"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},onEditLabel:function(t){if(this.dialogLabel=!0,this.product_id=t.product_presell_id,t.sys_labels&&t.sys_labels.length){var e=t.sys_labels.map((function(t){return t.id}));this.labelForm={sys_labels:e}}else this.labelForm={sys_labels:[]}},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&Object(n["Ib"])(e.product_id,e.labelForm).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.dialogLabel=!1}))}))},onEdit:function(t){this.productId=t,this.getInfo(t),this.dialogVisible=!0},toReview:function(t){this.$refs.infoFrom.dialogVisible=!0,this.isShow=!0,this.$refs.infoFrom.getInfo(t)},handlePreview:function(t){this.previewVisible=!0,this.goodsId=t,this.previewKey=""},goDetail:function(t){this.$refs.detailsData.dialogVisible=!0,this.isShowDetail=!0,this.$refs.detailsData.getInfo(t)},getMerSelect:function(){var t=this;Object(n["P"])().then((function(e){t.merSelect=e.data})).catch((function(e){t.$message.error(e.message)}))},toOff:function(t){var e=this;this.$prompt("强制下架",{confirmButtonText:"确定",cancelButtonText:"取消",inputErrorMessage:"请输入强制下架原因",inputType:"textarea",inputPlaceholder:"请输入强制下架原因",inputValidator:function(t){if(!t)return"请输入强制下架原因"}}).then((function(a){var l=a.value;Object(n["W"])({id:t,status:-2,refusal:l}).then((function(t){e.$message({type:"success",message:"提交成功"}),e.getList("")})).catch((function(t){e.$message.error(t.message)}))})).catch((function(){e.$message({type:"info",message:"取消输入"})}))},getInfo:function(t){var e=this;this.fullscreenLoading=!0,this.checkboxGroup=[],Object(n["R"])(t).then((function(t){var a=t.data;e.formValidate={is_hot:a.is_hot,is_best:a.is_best,is_new:a.is_new,is_benefit:a.is_benefit,ficti:a.ficti,content:a.content,store_name:a.store_name,rank:a.rank,star:a.star?a.star:1},1===a.is_benefit&&e.checkboxGroup.push("is_benefit"),1===a.is_hot&&e.checkboxGroup.push("is_hot"),1===a.is_best&&e.checkboxGroup.push("is_best"),1===a.is_new&&e.checkboxGroup.push("is_new"),e.fullscreenLoading=!1,console.log(e.formValidate)})).catch((function(t){e.$message.error(t.message),e.fullscreenLoading=!1}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["S"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.headeNum[0]["count"]=t.data.stat.all,e.headeNum[1]["count"]=t.data.stat.down,console.log(e.headeNum),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("")},onchangeIsShow:function(t){var e=this;Object(n["X"])(t.product_presell_id,t.status).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(n["Y"])(e.productId,e.formValidate).then(function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(a){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.fullscreenLoading=!1,e.$message.success(a.message),e.dialogVisible=!1,e.getList();case 4: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)}))}))}}},L=D,$=(a("abbf"),Object(h["a"])(L,l,s,!1,null,"4267e665",null));e["default"]=$.exports},7434:function(t,e,a){},8615:function(t,e,a){var l=a("5ca1"),s=a("504c")(!1);l(l.S,"Object",{values:function(t){return s(t)}})},abbf:function(t,e,a){"use strict";a("c6c6")},c6c6:function(t,e,a){}}]);