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/system/js/chunk-3c2e4b41.ea3c0566.js

1 line
25 KiB

12 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3c2e4b41"],{"2a52":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{size:"small","label-width":"120px",inline:!0}},[n("el-form-item",{attrs:{label:"优惠券名称:"}},[n("el-input",{staticClass:"selWidth mr20",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.coupon_name,callback:function(e){t.$set(t.tableFrom,"coupon_name",e)},expression:"tableFrom.coupon_name"}},[n("el-button",{staticClass:"el-button-solt",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:"优惠券类型:"}},[n("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},[n("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),n("el-option",{attrs:{label:"通用券",value:10}}),t._v(" "),n("el-option",{attrs:{label:"品类券",value:11}}),t._v(" "),n("el-option",{attrs:{label:"跨店券",value:12}})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"获取方式:"}},[n("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.send_type,callback:function(e){t.$set(t.tableFrom,"send_type",e)},expression:"tableFrom.send_type"}},[n("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),n("el-option",{attrs:{label:"手动领取",value:0}}),t._v(" "),n("el-option",{attrs:{label:"新人券",value:2}}),t._v(" "),n("el-option",{attrs:{label:"赠送券",value:3}})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"状态:"}},[n("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(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}})],1)],1)],1)],1),t._v(" "),n("router-link",{attrs:{to:{path:t.roterPre+"/marketing/platform_coupon/CreatCoupon"}}},[n("el-button",{attrs:{size:"small",type:"primary"}},[t._v("添加优惠劵")])],1)],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[n("el-table-column",{attrs:{prop:"coupon_id",label:"ID","min-width":"50"}}),t._v(" "),n("el-table-column",{attrs:{prop:"title",label:"优惠劵名称","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"优惠劵类型","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[10==a.type?n("span",[t._v(" 通用券")]):t._e(),t._v(" "),11==a.type?n("span",[t._v(" 品类券")]):t._e(),t._v(" "),12==a.type?n("span",[t._v(" 跨店券")]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"200",label:"领取日期"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[a.start_time?n("div",[t._v("\n "+t._s(a.start_time)+" "),n("br"),t._v("- "+t._s(a.end_time)+"\n ")]):n("span",[t._v("不限时")])]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"200",label:"使用时间"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[a.use_start_time&&a.use_end_time?n("div",[t._v("\n "+t._s(a.use_start_time)+" "),n("br"),t._v("- "+t._s(a.use_end_time)+"\n ")]):n("span",[t._v(t