zx/public/mer/js/chunk-31b3611d.c1b8a2fd.js

1 line
17 KiB
JavaScript
Raw Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-31b3611d"],{"777e":function(t,e,a){"use strict";a("83ec")},"83ec":function(t,e,a){},b055:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"divBox"},[i("div",{staticClass:"selCard"},[i("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small","label-width":"95px",inline:!0}},[i("el-form-item",{attrs:{label:"优惠券状态:",prop:"status"}},[i("el-select",{staticClass:"selWidth",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"}},[i("el-option",{attrs:{label:"未开启",value:0}}),t._v(" "),i("el-option",{attrs:{label:"开启",value:1}})],1)],1),t._v(" "),i("el-form-item",{attrs:{label:"优惠券类型:",prop:"type"}},[i("el-select",{staticClass:"selWidth",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"}},[i("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),i("el-option",{attrs:{label:"店铺券",value:0}}),t._v(" "),i("el-option",{attrs:{label:"商品券",value:1}})],1)],1),t._v(" "),i("el-form-item",{attrs:{label:"获取方式:",prop:"send_type"}},[i("el-select",{staticClass:"selWidth",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"}},[i("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),i("el-option",{attrs:{label:"手动获取",value:0}}),t._v(" "),i("el-option",{attrs:{label:"新人",value:2}}),t._v(" "),i("el-option",{attrs:{label:"买赠",value:3}})],1)],1),t._v(" "),i("el-form-item",{attrs:{label:"优惠券名称:",prop:"coupon_name"}},[i("el-input",{staticClass:"selWidth",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"}})],1),t._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),i("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),i("el-card",{staticClass:"mt14"},[i("div",{staticClass:"mb20"},[i("router-link",{attrs:{to:{path:t.roterPre+"/marketing/coupon/creatCoupon"}}},[i("el-button",{attrs:{size:"small",type:"primary"}},[t._v("添加优惠劵")])],1)],1),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[i("el-table-column",{attrs:{prop:"coupon_id",label:"ID","min-width":"50"}}),t._v(" "),i("el-table-column",{attrs:{prop:"title",label:"优惠劵名称","min-width":"120"}}),t._v(" "),i("el-table-column",{attrs:{label:"优惠劵类型","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[i("span",[t._v(t._s(t._f("couponTypeFilter")(a.type)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{"min-width":"150",label:"领取日期"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[a.start_time?i("div",[t._v("\n "+t._s(a.start_time)+" "),i("br"),t._v("- "+t._s(a.end_time)+"\n ")]):i("span",[t._v("不限时")])]}}])}),t._v(" "),i("el-table-column",{attrs:{"min-width":"150",label:"使用时间"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[a.use_start_time&&a.use_end_time?i("div",[t._v("\n "+t._s(a.use_start_time)+" "),i("br"),t._v("- "+t._s(a.use_end_time)+"\n ")]):i("span",[t._v(t._s(a.coupon_time)+"天")])]}}])}),t.