cb7b01d.js 11 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[103],{556:function(e,t,r){},697:function(e,t,r){"use strict";r(556)},823:function(e,t,r){"use strict";r.r(t);r(18);var n=r(6),o=(r(30),r(191),{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(697),r(4)),component=Object(l.a)(o,(function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"mainBody"}},[e.user?t("div",[t("div",{staticClass:"user-name"},[e._v("用户:"+e._s(e.user.nickname)+"("+e._s(e.user.uid)+")")]),e._v(" "),t("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(" "),t("section",{staticStyle:{"margin-bottom":"12px"}},[t("div",{staticClass:"inlineb"},[t("span",{staticClass:"vsub"},[e._v("状态:")]),e._v(" "),t("div",{staticClass:"inlineb"},[t("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,r){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)]),e._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:e.getFinanceList}},[e._v("筛选")])],1),e._v(" "),t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.finaceList,border:""}},[t("el-table-column",{attrs:{prop:"",label:"订单名称"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",{staticClass:"lblue point"},[t("nuxt-link",{attrs:{target:"_blank",to:{path:"/main/orders_detail?id="+r.row.order_no}}},[e._v(e._s(r.row.product_title))])],1)]}}],null,!1,948268546)}),e._v(" "),t("el-table-column",{attrs:{label:"实际金额"},scopedSlots:e._u([{key:"default",fn:function(r){return["admin_confirm"!=r.row.channel?[13==r.row.product_type?t("div",[8==r.row.order_type?t("span",[e._v(e._s(r.row.real_amount.toFixed(2))+"\n ")]):4==r.row.order_type?["balance"!=r.row.channel?t("span",{staticClass:"red"},[e._v("\n +"+e._s(r.row.real_amount.toFixed(2))+"\n ")]):t("span",[e._v("\n +"+e._s(r.row.real_amount.toFixed(2))+"\n ")])]:t("span",[e._v(e._s(r.row.real_amount.toFixed(2)))])],2):200==r.row.product_type?t("div",[t("span",{staticClass:"green"},[e._v("\n "+e._s(r.row.real_amount.toFixed(2))+"\n ")])]):3==r.row.product_type||300==r.row.product_type?t("div",[41266==r.row.operator_uid?t("div",[e._v("\n +"+e._s(r.row.real_amount.toFixed(2))+"\n ")]):t("div",[t("span",{staticClass:"red"},[e._v("+"+e._s(r.row.real_amount.toFixed(2)))])])]):8==r.row.product_type?t("div",["balance"!=r.row.channel?t("span",{staticClass:"red"},[e._v("\n +"+e._s(r.row.real_amount.toFixed(2))+"\n ")]):t("span",[e._v("\n +"+e._s(r.row.real_amount.toFixed(2))+"\n ")])]):4==r.row.product_type?t("div",[8==r.row.order_type||5==r.row.order_type?t("span",[e._v(e._s(r.row.real_amount.toFixed(2)))]):4==r.row.order_type||1==r.row.order_type?["balance"!=r.row.channel?t("span",{staticClass:"red"},[e._v("\n +"+e._s(r.row.real_amount.toFixed(2))+"\n ")]):t("span",[e._v("\n +"+e._s(r.row.real_amount.toFixed(2))+"\n ")])]:t("span",[e._v(e._s(r.row.real_amount.toFixed(2)))])],2):400==r.row.product_type?t("div",[8==r.row.order_type?t("span",[e._v(e._s(r.row.real_amount.toFixed(2)))]):1==r.row.order_type?["balance"!=r.row.channel?t("span",{staticClass:"red"},[e._v("\n +"+e._s(r.row.real_amount.toFixed(2))+"\n ")]):t("span",[e._v("\n +"+e._s(r.row.real_amount.toFixed(2))+"\n ")])]:t("span",[e._v(e._s(r.row.real_amount.toFixed(2)))])],2):9==r.row.product_type?t("div",[8==r.row.order_type?t("span",[e._v(e._s(r.row.real_amount.toFixed(2)))]):5==r.row.order_type?[("balance"!=r.row.channel&&r.row.channel,t("span",[e._v("\n "+e._s(r.row.real_amount.toFixed(2))+"\n ")]))]:1==r.row.order_type?["balance"!=r.row.channel?t("span",{staticClass:"red"},[e._v("\n +"+e._s(r.row.real_amount.toFixed(2))+"\n ")]):t("span",[e._v("\n +"+e._s(r.row.real_amount.toFixed(2))+"\n ")])]:t("span",[e._v(e._s(r.row.real_amount.toFixed(2)))])],2):2==r.row.product_type?t("div",[8==r.row.order_type?t("span",[e._v(e._s(r.row.real_amount.toFixed(2)))]):5==r.row.order_type?[("balance"!=r.row.channel&&r.row.channel,t("span",[e._v("\n "+e._s(r.row.real_amount.toFixed(2))+"\n ")]))]:1==r.row.order_type?["balance"!=r.row.channel&&"qingtuanbao"!=r.row.channel?t("span",{staticClass:"red"},[e._v("\n +"+e._s(r.row.real_amount.toFixed(2))+"\n ")]):t("span",[e._v("\n +"+e._s(r.row.real_amount.toFixed(2))+"\n ")])]:7==r.row.order_type?["balance"!=r.row.channel&&"qingtuanbao"!=r.row.channel?t("span",{staticClass:"green"},[e._v("\n "+e._s(r.row.real_amount.toFixed(2))+"\n ")]):t("span",[e._v("\n "+e._s(r.row.real_amount.toFixed(2))+"\n ")])]:t("span",[e._v(e._s(r.row.real_amount.toFixed(2)))])],2):(r.row.product_type,t("div",["balance"!=r.row.channel?t("span",{staticClass:"red"},[e._v("\n +"+e._s(r.row.real_amount.toFixed(2))+"\n ")]):t("span",[e._v("\n +"+e._s(r.row.real_amount.toFixed(2))+"\n ")])]))]:["41266"!=r.row.operator_uid?t("div",[parseInt(r.row.real_amount.toFixed(2))>0?t("span",{staticClass:"red"},[e._v("+"+e._s(r.row.real_amount.toFixed(2)))]):0==parseInt(r.row.real_amount.toFixed(2))?t("span",[e._v(e._s(r.row.real_amount.toFixed(2)))]):t("span",{staticClass:"green"},[e._v(e._s(r.row.real_amount.toFixed(2)))])]):t("div",[parseInt(r.row.real_amount.toFixed(2))>0?t("span",[e._v("+"+e._s(r.row.real_amount.toFixed(2)))]):(parseInt(r.row.real_amount.toFixed(2)),t("span",[e._v(e._s(r.row.real_amount.toFixed(2)))]))])]]}}],null,!1,13487958)}),e._v(" "),t("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(" "),t("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(" "),t("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(" "),t("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(" "),t("el-table-column",{attrs:{prop:"",label:"订单编号"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("nuxt-link",{attrs:{target:"_blank",to:{path:"/main/orders_detail?id="+r.row.order_no}}},[e._v(e._s(r.row.order_no)+"\n ")])]}}],null,!1,4229759201)}),e._v(" "),t("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(" "),t("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(" "),t("div",{staticClass:"order-footer"},[t("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,"7df957af",null);t.default=component.exports}}]);