zx/public/mer/js/chunk-680ee201.0dca5a7a.js

1 line
17 KiB
JavaScript
Raw Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-680ee201"],{"0bbe":function(t,e,a){"use strict";a("9564")},"5b55":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("el-card",{staticClass:"box-card"},[a("el-row",{staticClass:"acea-row row-middle row-center"},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"formValidate",staticClass:"form",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-row",{directives:[{name:"show",rawName:"v-show",value:0===t.current,expression:"current === 0"}]},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"套餐名称:",prop:"title"}},[a("el-input",{attrs:{placeholder:"请输入套餐名称",size:"small"},model:{value:t.formValidate.title,callback:function(e){t.$set(t.formValidate,"title",e)},expression:"formValidate.title"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"套餐时间:",prop:1==t.formValidate.is_time?"time":""}},[a("el-radio-group",{attrs:{"element-id":"is_time"},model:{value:t.formValidate.is_time,callback:function(e){t.$set(t.formValidate,"is_time",e)},expression:"formValidate.is_time"}},[a("el-radio",{attrs:{label:0}},[t._v("不限时")]),t._v(" "),a("el-radio",{staticClass:"radio",attrs:{label:1}},[t._v("限时")])],1),t._v(" "),1==t.formValidate.is_time?a("div",{staticClass:"acea-row row-middle",staticStyle:{display:"inline-block","margin-left":"15px"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1):t._e()],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"套餐类型:",prop:"type","label-for":"type"}},[a("el-radio-group",{attrs:{"element-id":"type"},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("固定套餐")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("搭配套餐")])],1),t._v(" "),a("div",{staticClass:"ml100 grey"},[t._v("\n "+t._s(0==t.formValidate.type?"套餐内所有商品打包销售,消费者需成套购买整个套餐":"套餐内主商品必选搭配商品任意选择1件及以上即可购买套餐")+"\n ")])],1)],1),t._v(" "),1==t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"套餐主商品:",prop:"products","label-for":"products"}},[a("el-table",{staticClass:"table",attrs:{data:t.specsMainData,size:"small"}},[a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"260"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"product-data"},[a("img",{staticClass:"image",attrs:{src:e.row.image}}),t._v(" "),a("div",[t._v(t._s(e.row.store_name))])])]}}],null,!1,338878098)}),t._v(" "),a("el-table-column",{attrs:{label:"参与规格","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.attr,(function(e,i){return a("div",{key:i},[t._v("\n "+t._s(e.sku||"默认")+" | "+t._s(e.active_price||e.price)+"\n ")])}))}}],null,!1,1237844034)}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.editGoods(e.row,e.$index,"Main")}}},[t._v("设置规格")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.deleteGoods(e.$index,"Main")}}},[t._v("删除")])]}}],null,!1,1942046363)})],1),t._v(" "),t.specsMainData.length<1?a("el-button",{staticClass:"mt20",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.addGoods("Main")}}},[t._v("添加商品")]):t._e()],1)],1):t._e(),t.