启程易购后端代码
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.
qicheng_shop_backend/public/system/js/chunk-9459ec48.251aac18.js

1 line
29 KiB

9 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9459ec48"],{"2a52":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("div",{staticClass:"selCard"},[a("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small","label-width":"95px",inline:!0}},[a("el-form-item",{attrs:{label:"优惠券类型:",prop:"type"}},[a("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"}},[a("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),a("el-option",{attrs:{label:"通用券",value:10}}),t._v(" "),a("el-option",{attrs:{label:"品类券",value:11}}),t._v(" "),a("el-option",{attrs:{label:"跨店券",value:12}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"获取方式:",prop:"send_type"}},[a("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"}},[a("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),a("el-option",{attrs:{label:"手动领取",value:0}}),t._v(" "),a("el-option",{attrs:{label:"新人券",value:2}}),t._v(" "),a("el-option",{attrs:{label:"付费会员券",value:5}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"状态:",prop:"status"}},[a("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"}},[a("el-option",{attrs:{label:"未开启",value:0}}),t._v(" "),a("el-option",{attrs:{label:"开启",value:1}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"优惠券名称:",prop:"coupon_name"}},[a("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(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),a("el-card",{staticClass:"mt14"},[a("div",{staticClass:"mb20"},[a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/platform_coupon/CreatCoupon"}}},[a("el-button",{attrs:{size:"small",type:"primary"}},[t._v("添加优惠劵")])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"coupon_id",label:"ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"title",label:"优惠劵名称","min-width":"200"}}),t._v(" "),a("el-table-column",{attrs:{label:"优惠劵类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[10==n.type?a("span",[t._v(" 通用券")]):t._e(),t._v(" "),11==n.type?a("span",[t._v(" 品类券")]):t._e(),t._v(" "),12==n.type?a("span",[t._v(" 跨店券")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"200",label:"领取日期"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[n.start_time?a("div",[t._v("\n "+t._s(n.start_time)+" "),a("br"),t._v("- "+t._s(n.end_time)+"\n ")]):a("span",[t._v("不限时")])]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"200",label:"使用时间"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[n.use_start_time&&n.use_end_time?a("div",[t._v("\n "+t._s(n.use_start_time