(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bc672cf4"],{"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 r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,a){var o=l(),u=e-o,i=20,c=0;t="undefined"===typeof t?500:t;var s=function e(){c+=i;var l=Math.easeInOutQuad(c,o,u,t);r(l),c0?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)])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("订单管理\n ")])}],l=(a("386d"),a("333d")),o=a("3de3"),u=a("1cc7"),i=(a("4360"),a("e3eb")),c=a.n(i),s=a("92e3"),d=a("bc3a"),m=a.n(d),p=a("4328"),f=a.n(p),v=a("5f87"),h=a("3908"),b={components:{pagination:l["a"]},name:"income",data:function(){return{orderStatus:s["j"],dealStatus:s["g"],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},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["R"])().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};this.orderDate&&this.orderDate.length>0?(n.orderStartDate=this.orderDate[0],n.orderEndDate=this.orderDate[1]):(n.orderStartDate=null,n.orderEndDate=null);var r={method:"POST",headers:{Authorization:Object(v["a"])()},data:f.a.stringify(c()(n)),url:t,responseType:"blob"};this.$confirm("您确定导出报表","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){h["a"].startLoading(),m()(r).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 r=URL.createObjectURL(a),l=document.createElement("a"),o=new Date,u=(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),"报表导出"+(new Date).getTime());l.href=r,l.setAttribute("download",u),document.body.appendChild(l),l.click()}})),h["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),h["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["c"])(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["b"])({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={orderStartDate:null,orderEndDate:null,paymentStatus:null,paymentType:null,organId:null,actualAmount:null,balancePaymentAmount:null,orderNo:null,transNo:null,merNos:null},this.getList()}}},g=b,y=a("2877"),_=Object(y["a"])(g,n,r,!1,null,null,null);t["default"]=_.exports},de4e:function(e,t,a){}}]);