| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[63],{498:function(t,e,n){},499:function(t,e,n){},615:function(t,e,n){"use strict";n(498)},616:function(t,e,n){"use strict";n(499)},680:function(t,e,n){"use strict";n.r(e);n(24),n(21),n(15),n(18),n(30),n(31);var r=n(9),o=n(7),c=(n(60),n(12),n(84),n(85),n(40),n(547),n(191),{props:{uid:{type:Number,default:0}},data:function(){return{user:{},orderState:401,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:{changePageSize:function(t){this.getFinanceList()},getFinanceList:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var body,n,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return body={page:t.currentPage,page_size:t.currentPageSize,user:t.uid,status:t.orderState},e.next=3,t.$post("/api/admin/order/get_user_orders",body);case 3:n=e.sent,data=n.data,t.finaceList=data.orders,t.totalCount=Number(data.count),t.successCount=Number(data.successCount),t.income_sum=Number(data.income_sum),t.income_success_sum=Number(data.income_success_sum),t.expense_sum=Number(data.expense_sum),t.expense_success_sum=Number(data.expense_success_sum),t.balance=data.total_balance.total_balance,t.income=data.total_balance.income_tax_balance?data.total_balance.income_tax_balance/100:0,t.recharge=data.total_balance.recharge_balance?data.total_balance.recharge_balance/100:0,t.user=data.user;case 16:case"end":return e.stop()}}),e)})))()},downFinanceList:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:({page:t.currentPage,page_size:t.currentPageSize,user:t.$route.query.user}),n=t.$store.state.domainConfig.siteUrl+"/api/admin/order/export?artificial_mark=1",console.log(n),window.location.href=n;case 4:case"end":return e.stop()}}),e)})))()},getAllChoice:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,data,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return{},e.next=3,t.$post("/api/admin/order/get_all_choice");case 3:for(n=e.sent,data=n.data,t.orderTypesOption=data.order_types,t.orderTypesOption.unshift({id:"",name:"全部"}),t.orderStateOption=data.order_state,console.log(t.orderStateOption),t.payList=data.channels,t.payList.unshift({id:0,name:"全部"}),t.payListPop[0]=t.payList.pop(),t.payListPop[1]=t.payList.pop(),t.payListPop[2]=t.payList.pop(),t.payList.push({id:"扩展",name:">>"}),t.TypeList=data.product_types,t.TypeList.unshift({id:0,name:"全部"}),i=0;i<10;i++)t.productTypePop[i]=t.TypeList.pop();t.TypeList.push({id:"扩展",name:">>"});case 19:case"end":return e.stop()}}),e)})))()}}}),l=(n(615),n(4)),_=Object(l.a)(c,(function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"mainBody"}},[t.user?e("div",{staticStyle:{padding:"20px"}},[e("div",{staticStyle:{padding:"20px",display:"flex","flex-wrap":"wrap","justify-content":"space-between","padding-top":"0px"}},[e("div",{staticStyle:{width:"50%","margin-top":"15px"}},[t._v("订单数量:"+t._s(t.totalCount))]),t._v(" "),e("div",{staticStyle:{width:"50%","margin-top":"15px"}},[t._v("账户余额:"+t._s(t.balance))]),t._v(" "),e("div",{staticStyle:{width:"50%","margin-top":"15px"}},[t._v("收入金额:"+t._s(t.income_success_sum))]),t._v(" "),e("div",{staticStyle:{width:"50%","margin-top":"15px"}},[t._v("支出金额:"+t._s(t.expense_success_sum))]),t._v(" "),e("div",{staticStyle:{width:"50%","margin-top":"15px"}},[t._v("薪资余额:"+t._s(t.recharge))]),t._v(" "),e("div",{staticStyle:{width:"50%","margin-top":"15px"}},[t._v("冻结余额:"+t._s(t.income))])]),t._v(" "),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.finaceList,border:""}},[e("el-table-column",{attrs:{prop:"",label:"订单名称"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",{staticClass:"lblue point"},[e("nuxt-link",{attrs:{target:"_blank",to:{path:"/main/orders_detail?id="+n.row.order_no}}},[t._v(t._s(n.row.product_title))])],1)]}}],null,!1,948268546)}),t._v(" "),e("el-table-column",{attrs:{label:"实际金额"},scopedSlots:t._u([{key:"default",fn:function(n){return["admin_confirm"!=n.row.channel?[13==n.row.product_type?e("div",[8==n.row.order_type?e("span",[t._v(t._s(n.row.real_amount.toFixed(2))+"\n ")]):4==n.row.order_type?["balance"!=n.row.channel?e("span",{staticClass:"red"},[t._v("\n +"+t._s(n.row.real_amount.toFixed(2))+"\n ")]):e("span",[t._v("\n +"+t._s(n.row.real_amount.toFixed(2))+"\n ")])]:e("span",[t._v(t._s(n.row.real_amount.toFixed(2)))])],2):200==n.row.product_type?e("div",[e("span",{staticClass:"green"},[t._v("\n "+t._s(n.row.real_amount.toFixed(2))+"\n ")])]):3==n.row.product_type||300==n.row.product_type?e("div",[41266==n.row.operator_uid?e("div",[t._v("\n +"+t._s(n.row.real_amount.toFixed(2))+"\n ")]):e("div",[e("span",{staticClass:"red"},[t._v("+"+t._s(n.row.real_amount.toFixed(2)))])])]):8==n.row.product_type?e("div",["balance"!=n.row.channel?e("span",{staticClass:"red"},[t._v("\n +"+t._s(n.row.real_amount.toFixed(2))+"\n ")]):e("span",[t._v("\n +"+t._s(n.row.real_amount.toFixed(2))+"\n ")])]):4==n.row.product_type?e("div",[8==n.row.order_type||5==n.row.order_type?e("span",[t._v(t._s(n.row.real_amount.toFixed(2)))]):4==n.row.order_type||1==n.row.order_type?["balance"!=n.row.channel?e("span",{staticClass:"red"},[t._v("\n +"+t._s(n.row.real_amount.toFixed(2))+"\n ")]):e("span",[t._v("\n +"+t._s(n.row.real_amount.toFixed(2))+"\n ")])]:e("span",[t._v(t._s(n.row.real_amount.toFixed(2)))])],2):400==n.row.product_type?e("div",[8==n.row.order_type?e("span",[t._v(t._s(n.row.real_amount.toFixed(2)))]):1==n.row.order_type?["balance"!=n.row.channel?e("span",{staticClass:"red"},[t._v("\n +"+t._s(n.row.real_amount.toFixed(2))+"\n ")]):e("span",[t._v("\n +"+t._s(n.row.real_amount.toFixed(2))+"\n ")])]:e("span",[t._v(t._s(n.row.real_amount.toFixed(2)))])],2):9==n.row.product_type?e("div",[8==n.row.order_type?e("span",[t._v(t._s(n.row.real_amount.toFixed(2)))]):5==n.row.order_type?[("balance"!=n.row.channel&&n.row.channel,e("span",[t._v("\n "+t._s(n.row.real_amount.toFixed(2))+"\n ")]))]:1==n.row.order_type?["balance"!=n.row.channel?e("span",{staticClass:"red"},[t._v("\n +"+t._s(n.row.real_amount.toFixed(2))+"\n ")]):e("span",[t._v("\n +"+t._s(n.row.real_amount.toFixed(2))+"\n ")])]:e("span",[t._v(t._s(n.row.real_amount.toFixed(2)))])],2):2==n.row.product_type?e("div",[8==n.row.order_type?e("span",[t._v(t._s(n.row.real_amount.toFixed(2)))]):5==n.row.order_type?[("balance"!=n.row.channel&&n.row.channel,e("span",[t._v("\n "+t._s(n.row.real_amount.toFixed(2))+"\n ")]))]:1==n.row.order_type?["balance"!=n.row.channel&&"qingtuanbao"!=n.row.channel?e("span",{staticClass:"red"},[t._v("\n +"+t._s(n.row.real_amount.toFixed(2))+"\n ")]):e("span",[t._v("\n +"+t._s(n.row.real_amount.toFixed(2))+"\n ")])]:7==n.row.order_type?["balance"!=n.row.channel&&"qingtuanbao"!=n.row.channel?e("span",{staticClass:"green"},[t._v("\n "+t._s(n.row.real_amount.toFixed(2))+"\n ")]):e("span",[t._v("\n "+t._s(n.row.real_amount.toFixed(2))+"\n ")])]:e("span",[t._v(t._s(n.row.real_amount.toFixed(2)))])],2):(n.row.product_type,e("div",["balance"!=n.row.channel?e("span",{staticClass:"red"},[t._v("\n +"+t._s(n.row.real_amount.toFixed(2))+"\n ")]):e("span",[t._v("\n +"+t._s(n.row.real_amount.toFixed(2))+"\n ")])]))]:["41266"!=n.row.operator_uid?e("div",[parseInt(n.row.real_amount.toFixed(2))>0?e("span",{staticClass:"red"},[t._v("+"+t._s(n.row.real_amount.toFixed(2)))]):0==parseInt(n.row.real_amount.toFixed(2))?e("span",[t._v(t._s(n.row.real_amount.toFixed(2)))]):e("span",{staticClass:"green"},[t._v(t._s(n.row.real_amount.toFixed(2)))])]):e("div",[parseInt(n.row.real_amount.toFixed(2))>0?e("span",[t._v("+"+t._s(n.row.real_amount.toFixed(2)))]):(parseInt(n.row.real_amount.toFixed(2)),e("span",[t._v(t._s(n.row.real_amount.toFixed(2)))]))])]]}}],null,!1,13487958)}),t._v(" "),e("el-table-column",{attrs:{prop:"",label:"当前余额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.total_balance?e.row.total_balance:"--"))]}}],null,!1,1533924152)}),t._v(" "),e("el-table-column",{attrs:{prop:"",label:"支付方式"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.channel_name))]}}],null,!1,3877066566)}),t._v(" "),e("el-table-column",{attrs:{prop:"",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.created_at_name))]}}],null,!1,650355215)})],1)],1):t._e(),t._v(" "),e("div",{staticClass:"order-footer"},[e("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":20,layout:"total, sizes, prev, pager, next, jumper",total:t.totalCount},on:{"current-change":t.getFinanceList,"size-change":t.changePageSize,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e}}})],1)])}),[],!1,null,"50200d1a",null).exports;function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function m(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var v=new Date;v.setDate(1),v.setHours(0),v.setMinutes(0),v.setSeconds(0);var y={components:{user_bills:_},data:function(){return{drawer:{visible:!1,direction:"rtl",uid:0},tabShow:!0,innerIncomeSum:0,innerOutcomeSum:0,incomeCount:0,innerCount:0,outcomeCount:0,frozenCount:0,activeName:"all",hasAuth:1,frozenSuccessSum:0,frozenSum:0,financeList:[],successCount:0,totalHave:0,totalSuccess:0,PayCount:0,paySuccess:0,productId:"",minRealAmount:"",productType:[0],orderTypes:"",orderTypesOption:[],orderState:401,orderStateOption:[],productTypes:"",productTypesOption:[],checked:!1,orderType:[0],tradeType:[0],payType:[0],timeType:1,payListPop:[],productTypePop:[],timeOptions:[{value:1,label:"到帐时间"},{value:2,label:"创建时间"}],TypeList:[],tradeList:[],payList:[],pickerOptions2:{shortcuts:[{text:"全部",onClick:function(t){this.timeRange=[],t.$emit("pick",[])}},{text:"最近7天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:"最近30天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:"本周",onClick:function(t){var e=(new Date).getDay()-1;-1==e&&(e=6);var n=new Date,r=new Date;r.setTime(r.getTime()-864e5*e),t.$emit("pick",[r,n])}},{text:"本月",onClick:function(t){(new Date).getMonth,(new Date).getFullYear();var e=(new Date).getDate()-1,n=new Date,r=new Date;r.setTime(r.getTime()-864e5*e),t.$emit("pick",[r,n])}},{text:"本年",onClick:function(t){(new Date).getMonth;var e=(new Date).getFullYear(),n=((new Date).getDate(),new Date(e,0,1)),r=new Date-n,o=Math.ceil(r/864e5)-1,c=new Date,l=new Date;l.setTime(l.getTime()-864e5*o),t.$emit("pick",[l,c])}}]},timeRange:[v,new Date],arriveTime:"",searchId:"",tableData3:[],totalData:{},jobID:"",period:"",status:"",jobStatusList:[],checkUser:"",periodStatusList:[],totalCount:0,currentPage:1,currentPageSize:20,tableData:[],localData:{env:"test"},dateData:{start_time:"",end_time:""}}},computed:{isTest:function(){return"test"===this.localData.env},whole:function(){return this.totalData.whole||{}},totalDeposit:function(){return this.whole.total_deposit},totalFee:function(){return this.whole.total_fee}},mounted:function(){this.getAllChoice(),this.queryDataFormat(),this.getFinanceList()},methods:{queryDataFormat:function(){var t=this.$route.query;if("{}"!==JSON.stringify(t)){this.productType[0]=t.product_type?1*t.product_type:0;var e=new Date(t.start_time),n=new Date(t.end_time);this.timeRange=[e,n],this.payType[0]=t.channel||0}},show_user_info_money:function(t){this.drawer.visible=!0,this.drawer.uid=t},formatExtra:function(t){if(t&&/^\{.*\}$/.test(t)){var data=JSON.parse(t);return"".concat(data.os,"/").concat(data.version||"?")}return"-"},formatDate:function(time){if("0"===time)return"--";var t=new Date(1e3*time),e=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),o=t.getHours(),c=t.getMinutes(),l=t.getSeconds();return o<10&&(o="0"+o),c<10&&(c="0"+c),l<10&&(l="0"+l),e+"-"+n+"-"+r+" "+o+":"+c+":"+l},changeOrder:function(){for(var t=!1,i=0;i<this.productType.length;i++)0==this.productType[i]&&(t=!0);if(this.productType.indexOf("扩展")>-1){this.productType.pop(),this.TypeList.pop();for(var e=9;e>=0;e--)this.TypeList.push(this.productTypePop.pop());this.TypeList.push({id:"缩进",name:"<<"})}if(this.productType.indexOf("缩进")>-1){this.productType.pop(),this.TypeList.pop();for(var n=0;n<10;n++)this.productTypePop[n]=this.TypeList.pop();this.TypeList.push({id:"扩展",name:">>"})}if(0==this.productType[0]&&1<this.productType.length<this.TypeList.length){for(var r=[],o=0;o<this.productType.length;o++)0!=this.productType[o]&&r.push(this.productType[o]);this.productType=r}0==this.productType[this.productType.length-1]&&(this.productType=[0]),t||this.productType.length!=this.TypeList.length-1||(this.productType=[0]),0==this.productType.length&&(this.productType=[0])},changePay:function(){for(var t=!1,i=0;i<this.payType.length;i++)0==this.payType[i]&&(t=!0);if(this.payType.indexOf("扩展")>-1&&(this.payType.pop(),this.payList.pop(),this.payList.push(this.payListPop[0]),this.payList.push(this.payListPop[1]),this.payList.push(this.payListPop[2]),this.payList.push({id:"缩进",name:"<<"})),this.payType.indexOf("缩进")>-1&&(this.payType.pop(),this.payList.pop(),this.payList.pop(),this.payList.pop(),this.payList.pop(),this.payList.push({id:"扩展",name:">>"})),0==this.payType[0]&&1<this.payType.length<this.payList.length){for(var e=[],n=0;n<this.payType.length;n++)0!=this.payType[n]&&e.push(this.payType[n]);this.payType=e}0==this.payType[this.payType.length-1]&&(this.payType=[0]),t||this.payType.length!=this.payList.length-1||(this.payType=[0]),0==this.payType.length&&(this.payType=[0])},clickExport:function(){window.open("/api/admin/job/get_all_periods?action=export")},getEnum:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,data,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$get("/api/admin/job/getEnum");case 2:n=e.sent,(data=n.data)&&(r=data.jobStatusList,o=data.periodStatusList,t.jobStatusList=r,t.periodStatusList=o);case 5:case"end":return e.stop()}}),e)})))()},clickOperate:function(t){var e=t.job_id,n=t.id;window.open(this.$store.state.domainConfig.rooterUrl+"/main/wage_settlement?job_id=".concat(e,"&period_id=").concat(n))},clickOrder:function(i){window.open(this.$store.state.domainConfig.rooterUrl+"/main/wage_details?job_id=".concat(i.job_id,"&period_id=").concat(i.id))},clickDev:function(t){window.open(this.$store.state.domainConfig.siteUrl+"/rooter/user/".concat(t))},clickCompany:function(t){window.open(this.$store.state.domainConfig.siteUrl+"/rooter/user/".concat(t))},clickJobID:function(t){window.open(this.$store.state.domainConfig.siteUrl+"/rooter/cloudjobitem/".concat(t))},clickRetry:function(t){var e=this;return Object(o.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.$post("/api/admin/payment/redoDraw",{id:t});case 2:n.sent;case 3:case"end":return n.stop()}}),n)})))()},tableRowClassName:function(t){var e=t.row,n=(t.rowIndex,"");return"结束合作"===e.j_status_name&&(n="end-row"),n},formatTableData:function(data){return data.map((function(i){return m(m({},i),{},{payAround:"".concat(i.start_time,"<br>").concat(i.end_time),pre_send_salary_timeShow:new Date(1e3*i.pre_send_salary_time).toLocaleDateString()})}))},clickSearchConfirm:function(){this.currentPage=1},changePageSize:function(t){this.currentPageSize=t,this.getFinanceList()},downFinanceList:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,r,o,time,c,l,_;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0,t.checked&&(n=1),r=[],r=0==t.productType[0]?"":t.productType.toString(),o=[],o=0==t.payType[0]?"":t.payType.toString(),time=1,time=""==t.timeType?"":t.timeType,c="",l="",t.timeRange.length>0?(c=t.formatDate(t.timeRange[0]/1e3),l=t.formatDate(t.timeRange[1]/1e3)):(c="",l=""),_=window.location.host+"/api/admin/order/export?product_type="+r+"&order_type="+t.orderTypes+"&channel="+o+"&start_time="+c+"&end_time="+l+"&date_type="+time+"&status="+t.orderState+"&artificial_mark="+n+"&order="+t.searchId+"&user="+t.checkUser+"&product_id="+t.productId,window.location.href="https://"+_;case 13:case"end":return e.stop()}}),e)})))()},changeTab:function(){this.orderTypes="",this.getFinanceList()},getFinanceList:function(){var t=this;this.$router.currentRoute.query.user&&(this.checkUser=this.$router.currentRoute.query.user);var e=0;this.checked&&(e=1);var n=[];n=0==this.productType[0]?"":this.productType.toString();var r=[];r=0==this.payType[0]?"":this.payType.toString();var time=1;time=""==this.timeType?"":this.timeType;var o="",c="";if(this.timeRange)if(this.timeRange.length>0)if(this.timeRange[0]/1e3*1e3==this.timeRange[1]/1e3*1e3){var l=this.timeRange[1]/1e3*1e3+864e5;o=this.formatDate(this.timeRange[0]/1e3),c=this.formatDate(l/1e3)}else o=this.formatDate(this.timeRange[0]/1e3),c=this.formatDate(this.timeRange[1]/1e3);else o="",c="";else o="",c="";var body={view:"platform",product_type:n,order_type:this.orderTypes,channel:r,start_time:o,end_time:c,date_type:time,status:this.orderState,artificial_mark:e,order:this.searchId,user:this.checkUser,product_id:this.productId,min_real_amount:this.minRealAmount?100*this.minRealAmount:0,page:this.currentPage,page_size:this.currentPageSize};""==this.orderTypes?body.active_name=this.activeName:this.activeName="all",this.$post("/api/admin/order/get_orders",body).then((function(e){var data=e.data;0===e.status&&(t.hasAuth=0),1===e.status&&(t.financeList=data.orders,t.totalCount=data.count,t.successCount=data.successCount,t.totalHave=data.income_sum,t.totalSuccess=data.income_success_sum,t.PayCount=data.expense_sum,t.paySuccess=data.expense_success_sum,t.frozenSum=data.frozen_sum,t.frozenSuccessSum=data.frozen_success_sum,t.innerOutcomeSum=data.inner_outcome_sum,t.innerIncomeSum=data.inner_income_sum,t.innerCount=data.inner_count,t.incomeCount=data.income_count,t.outcomeCount=data.outcome_count,t.frozenCount=data.frozen_count)}))},getAllChoice:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,data,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return{},e.next=3,t.$post("/api/admin/order/get_all_choice");case 3:for(n=e.sent,data=n.data,t.orderTypesOption=data.order_types,t.orderTypesOption.unshift({id:"",name:"全部"}),t.orderStateOption=data.order_state,t.payList=data.channels,t.payList.unshift({id:0,name:"全部"}),t.payListPop[0]=t.payList.pop(),t.payListPop[1]=t.payList.pop(),t.payListPop[2]=t.payList.pop(),t.payList.push({id:"扩展",name:">>"}),t.TypeList=data.product_types,t.TypeList.unshift({id:0,name:"全部"}),i=0;i<10;i++)t.productTypePop[i]=t.TypeList.pop();t.TypeList.push({id:"扩展",name:">>"});case 18:case"end":return e.stop()}}),e)})))()}},created:function(){}},h=(n(616),Object(l.a)(y,(function(){var t=this,e=t._self._c;return t.hasAuth?e("div",{staticStyle:{"padding-bottom":"60px"},attrs:{id:"cloud-balance"}},[e("section",{staticClass:"top"},[e("section",[e("div",{staticClass:"type-boxes"},[e("span",{staticClass:"vsub"},[t._v("订单类型:")]),t._v(" "),e("div",{staticClass:"inlineb"},[e("el-checkbox-group",{attrs:{size:"mini"},on:{change:t.changeOrder},model:{value:t.productType,callback:function(e){t.productType=e},expression:"productType"}},t._l(t.TypeList,(function(n){return e("el-checkbox-button",{key:n.id,attrs:{label:n.id}},[t._v(t._s(n.name))])})),1)],1)]),t._v(" "),e("div",{staticClass:"type-boxes"},[e("span",{staticClass:"vsub"},[t._v("支付方式:")]),t._v(" "),e("div",{staticClass:"inlineb"},[e("el-checkbox-group",{attrs:{size:"mini"},on:{change:t.changePay},model:{value:t.payType,callback:function(e){t.payType=e},expression:"payType"}},t._l(t.payList,(function(n){return e("el-checkbox-button",{key:n.id,attrs:{label:n.id}},[t._v(t._s(n.name))])})),1)],1),t._v(" "),e("div",{staticClass:"inlineb checkbox-div"},[e("el-checkbox",{model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},[t._v("人工财务")])],1)]),t._v(" "),e("div",{staticClass:"type-boxes"},[e("div",{staticClass:"inlineb"},[e("span",{staticClass:"vsub"},[t._v("时间范围:")]),t._v(" "),e("el-date-picker",{staticStyle:{width:"260px"},attrs:{type:"daterange",align:"right","unlink-panels":"","range-separator":"到","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions2},model:{value:t.timeRange,callback:function(e){t.timeRange=e},expression:"timeRange"}})],1),t._v(" "),e("div",{staticClass:"inlineb"},[e("span",{staticClass:"vsub"},[t._v("时间类型:")]),t._v(" "),e("el-select",{staticStyle:{width:"120px"},attrs:{placeholder:"请选择"},model:{value:t.timeType,callback:function(e){t.timeType=e},expression:"timeType"}},t._l(t.timeOptions,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),e("div",{staticClass:"inlineb"},[e("span",{staticClass:"vsub"},[t._v("状态:")]),t._v(" "),e("div",{staticClass:"inlineb"},[e("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:""},model:{value:t.orderState,callback:function(e){t.orderState=e},expression:"orderState"}},t._l(t.orderStateOption,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)]),t._v(" "),e("div",{staticClass:"inlineb"},[e("span",{staticClass:"vsub"},[t._v("交易类型:")]),t._v(" "),e("el-select",{staticStyle:{width:"100px"},attrs:{placeholder:"交易类型"},model:{value:t.orderTypes,callback:function(e){t.orderTypes=e},expression:"orderTypes"}},t._l(t.orderTypesOption,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)]),t._v(" "),e("div",{staticClass:"type-boxes"},[e("div",{staticClass:"inlineb"},[e("span",{staticClass:"vsub"},[t._v("编号:")]),t._v(" "),e("div",{staticClass:"inlineb"},[e("el-input",{staticStyle:{width:"230px"},attrs:{placeholder:"订单编号/订单名称/支付编号"},model:{value:t.searchId,callback:function(e){t.searchId=e},expression:"searchId"}})],1)]),t._v(" "),e("div",{staticClass:"inlineb"},[e("span",{staticClass:"vsub"},[t._v("用户:")]),t._v(" "),e("div",{staticClass:"inlineb"},[e("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"uid/昵称/姓名"},model:{value:t.checkUser,callback:function(e){t.checkUser=e},expression:"checkUser"}})],1)]),t._v(" "),e("div",{staticClass:"inlineb"},[e("span",{staticClass:"vsub"},[t._v("项目:")]),t._v(" "),e("div",{staticClass:"inlineb"},[e("el-input",{staticStyle:{width:"100px"},attrs:{type:"number",placeholder:"项目ID"},model:{value:t.productId,callback:function(e){t.productId=e},expression:"productId"}})],1)]),t._v(" "),e("div",{staticClass:"inlineb"},[e("span",{staticClass:"vsub"},[t._v("最小金额:")]),t._v(" "),e("div",{staticClass:"inlineb"},[e("el-input",{staticStyle:{width:"100px"},attrs:{type:"number",placeholder:"最小实付金额"},model:{value:t.minRealAmount,callback:function(e){t.minRealAmount=e},expression:"minRealAmount"}})],1)]),t._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:t.getFinanceList}},[t._v("筛选")]),t._v(" "),e("el-button",{staticClass:"export-excel",attrs:{type:"primary"},on:{click:t.downFinanceList}},[t._v("导出报表")])],1),t._v(" "),e("div",{staticClass:"type-boxes"},[e("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":t.changeTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{attrs:{label:"全部",name:"all"}},[e("div",{staticClass:"inlineb tab-item"},[e("div",{staticClass:"text-title"},[t._v("收入")]),t._v(" "),e("div",{staticClass:"text-num red"},[t._v("+ "+t._s(t.totalSuccess)+"元")]),t._v(" "),e("div",{staticClass:"count"},[t._v("共"+t._s(t.incomeCount)+"笔")])]),t._v(" "),e("div",{staticClass:"inlineb tab-item"},[e("div",{staticClass:"text-title"},[t._v("支出")]),t._v(" "),e("div",{staticClass:"text-num green"},[t._v("- "+t._s(t.paySuccess)+"元")]),t._v(" "),e("div",{staticClass:"count"},[t._v("共"+t._s(t.outcomeCount)+"笔")])]),t._v(" "),e("div",{staticClass:"inlineb tab-item"},[e("div",{staticClass:"text-title"},[t._v("内部流转")]),t._v(" "),e("div",{staticClass:"inner-text"},[t._v("+ "+t._s(t.innerIncomeSum)+"元")]),t._v(" "),e("div",{staticClass:"inner-text"},[t._v("- "+t._s(t.innerOutcomeSum)+"元")]),t._v(" "),e("div",{staticClass:"count"},[t._v("共"+t._s(t.innerCount)+"笔")])]),t._v(" "),e("div",{staticClass:"inlineb tab-item"},[e("div",{staticClass:"text-title"},[t._v("冻结订单")]),t._v(" "),e("div",{staticClass:"text-num"},[t._v(t._s(t.frozenSuccessSum)+"元")]),t._v(" "),e("div",{staticClass:"count"},[t._v("共"+t._s(t.frozenCount)+"笔")])])]),t._v(" "),e("el-tab-pane",{attrs:{label:"平台收入",name:"income"}},[e("div",{staticClass:"inlineb tab-item"},[e("div",{staticClass:"text-title"},[t._v("收入")]),t._v(" "),e("div",{staticClass:"text-num red"},[t._v("+ "+t._s(t.totalSuccess)+"元")]),t._v(" "),e("div",{staticClass:"count"},[t._v("共"+t._s(t.incomeCount)+"笔")])])]),t._v(" "),e("el-tab-pane",{attrs:{label:"平台支出",name:"outcome"}},[e("div",{staticClass:"inlineb tab-item"},[e("div",{staticClass:"text-title"},[t._v("支出")]),t._v(" "),e("div",{staticClass:"text-num green"},[t._v("- "+t._s(t.paySuccess)+"元")]),t._v(" "),e("div",{staticClass:"count"},[t._v("共"+t._s(t.outcomeCount)+"笔")])])]),t._v(" "),e("el-tab-pane",{attrs:{label:"内部流转",name:"inner"}},[e("div",{staticClass:"inlineb tab-item"},[e("div",{staticClass:"text-title"},[t._v("内部流转")]),t._v(" "),e("div",{staticClass:"inner-text"},[t._v("+ "+t._s(t.innerIncomeSum)+"元")]),t._v(" "),e("div",{staticClass:"inner-text"},[t._v("- "+t._s(t.innerOutcomeSum)+"元")]),t._v(" "),e("div",{staticClass:"count"},[t._v("共"+t._s(t.innerCount)+"笔")])])])],1)],1)])]),t._v(" "),e("div",{staticClass:"trcenter changeheight",attrs:{width:"100%"}},[e("el-table",{attrs:{data:t.financeList,border:"",width:"100%"}},[e("el-table-column",{attrs:{label:"订单名称"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",{staticClass:"lblue point"},[e("nuxt-link",{attrs:{target:"_blank",to:{path:"/main/orders_detail?id="+n.row.order_no}}},[t._v(t._s(n.row.product_title))])],1)]}}],null,!1,948268546)}),t._v(" "),e("el-table-column",{attrs:{label:"用户"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("a",{staticClass:"link-type",attrs:{href:n.row.user_url,target:"_blank"}},[t._v(t._s(n.row.user_info.nickname)+"("+t._s(n.row.uid)+")")])]}}],null,!1,2597748741)}),t._v(" "),e("el-table-column",{attrs:{label:"实际金额"},scopedSlots:t._u([{key:"default",fn:function(n){return["customize"==n.row.style?[e("div",[e("span",{class:n.row.customize_class},[t._v(t._s(n.row.customize_text))])])]:"admin_confirm"!=n.row.channel?[8==n.row.order_type&&n.row.product_type>500?e("div",[e("span",[t._v(t._s((n.row.real_amount/100).toFixed(2)))])]):13==n.row.product_type?e("div",[8==n.row.order_type?e("span",[t._v(t._s((n.row.real_amount/100).toFixed(2))+"\n ")]):4==n.row.order_type?["balance"!=n.row.channel?e("span",{staticClass:"red"},[t._v("\n +"+t._s((n.row.real_amount/100).toFixed(2))+"\n ")]):e("span",[t._v("\n +"+t._s((n.row.real_amount/100).toFixed(2))+"\n ")])]:e("span",[t._v(t._s((n.row.real_amount/100).toFixed(2)))])],2):20==n.row.product_type?e("div",[8==n.row.order_type?e("span",[t._v(t._s((n.row.real_amount/100).toFixed(2)))]):e("span",[t._v("+"+t._s((n.row.real_amount/100).toFixed(2)))])]):200==n.row.product_type?e("div",[e("span",{staticClass:"green"},[t._v("\n "+t._s((n.row.real_amount/100).toFixed(2))+"\n ")])]):3==n.row.product_type||300==n.row.product_type?e("div",[41266==n.row.operator_uid?e("div",[t._v("\n +"+t._s((n.row.real_amount/100).toFixed(2))+"\n ")]):e("div",[e("span",{staticClass:"red"},[t._v("+"+t._s((n.row.real_amount/100).toFixed(2)))])])]):8==n.row.product_type?e("div",["balance"!=n.row.channel?e("span",{staticClass:"red"},[t._v("\n +"+t._s((n.row.real_amount/100).toFixed(2))+"\n ")]):e("span",[t._v("\n +"+t._s((n.row.real_amount/100).toFixed(2))+"\n ")])]):4==n.row.product_type?e("div",[8==n.row.order_type||5==n.row.order_type?e("span",[t._v(t._s((n.row.real_amount/100).toFixed(2)))]):4==n.row.order_type||1==n.row.order_type?["balance"!=n.row.channel?e("span",{staticClass:"red"},[t._v("\n +"+t._s((n.row.real_amount/100).toFixed(2))+"\n ")]):e("span",[t._v("\n +"+t._s((n.row.real_amount/100).toFixed(2))+"\n ")])]:e("span",[t._v(t._s((n.row.real_amount/100).toFixed(2)))])],2):400==n.row.product_type?e("div",[8==n.row.order_type?e("span",[t._v(t._s((n.row.real_amount/100).toFixed(2)))]):1==n.row.order_type?["balance"!=n.row.channel?e("span",{staticClass:"red"},[t._v("\n +"+t._s((n.row.real_amount/100).toFixed(2))+"\n ")]):e("span",[t._v("\n +"+t._s((n.row.real_amount/100).toFixed(2))+"\n ")])]:e("span",[t._v(t._s((n.row.real_amount/100).toFixed(2)))])],2):9==n.row.product_type?e("div",[8==n.row.order_type?e("span",[t._v(t._s((n.row.real_amount/100).toFixed(2)))]):5==n.row.order_type?[("balance"!=n.row.channel&&n.row.channel,e("span",[t._v("\n "+t._s((n.row.real_amount/100).toFixed(2))+"\n ")]))]:1==n.row.order_type?["balance"!=n.row.channel?e("span",{staticClass:"red"},[t._v("\n +"+t._s((n.row.real_amount/100).toFixed(2))+"\n ")]):e("span",[t._v("\n +"+t._s((n.row.real_amount/100).toFixed(2))+"\n ")])]:e("span",[t._v(t._s((n.row.real_amount/100).toFixed(2)))])],2):2==n.row.product_type?e("div",[8==n.row.order_type?e("span",[t._v(t._s((n.row.real_amount/100).toFixed(2)))]):5==n.row.order_type?[("balance"!=n.row.channel&&n.row.channel,e("span",[t._v("\n "+t._s((n.row.real_amount/100).toFixed(2))+"\n ")]))]:1==n.row.order_type?["balance"!=n.row.channel&&"qingtuanbao"!=n.row.channel?e("span",{staticClass:"red"},[t._v("\n +"+t._s((n.row.real_amount/100).toFixed(2))+"\n ")]):e("span",[t._v("\n +"+t._s((n.row.real_amount/100).toFixed(2))+"\n ")])]:7==n.row.order_type?["balance"!=n.row.channel&&"qingtuanbao"!=n.row.channel?e("span",{staticClass:"green"},[t._v("\n "+t._s((n.row.real_amount/100).toFixed(2))+"\n ")]):e("span",[t._v("\n "+t._s((n.row.real_amount/100).toFixed(2))+"\n ")])]:e("span",[t._v(t._s((n.row.real_amount/100).toFixed(2)))])],2):(n.row.product_type,e("div",["balance"!=n.row.channel?e("span",{staticClass:"red"},[t._v("\n +"+t._s((n.row.real_amount/100).toFixed(2))+"\n ")]):e("span",[t._v("\n +"+t._s((n.row.real_amount/100).toFixed(2))+"\n ")])]))]:["41266"!=n.row.operaor_uid?e("div",[parseInt(n.row.real_amount)>0?e("spant",{staticClass:"red"},[t._v("+"+t._s((n.row.real_amount/100).toFixed(2)))]):0==parseInt(n.row.real_amount)?e("span",[t._v(t._s((n.row.real_amount/100).toFixed(2)))]):e("span",{staticClass:"green"},[t._v(t._s((n.row.real_amount/100).toFixed(2)))])],1):e("div",[parseInt(n.row.real_amount)>0?e("span",[t._v("+"+t._s((n.row.real_amount/100).toFixed(2)))]):(parseInt(n.row.real_amount),e("span",[t._v(t._s((n.row.real_amount/100).toFixed(2)))]))])]]}}],null,!1,689359729)}),t._v(" "),e("el-table-column",{attrs:{prop:"channel_name",label:"支付方式"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.show_user_info_money(n.row.uid)}}},[t._v(t._s(n.row.channel_name))])]}}],null,!1,1648216391)}),t._v(" "),e("el-table-column",{attrs:{prop:"order_state_name",label:"订单状态"}}),t._v(" "),e("el-table-column",{attrs:{label:"来源"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t.formatExtra(n.row.extra)))])]}}],null,!1,4228930596)}),t._v(" "),e("el-table-column",{attrs:{prop:"",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t.formatDate(n.row.created_at)))])]}}],null,!1,1539279802)}),t._v(" "),e("el-table-column",{attrs:{prop:"name",label:"到账时间"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t.formatDate(n.row.pay_time)))])]}}],null,!1,1710810642)}),t._v(" "),e("el-table-column",{attrs:{prop:"",label:"订单编号"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("nuxt-link",{attrs:{target:"_blank",to:{path:"/main/orders_detail?id="+n.row.order_no}}},[t._v(t._s(n.row.order_no))])]}}],null,!1,3248622040)}),t._v(" "),e("el-table-column",{attrs:{prop:"out_order_id",label:"支付编号"}}),t._v(" "),e("el-table-column",{attrs:{width:"100",label:"订单类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.product_type_name))]}}],null,!1,2610508969)}),t._v(" "),e("el-table-column",{attrs:{prop:"order_type_name",label:"交易类型"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.order_type_name))])]}}],null,!1,2133816791)}),t._v(" "),e("el-table-column",{attrs:{label:"关联项目"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("a",{attrs:{href:n.row.related_project.url?n.row.related_project.url:"#",target:"_blank"}},[e("span",{staticClass:"lblue"},[t._v(t._s(n.row.related_project.name?n.row.related_project.name:"--"))])])]}}],null,!1,992381760)}),t._v(" "),e("el-table-column",{attrs:{prop:"operator_uid",label:"人工"},scopedSlots:t._u([{key:"default",fn:function(n){return[n.row.operator_info.nickname?e("span",[t._v(t._s(n.row.operator_info.nickname))]):t._e(),t._v(" "),e("span",[t._v("("+t._s(n.row.operator_uid)+")")])]}}],null,!1,4254788649)})],1)],1),t._v(" "),e("div",{staticClass:"order-footer"},[e("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":20,layout:"total, sizes, prev, pager, next, jumper",total:t.totalCount},on:{"current-change":t.getFinanceList,"size-change":t.changePageSize,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e}}})],1),t._v(" "),e("el-drawer",{attrs:{title:"用户资金明细",size:"1000px","destroy-on-close":!0,"append-to-body":!0,visible:t.drawer.visible,direction:t.drawer.direction},on:{"update:visible":function(e){return t.$set(t.drawer,"visible",e)}}},[e("user_bills",{attrs:{uid:t.drawer.uid}})],1)],1):t._e()}),[],!1,null,"2f353fad",null));e.default=h.exports}}]);
|