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.
1 lines
6.5 KiB
1 lines
6.5 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6534983d"],{"0b65":function(e,t,a){"use strict";t["a"]={shortcuts:[{text:"今天",onClick:function(e){var t=new Date,a=new Date;a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),e.$emit("pick",[a,t])}},{text:"昨天",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.$emit("pick",[a,t])}},{text:"最近7天",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近30天",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"本月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),e.$emit("pick",[a,t])}},{text:"本年",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),0,1))),e.$emit("pick",[a,t])}}]}},"41ff":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:"divBox"},[a("div",{staticClass:"selCard mb14"},[a("el-form",{ref:"searchForm",attrs:{model:e.tableFrom,inline:"",size:"small","label-width":"95px"}},[a("el-form-item",{attrs:{label:"时间选择:"}},[a("el-date-picker",{staticStyle:{width:"280px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":e.pickerOptions},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"支付方式:",prop:"pay_type"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(t){e.getList(1),e.getCardList()}},model:{value:e.tableFrom.pay_type,callback:function(t){e.$set(e.tableFrom,"pay_type",t)},expression:"tableFrom.pay_type"}},[a("el-option",{attrs:{label:"微信",value:"weixin"}}),e._v(" "),a("el-option",{attrs:{label:"支付宝",value:"alipay"}}),e._v(" "),a("el-option",{attrs:{label:"小程序",value:"routine"}}),e._v(" "),a("el-option",{attrs:{label:"平台设置",value:"sys"}}),e._v(" "),a("el-option",{attrs:{label:"免费",value:"free"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"会员卡名称:",prop:"title"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入会员卡名称",clearable:""},nativeOn:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.getList(1),e.getCardList()}},model:{value:e.tableFrom.title,callback:function(t){e.$set(e.tableFrom,"title",t)},expression:"tableFrom.title"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用户名:",prop:"keyword"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入用户名称搜索",clearable:""},nativeOn:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.getList(1),e.getCardList()}},model:{value:e.tableFrom.keyword,callback:function(t){e.$set(e.tableFrom,"keyword",t)},expression:"tableFrom.keyword"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){e.getList(1),e.getCardList()}}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(t){return e.searchReset()}}},[e._v("重置")])],1)],1)],1),e._v(" "),e.cardLists.length>0?a("cards-data",{attrs:{"card-lists":e.cardLists}}):e._e(),e._v(" "),a("el-card",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"order_sn",label:"订单号","min-width":"100"}}),e._v(" "),a("el-table-column",{attrs:{prop:"user.nickname",label:"用户名","min-width":"80"}}),e._v(" "),a("el-table-column",{attrs:{prop:"user.phone",label:"手机号码","min-width":"60"}}),e._v(" "),a("el-table-column",{attrs:{prop:"title",label:"会员卡名称","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{prop:"pay_price",label:"支付金额(元)","min-width":"60"}}),e._v(" "),a("el-table-column",{attrs:{prop:"price",label:"支付方式","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("svipPayType")(t.row.pay_type)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"paid",label:"支付状态",width:"90"},scopedSlots:e._u([{key:"default",fn:function(t){return["sys"==t.row.pay_type||"free"==t.row.pay_type?a("span",[e._v("无需支付")]):a("span",[e._v(e._s(t.row.paid?"已支付":"未支付"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"购买时间","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{prop:"user.svip_endtime",label:"到期时间","min-width":"90"}})],1),e._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{background:"","page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)],1)},l=[],n=a("c24f"),s=a("0f56"),r=a("0b65"),o={name:"MemberRecord",components:{cardsData:s["a"]},data:function(){return{pickerOptions:r["a"],listLoading:!0,timeVal:[],cardLists:[],tableData:{data:[],total:0},tableFrom:{page:1,limit:20,title:"",keyword:"",pay_type:"",date:""}}},mounted:function(){this.getList(""),this.getCardList()},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},onchangeTime:function(e){this.timeVal=e,this.tableFrom.date=e?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList(1),this.getCardList()},getCardList:function(){var e=this;Object(n["Y"])(this.tableFrom).then((function(t){e.cardLists=t.data})).catch((function(t){e.$message.error(t.message)}))},getList:function(e){var t=this;this.listLoading=!0,this.tableFrom.page=e||this.tableFrom.page,Object(n["Z"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(e){this.tableFrom.page=e,this.getList("")},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList("")}}},c=o,p=a("2877"),m=Object(p["a"])(c,i,l,!1,null,"1f69e822",null);t["default"]=m.exports}}]); |