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",{
|