1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bb96cef4"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),Math.easeInOutQuad=function(t,e,n,r){return t/=r/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function a(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,n){var i=o(),u=t-i,c=20,s=0;e="undefined"===typeof e?500:e;var l=function t(){s+=c;var o=Math.easeInOutQuad(s,i,u,e);a(o),s<e?r(t):n&&"function"===typeof n&&n()};l()}},"1ff2":function(t,e,n){},"333d":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[n("el-pagination",t._b({attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},a=[],o=(n("c5f6"),n("09f4")),i={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(o["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(o["a"])(0,800)}}},u=i,c=(n("c0b9"),n("2877")),s=Object(c["a"])(u,r,a,!1,null,"31cb099a",null);e["a"]=s.exports},"3de3":function(t,e,n){"use strict";n.d(e,"h",function(){return u}),n.d(e,"i",function(){return c}),n.d(e,"j",function(){return s}),n.d(e,"m",function(){return l}),n.d(e,"l",function(){return d}),n.d(e,"o",function(){return m}),n.d(e,"a",function(){return p}),n.d(e,"p",function(){return f}),n.d(e,"q",function(){return h}),n.d(e,"t",function(){return g}),n.d(e,"n",function(){return b}),n.d(e,"r",function(){return v}),n.d(e,"e",function(){return y}),n.d(e,"b",function(){return _}),n.d(e,"k",function(){return O}),n.d(e,"c",function(){return w}),n.d(e,"f",function(){return S}),n.d(e,"s",function(){return F}),n.d(e,"d",function(){return j}),n.d(e,"g",function(){return T});var r=n("b775"),a=n("4328"),o=n.n(a),i="/api-web";function u(t){return Object(r["a"])({url:i+"/order/queryPage",method:"get",params:t})}function c(t){return Object(r["a"])({url:i+"/order/queryPage1",method:"get",params:t})}function s(t){return Object(r["a"])({url:i+"/order/queryPage2",method:"get",params:t})}function l(t){return Object(r["a"])({url:i+"/routeOrder/finance",method:"get",params:t})}function d(t){return Object(r["a"])({url:i+"/routeOrder/add",method:"post",headers:{"Content-Type":"application/json"},data:t})}function m(t){return Object(r["a"])({url:i+"/studentRefunds/queryPage",method:"get",params:t})}function p(t){return Object(r["a"])({url:i+"/vipGroupManage/applyRefundAudit",method:"post",data:o.a.stringify(t)})}function f(t){return Object(r["a"])({url:i+"/studentWithdraw/queryPage",method:"get",params:t})}function h(t){return Object(r["a"])({url:i+"/studentWithdraw/confirm",method:"post",data:o.a.stringify(t)})}function g(t){return Object(r["a"])({url:i+"/order/verifyMusicalList",method:"GET",params:t})}function b(t){return Object(r["a"])({url:i+"/studentRecharge/queryPage",method:"GET",params:t})}function v(t){return Object(r["a"])({url:i+"/tenantPaymentOrder/queryPage",method:"GET",params:t})}function y(t){return Object(r["a"])({url:i+"/order/getOrderStatus",method:"GET",params:t})}function _(t){return Object(r["a"])({url:i+"/financialExpenditure/queryPage",method:"GET",params:t})}function O(t){return Object(r["a"])({url:i+"/financialExpenditure/batchDel",method:"POST",params:t})}function w(t){return Object(r["a"])({url:i+"/operatingReport/queryPage",method:"GET",params:t})}function S(t){return Object(r["a"])({url:i+"/sellOrder/queryPage",method:"GET",params:t})}function F(t){return Object(r["a"])({url:i+"/sellOrder/update",method:"POST",params:t})}function j(t){return Object(r["a"])({url:i+"/routeOrder/getOrderInfo",method:"GET",params:t})}function T(t){return Object(r["a"])({url:i+"/routeOrder/delete",method:"POST",data:o.a.stringify(t)})}},"52cc":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[n("el-page-header",{attrs:{content:t.organName},on:{back:t.goBack}}),t._v(" "),n("div",{staticClass:"m-core"},[n("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:t.searchForm,callback:function(e){t.searchForm="string"===typeof e?e.trim():e},expression:"searchForm"}},[n("el-form-item",[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择所属学校"},model:{value:t.searchForm.cooperationOrganId,callback:function(e){t.$set(t.searchForm,"cooperationOrganId",e)},expression:"searchForm.cooperationOrganId"}},t._l(t.cooperations,function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})}),1)],1),t._v(" "),n("el-form-item",[n("el-date-picker",{attrs:{type:"month",placeholder:"选择月份"},model:{value:t.searchForm.month,callback:function(e){t.$set(t.searchForm,"month",e)},expression:"searchForm.month"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.onReSet}},[t._v("重置")])],1)],1),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"schoolName",label:"学校"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"sellAmount",width:"150px",label:"销售收入(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.sellAmount))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"serviceAmount",width:"150px",label:"服务收入(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.serviceAmount))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"otherIncome",width:"150px",label:"其它收入(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.otherIncome))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"refundAmount",width:"150px",label:"业务退费(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.refundAmount))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"incomeTotal",width:"150px",label:"收入合计(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"point"},[t._v("\n "+t._s(t._f("moneyFormat")(e.row.incomeTotal))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"sellCost",width:"150px",label:"销售成本(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.sellCost))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"expensesAmount",width:"150px",label:"固定支出(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.expensesAmount))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"variableCost",width:"150px",label:"变动支出(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.variableCost))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"distributionAmount",width:"150px",label:"分摊费用(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.distributionAmount))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"costAmount",width:"150px",label:"成本费用合计(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"point"},[t._v("\n "+t._s(t._f("moneyFormat")(e.row.costAmount))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"profit",label:"利润(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"point"},[t._v("\n "+t._s(t._f("moneyFormat")(e.row.profit))+"\n ")])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)],1)],1)},a=[],o=n("db72"),i=n("333d"),u=(n("adb2"),n("3de3")),c=n("1cc7"),s=(n("4360"),n("5a0c")),l=n.n(s),d={components:{pagination:i["a"]},name:"backMoney",data:function(){return{orderDate:null,searchForm:{startTime:null,endTime:null,organId:null,month:"",cooperationOrganId:"",organIdList:[]},tableList:[],organList:[],cooperations:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},organId:null,organName:null}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var t=this;this.organId=this.$route.query.organId,this.organName=this.$route.query.organName,Object(c["T"])().then(function(e){200==e.code&&(t.organList=e.data)}),Object(c["O"])({rows:1e3,organId:this.organId}).then(function(e){if(200==e.code){t.cooperations=e.data.rows;var n=t.cooperations.some(function(e){return e.id==t.searchForm.cooperationOrganId});n||(t.searchForm.cooperationOrganId=null);var r=Object(o["a"])({},t.searchForm);r.month=l()().format("YYYY-MM"),t.searchForm=r,t.getList();var a=new Date,i=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate())).toISOString().slice(0,10),u=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate())).toISOString().slice(0,10);t.orderDate=[],t.orderDate.push(i),t.orderDate.push(u)}})},search:function(){this.pageInfo.page=1,this.getList()},onTeachingSubmit:function(t,e){var n=this;this.$refs[t].validate(function(t){if(!t)return!1;n.form.status=e,Object(u["a"])(n.form).then(function(t){200==t.code?(n.$message.success("操作成功"),n.backStatus=!1,n.getList()):n.$message.error(t.msg)})})},getList:function(){var t=this,e=this.searchForm;e.rows=this.pageInfo.limit,e.page=this.pageInfo.page,Object(u["c"])(Object(o["a"])({},e,{month:e.month?l()(e.month).format("YYYY-MM-DD"):"",organIdList:this.organId,type:"school"})).then(function(e){var n=e.data;200==e.code&&(t.tableList=n.rows,t.pageInfo.total=n.total)})},searchOrderDate:function(t){t?(this.searchForm.startTime=t[0]+" 00:00:00",this.searchForm.endTime=t[1]+" 23:59:59"):(this.searchForm.startTime=null,this.searchForm.endTime=null)},onReSet:function(){this.orderDate=null,this.searchForm={startTime:null,endTime:null,month:"",cooperationOrganId:"",organIdList:[]},this.getList()},goBack:function(){this.$router.push({path:"/orderList/businessStatement",query:Object(o["a"])({},this.$route.query)})}}},m=d,p=(n("b60b"),n("2877")),f=Object(p["a"])(m,r,a,!1,null,"545b269e",null);e["default"]=f.exports},adb2:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("bc3a"),a=n.n(r),o=(n("4328"),n("5f87")),i=n("3908"),u=function(t,e,n){var r=e.url,u={method:e.method?e.method:"get",headers:{Authorization:Object(o["a"])()},url:r,responseType:"blob"};"post"==u.method?u.data=e.params:u.params=e.params,t.$confirm(n||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){i["a"].startLoading(),a()(u).then(function(n){var r=new Blob([n.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(r).text();a.then(function(n){if(-1!=n.indexOf("code")){var a=JSON.parse(n);t.$message.error(a.msg)}else{var o=URL.createObjectURL(r),i=document.createElement("a"),u=e.fileName||"导出文件.xlsx";i.href=o,i.setAttribute("download",u),document.body.appendChild(i),i.click()}}),i["a"].endLoading()}).catch(function(e){t.$message.error("下载失败,请联系管理员"),i["a"].endLoading()})}).catch(function(){})}},b60b:function(t,e,n){"use strict";var r=n("1ff2"),a=n.n(r);a.a},c0b9:function(t,e,n){"use strict";var r=n("fa3b"),a=n.n(r);a.a},fa3b:function(t,e,n){}}]);
|