(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-457658a9"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),Math.easeInOutQuad=function(e,t,a,n){return e/=n/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function l(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,a){var o=r(),u=e-o,c=20,s=0;t="undefined"===typeof t?500:t;var i=function e(){s+=c;var r=Math.easeInOutQuad(s,o,u,t);l(r),s0?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/getOrderStatus",expression:"'order/getOrderStatus'"}],attrs:{type:"text"},on:{click:function(a){return e.onGetOrderStatus(t.row)}}},[e._v("查询订单状态")]):e._e()]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)])},l=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("订单管理\n ")])}],r=(a("386d"),a("333d")),o=a("3de3"),u=a("1cc7"),c=(a("4360"),a("e3eb")),s=a.n(c),i=a("92e3"),m=a("bc3a"),d=a.n(m),p=a("4328"),f=a.n(p),v=a("5f87"),b=a("3908"),h={components:{pagination:r["a"]},name:"income",data:function(){return{orderStatus:i["r"],dealStatus:i["k"],orderDate:null,searchForm:{search:null,orderStartDate:null,orderEndDate:null,paymentStatus:"SUCCESS",paymentType:null,organId:null,actualAmount:null,balancePaymentAmount:null,orderNo:null,transNo:null,merNos:null,lessBalancePaymentAmount:null,lessActualAmount:null},tableList:[],organList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},totalUserBalance:0,totalActualAmount:0,totalAdvanceAmount:0,totalRevenueAmount:0}},mounted:function(){var e=this;Object(u["U"])().then((function(t){200==t.code&&(e.organList=t.data)}));var t=new Date,a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())).toISOString().slice(0,10),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())).toISOString().slice(0,10);this.orderDate=[],this.orderDate.push(a),this.orderDate.push(n),this.getList()},methods:{onClear:function(e){"paymentType"==e?this.searchForm.paymentType=null:"paymentStatus"==e?this.searchForm.paymentStatus=null:"organId"==e&&(this.searchForm.organId=null)},onOrderExport:function(){var e=this,t="/api-web/export/orderList",a=this.searchForm,n={orderType:0,search:a.search,orderNo:a.orderNo,transNo:a.transNo,merNos:a.merNos,actualAmount:a.actualAmount,balancePaymentAmount:a.balancePaymentAmount,paymentStatus:a.paymentStatus,paymentType:a.paymentType,organId:a.organId,lessBalancePaymentAmount:a.lessBalancePaymentAmount,lessActualAmount:a.lessActualAmount};this.orderDate&&this.orderDate.length>0?(n.orderStartDate=this.orderDate[0],n.orderEndDate=this.orderDate[1]):(n.orderStartDate=null,n.orderEndDate=null);var l={method:"POST",headers:{Authorization:Object(v["a"])()},data:f.a.stringify(s()(n)),url:t,responseType:"blob"};this.$confirm("您确定导出报表","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){b["a"].startLoading(),d()(l).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=new Response(a).text();n.then((function(t){if(-1!=t.indexOf("code")){var n=JSON.parse(t);e.$message.error(n.msg)}else{var l=URL.createObjectURL(a),r=document.createElement("a"),o=new Date,u=(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),"报表导出"+(new Date).getTime());r.href=l,r.setAttribute("download",u),document.body.appendChild(r),r.click()}})),b["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),b["a"].endLoading()}))})).catch((function(){}))},search:function(){this.pageInfo.page=1,this.getList()},getList:function(){var e=this,t=JSON.parse(JSON.stringify(this.searchForm));t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,t.orderNo=t.orderNo?t.orderNo:null,t.transNo=t.transNo?t.transNo:null,t.merNos=t.merNos?t.merNos:null,t.actualAmount=t.actualAmount?t.actualAmount:null,t.balancePaymentAmount=t.balancePaymentAmount?t.balancePaymentAmount:null,this.orderDate&&this.orderDate.length>0?(t.orderStartDate=this.orderDate[0],t.orderEndDate=this.orderDate[1]):(t.orderStartDate=null,t.orderEndDate=null),Object(o["k"])(s()(t)).then((function(t){var a=t.data;200==t.code&&(e.tableList=a.rows,e.pageInfo.total=a.total,e.totalUserBalance=a.totalUserBalance?a.totalUserBalance:0,e.totalActualAmount=a.totalActualAmount?a.totalActualAmount:0,e.totalAdvanceAmount=a.totalAdvanceAmount?a.totalAdvanceAmount:0,e.totalRevenueAmount=a.totalRevenueAmount?a.totalRevenueAmount:0)}))},onGetOrderStatus:function(e){var t=this;this.$confirm("您确定查询该订单状态","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(o["f"])({id:e.id}).then((function(e){t.getList()}))})).catch((function(e){}))},searchOrderDate:function(e){e?(this.searchForm.orderStartDate=e[0],this.searchForm.orderEndDate=e[1]):(this.searchForm.orderStartDate=null,this.searchForm.orderEndDate=null)},onReSet:function(){this.orderDate=null,this.searchForm={search:null,orderStartDate:null,orderEndDate:null,paymentStatus:null,paymentType:null,organId:null,actualAmount:null,balancePaymentAmount:null,orderNo:null,transNo:null,merNos:null,lessBalancePaymentAmount:null,lessActualAmount:null},this.getList()}}},y=h,A=a("2877"),g=Object(A["a"])(y,n,l,!1,null,null,null);t["default"]=g.exports}}]);