(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-32c5a54a"],{4393:function(e,t,s){"use strict";s("80c1")},"80c1":function(e,t,s){},f58d:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"divBox"},[s("el-card",{staticClass:"box-card"},[s("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[s("div",{staticClass:"container"},[s("el-form",{attrs:{size:"small","label-width":"120px",inline:!0}},[s("el-form-item",{staticClass:"mr10",attrs:{label:"使用状态:"}},[s("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择状态"},on:{change:e.getIssueList},model:{value:e.tableFromIssue.status,callback:function(t){e.$set(e.tableFromIssue,"status",t)},expression:"tableFromIssue.status"}},[s("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),s("el-option",{attrs:{label:"已使用",value:"1"}}),e._v(" "),s("el-option",{attrs:{label:"未使用",value:"0"}}),e._v(" "),s("el-option",{attrs:{label:"已过期",value:"2"}})],1)],1),e._v(" "),s("el-form-item",{staticClass:"mr10",attrs:{label:"领取人:"}},[s("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入领取人"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getIssueList(t)}},model:{value:e.tableFromIssue.username,callback:function(t){e.$set(e.tableFromIssue,"username",t)},expression:"tableFromIssue.username"}},[s("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.getIssueList},slot:"append"})],1)],1),e._v(" "),s("el-form-item",{staticClass:"mr10",attrs:{label:"优惠劵:"}},[s("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入优惠劵ID"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getIssueList(t)}},model:{value:e.tableFromIssue.coupon_id,callback:function(t){e.$set(e.tableFromIssue,"coupon_id",t)},expression:"tableFromIssue.coupon_id"}},[s("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.getIssueList},slot:"append"})],1)],1),e._v(" "),s("el-form-item",{staticClass:"mr10",attrs:{label:"获取方式"}},[s("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择状态"},on:{change:e.getIssueList},model:{value:e.tableFromIssue.type,callback:function(t){e.$set(e.tableFromIssue,"type",t)},expression:"tableFromIssue.type"}},[s("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),s("el-option",{attrs:{label:"自己领取",value:"receive"}}),e._v(" "),s("el-option",{attrs:{label:"后台发送",value:"send"}}),e._v(" "),s("el-option",{attrs:{label:"新人",value:"new"}}),e._v(" "),s("el-option",{attrs:{label:"买赠送",value:"buy"}})],1)],1)],1)],1)]),e._v(" "),s("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.Loading,expression:"Loading"}],staticStyle:{width:"100%"},attrs:{data:e.issueData.data,size:"mini"}},[s("el-table-column",{attrs:{prop:"coupon_id",label:"ID","min-width":"80"}}),e._v(" "),s("el-table-column",{attrs:{prop:"coupon_title",label:"优惠券名称","min-width":"150"}}),e._v(" "),s("el-table-column",{attrs:{label:"领取人","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.user?s("span",[e._v(e._s(e._f("filterEmpty")(t.row.user.nickname)))]):s("span",[e._v("未知")])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"coupon_price",label:"面值","min-width":"100"}}),e._v(" "),s("el-table-column",{attrs:{prop:"use_min_price",label:"最低消费额","min-width":"120"}}),e._v(" "),s("el-table-column",{attrs:{prop:"start_time",label:"开始使用时间","min-width":"150"}}),e._v(" "),s("el-table-column",{attrs:{prop:"end_time",label:"结束使用时间","min-width":"150"}}),e._v(" "),s("el-table-column",{attrs:{label:"获取方式","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("span",[e._v(e._s(e._f("failFilter")(t.row.type)))])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"状态","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("span",[e._v(e._s(e._f("statusFilter")(t.row.status)))])]}}])})],1),e._v(" "),s("div",{staticClass:"block"},[s("el-pagination",{attrs:{"page-sizes":[10,20,30,40],"page-size":e.tableFromIssue.limit,"current-page":e.tableFromIssue.page,layout:"total, sizes, prev, pager, next, jumper",total:e.issueData.total},on:{"size-change":e.handleSizeChangeIssue,"current-change":e.pageChangeIssue}})],1)],1)],1)},l=[],n=s("b7be"),i=s("83d6"),o={name:"CouponUser",filters:{failFilter:function(e){var t={receive:"自己领取",send:"后台发送",give:"满赠",new:"新人",buy:"买赠送"};return t[e]},statusFilter:function(e){var t={0:"未使用",1:"已使用",2:"已过期"};return t[e]}},data:function(){return{Loading:!1,roterPre:i["roterPre"],tableFromIssue:{page:1,limit:10,coupon_id:"",status:"",username:"",type:""},issueData:{data:[],total:0}}},mounted:function(){this.getIssueList()},methods:{getIssueList:function(){var e=this;this.Loading=!0,Object(n["U"])(this.tableFromIssue).then((function(t){e.issueData.data=t.data.list,e.issueData.total=t.data.count,e.Loading=!1})).catch((function(t){e.Loading=!1,e.$message.error(t.message)}))},pageChangeIssue:function(e){this.tableFromIssue.page=e,this.getIssueList()},handleSizeChangeIssue:function(e){this.tableFromIssue.limit=e,this.getIssueList()}}},r=o,u=(s("4393"),s("2877")),c=Object(u["a"])(r,a,l,!1,null,"350942fa",null);t["default"]=c.exports}}]);