zx/public/mer/js/chunk-e663cd82.c41a17ee.js

1 line
35 KiB
JavaScript
Raw Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e663cd82"],{"18a8":function(t,e,a){},2661:function(t,e,a){"use strict";a("18a8")},"84df":function(t,e,a){},ab53:function(t,e,a){"use strict";a("84df")},bb8a:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("div",{staticClass:"container_box"},[a("pages-header",{ref:"pageHeader",attrs:{title:t.isLook?"查看活动":"参加活动",backUrl:"/marketing/seckill/store_seckill/list"}}),t._v(" "),a("el-card",{staticClass:"box-card box-body mt14",attrs:{bordered:!1,shadow:"never"}},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"活动信息",name:"first"}}),t._v(" "),t.isEdit?a("el-tab-pane",{attrs:{label:"秒杀商品",name:"second"}}):t._e(),t._v(" "),a("el-tab-pane",{attrs:{label:"已加商品",name:"third"}})],1),t._v(" "),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"120px",size:"small"}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},["first"==t.activeName?[a("el-form-item",{attrs:{label:"活动名称:",prop:"name"}},[a("el-input",{staticClass:"pageWidth",attrs:{disabled:"",placeholder:"请输入活动名称"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"活动日期:",prop:"timeVal"}},[a("el-date-picker",{staticStyle:{width:"460px"},attrs:{disabled:"","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(" "),a("p",{staticClass:"desc mt10"},[t._v("设置活动开始日期与结束日期,用户可以在有效时间内参与秒杀")])],1),t._v(" "),a("el-form-item",{attrs:{label:"秒杀场次:",prop:"seckill_time_ids"}},[a("el-select",{staticClass:"pageWidth disabled",attrs:{disabled:"",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 a("el-option",{key:t.seckill_time_id+"onl",attrs:{label:t.title+" | "+t.start_time+"-"+t.end_time,value:t.seckill_time_id.toString(),disabled:0===t.status}})})),1),t._v(" "),a("p",{staticClass:"desc mt10"},[t._v("\n 选择商品开始时间段,该时间段内用户可参与购买;其它时间段会显示活动未开始或已结束,可多选\n ")])],1),t._v(" "),a("el-form-item",{attrs:{label:"活动限购:"}},[a("el-input-number",{staticClass:"pageWidth",attrs:{disabled:"","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(" "),a("p",{staticClass:"desc mt10"},[t._v("\n 活动有效期内每个用户可购买该商品总数限制。例如设置为4表示本次活动有效期内每个用户最多可购买总数4个0和空为不限购\n ")])],1),t._v(" "),a("el-form-item",{attrs:{label:"单次限购:"}},[a("el-input-number",{staticClass:"pageWidth",attrs:{disabled:"","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(" "),a("p",{staticClass:"desc mt10"},[t._v("\n 用户参与秒杀时一次购买最大数量限制。例如设置为2表示参与秒杀时用户一次购买数量最大可选择2个0和空为不限购\n ")])],1),t._v(" "),t.ruleForm.product_category_ids&&