(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{414:function(e,t,n){},460:function(e,t,n){"use strict";var r=n(414);n.n(r).a},506:function(e,t,n){"use strict";n.r(t);n(174),n(31);var r=n(3),o={data:function(){return{user:{},tradeList:[{id:0,type:"全部"},{id:1,type:"充值"},{id:2,type:"提现"},{id:3,type:"购买"},{id:4,type:"购买"}],finaceList:[],totalData:{},checkUser:"",periodStatusList:[],totalCount:1,currentPage:1,currentPageSize:20,tableData:[]}},computed:{isTest:function(){return"test"===this.localData.env}},mounted:function(){this.getFinanceList()},methods:{clickDev:function(e){this.$router.push({path:"/main/orders_detail",params:{id:e}})},changePageSize:function(e){this.getFinanceList()},getFinanceList:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var body,n,data;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return body={page:e.currentPage,page_size:e.currentPageSize,user:e.$route.query.user},t.next=3,e.$post("/api/admin/order/get_user_orders",body);case 3:n=t.sent,data=n.data,e.finaceList=data.orders,e.totalCount=Number(data.count),e.successCount=Number(data.successCount),e.income_sum=Number(data.income_sum),e.income_success_sum=Number(data.income_success_sum),e.expense_sum=Number(data.expense_sum),e.expense_success_sum=Number(data.expense_success_sum),e.balance=data.total_balance.total_balance,e.user=data.user;case 14:case"end":return t.stop()}}),t)})))()},downFinanceList:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:({page:e.currentPage,page_size:e.currentPageSize,user:e.$route.query.user}),n=e.$store.state.domainConfig.siteUrl+"/api/admin/order/export?artificial_mark=1",console.log(n),window.location.href=n;case 4:case"end":return t.stop()}}),t)})))()}}},l=(n(460),n(2)),component=Object(l.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"mainBody"}},[e.user?n("div",[n("div",{staticClass:"user-name"},[e._v("用户："+e._s(e.user.nickname)+"("+e._s(e.user.uid)+")")]),e._v(" "),n("div",{staticClass:"user-info"},[e._v("订单数量："+e._s(e.totalCount)+"，收入金额："+e._s(e.income_success_sum)+"元，支出金额："+e._s(e.expense_success_sum)+"元，当前余额 "+e._s(e.balance)+"元")]),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.finaceList,border:""}},[n("el-table-column",{attrs:{prop:"",label:"订单名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticClass:"lblue point"},[n("nuxt-link",{attrs:{target:"_blank",to:{path:"/main/orders_detail?id="+t.row.order_no}}},[e._v(e._s(t.row.product_title))])],1)]}}],null,!1,948268546)}),e._v(" "),n("el-table-column",{attrs:{prop:"",label:"实际金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.real_amount>0?n("span",{staticStyle:{color:"green"}},[e._v("+"+e._s(t.row.real_amount))]):e._e(),e._v(" "),t.row.real_amount<0?n("span",{staticStyle:{color:"orange"}},[e._v(e._s(t.row.real_amount))]):e._e(),e._v(" "),0==t.row.real_amount?n("span",[e._v(e._s(t.row.real_amount))]):e._e()]}}],null,!1,2003542816)}),e._v(" "),n("el-table-column",{attrs:{prop:"",label:"当前余额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.total_balance?t.row.total_balance:"--"))]}}],null,!1,1869352152)}),e._v(" "),n("el-table-column",{attrs:{prop:"",label:"支付方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.channel_name))]}}],null,!1,3877066566)}),e._v(" "),n("el-table-column",{attrs:{prop:"",label:"订单状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.order_state_name))]}}],null,!1,2602665731)}),e._v(" "),n("el-table-column",{attrs:{prop:"",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.created_at_name))]}}],null,!1,650355215)}),e._v(" "),n("el-table-column",{attrs:{prop:"",label:"订单编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("nuxt-link",{attrs:{target:"_blank",to:{path:"/main/orders_detail?id="+t.row.order_no}}},[e._v(e._s(t.row.order_no))])]}}],null,!1,3248622040)}),e._v(" "),n("el-table-column",{attrs:{prop:"",label:"人工"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1===t.row.artificial_mark||"1"===t.row.artificial_mark?"是":"否"))]}}],null,!1,3754565872)}),e._v(" "),n("el-table-column",{attrs:{prop:"",label:"备注说明"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.public_comment))]}}],null,!1,2394002864)})],1)],1):e._e(),e._v(" "),n("div",{staticClass:"order-footer"},[n("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":20,layout:"total, sizes, prev, pager, next, jumper",total:e.totalCount},on:{"current-change":e.getFinanceList,"size-change":e.changePageSize,"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t}}})],1)])}),[],!1,null,"0535b2d3",null);t.default=component.exports}}]);