1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-eb700e6a"],{"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 o(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function a(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,n){var i=a(),u=t-i,c=20,s=0;e="undefined"===typeof e?500:e;var l=function t(){s+=c;var a=Math.easeInOutQuad(s,i,u,e);o(a),s<e?r(t):n&&"function"===typeof n&&n()};l()}},"1ff2":function(t,e,n){},"3de3":function(t,e,n){"use strict";n.d(e,"h",function(){return c}),n.d(e,"i",function(){return s}),n.d(e,"j",function(){return l}),n.d(e,"n",function(){return d}),n.d(e,"m",function(){return m}),n.d(e,"p",function(){return f}),n.d(e,"a",function(){return p}),n.d(e,"q",function(){return h}),n.d(e,"r",function(){return g}),n.d(e,"u",function(){return b}),n.d(e,"o",function(){return v}),n.d(e,"s",function(){return _}),n.d(e,"e",function(){return y}),n.d(e,"b",function(){return O}),n.d(e,"l",function(){return w}),n.d(e,"c",function(){return F}),n.d(e,"f",function(){return T}),n.d(e,"t",function(){return I}),n.d(e,"k",function(){return j}),n.d(e,"d",function(){return k}),n.d(e,"g",function(){return S});var r=n("b775"),o=n("829b"),a=n("4328"),i=n.n(a),u="/api-web";function c(t){return Object(r["a"])({url:u+"/order/queryPage",method:"get",params:t})}function s(t){return Object(r["a"])({url:u+"/order/queryPage1",method:"get",params:t})}function l(t){return Object(r["a"])({url:u+"/order/queryPage2",method:"get",params:t})}function d(t){return Object(r["a"])({url:u+"/routeOrder/finance",method:"get",params:t})}function m(t){return Object(r["a"])({url:u+"/routeOrder/add",method:"post",headers:{"Content-Type":"application/json"},data:t})}function f(t){return Object(r["a"])({url:u+"/studentRefunds/queryPage",method:"get",params:t})}function p(t){return Object(r["a"])({url:u+"/vipGroupManage/applyRefundAudit",method:"post",data:i.a.stringify(t)})}function h(t){return Object(r["a"])({url:u+"/studentWithdraw/queryPage",method:"get",params:t})}function g(t){return Object(r["a"])({url:u+"/studentWithdraw/confirm",method:"post",data:i.a.stringify(t)})}function b(t){return Object(r["a"])({url:u+"/order/verifyMusicalList",method:"GET",params:t})}function v(t){return Object(r["a"])({url:u+"/studentRecharge/queryPage",method:"GET",params:t})}function _(t){return Object(r["a"])({url:u+"/tenantPaymentOrder/queryPage",method:"GET",params:t})}function y(t){return Object(r["a"])({url:u+"/order/getOrderStatus",method:"GET",params:t})}function O(t){return Object(r["a"])({url:u+"/financialExpenditure/queryPage",method:"GET",params:t})}function w(t){return Object(r["a"])({url:u+"/financialExpenditure/batchDel",method:"POST",params:t})}function F(t){return Object(r["a"])({url:u+"/operatingReport/queryPage",method:"GET",params:t})}function T(t){return Object(r["a"])({url:u+"/sellOrder/queryPage",method:"GET",params:t})}function I(t){return Object(r["a"])({url:u+"/sellOrder/update",method:"POST",params:t})}function j(t){return Object(o["a"])({url:u+"/sellOrder/refund",method:"POST",params:t,hint:!0})}function k(t){return Object(r["a"])({url:u+"/routeOrder/getOrderInfo",method:"GET",params:t})}function S(t){return Object(r["a"])({url:u+"/routeOrder/delete",method:"POST",data:i.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)},o=[],a=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["U"])().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(a["a"])({},t.searchForm);r.month=l()().format("YYYY-MM"),t.searchForm=r,t.getList();var o=new Date,i=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate())).toISOString().slice(0,10),u=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.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(a["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(a["a"])({},this.$route.query)})}}},m=d,f=(n("b60b"),n("2877")),p=Object(f["a"])(m,r,o,!1,null,"545b269e",null);e["default"]=p.exports},adb2:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("bc3a"),o=n.n(r),a=(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(a["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(),o()(u).then(function(n){var r=new Blob([n.data],{type:"application/vnd.ms-excel;charset=utf-8"}),o=new Response(r).text();o.then(function(n){if(-1!=n.indexOf("code")){var o=JSON.parse(n);t.$message.error(o.msg)}else{var a=URL.createObjectURL(r),i=document.createElement("a"),u=e.fileName||"导出文件.xlsx";i.href=a,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"),o=n.n(r);o.a}}]);
|