1 line
5.0 KiB
JavaScript
Executable File
1 line
5.0 KiB
JavaScript
Executable File
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-43056c0c"],{acc3:function(t,a,e){"use strict";e("db99")},cdfe:function(t,a,e){t.exports=e.p+"mer/img/f.5aa43cd3.png"},db99:function(t,a,e){},f9b5:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"divBox"},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("div",{staticClass:"container"},[i("el-form",{attrs:{size:"small","label-width":"100px"}},[i("el-form-item",{staticClass:"width100",attrs:{label:"时间选择:"}},[i("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(a){t.timeVal=a},expression:"timeVal"}})],1),t._v(" "),i("el-form-item",{staticClass:"width100",attrs:{label:"关键字:"}},[i("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商户名称",size:"small",clearable:""},on:{clear:function(a){return t.getList(1)}},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(a){t.$set(t.tableFrom,"keyword",a)},expression:"tableFrom.keyword"}},[i("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(a){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),i("cards-data",{attrs:{"card-lists":t.cardLists}})],1),t._v(" "),i("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":""}},[i("el-table-column",{attrs:{prop:"order_id",label:"ID",width:"60"}}),t._v(" "),i("el-table-column",{attrs:{label:"头像","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[t.row.avatar?i("div",{staticClass:"demo-image__preview"},[i("el-image",{attrs:{src:t.row.avatar,"preview-src-list":[t.row.avatar]}})],1):i("img",{staticStyle:{width:"36px",height:"36px","vertical-align":"top"},attrs:{src:e("cdfe"),alt:""}})]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"nickname",label:"用户昵称","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[i("span",{staticClass:"spBlock"},[t._v(t._s(a.row.nickname+" / "+a.row.mer_name))])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"order_sn",label:"订单号","min-width":"180"}}),t._v(" "),i("el-table-column",{attrs:{sortable:"",label:"支付金额","min-width":"120",prop:"total_price"}}),t._v(" "),i("el-table-column",{attrs:{label:"是否支付","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[i("span",{staticClass:"spBlock"},[t._v(t._s(t._f("payStatusFilter")(a.row.paid)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"支付时间","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(a){return[i("span",{staticClass:"spBlock"},[t._v(t._s(a.row.pay_time||"无"))])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("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)},s=[],l=e("2801"),n=e("0f56"),o={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"}]},r={name:"AccountsDeposit",components:{cardsData:n["a"]},data:function(){return{cardLists:[],timeVal:[],tableData:{data:[],total:0},listLoading:!0,tableFrom:{paid:"",date:"",keyword:"",mer_id:"",page:1,limit:20},fromList:o}},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 a=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(l["d"])(this.tableFrom).then((function(t){console.log(t),a.tableData.data=t.data.list,a.tableData.total=t.data.count,a.listLoading=!1})).catch((function(t){a.$message.error(t.message),a.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(l["rechargeTotalApi"])().then((function(a){a.data;t.cardLists=[],t.StatisticsLoading=!1})).catch((function(a){t.$message.error(a.message),t.StatisticsLoading=!1}))}}},c=r,d=(e("acc3"),e("2877")),m=Object(d["a"])(c,i,s,!1,null,"02937abc",null);a["default"]=m.exports}}]); |