1 line
49 KiB
JavaScript
1 line
49 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0cce38bc"],{"641c1":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"container_box"},[n("pages-header",{ref:"pageHeader",attrs:{title:t.title+"秒杀活动",backUrl:"/marketing/seckill/store_seckill/list"}}),t._v(" "),n("el-card",{staticClass:"box-card box-body mt14",attrs:{bordered:!1,shadow:"never"}},[n("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"基础设置",name:"first"}}),t._v(" "),t.isEdit||""!=!t.active_id||t.isCopy?n("el-tab-pane",{attrs:{label:"秒杀商品",name:"second"}}):t._e(),t._v(" "),""==t.active_id||t.isCopy?t._e():n("el-tab-pane",{attrs:{label:"已加商品",name:"third"}})],1),t._v(" "),n("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"120px",size:"small"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},["first"==t.activeName?[n("el-form-item",{attrs:{label:"活动名称:",prop:"name"}},[n("el-input",{staticClass:"pageWidth",attrs:{disabled:t.isLook,placeholder:"请输入活动名称"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"活动日期:",prop:"timeVal"}},[n("el-date-picker",{staticStyle:{width:"460px"},attrs:{disabled:t.isLook,"value-format":"yyyy-MM-dd",align:"right","unlink-panels":"",format:"yyyy-MM-dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.ruleForm.timeVal,callback:function(e){t.$set(t.ruleForm,"timeVal",e)},expression:"ruleForm.timeVal"}}),t._v(" "),n("p",{staticClass:"desc mt10"},[t._v("设置活动开始日期与结束日期,用户可以在有效时间内参与秒杀")])],1),t._v(" "),n("el-form-item",{attrs:{label:"秒杀场次:",prop:"seckill_time_ids"}},[n("el-select",{staticClass:"pageWidth",class:{disabled:t.isLook},attrs:{disabled:t.isLook,placeholder:"请选择秒杀场次",multiple:"",cearable:""},model:{value:t.ruleForm.seckill_time_ids,callback:function(e){t.$set(t.ruleForm,"seckill_time_ids",e)},expression:"ruleForm.seckill_time_ids"}},t._l(t.spikeTimeList,(function(t){return n("el-option",{key:t.seckill_time_id+"onl",attrs:{label:t.title+" | "+t.start_time_text+"-"+t.end_time_text,value:t.seckill_time_id.toString(),disabled:0===t.status}})})),1),t._v(" "),n("p",{staticClass:"desc mt10"},[t._v("\n 选择商品开始时间段,该时间段内用户可参与购买;其它时间段会显示活动未开始或已结束,可多选\n ")])],1),t._v(" "),n("el-form-item",{attrs:{label:"活动限购:"}},[n("el-input-number",{staticClass:"pageWidth",attrs:{disabled:t.isLook,"controls-position":"right",min:0,max:99999},model:{value:t.ruleForm.all_pay_count,callback:function(e){t.$set(t.ruleForm,"all_pay_count",e)},expression:"ruleForm.all_pay_count"}}),t._v(" "),n("p",{staticClass:"desc mt10"},[t._v("\n 活动有效期内每个用户可购买该商品总数限制。例如设置为4,表示本次活动有效期内,每个用户最多可购买总数4个,0和空为不限购\n ")])],1),t._v(" "),n("el-form-item",{attrs:{label:"单次限购:"}},[n("el-input-number",{staticClass:"pageWidth",attrs:{disabled:t.isLook,"controls-position":"right",min:0,max:99999},model:{value:t.ruleForm.once_pay_count,callback:function(e){t.$set(t.ruleForm,"once_pay_count",e)},expression:"ruleForm.once_pay_count"}}),t._v(" "),n("p",{staticClass:"desc mt10"},[t._v("\n 用户参与秒杀时,一次购买最大数量限制。例如设置为2,表示参与秒杀时,用户一次购买数量最大可选择2个,0和空为不限购\n ")])],1),t._v(" "),n("el-form-item",{attrs:{label:"商品范围:"}},[n("el-select",{staticClass:"pageWidth",class:{disabled:t.isLook},attrs:{disabled:t.isLook,multiple:"",filterable:"","allow-create":"","default-first-option":"",clearable:"",placeholder:"请选择商品分类"},model:{value:t.ruleForm.product_category_ids,callback:function(e){t.$set(t.ruleForm,"product_category_ids",e)},expression:"ruleForm.product_category_ids"}},t._l(t.categoryList,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value.toString()}})})),1),t._v(" "),n("p",{staticClass:"desc mt10"},[t._v("设置秒杀活动可以参与的商品分类,可多选,不选为全品类商品。")])],1),t._v(" "),n("el-form-item",{attrs:{label:"活动边框图:"}},[n("div",{staticClass:"acea-row row-middle"},[n("div",{staticClass:"upLoadPicBox",class:{disabled:t.isLook},on:{click:function(e){return t.modalPicTap("2")}}},[t.ruleForm.border_pic?n("div",{staticClass:"pictrue"},[n("img",{attrs:{src:t.ruleForm.border_pic}}),t._v(" "),t.isLook?t._e():n("i",{staticClass:"el-icon-error btndel",on:{click:function(e){e.stopPropagation(),t.ruleForm.border_pic=""}}})]):n("div",{staticClass:"upLoad"},[n("i",{staticClass:"el-icon-camera cameraIconfont"})])]),t._v(" "),n("p",{staticClass:"desc ml10"},[t._v("宽750px,高750px\n "),n("el-popover",{attrs:{placement:"bottom-start",title:"","min-width":"200",trigger:"hover"}},[n("img",{staticStyle:{height:"270px"},attrs:{src:t.baseURL+"/statics/system/activityBackground.png",alt:""}}),t._v(" "),n("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("查看示例")])],1)],1)]),t._v(" "),n("p",{staticClass:"desc mt10"},[t._v("展示在商品列表的活动边框图")])]),t._v(" "),n("el-form-item",{attrs:{label:"是否开启:"}},[n("el-switch",{attrs:{disabled:t.isLook,width:56,"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},model:{value:t.ruleForm.status,callback:function(e){t.$set(t.ruleForm,"status",e)},expression:"ruleForm.status"}})],1)]:t._e(),t._v(" "),"second"!=t.activeName||!t.isEdit&&t.active_id&&!t.isCopy?t._e():[t.isLook?t._e():n("div",{staticClass:"acea-row row-between-wrapper"},[n("div",{staticClass:"acea-row mb20"},[n("el-button",{attrs:{size:"small mr14",type:"primary"},on:{click:function(e){return t.addGoods()}}},[t._v("添加商品")]),t._v(" "),n("el-dropdown",{staticClass:"dropdown mr14",class:{disabled:t.isShowCheck},attrs:{disabled:t.isShowCheck},on:{command:t.setPrice}},[n("span",{staticClass:"el-dropdown-link"},[t._v("\n 批量设置"),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{command:"limit"}},[t._v("设置限量")]),t._v(" "),n("el-dropdown-item",{attrs:{command:"price"}},[t._v("设置价格")]),t._v(" "),n("el-dropdown-item",{attrs:{command:"open"}},[t._v("批量开启")]),t._v(" "),n("el-dropdown-item",{attrs:{command:"close"}},[t._v("批量关闭")])],1)],1),t._v(" "),n("el-button",{attrs:{size:"small",disabled:t.isShowCheck},on:{click:t.batchDel}},[t._v("批量删除")])],1)]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"tableList",attrs:{"row-key":"product_id",data:t.proData,size:"small","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[n("el-table-column",{key:"1",attrs:{"min-width":"30"}}),t._v(" "),t.isLook?t._e():n("el-table-column",{key:"2",attrs:{"min-width":"50"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}})]}},{key:"default",fn:function(e){return[n("el-checkbox",{attrs:{value:e.row.checked},on:{change:function(n){return t.handleCheckOneChange(n,e.row)}}})]}}],null,!1,1890012580)}),t._v(" "),n("el-table-column",{key:"3",attrs:{prop:"product_id",label:"商品ID","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.sku?t._e():n("span",[t._v(t._s(e.row.product_id))])]}}],null,!1,1613001260)}),t._v(" "),n("el-table-column",{key:"4",attrs:{"min-width":"220",label:"商品信息"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"acea-row"},[n("div",{staticClass:"demo-image__preview mr10 line-heightOne"},[n("el-image",{attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1),t._v(" "),n("div",{staticClass:"row_title line2"},[t._v(t._s(e.row.store_name))])])]}}],null,!1,2144815874)}),t._v(" "),n("el-table-column",{key:"5",attrs:{label:"商品分类","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.storeCategory?e.row.storeCategory.cate_name:"-"))])]}}],null,!1,1610769387)}),t._v(" "),n("el-table-column",{key:"24",attrs:{label:"商户名称",prop:"mer_name","min-width":"100"}}),t._v(" "),n("el-table-column",{key:"7",attrs:{prop:"ot_price",label:"售价","min-width":"80"}}),t._v(" "),n("el-table-column",{key:"10",attrs:{prop:"price",label:"秒杀价","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return e.row.sku?[t.isLook?n("span",[t._v(t._s(e.row.price))]):n("el-input-number",{staticClass:"input_width",attrs:{type:"number",precision:2,min:.01,max:99999,controls:!1},model:{value:e.row.price,callback:function(n){t.$set(e.row,"price",n)},expression:"scope.row.price"}})]:void 0}}],null,!0)}),t._v(" "),n("el-table-column",{key:"8",attrs:{prop:"old_stock",label:"库存","min-width":"80"}}),t._v(" "),n("el-table-column",{key:"9",attrs:{label:"限量",prop:"stock","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return e.row.sku?[t.isLook?n("span",[t._v(t._s(e.row.stock))]):n("el-input-number",{staticClass:"input_width",attrs:{precision:0,min:0,max:e.row.old_stock,controls:!1},model:{value:e.row.stock,callback:function(n){t.$set(e.row,"stock",n)},expression:"scope.row.stock"}})]:void 0}}],null,!0)}),t._v(" "),t.isLook?t._e():n("el-table-column",{key:"11",attrs:{prop:"is_show",label:"是否开启","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{width:56,"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},on:{change:function(n){return t.changeStatus(e.row)}},model:{value:e.row.is_show,callback:function(n){t.$set(e.row,"is_show",n)},expression:"scope.row.is_show"}})]}}],null,!1,1760173763)}),t._v(" "),n("el-table-column",{key:"12",attrs:{prop:"rank",label:"排序","min-width":"110"},scopedSlots:t._u([{key:"default",fn:function(e){return e.row.sku||""==e.row.sku?void 0:[t.isLook?n("span",[t._v(t._s(e.row.rank))]):n("el-input-number",{staticClass:"input_width",attrs:{type:"number",precision:0,min:0,max:99999,controls:!1},model:{value:e.row.rank,callback:function(n){t.$set(e.row,"rank",n)},expression:"scope.row.rank"}})]}}],null,!0)}),t._v(" "),t.isLook?t._e():n("el-table-column",{key:"13",attrs:{label:"操作","min-width":"60",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.sku||""==e.row.sku?t._e():n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleDelete(e.$index,e.row)}}},[t._v("删除")])]}}],null,!1,704783066)})],1)],t._v(" "),"third"==t.activeName&&""!=t.active_id?[n("el-form",{attrs:{size:"small",inline:""}},[n("el-form-item",{attrs:{label:"商品审核状态:",prop:"status"}},[n("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getJoinedList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[n("el-option",{attrs:{label:"待审核",value:"0"}}),t._v(" "),n("el-option",{attrs:{label:"审核通过",value:"1"}}),t._v(" "),n("el-option",{attrs:{label:"审核失败",value:"-1"}})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"商品搜索:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称或ID",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getJoinedList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getJoinedList(1)}}},[t._v("搜索")])],1)],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.selectedLoading,expression:"selectedLoading"}],ref:"selectedData",attrs:{"row-key":"product_id",data:t.tableData.data,size:"small","default-expand-all":t.isExpand,"tree-props":{children:"children",hasChildren:"hasChildren"}}},[n("el-table-column",{key:"14",attrs:{prop:"product_id",label:"商品ID","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.sku?t._e():n("span",[t._v(t._s(e.row.product_id))])]}}],null,!1,1613001260)}),t._v(" "),n("el-table-column",{key:"15",attrs:{"min-width":"220",label:"商品信息"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"acea-row"},[n("div",{staticClass:"demo-image__preview mr10 line-heightOne"},[n("el-image",{attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1),t._v(" "),n("div",{staticClass:"row_title line2"},[t._v(t._s(e.row.store_name))])])]}}],null,!1,2144815874)}),t._v(" "),n("el-table-column",{key:"16",attrs:{label:"商品分类","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.storeCategory?e.row.storeCategory.cate_name:"-"))])]}}],null,!1,1610769387)}),t._v(" "),n("el-table-column",{key:"23",attrs:{label:"商户名称",prop:"mer_name","min-width":"100"}}),t._v(" "),n("el-table-column",{key:"18",attrs:{prop:"ot_price",label:"售价","min-width":"80"}}),t._v(" "),n("el-table-column",{key:"21",attrs:{prop:"price",label:"秒杀价","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return e.row.sku?[n("span",[t._v(t._s(e.row.price))])]:void 0}}],null,!0)}),t._v(" "),n("el-table-column",{key:"19",attrs:{prop:"old_stock",label:"库存","min-width":"80"}}),t._v(" "),n("el-table-column",{key:"20",attrs:{label:"限量",prop:"stock","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return e.row.sku?[n("span",[t._v(t._s(e.row.stock))])]:void 0}}],null,!0)}),t._v(" "),n("el-table-column",{key:"22",attrs:{prop:"rank",label:"排序","min-width":"110"},scopedSlots:t._u([{key:"default",fn:function(e){return e.row.sku||""==e.row.sku?void 0:[n("span",[t._v(t._s(e.row.rank))])]}}],null,!0)})],1),t._v(" "),n("div",{staticClass:"block"},[n("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)]:t._e()],2)])],1),t._v(" "),t.isLook?t._e():n("el-card",{staticClass:"fixed-card box-card",attrs:{"dis-hover":"",bordered:!1,shadow:"never"}},[n("div",{staticClass:"acea-row row-center-wrapper"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:"second"==t.activeName,expression:"activeName == 'second'"}],attrs:{size:"small",type:"primary"},on:{click:function(e){t.activeName="first"}}},[t._v("上一步")]),t._v(" "),n("el-button",{directives:[{name:"show",rawName:"v-show",value:"first"==t.activeName,expression:"activeName == 'first'"}],attrs:{size:"small",type:"primary"},on:{click:function(e){t.activeName="second"}}},[t._v("下一步")]),t._v(" "),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v("保存")])],1)])],1),t._v(" "),n("activity",{key:"keyNum",ref:"activityModal",on:{onChange:t.setActivity}}),t._v(" "),n("goodsList",{ref:"goodsList",attrs:{pid:t.ruleForm.product_category_ids,proData:t.proData},on:{onSelectList:t.selectList}})],1)},a=[],i=n("db72"),o=(n("20d6"),n("7f7f"),n("ac6a"),n("b7be")),s=n("c4c8"),c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.dialogVisible?n("el-dialog",{attrs:{title:"商品信息",visible:t.dialogVisible,width:"1100px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("div",{staticClass:"divBox"},[n("div",{staticClass:"header clearfix"},[n("div",{staticStyle:{"font-size":"12px",color:"#F56464"}},[t._v("注:平台添加秒杀商品,此处仅展示所有自营店铺商品。")]),t._v(" "),n("div",{staticClass:"container mt14"},[n("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small",inline:"","label-width":"80px"}},[n("el-form-item",{attrs:{label:"商品搜索:",prop:"keyword"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品关键字",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"平台分类:",prop:"cate_ids"}},[n("el-select",{staticClass:"selWidth",attrs:{filterable:"",clearable:"",multiple:"","default-first-option":"",placeholder:"请选择平台商品分类"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.cate_ids,callback:function(e){t.$set(t.tableFrom,"cate_ids",e)},expression:"tableFrom.cate_ids"}},t._l(t.sysCateList,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value,disabled:t.pid&&t.pid.length>0&&-1==t.pid.indexOf(e.value.toString())},on:{change:function(e){return t.getList(1)}}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"商户分类:",prop:"category_id"}},[n("el-select",{staticClass:"selWidth",attrs:{filterable:"",clearable:"","allow-create":"","default-first-option":"",placeholder:"请选择商户商品分类"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.category_id,callback:function(e){t.$set(t.tableFrom,"category_id",e)},expression:"tableFrom.category_id"}},t._l(t.merCateList,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"商品标签:",prop:"sys_labels"}},[n("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.merProductLabelList,(function(t){return n("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"商品状态:",prop:"us_status"}},[n("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.us_status,callback:function(e){t.$set(t.tableFrom,"us_status",e)},expression:"tableFrom.us_status"}},t._l(t.productStatusList,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"商户名称:",prop:"mer_id"}},[n("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 n("el-option",{key:t.mer_id,attrs:{label:t.mer_name,value:t.mer_id}})})),1)],1)],1)],1)]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"mainTable",attrs:{data:t.tableData.data,size:"small","max-height":"400"}},[n("el-table-column",{attrs:{width:"55"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("el-checkbox",{attrs:{slot:"reference",value:t.isChecked&&t.checkedPage.indexOf(t.tableFrom.page)>-1},on:{change:t.changeType},slot:"reference"})]}},{key:"default",fn:function(e){return[n("el-checkbox",{attrs:{value:t.checkedIds.indexOf(e.row.product_id)>-1},on:{change:function(n){return t.changeOne(n,e.row)}}})]}}],null,!1,594851932)}),t._v(" "),n("el-table-column",{attrs:{label:"ID",prop:"product_id",width:"55"}}),t._v(" "),n("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("div",{staticClass:"demo-image__preview"},[n("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.image,"preview-src-list":[t.row.image]}})],1)]}}],null,!1,2331550732)}),t._v(" "),n("el-table-column",{attrs:{label:"商品名称","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"row_title line2"},[t._v(t._s(e.row.store_name))])]}}],null,!1,2346630169)}),t._v(" "),n("el-table-column",{attrs:{label:"商品分类","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.storeCategory?e.row.storeCategory.cate_name:"-"))])]}}],null,!1,1610769387)}),t._v(" "),n("el-table-column",{attrs:{prop:"merchant.mer_name",label:"商户名称","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{prop:"old_stock",label:"库存","min-width":"80"}}),t._v(" "),n("el-table-column",{attrs:{label:"商品状态","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(0==e.row.is_show?"下架":"上架"))])]}}],null,!1,3823054164)})],1),t._v(" "),n("div",{staticClass:"acea-row row-between row-bottom"},[n("el-pagination",{attrs:{"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}}),t._v(" "),n("div",[n("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")]),t._v(" "),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.submitProduct}},[t._v("确定")])],1)],1)],1)]):t._e()},l=[],u=(n("6b54"),n("178b")),d=n("3953"),p=n("e630"),f=n("1df6");function m(t){return Object(u["a"])(t)||Object(d["a"])(t)||Object(p["a"])(t)||Object(f["a"])()}var h=n("2f62"),_=n("83d6"),b={name:"SeckillGoodsList",props:{pid:{type:Array,default:function(){return[]}},proData:{type:Array,default:function(){return[]}}},data:function(){return{dialogVisible:!1,roterPre:_["roterPre"],listLoading:!0,productStatusList:[{label:"上架",value:1},{label:"下架",value:0}],tableData:{data:[],total:0},tableFrom:{page:1,limit:5,cate_ids:"",category_id:"",keyword:"",us_status:"",sys_labels:[],type_id:"",active_id:this.$route.params.id},mer_ids:[],props:{emitPath:!1},multipleSelection:[],checked:[],selectAllPage:!1,checkedPage:[],checkBox:[],isChecked:!1,checkedIds:[]}},computed:Object(i["a"])({},Object(h["b"])(["merCateList","merProductLabelList","sysCateList","storeTypeList","merSelect"])),mounted:function(){this.merCateList.length||this.$store.dispatch("product/getMerCateSelect"),this.sysCateList.length||this.$store.dispatch("product/getSysCategoryList",{lv:1}),this.merProductLabelList.length||this.$store.dispatch("product/getProductLabel"),this.storeTypeList.length||this.$store.dispatch("product/getStoreType"),this.merSelect.length||this.$store.dispatch("product/getMerSelect")},methods:{searchReset:function(){this.$refs.searchForm.resetFields(),this.getList(1)},setCheckedProduct:function(t){if(t.length){var e=m(t),n=e.slice(0);this.checkBox=n,this.checkedIds=n.map((function(t){return t.old_product_id}))}else this.checkedIds=[]},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,this.tableFrom.level_one_cate_ids=this.pid.length&&this.pid.toString()||"",Object(o["gb"])(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)}))},changeType:function(t){this.isChecked=t;var e=this.checkedPage.indexOf(this.tableFrom.page);this.isIndex=e,this.checkedPage.push(this.tableFrom.page),e>-1&&this.checkedPage.splice(e,1),this.syncCheckedId(t)},changeOne:function(t,e){if(t){var n=this.checkedIds.indexOf(e.product_id);-1===n&&(this.checkedIds.push(e.product_id),this.checkBox.push(e))}else{var r=this.checkedIds.indexOf(e.product_id);r>-1&&(this.checkedIds.splice(r,1),this.checkBox.splice(r,1))}},syncCheckedId:function(t){var e=this;this.tableData.data.map((function(t){return t.product_id}));t?this.tableData.data.forEach((function(t){var n=e.checkedIds.indexOf(t.product_id);-1===n&&(e.checkedIds.push(t.product_id),e.checkBox.push(t))})):this.tableData.data.forEach((function(t){var n=e.checkedIds.indexOf(t.product_id);n>-1&&(e.checkedIds.splice(n,1),e.checkBox.splice(n,1))}))},submitProduct:function(){if(this.checkBox.length>100)return this.$message.warning("最多可选择100个商品");this.dialogVisible=!1,this.$emit("onSelectList",this.checkBox)},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")}}},g=b,v=(n("9c50"),n("2877")),k=Object(v["a"])(g,c,l,!1,null,"72228402",null),y=k.exports,w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{"before-close":t.onClose,title:"批量设置",visible:t.showStatus,width:"620px"},on:{"update:visible":function(e){t.showStatus=e}}},[n("el-form",{ref:"form",attrs:{size:"small",model:t.form,"label-width":"80px"}},["limit"==t.type?n("el-form-item",{attrs:{label:"限量:"}},[n("el-radio-group",{model:{value:t.form.limit_type,callback:function(e){t.$set(t.form,"limit_type",e)},expression:"form.limit_type"}},[n("el-radio",{attrs:{label:"0"}},[t._v("增加")]),t._v(" "),n("el-radio",{attrs:{label:"1"}},[t._v("减少")]),t._v(" "),n("el-radio",{attrs:{label:"2"}},[t._v("固定数量")])],1)],1):t._e(),t._v(" "),"limit"==t.type?n("el-form-item",[n("el-input-number",{staticClass:"pageWidth",attrs:{step:1,"step-strictly":"",type:"number","controls-position":"right",min:1,max:99999},model:{value:t.form.activity_stock,callback:function(e){t.$set(t.form,"activity_stock",e)},expression:"form.activity_stock"}})],1):t._e(),t._v(" "),"price"==t.type?n("el-form-item",{attrs:{label:"秒杀价:"}},[n("el-radio-group",{model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},[n("el-radio",{attrs:{label:"0"}},[t._v("增加")]),t._v(" "),n("el-radio",{attrs:{label:"1"}},[t._v("减少")]),t._v(" "),n("el-radio",{attrs:{label:"2"}},[t._v("折扣(%)")]),t._v(" "),n("el-radio",{attrs:{label:"3"}},[t._v("固定价格")])],1)],1):t._e(),t._v(" "),"price"==t.type?n("el-form-item",[n("el-input-number",{staticClass:"pageWidth",attrs:{type:"number",precision:2,min:0,max:99999,"controls-position":"right",controls:!1},model:{value:t.form.price,callback:function(e){t.$set(t.form,"price",e)},expression:"form.price"}}),t._v(" "+t._s(2==t.form.type?"%":"元")+"\n "),n("p",{staticStyle:{color:"#F56464","font-size":"13px"}},[t._v("注:批量设置价格为敏感操作,请谨慎操作!")])],1):t._e(),t._v(" "),n("el-form-item",{attrs:{label:"是否开启:"}},[n("el-switch",{attrs:{width:55,"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:t.onClose}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.confirmSet}},[t._v("确 定")])],1)],1)},C=[],x=n("bd86"),$={name:"",data:function(){return{showStatus:!1,type:"limit",form:Object(x["a"])({type:"0",limit_type:"0",status:1,price:"",discount:"",activity_stock:""},"status",1)}},methods:{showModal:function(t){this.type=t,this.showStatus=!0},onClose:function(){var t=this;t.showStatus=!1,setTimeout((function(){t.form={limit_type:"0",type:"0",status:1,price:"",discount:"",activity_stock:""}}),500)},confirmSet:function(){this.$emit("onChange",this.form,this.type),this.onClose()}}},L=$,F=Object(v["a"])(L,w,C,!1,null,"04342f36",null),S=F.exports,D=n("61f7"),O=n("bbcc"),I={name:"StoreCreatSeckill",components:{activity:S,goodsList:y},data:function(){return{pageType:"",roterPre:_["roterPre"],baseURL:O["a"].httpUrl||"http://localhost:8080",activeName:"first",props:{multiple:!0,emitPath:!0},ruleForm:{seckill_time_ids:[],start_day:"",end_day:"",once_pay_count:"",all_pay_count:"",name:"",product_category_ids:[],product_list:[],timeVal:[],proCategorylist:[],atmosphere_pic:"",border_pic:""},rules:{name:[{required:!0,message:"请输入活动名称",trigger:"blur"}],seckill_time_ids:[{required:!0,message:"请选择秒杀场次",trigger:"change"}],timeVal:[{required:!0,message:"请选择活动日期"}],timeVal2:[{type:"array",required:!0,message:"请选择秒杀场次",trigger:"change"}],merStars:[{required:!0,message:"请选择商户星级",trigger:"change"}]},pickerOptions:{disabledDate:function(t){return t.getTime()<Date.now()-864e5}},categoryList:[],spikeTimeList:[],multipleSelection:[],activityType:null,tableData:{data:[],total:0},tableFrom:{page:1,limit:5,status:"",keyword:""},proData:[],spu_ids:[],listLoading:!1,selectedLoading:!1,checkAll:!0,isIndeterminate:!0,tempRoute:{},isShowCheck:!1,keyNum:0,loading:!1,isExpand:!1,active_id:""}},created:function(){},mounted:function(){this.setTagsViewTitle(),this.getSeckillIntervalList(),this.isCkecked(),this.$route.params.id&&this.getInfo(),this.getCategoryList()},computed:{isEdit:function(){return!("edit"!=this.$route.params.type||!this.$route.params.id)},isCopy:function(){return!("copy"!=this.$route.params.type||!this.$route.params.id)},isLook:function(){return!("look"!=this.$route.params.type||!this.$route.params.id)},title:function(){return"look"==this.$route.params.type&&this.$route.params.id?"查看":"edit"==this.$route.params.type&&this.$route.params.id?"编辑":"copy"==this.$route.params.type?"复制":"添加"}},methods:{setTagsViewTitle:function(){if(this.$route.params.id){var t=this.$route.params.id?"编辑秒杀活动":"添加秒杀活动",e=Object.assign({},this.tempRoute,{title:"".concat(t,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",e)}},getCategoryList:function(){var t=this;Object(s["w"])({type:0,lv:0}).then((function(e){t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},modalPicTap:function(t){var e=this;e.isLook||this.$modalUpload((function(n){1==t?e.ruleForm.atmosphere_pic=n[0]:e.ruleForm.border_pic=n[0]}))},changeStatus:function(t){if(t.children&&t.children.length>0)t.children.forEach((function(e){e.is_show=t.is_show}));else{var e=this.findFirstIndex(this.proData,t);-1!=e&&this.proData[e]["children"]&&this.proData[e]["children"].length>0&&(this.proData[e]["children"].every((function(t){return 0==t.is_show}))?this.proData[e]["is_show"]=0:(this.proData[e]["children"].every((function(t){return 1==t.is_show}))||this.proData[e]["children"].some((function(t){return 1===t.is_show})))&&(this.proData[e]["is_show"]=1))}},findFirstIndex:function(t,e){for(var n=0;n<t.length;n++)if(t[n].product_id===e.id)return n;return-1},isCkecked:function(){var t=this.proData.filter((function(t){return t.checked}));t.length?this.isShowCheck=!1:this.isShowCheck=!0},handleCheckAllChange:function(t){var e=this;this.isIndeterminate=!this.isIndeterminate,this.proData.forEach((function(n){e.$set(n,"checked",t),n.children.forEach((function(n){e.$set(n,"checked",t)}))})),this.isCkecked()},handleCheckOneChange:function(t,e){var n=this,r=this.proData.length,a=0;this.$set(e,"checked",t),e.children&&e.children.length&&e.children.forEach((function(e){n.$set(e,"checked",t)})),this.proData.forEach((function(e){e.checked===t&&a++})),this.checkAll=r===a?t:!t,this.isIndeterminate=a>0&&a<r,this.isCkecked()},getInfo:function(){var t=this;this.loading=!0,Object(o["Ub"])(this.$route.params.id).then((function(e){t.active_id=e.data.seckill_active_id;var n=e.data;t.ruleForm={all_pay_count:n.all_pay_count,end_day:n.end_day,name:n.name,once_pay_count:n.once_pay_count,start_day:n.start_day,seckill_time_ids:n.seckill_time_ids,product_category_ids:n.product_category_ids||[],timeVal:[n.start_day,n.end_day],status:n.status,atmosphere_pic:n.atmosphere_pic,border_pic:n.border_pic},t.tableFrom.seckill_active_id=e.data.seckill_active_id,t.isCopy||(t.getJoinedList(),t.isEdit||t.getProductList(e.data.seckill_active_id)),t.loading=!1})).catch((function(e){t.loading=!1}))},getProductList:function(t){var e=this;Object(o["hb"])({seckill_active_id:t}).then((function(t){e.proData=t.data.list,e.getAttrValue(e.proData,!0),e.listLoading=!1})).catch((function(t){e.listLoading=!1}))},getJoinedList:function(t){var e=this;this.tableFrom.page=t||this.tableFrom.page,this.selectedLoading=!0,Object(s["wb"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.getAttrValue(e.tableData.data,!1),e.selectedLoading=!1})).catch((function(t){e.selectedLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getJoinedList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getJoinedList("")},back:function(){this.$router.push({path:"/marketing/seckill/store_seckill/list"})},handleDelete:function(t,e){var n=this;this.$modalSure("删除该秒杀商品吗?").then((function(){var t=n.proData.findIndex((function(t){return t==e}));n.proData.splice(t,1)}))},setActivity:function(t,e){var n=this;this.proData.forEach((function(r){r.children.forEach((function(a){r.checked&&a.checked&&("limit"==e?0==t.limit_type?n.$set(a,"stock",a.stock+t.activity_stock):1==t.limit_type?n.$set(a,"stock",a.stock-t.activity_stock>0?a.stock-t.activity_stock:0):2==t.limit_type&&n.$set(a,"stock",t.activity_stock):"price"==e?0==t.type?n.$set(a,"price",a.price+t.price):1==t.type?n.$set(a,"price",a.price-t.price>0?a.price-t.price:.01):2==t.type?n.$set(a,"price",a.price*t.price/100):3==t.type&&n.$set(a,"price",t.price):("0"==e?n.$set(a,"is_show",0):"1"==e&&(n.$set(r,"is_show",1),n.$set(a,"is_show",1)),r["children"].every((function(t){return 0==t.is_show}))?n.$set(r,"is_show",0):(r["children"].every((function(t){return 1==t.is_show}))||r["children"].some((function(t){return 1===t.is_show})))&&n.$set(r,"is_show",1)))}))}))},getSeckillIntervalList:function(){var t=this;Object(o["ac"])({active_id:0}).then((function(e){t.spikeTimeList=e.data}))},addGoods:function(){this.$refs.goodsList.dialogVisible=!0,this.$refs.goodsList.getList(""),this.$refs.goodsList.setCheckedProduct(this.proData)},selectList:function(t){this.getAttrValue(t,!0),this.isCkecked()},getAttrValue:function(t,e){var n=this;t.map((function(t){n.$set(t,"rank",t.rank?t.rank:0),n.$set(t,"mer_name",t.merchant&&t.merchant.mer_name?t.merchant.mer_name:""),n.$set(t,"checked",!0),n.$set(t,"is_show",1),t.attrValue.map((function(e){n.$set(e,"checked",!0),n.$set(e,"store_name",e.sku||"默认"),n.$set(e,"sku",e.sku||"默认"),n.$set(e,"mer_name",t.merchant&&t.merchant.mer_name?t.merchant.mer_name:""),n.$set(e,"categoryName",t.categoryName),n.$set(e,"is_show",t.is_show||0),n.$set(e,"stock",e.stock?e.stock:0),n.$set(e,"old_stock",e.old_stock?e.old_stock:0),n.$set(e,"price",e.price?e.price:0),n.$set(e,"id",e.product_id?e.product_id:0),n.$set(e,"product_id",e.value_id?e.value_id:0)})),n.$set(t,"children",t.attrValue)})),e?(n.proData=t,n.isCkecked()):n.tableData.data=t},batchDel:function(){var t=this;this.$modalSure("批量删除商品吗?").then((function(){t.proData=t.proData.filter((function(t){return!t.checked}))}))},setPrice:function(t){var e=this;this.keyNum=Math.random(),"limit"==t||"price"==t?this.$refs.activityModal.showModal(t):"open"==t?this.$modalSure("确定批量开启秒杀商品").then((function(){e.setActivity(null,"1")})):this.$modalSure("确定批量关闭秒杀商品").then((function(){e.setActivity(null,"0")}))},onchangeTime:function(t){this.ruleForm.timeVal=t,this.ruleForm.start_day=t?t[0]:"",this.ruleForm.end_day=t?t[1]:""},filterIsShowOne:function(t){return t.map((function(t){if(t.attrValue&&t.attrValue.length>0){var e=t.attrValue.filter((function(t){return 1==t.is_show}));return Object(i["a"])(Object(i["a"])({},t),{},{attrValue:e})}return t}))},submitForm:Object(D["a"])((function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;if(e.proData.length>0){var n=0,r=0;e.proData.map((function(t){t.children.map((function(t){n+=t.stock,r+=t.price}))}));var a=e.proData.filter((function(t){return 1===t.is_show}));if(e.ruleForm.product_list=e.filterIsShowOne(a),!n&&0!==n&&e.ruleForm.product_list.length>0)return e.$message.warning("商品限量不能为空");if(!r&&e.ruleForm.product_list.length>0)return e.$message.warning("商品秒杀价格不能为空");if(n<e.proData.length&&e.ruleForm.product_list.length>0)return e.$message.warning("商品限量总和不能小于0")}e.isEdit?Object(o["Wb"])(e.$route.params.id,e.ruleForm).then((function(t){e.$message.success(t.message),e.$router.push({path:"".concat(e.roterPre,"/marketing/seckill/store_seckill/list")})})).catch((function(t){e.$message.error(t.message)})):Object(o["Sb"])(e.ruleForm).then((function(t){e.$message.success(t.message),e.$router.push({path:"".concat(e.roterPre,"/marketing/seckill/store_seckill/list")})})).catch((function(t){e.$message.error(t.message)}))}))}))}},P=I,V=(n("9667"),Object(v["a"])(P,r,a,!1,null,"2b55b538",null));e["default"]=V.exports},"6dad":function(t,e,n){},9667:function(t,e,n){"use strict";n("6dad")},"9c50":function(t,e,n){"use strict";n("b04f")},b04f:function(t,e,n){},b7be:function(t,e,n){"use strict";n.d(e,"Qb",(function(){return a})),n.d(e,"Pb",(function(){return i})),n.d(e,"Lb",(function(){return o})),n.d(e,"Kb",(function(){return s})),n.d(e,"Jb",(function(){return c})),n.d(e,"Mb",(function(){return l})),n.d(e,"Nb",(function(){return u})),n.d(e,"Ob",(function(){return d})),n.d(e,"W",(function(){return p})),n.d(e,"R",(function(){return f})),n.d(e,"S",(function(){return m})),n.d(e,"U",(function(){return h})),n.d(e,"T",(function(){return _})),n.d(e,"Db",(function(){return b})),n.d(e,"Q",(function(){return g})),n.d(e,"x",(function(){return v})),n.d(e,"D",(function(){return k})),n.d(e,"v",(function(){return y})),n.d(e,"u",(function(){return w})),n.d(e,"w",(function(){return C})),n.d(e,"Eb",(function(){return x})),n.d(e,"Fb",(function(){return $})),n.d(e,"nc",(function(){return L})),n.d(e,"A",(function(){return F})),n.d(e,"z",(function(){return S})),n.d(e,"E",(function(){return D})),n.d(e,"i",(function(){return O})),n.d(e,"mc",(function(){return I})),n.d(e,"jc",(function(){return P})),n.d(e,"lc",(function(){return V})),n.d(e,"ic",(function(){return z})),n.d(e,"kc",(function(){return j})),n.d(e,"Zb",(function(){return N})),n.d(e,"oc",(function(){return E})),n.d(e,"y",(function(){return T})),n.d(e,"C",(function(){return A})),n.d(e,"B",(function(){return W})),n.d(e,"O",(function(){return B})),n.d(e,"G",(function(){return M})),n.d(e,"J",(function(){return J})),n.d(e,"K",(function(){return U})),n.d(e,"I",(function(){return q})),n.d(e,"L",(function(){return R})),n.d(e,"P",(function(){return G})),n.d(e,"N",(function(){return K})),n.d(e,"M",(function(){return H})),n.d(e,"F",(function(){return Q})),n.d(e,"H",(function(){return X})),n.d(e,"V",(function(){return Y})),n.d(e,"pb",(function(){return Z})),n.d(e,"ob",(function(){return tt})),n.d(e,"hc",(function(){return et})),n.d(e,"fb",(function(){return nt})),n.d(e,"rc",(function(){return rt})),n.d(e,"cb",(function(){return at})),n.d(e,"ab",(function(){return it})),n.d(e,"bb",(function(){return ot})),n.d(e,"gc",(function(){return st})),n.d(e,"X",(function(){return ct})),n.d(e,"o",(function(){return lt})),n.d(e,"n",(function(){return ut})),n.d(e,"m",(function(){return dt})),n.d(e,"l",(function(){return pt})),n.d(e,"k",(function(){return ft})),n.d(e,"Y",(function(){return mt})),n.d(e,"t",(function(){return ht})),n.d(e,"r",(function(){return _t})),n.d(e,"q",(function(){return bt})),n.d(e,"s",(function(){return gt})),n.d(e,"p",(function(){return vt})),n.d(e,"kb",(function(){return kt})),n.d(e,"ib",(function(){return yt})),n.d(e,"mb",(function(){return wt})),n.d(e,"jb",(function(){return Ct})),n.d(e,"lb",(function(){return xt})),n.d(e,"Z",(function(){return $t})),n.d(e,"Bb",(function(){return Lt})),n.d(e,"Ab",(function(){return Ft})),n.d(e,"yb",(function(){return St})),n.d(e,"Cb",(function(){return Dt})),n.d(e,"eb",(function(){return Ot})),n.d(e,"xb",(function(){return It})),n.d(e,"zb",(function(){return Pt})),n.d(e,"wb",(function(){return Vt})),n.d(e,"sb",(function(){return zt})),n.d(e,"ub",(function(){return jt})),n.d(e,"tb",(function(){return Nt})),n.d(e,"nb",(function(){return Et})),n.d(e,"db",(function(){return Tt})),n.d(e,"qb",(function(){return At})),n.d(e,"vb",(function(){return Wt})),n.d(e,"rb",(function(){return Bt})),n.d(e,"a",(function(){return Mt})),n.d(e,"pc",(function(){return Jt})),n.d(e,"d",(function(){return Ut})),n.d(e,"f",(function(){return qt})),n.d(e,"c",(function(){return Rt})),n.d(e,"j",(function(){return Gt})),n.d(e,"b",(function(){return Kt})),n.d(e,"h",(function(){return Ht})),n.d(e,"e",(function(){return Qt})),n.d(e,"g",(function(){return Xt})),n.d(e,"Sb",(function(){return Yt})),n.d(e,"ac",(function(){return Zt})),n.d(e,"Vb",(function(){return te})),n.d(e,"Tb",(function(){return ee})),n.d(e,"Ub",(function(){return ne})),n.d(e,"Wb",(function(){return re})),n.d(e,"Yb",(function(){return ae})),n.d(e,"gb",(function(){return ie})),n.d(e,"hb",(function(){return oe})),n.d(e,"dc",(function(){return se})),n.d(e,"fc",(function(){return ce})),n.d(e,"Xb",(function(){return le})),n.d(e,"cc",(function(){return ue})),n.d(e,"bc",(function(){return de})),n.d(e,"ec",(function(){return pe}));var r=n("0c6d");function a(t){return r["a"].get("/store/coupon/platformLst",t)}function i(t){return r["a"].get("/store/coupon/update/".concat(t,"/form"))}function o(t){return r["a"].get("/store/coupon/show/".concat(t))}function s(t){return r["a"].delete("store/coupon/delete/".concat(t))}function c(t){return r["a"].get("/store/coupon/sys/clone/".concat(t,"/form"))}function l(t){return r["a"].get("store/coupon/sys/issue",t)}function u(t,e){return r["a"].get("store/coupon/show_lst/".concat(t),e)}function d(t){return r["a"].get("/store/coupon/send/lst",t)}function p(t){return r["a"].post("store/coupon/send",t)}function f(t){return r["a"].get("store/coupon/detail/".concat(t))}function m(t){return r["a"].get("store/coupon/lst",t)}function h(t,e){return r["a"].post("store/coupon/status/".concat(t),{status:e})}function _(){return r["a"].get("store/coupon/create/form")}function b(t){return r["a"].get("store/coupon/issue",t)}function g(t){return r["a"].delete("store/coupon/delete/".concat(t))}function v(t){return r["a"].get("broadcast/room/lst",t)}function k(t,e){return r["a"].post("broadcast/room/status/".concat(t),e)}function y(t){return r["a"].delete("broadcast/room/delete/".concat(t))}function w(t){return r["a"].get("broadcast/room/apply/form/".concat(t))}function C(t){return r["a"].get("broadcast/room/detail/".concat(t))}function x(t,e){return r["a"].post("broadcast/room/feedsPublic/".concat(t),{status:e})}function $(t,e){return r["a"].post("broadcast/room/comment/".concat(t),{status:e})}function L(t,e){return r["a"].post("broadcast/room/closeKf/".concat(t),{status:e})}function F(t){return r["a"].get("broadcast/goods/lst",t)}function S(t){return r["a"].get("broadcast/goods/detail/".concat(t))}function D(t,e){return r["a"].post("broadcast/goods/status/".concat(t),e)}function O(t){return r["a"].get("broadcast/goods/apply/form/".concat(t))}function I(){return r["a"].get("seckill/config/create/form")}function P(t){return r["a"].get("seckill/config/lst",t)}function V(t){return r["a"].get("seckill/config/update/".concat(t,"/form"))}function z(t){return r["a"].delete("seckill/config/delete/".concat(t))}function j(t,e){return r["a"].post("seckill/config/status/".concat(t),{status:e})}function N(t,e){return r["a"].get("seckill/product/detail/".concat(t),e)}function E(t,e){return r["a"].get("broadcast/room/goods/".concat(t),e)}function T(t){return r["a"].delete("broadcast/goods/delete/".concat(t))}function A(t,e){return r["a"].post("broadcast/room/sort/".concat(t),e)}function W(t,e){return r["a"].post("broadcast/goods/sort/".concat(t),e)}function B(t){return r["a"].post("config/others/group_buying",t)}function M(){return r["a"].get("config/others/group_buying")}function J(t){return r["a"].get("store/product/group/lst",t)}function U(t){return r["a"].get("store/product/group/get/".concat(t))}function q(t){return r["a"].get("store/product/group/detail/".concat(t))}function R(t){return r["a"].post("store/product/group/status",t)}function G(t,e){return r["a"].post("store/product/group/is_show/".concat(t),{status:e})}function K(t){return r["a"].get("store/product/group/get/".concat(t))}function H(t,e){return r["a"].post("store/product/group/update/".concat(t),e)}function Q(t){return r["a"].get("store/product/group/buying/lst",t)}function X(t,e){return r["a"].get("store/product/group/buying/detail/".concat(t),e)}function Y(t,e){return r["a"].get("store/coupon/product/".concat(t),e)}function Z(){return r["a"].get("user/integral/title")}function tt(t){return r["a"].get("user/integral/lst",t)}function et(t){return r["a"].get("user/integral/excel",t)}function nt(){return r["a"].get("user/integral/config")}function rt(t){return r["a"].post("user/integral/config",t)}function at(t){return r["a"].get("discounts/lst",t)}function it(t,e){return r["a"].post("discounts/status/".concat(t),{status:e})}function ot(t){return r["a"].get("discounts/detail/".concat(t))}function st(t){return r["a"].get("marketing/spu/lst",t)}function ct(t){return r["a"].post("activity/atmosphere/create",t)}function lt(t,e){return r["a"].post("activity/atmosphere/update/".concat(t),e)}function ut(t){return r["a"].get("activity/atmosphere/lst",t)}function dt(t){return r["a"].get("activity/atmosphere/detail/".concat(t))}function pt(t,e){return r["a"].post("activity/atmosphere/status/".concat(t),{status:e})}function ft(t){return r["a"].delete("activity/atmosphere/delete/".concat(t))}function mt(t){return r["a"].post("activity/border/create",t)}function ht(t,e){return r["a"].post("activity/border/update/".concat(t),e)}function _t(t){return r["a"].get("activity/border/lst",t)}function bt(t){return r["a"].get("activity/border/detail/".concat(t))}function gt(t,e){return r["a"].post("activity/border/status/".concat(t),{status:e})}function vt(t){return r["a"].delete("activity/border/delete/".concat(t))}function kt(){return r["a"].get("points/cate/lst")}function yt(){return r["a"].get("points/cate/create/form")}function wt(t){return r["a"].get("points/cate/update/form/".concat(t))}function Ct(t){return r["a"].delete("points/cate/delete/".concat(t))}function xt(t,e){return r["a"].post("points/cate/status/".concat(t),{status:e})}function $t(t){return r["a"].post("points/product/create",t)}function Lt(t,e){return r["a"].post("points/product/update/".concat(t),e)}function Ft(t){return r["a"].get("points/product/lst",t)}function St(t){return r["a"].delete("points/product/delete/".concat(t))}function Dt(t,e){return r["a"].post("points/product/status/".concat(t),{status:e})}function Ot(t,e){return r["a"].post("points/product/get_attr_value/".concat(t),e)}function It(){return r["a"].get("points/cate/select")}function Pt(t){return r["a"].get("points/product/detail/".concat(t))}function Vt(t){return r["a"].get("points/order/lst",t)}function zt(t){return r["a"].get("points/order/detail/".concat(t))}function jt(t){return r["a"].get("points/order/express/".concat(t))}function Nt(t){return r["a"].get("points/order/excel",t)}function Et(t,e){return r["a"].post("points/order/delivery/".concat(t),e)}function Tt(t){return r["a"].get("store/express/options",t)}function At(t){return r["a"].get("points/order/mark/".concat(t,"/form"))}function Wt(t,e){return r["a"].get("points/order/status/".concat(t),e)}function Bt(t){return r["a"].delete("points/order/delete/".concat(t))}function Mt(t){return r["a"].post("activity/form/create",t)}function Jt(){return r["a"].get("system/form/select")}function Ut(t){return r["a"].get("activity/form/lst",t)}function qt(t,e){return r["a"].post("activity/form/status/".concat(t),{status:e})}function Rt(t){return r["a"].get("activity/form/detail/".concat(t))}function Gt(t,e){return r["a"].get("system/form/info/".concat(t),e)}function Kt(t){return r["a"].delete("activity/form/delete/".concat(t))}function Ht(t,e){return r["a"].get("activity/form/user/lst/".concat(t),e)}function Qt(t,e){return r["a"].get("activity/form/excel/".concat(t),e)}function Xt(t,e){return r["a"].post("activity/form/update/".concat(t),e)}function Yt(t){return r["a"].post("seckill/active/create",t)}function Zt(t){return r["a"].get("seckill/config/select",t)}function te(t){return r["a"].get("seckill/active/lst",t)}function ee(t){return r["a"].delete("seckill/active/delete/".concat(t))}function ne(t){return r["a"].get("seckill/active/detail/".concat(t))}function re(t,e){return r["a"].post("seckill/active/update/".concat(t),e)}function ae(t,e){return r["a"].post("seckill/active/update_status/".concat(t),{status:e})}function ie(t){return r["a"].get("store/product/self_lst",t)}function oe(t){return r["a"].get("seckill/product/list",t)}function se(t){return r["a"].get("seckill/product/switchStatus/".concat(t,"/form"))}function ce(t,e){return r["a"].post("seckill/product/update/".concat(t),e)}function le(t){return r["a"].get("seckill/active/chart_panel/".concat(t))}function ue(t,e){return r["a"].get("seckill/active/chart_people/".concat(t),e)}function de(t,e){return r["a"].get("seckill/active/chart_order/".concat(t),e)}function pe(t,e){return r["a"].get("seckill/active/chart_product/".concat(t),e)}}}]); |