| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[57],{449:function(e,t,r){},517:function(e,t,r){"use strict";var n=r(449);r.n(n).a},589:function(e,t,r){"use strict";r.r(t);r(187),r(30);var n=r(3),o={data:function(){return{user:{},orderState:0,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:[],balance:0,income:0,recharge:0,orderTypesOption:[],orderStateOption:[],payList:[],payListPop:[],productTypePop:[],TypeList:[]}},computed:{isTest:function(){return"test"===this.localData.env}},mounted:function(){this.getAllChoice(),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(n.a)(regeneratorRuntime.mark((function t(){var body,r,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,status:e.orderState},t.next=3,e.$post("/api/admin/order/get_user_orders",body);case 3:r=t.sent,data=r.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.income=data.total_balance.income_tax_balance?data.total_balance.income_tax_balance/100:0,e.recharge=data.total_balance.recharge_balance?data.total_balance.recharge_balance/100:0,e.user=data.user;case 16:case"end":return t.stop()}}),t)})))()},downFinanceList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r;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}),r=e.$store.state.domainConfig.siteUrl+"/api/admin/order/export?artificial_mark=1",console.log(r),window.location.href=r;case 4:case"end":return t.stop()}}),t)})))()},getAllChoice:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r,data,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return{},t.next=3,e.$post("/api/admin/order/get_all_choice");case 3:for(r=t.sent,data=r.data,e.orderTypesOption=data.order_types,e.orderTypesOption.unshift({id:"",name:"全部"}),e.orderStateOption=data.order_state,console.log(e.orderStateOption),e.payList=data.channels,e.payList.unshift({id:0,name:"全部"}),e.payListPop[0]=e.payList.pop(),e.payListPop[1]=e.payList.pop(),e.payListPop[2]=e.payList.pop(),e.payList.push({id:"扩展",name:">>"}),e.TypeList=data.product_types,e.TypeList.unshift({id:0,name:"全部"}),i=0;i<10;i++)e.productTypePop[i]=e.TypeList.pop();e.TypeList.push({id:"扩展",name:">>"});case 19:case"end":return t.stop()}}),t)})))()}}},l=(r(517),r(2)),component=Object(l.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"mainBody"}},[e.user?r("div",[r("div",{staticClass:"user-name"},[e._v("用户:"+e._s(e.user.nickname)+"("+e._s(e.user.uid)+")")]),e._v(" "),r("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)+"元,薪资账户余额\n "+e._s(e.recharge)+"元,冻结余额 "+e._s(e.income)+"元\n ")]),e._v(" "),r("section",{staticStyle:{"margin-bottom":"12px"}},[r("div",{staticClass:"inlineb"},[r("span",{staticClass:"vsub"},[e._v("状态:")]),e._v(" "),r("div",{staticClass:"inlineb"},[r("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:""},model:{value:e.orderState,callback:function(t){e.orderState=t},expression:"orderState"}},e._l(e.orderStateOption,(function(e,t){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.getFinanceList}},[e._v("筛选")])],1),e._v(" "),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.finaceList,border:""}},[r("el-table-column",{attrs:{prop:"",label:"订单名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",{staticClass:"lblue point"},[r("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(" "),r("el-table-column",{attrs:{label:"实际金额"},scopedSlots:e._u([{key:"default",fn:function(t){return["admin_confirm"!=t.row.channel?[13==t.row.product_type?r("div",[8==t.row.order_type?r("span",[e._v(e._s(t.row.real_amount.toFixed(2))+"\n ")]):4==t.row.order_type?["balance"!=t.row.channel?r("span",{staticClass:"red"},[e._v("\n +"+e._s(t.row.real_amount.toFixed(2))+"\n ")]):r("span",[e._v("\n +"+e._s(t.row.real_amount.toFixed(2))+"\n ")])]:r("span",[e._v(e._s(t.row.real_amount.toFixed(2)))])],2):200==t.row.product_type?r("div",[r("span",{staticClass:"green"},[e._v("\n "+e._s(t.row.real_amount.toFixed(2))+"\n ")])]):3==t.row.product_type||300==t.row.product_type?r("div",[41266==t.row.operator_uid?r("div",[e._v("\n +"+e._s(t.row.real_amount.toFixed(2))+"\n ")]):r("div",[r("span",{staticClass:"red"},[e._v("+"+e._s(t.row.real_amount.toFixed(2)))])])]):8==t.row.product_type?r("div",["balance"!=t.row.channel?r("span",{staticClass:"red"},[e._v("\n +"+e._s(t.row.real_amount.toFixed(2))+"\n ")]):r("span",[e._v("\n +"+e._s(t.row.real_amount.toFixed(2))+"\n ")])]):4==t.row.product_type?r("div",[8==t.row.order_type||5==t.row.order_type?r("span",[e._v(e._s(t.row.real_amount.toFixed(2)))]):4==t.row.order_type||1==t.row.order_type?["balance"!=t.row.channel?r("span",{staticClass:"red"},[e._v("\n +"+e._s(t.row.real_amount.toFixed(2))+"\n ")]):r("span",[e._v("\n +"+e._s(t.row.real_amount.toFixed(2))+"\n ")])]:r("span",[e._v(e._s(t.row.real_amount.toFixed(2)))])],2):400==t.row.product_type?r("div",[8==t.row.order_type?r("span",[e._v(e._s(t.row.real_amount.toFixed(2)))]):1==t.row.order_type?["balance"!=t.row.channel?r("span",{staticClass:"red"},[e._v("\n +"+e._s(t.row.real_amount.toFixed(2))+"\n ")]):r("span",[e._v("\n +"+e._s(t.row.real_amount.toFixed(2))+"\n ")])]:r("span",[e._v(e._s(t.row.real_amount.toFixed(2)))])],2):9==t.row.product_type?r("div",[8==t.row.order_type?r("span",[e._v(e._s(t.row.real_amount.toFixed(2)))]):5==t.row.order_type?[("balance"!=t.row.channel&&t.row.channel,r("span",[e._v("\n "+e._s(t.row.real_amount.toFixed(2))+"\n ")]))]:1==t.row.order_type?["balance"!=t.row.channel?r("span",{staticClass:"red"},[e._v("\n +"+e._s(t.row.real_amount.toFixed(2))+"\n ")]):r("span",[e._v("\n +"+e._s(t.row.real_amount.toFixed(2))+"\n ")])]:r("span",[e._v(e._s(t.row.real_amount.toFixed(2)))])],2):2==t.row.product_type?r("div",[8==t.row.order_type?r("span",[e._v(e._s(t.row.real_amount.toFixed(2)))]):5==t.row.order_type?[("balance"!=t.row.channel&&t.row.channel,r("span",[e._v("\n "+e._s(t.row.real_amount.toFixed(2))+"\n ")]))]:1==t.row.order_type?["balance"!=t.row.channel&&"qingtuanbao"!=t.row.channel?r("span",{staticClass:"red"},[e._v("\n +"+e._s(t.row.real_amount.toFixed(2))+"\n ")]):r("span",[e._v("\n +"+e._s(t.row.real_amount.toFixed(2))+"\n ")])]:7==t.row.order_type?["balance"!=t.row.channel&&"qingtuanbao"!=t.row.channel?r("span",{staticClass:"green"},[e._v("\n "+e._s(t.row.real_amount.toFixed(2))+"\n ")]):r("span",[e._v("\n "+e._s(t.row.real_amount.toFixed(2))+"\n ")])]:r("span",[e._v(e._s(t.row.real_amount.toFixed(2)))])],2):(t.row.product_type,r("div",["balance"!=t.row.channel?r("span",{staticClass:"red"},[e._v("\n +"+e._s(t.row.real_amount.toFixed(2))+"\n ")]):r("span",[e._v("\n +"+e._s(t.row.real_amount.toFixed(2))+"\n ")])]))]:["41266"!=t.row.operator_uid?r("div",[parseInt(t.row.real_amount.toFixed(2))>0?r("span",{staticClass:"red"},[e._v("+"+e._s(t.row.real_amount.toFixed(2)))]):0==parseInt(t.row.real_amount.toFixed(2))?r("span",[e._v(e._s(t.row.real_amount.toFixed(2)))]):r("span",{staticClass:"green"},[e._v(e._s(t.row.real_amount.toFixed(2)))])]):r("div",[parseInt(t.row.real_amount.toFixed(2))>0?r("span",[e._v("+"+e._s(t.row.real_amount.toFixed(2)))]):(parseInt(t.row.real_amount.toFixed(2)),r("span",[e._v(e._s(t.row.real_amount.toFixed(2)))]))])]]}}],null,!1,13487958)}),e._v(" "),r("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,1533924152)}),e._v(" "),r("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(" "),r("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(" "),r("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(" "),r("el-table-column",{attrs:{prop:"",label:"订单编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("nuxt-link",{attrs:{target:"_blank",to:{path:"/main/orders_detail?id="+t.row.order_no}}},[e._v(e._s(t.row.order_no)+"\n ")])]}}],null,!1,4229759201)}),e._v(" "),r("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?"是":"否")+"\n ")]}}],null,!1,3785334921)}),e._v(" "),r("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(" "),r("div",{staticClass:"order-footer"},[r("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,"c0ffb70a",null);t.default=component.exports}}]);
|