(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2160d1"],{c18e:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-list-content"},[a("cl-crud",{staticClass:"liu-crud-wrap",on:{load:e.onLoad},scopedSlots:e._u([{key:"slot-tabs",fn:function(t){t.scope;return[a("el-tabs",{staticClass:"liu-tabs",attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.tabIndex,callback:function(t){e.tabIndex=t},expression:"tabIndex"}},e._l(e.tabsData,(function(e,t){return a("el-tab-pane",{key:t,attrs:{label:e.text+"("+e.val+")",name:e.key}})})),1)]}},{key:"table-column-addTime",fn:function(t){var n=t.scope;return[a("span",[e._v(e._s(e._f("formatTime")(n.row.addTime)))])]}},{key:"table-column-deadline",fn:function(t){var n=t.scope;return[a("span",[e._v(e._s(e._f("formatTime")(n.row.deadline)))])]}},{key:"table-column-status",fn:function(t){var n=t.scope;return[1==n.row.status?a("span",[a("i",{staticClass:"iconfont icondagou"})]):a("span",[e._v(e._s(e._f("constantfilter")(n.row.status,"COUPON_STATUS")))])]}}])})],1)},l=[],s=(a("63ff"),a("e5af")),r={data:function(){return{app:null,tabIndex:"-1",tabsData:[{text:"全部",key:"-1",val:0},{text:"待使用",key:"0",val:0},{text:"已使用",key:"1",val:0},{text:"已失效",key:"2",val:0}]}},mounted:function(){},methods:{handleClick:function(){this.app.refresh({status:this.tabIndex})},onLoad:function(e){var t=this,a=e.ctx,n=e.app;this.app=n,a.service(this.$service.coupon).set("table",{columns:[{prop:"userId",label:"ID",align:"center"},{prop:"userName",label:"持有人",align:"center"},{prop:"mobile",label:"手机号",align:"center"},{prop:"amount",label:"金额",align:"center"},{prop:"miniCost",label:"最低消费",align:"center",emptyText:"无"},{prop:"addTime",label:"领取时间",align:"center",width:150},{prop:"deadline",label:"到期时间",align:"center",width:150},{prop:"source",label:"来源",align:"center"},{prop:"status",label:"状态",align:"center"}],op:{visible:!1,props:{width:150,align:"center",fixed:"right",label:"操作"},layout:["slot-recharge","slot-upgrade","slot-ship"]}}).set("layout",[["slot-tabs"],["flex1","refresh-btn"],["data-table"],["flex1","pagination"]]).on("refresh",function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(a,n){var l,s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return l=n.next,e.next=3,l(a);case 3:s=e.sent,r=s.asset,t.tabsData[0].val=r.totalNum,t.tabsData[1].val=r.unUseNum,t.tabsData[2].val=r.useNum,t.tabsData[3].val=r.invalidNum;case 9:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}()).done(),n.refresh({status:this.tabIndex})}}},o=r,i=a("5511"),c=Object(i["a"])(o,n,l,!1,null,null,null);t["default"]=c.exports}}]);