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.7 KiB
1 lines
6.7 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-02cdf067"],{"03c0":function(t,e,a){"use strict";a("3ad6")},"3ad6":function(t,e,a){},5211:function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",{staticClass:"divBox"},[l("el-card",{staticClass:"box-card"},[l("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[l("div",{staticClass:"container"},[l("el-form",{attrs:{size:"small","label-width":"100px"}},[l("el-form-item",{staticClass:"width100",attrs:{label:"时间选择:"}},[l("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,a){return l("el-radio-button",{key:a,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),l("el-date-picker",{staticStyle:{width:"250px"},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(" "),l("el-form-item",{attrs:{label:"是否支付:"}},[l("el-radio-group",{attrs:{type:"button",size:"small"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.paid,callback:function(e){t.$set(t.tableFrom,"paid",e)},expression:"tableFrom.paid"}},[l("el-radio-button",{attrs:{label:""}},[t._v("全部")]),t._v(" "),l("el-radio-button",{attrs:{label:"1"}},[t._v("已支付")]),t._v(" "),l("el-radio-button",{attrs:{label:"0"}},[t._v("未支付")])],1)],1),t._v(" "),l("el-form-item",{staticClass:"width100",attrs:{label:"关键字:"}},[l("el-input",{staticClass:"selWidth",attrs:{placeholder:"微信昵称/姓名/订单号",size:"small"},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"}},[l("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),l("cards-data",{attrs:{"card-lists":t.cardLists}})],1),t._v(" "),l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[l("el-table-column",{attrs:{prop:"recharge_id",label:"ID",width:"60"}}),t._v(" "),l("el-table-column",{attrs:{label:"头像","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[t.row.avatar?l("div",{staticClass:"demo-image__preview"},[l("el-image",{attrs:{src:t.row.avatar,"preview-src-list":[t.row.avatar]}})],1):l("img",{staticStyle:{width:"36px",height:"36px","vertical-align":"top"},attrs:{src:a("cdfe"),alt:""}})]}}])}),t._v(" "),l("el-table-column",{attrs:{prop:"nickname",label:"用户昵称","min-width":"130"}}),t._v(" "),l("el-table-column",{attrs:{prop:"order_id",label:"订单号","min-width":"180"}}),t._v(" "),l("el-table-column",{attrs:{sortable:"","sort-method":function(t,e){return t.price-e.price},label:"支付金额","min-width":"120",prop:"price"}}),t._v(" "),l("el-table-column",{attrs:{sortable:"",label:"赠送金额","sort-method":function(t,e){return t.give_price-e.give_price},"min-width":"120",prop:"give_price"}}),t._v(" "),l("el-table-column",{attrs:{label:"是否支付","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",{staticClass:"spBlock"},[t._v(t._s(t._f("payStatusFilter")(e.row.paid)))])]}}])}),t._v(" "),l("el-table-column",{attrs:{label:"充值类型","min-width":"80",prop:"recharge_type"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",{staticClass:"spBlock"},[t._v(t._s(t._f("rechargeTypeFilter")(e.row.recharge_type)))])]}}])}),t._v(" "),l("el-table-column",{attrs:{label:"支付时间","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",{staticClass:"spBlock"},[t._v(t._s(e.row.pay_time||"无"))])]}}])})],1),t._v(" "),l("div",{staticClass:"block"},[l("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("2801"),n=a("0f56"),o=a("e572"),r={name:"AccountsBill",components:{cardsData:n["a"]},data:function(){return{cardLists:[],timeVal:[],tableData:{data:[],total:0},listLoading:!0,tableFrom:{paid:"",date:"",keyword:"",page:1,limit:20},fromList:o["a"]}},mounted:function(){this.getList(),this.getStatistics()},methods:{selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],this.tableFrom.page=1,this.getList()},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList()},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["s"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},getStatistics:function(){var t=this;this.StatisticsLoading=!0,Object(s["t"])().then((function(e){var a=e.data;t.cardLists=[{name:"充值总金额",count:a.totalPayPrice,className:"el-icon-s-goods"},{name:"充值退款金额",count:a.totalRefundPrice,className:"el-icon-s-order"},{name:"小程序充值金额",count:a.totalRoutinePrice,className:"el-icon-s-cooperation"},{name:"公众号充值金额",count:a.totalWxPrice,className:"el-icon-s-finance"}],t.StatisticsLoading=!1})).catch((function(e){t.$message.error(e.message),t.StatisticsLoading=!1}))}}},c=r,d=(a("03c0"),a("2877")),u=Object(d["a"])(c,l,i,!1,null,"077b29e0",null);e["default"]=u.exports},cdfe:function(t,e,a){t.exports=a.p+"system/img/f.5aa43cd3.png"},e572:function(t,e,a){"use strict";a.d(e,"c",(function(){return l})),a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return s}));var l=[{label:"开启",value:1},{label:"关闭",value:0}],i={title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},s={title:"状态",custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"审核已通过",val:"1"},{text:"审核未通过",val:"2"}]}}}]); |