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.
 
 
 
 
 
crmeb_php/public/system/js/chunk-a68641c4.4c8118e9.js

1 lines
4.9 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a68641c4"],{"3af9":function(t,e,a){"use strict";a("df4e")},"41ff":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("div",{staticClass:"demo-input-suffix acea-row"},[a("el-form",{attrs:{inline:"",size:"small","label-width":"100px"}},[a("el-form-item",{staticClass:"width100",attrs:{label:"时间选择:"}},[a("el-date-picker",{staticClass:"selWidth",attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"支付方式:"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList()}},model:{value:t.tableFrom.pay_type,callback:function(e){t.$set(t.tableFrom,"pay_type",e)},expression:"tableFrom.pay_type"}},[a("el-option",{attrs:{label:"微信",value:"weixin"}}),t._v(" "),a("el-option",{attrs:{label:"支付宝",value:"alipay"}}),t._v(" "),a("el-option",{attrs:{label:"小程序",value:"routine"}}),t._v(" "),a("el-option",{attrs:{label:"平台设置",value:"sys"}}),t._v(" "),a("el-option",{attrs:{label:"免费",value:"free"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"会员卡名称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入会员卡名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList()}},model:{value:t.tableFrom.title,callback:function(e){t.$set(t.tableFrom,"title",e)},expression:"tableFrom.title"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入用户名称搜索"},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.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}})],1),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.getList}},[t._v("搜索")])],1)],1)])]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"order_sn",label:"订单号","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"user.nickname",label:"用户名","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"user.phone",label:"手机号码","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"title",label:"会员卡名称","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"pay_price",label:"支付金额(元)","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"price",label:"支付方式","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("svipPayType")(e.row.pay_type)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"paid",label:"支付状态","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(e){return["sys"==e.row.pay_type||"free"==e.row.pay_type?a("span",[t._v("无需支付")]):a("span",[t._v(t._s(e.row.paid?"已支付":"未支付"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"购买时间","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"user.svip_endtime",label:"到期时间","min-width":"60"}})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],s=a("c24f"),n={name:"LabelList",data:function(){return{listLoading:!0,timeVal:[],tableData:{data:[],total:0},tableFrom:{page:1,limit:20,title:"",keyword:"",pay_type:"",date:""}}},mounted:function(){this.getList("")},methods:{onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList(1)},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["T"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")}}},o=n,r=(a("3af9"),a("2877")),c=Object(r["a"])(o,l,i,!1,null,"a418e254",null);e["default"]=c.exports},df4e:function(t,e,a){}}]);