1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
![]() |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-00e4d015"],{"05d9":function(e,t,a){},"4f18":function(e,t,a){"use strict";var i=a("05d9"),n=a.n(i);n.a},9493:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"outmain ba_f heighthv pad_20 bor_rad5"},[e._m(0),a("div",{staticClass:"flex-bet pad_l_20"},[a("div",{staticClass:"coupon-item"},[e._m(1),a("el-button",{staticClass:"mar_t10",attrs:{type:"primary",size:"medium"},on:{click:function(t){return e.handleEdit("1")}}},[e._v("立即创建")])],1),a("div",{staticClass:"coupon-item"},[e._m(2),a("el-button",{staticClass:"mar_t10",attrs:{type:"primary",size:"medium"},on:{click:function(t){return e.handleEdit("2")}}},[e._v("立即创建")])],1),a("div",{staticClass:"coupon-item"},[e._m(3),a("el-button",{staticClass:"mar_t10",attrs:{type:"primary",size:"medium"},on:{click:function(t){return e.handleEdit("3")}}},[e._v("立即创建")])],1)]),a("div",{staticClass:"pad_20 flex-bet flex-y-top"},[a("el-form",{staticClass:"demo-form-inline searchform",attrs:{inline:!0,model:e.formInline}},[a("el-form-item",{attrs:{label:"优惠券名称"}},[a("el-input",{attrs:{size:"medium",placeholder:"请输入优惠券名称"},on:{input:e.onSearch},model:{value:e.formInline.name,callback:function(t){e.$set(e.formInline,"name",t)},expression:"formInline.name"}})],1),a("el-form-item",{attrs:{label:"优惠券类型"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.onSearch},model:{value:e.formInline.type,callback:function(t){e.$set(e.formInline,"type",t)},expression:"formInline.type"}},e._l(e.labelOptions,(function(e){return a("el-option",{key:e.label,attrs:{label:e.value,value:e.label}})})),1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.onSearch}},[e._v("搜索")])],1)],1)],1),a("div",{staticClass:"tabledata mar_t20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"tablecenter",staticStyle:{width:"100%"},attrs:{data:e.list,"element-loading-text":e.elementLoadingText,stripe:""}},[a("el-table-column",{attrs:{prop:"name",label:"优惠券名称",width:"300"}}),a("el-table-column",{attrs:{prop:"type",label:"优惠券类型"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"==t.row.type?a("div",[a("el-tag",{attrs:{size:"mini",type:"success"}},[e._v("满减券")])],1):e._e(),"2"==t.row.type?a("div",[a("el-tag",{attrs:{size:"mini"}},[e._v("折扣券")])],1):e._e(),"3"==t.row.type?a("div",[a("el-tag",{attrs:{size:"mini",type:"warning"}},[e._v("商品兑换券")])],1):e._e()]}}])}),a("el-table-column",{attrs:{prop:"isFull",label:"优惠内容"},scopedSlots:e._u([{key:"default",fn:function(t){return["3"==t.row.type?a("div",[e._v("兑换商品:"),a("div",[e._v(e._s(t.row.discount))])]):e._e(),"1"==t.row.isFull&&"1"==t.row.type?a("div",[e._v("无门槛 减"+e._s(t.row.money))]):e._e(),"1"==t.row.isFull&&"2"==t.row.type?a("div",[e._v("无门槛 打"+e._s(t.row.discount)+"折")]):e._e(),"2"==t.row.isFull&&"1"==t.row.type?a("div",[e._v("满"+e._s(t.row.fullMoney)+" 减"+e._s(t.row.money))]):e._e(),"2"==t.row.isFull&&"2"==t.row.type?a("div",[e._v("满"+e._s(t.row.fullMoney)+" 打"+e._s(t.row.discount)+"折")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"time",label:"领取条件",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{},[a("div",{staticClass:"flex"},[e._v("适用门店: "),a("div",{staticClass:"mar_l10 flex"},["1"==t.row.storeType?a("div",[e._v("仅本店可用")]):e._e(),"2"==t.row.storeType?a("div",[e._v("全店通用")]):e._e(),"3"==t.row.storeType?a("div",[e._v("指定门店可用")]):e._e()])]),a("div",{staticClass:"flex"},[e._v("适用场景: "),a("div",{staticClass:"mar_l10 flex"},[t.row.useType.indexOf("1")>-1?a("div",[e._v("外卖,")]):e._e(),t.row.useType.indexOf("2")>-1?a("div",[e._v("堂食,")]):e._e(),t.row.useType.indexOf("3")>-1?a("div",[e._v("快餐")]):e._e()])]),a("div",{staticClass:"flex"},[e._v("领取人限制:
|