You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
crmeb_php/public/mer/js/chunk-0493956f.fc94ca12.js

1 line
6.3 KiB

12 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0493956f"],{"66ac":function(t,e,a){},9761:function(t,e,a){"use strict";a("66ac")},a4a1:function(t,e,a){"use strict";a.r(e);var n=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:{size:"small",inline:"","label-width":"100px"}},[a("el-form-item",{attrs:{label:"套餐类型:",clearable:""}},[a("el-select",{attrs:{placeholder:"请选择套餐类型",clearable:""},on:{change:function(e){return t.getList("")}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},[a("el-option",{attrs:{value:"0",label:"固定套餐"}},[t._v("固定套餐")]),t._v(" "),a("el-option",{attrs:{value:"1",label:"搭配套餐"}},[t._v("搭配套餐")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"套餐状态:"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList("")}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[a("el-option",{attrs:{value:"",label:"全部"}},[t._v("全部")]),t._v(" "),a("el-option",{attrs:{value:"1",label:"上架"}},[t._v("上架")]),t._v(" "),a("el-option",{attrs:{value:"0",label:"下架"}},[t._v("下架")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"套餐搜索:"}},[a("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入套餐名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList("")}},model:{value:t.tableFrom.title,callback:function(e){t.$set(t.tableFrom,"title",e)},expression:"tableFrom.title"}})],1),t._v(" "),a("el-form-item",{staticStyle:{display:"block"}},[a("el-button",{staticClass:"mr10",attrs:{type:"primary"},on:{click:t.add}},[t._v("添加套餐")])],1)],1)],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data}},[a("el-table-column",{attrs:{label:"ID",prop:"discount_id","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"套餐名称",prop:"title","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"套餐类型","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.type?"固定套餐":"搭配套餐")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"上架状态","min-width":"120"},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.is_show,callback:function(a){t.$set(e.row,"is_show",a)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"限时","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.is_time?a("div",[t._v("不限时")]):a("div",[a("div",[t._v("起:"+t._s(e.row.start_time||"--"))]),t._v(" "),a("div",[t._v("止:"+t._s(e.row.stop_time||"--"))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"create_time","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"剩余数量","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.is_limit?e.row.limit_num:"不限量")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/discounts/create/"+e.row.discount_id}}},[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("编辑")])],1),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.discount_id,e.$inde