chunk-bb96cef4.49c1b5c9.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bb96cef4"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",function(){return i}),Math.easeInOutQuad=function(e,t,n,r){return e/=r/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,n){var i=o(),u=e-i,c=20,s=0;t="undefined"===typeof t?500:t;var l=function e(){s+=c;var o=Math.easeInOutQuad(s,i,u,t);a(o),s<t?r(e):n&&"function"===typeof n&&n()};l()}},"1ff2":function(e,t,n){},"333d":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$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(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&Object(o["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,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);t["a"]=s.exports},"3de3":function(e,t,n){"use strict";var r=n("b775"),a=n("d225"),o=n("b0b4"),i=(n("ac4d"),n("8a81"),n("5c96")),u=n.n(i),c=n("bc3a"),s=n.n(c),l=n("4360"),d=n("5f87"),f=n("e3eb"),m=n.n(f),p=n("3908"),g=n("a18c"),h=n("2b0e"),b=Symbol("showMessage"),v=function(){function e(){Object(a["a"])(this,e)}return Object(o["a"])(e,[{key:"success",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this[b]("success",e,t)}},{key:"warning",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this[b]("warning",e,t)}},{key:"info",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this[b]("info",e,t)}},{key:"error",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this[b]("error",e,t)}},{key:b,value:function(e,t,n){n?0===document.getElementsByClassName("el-message").length&&i["Message"][e](t):i["Message"][e](t)}}]),e}();h["default"].use(u.a),h["default"].prototype.$message=new v;var y=new h["default"],_=0;function O(){0===_&&p["a"].startLoading(),_++}function w(){_<=0||(_--,0===_&&p["a"].endLoading())}var j=s.a.create({baseURL:"",timeout:18e4});j.interceptors.request.use(function(e){return O(),l["a"].getters.token&&(e.headers["Authorization"]=Object(d["a"])()),e.params=m()(e.params),e},function(e){return w(),Promise.reject(e)}),j.interceptors.response.use(function(e){if(e.data){var t=JSON.parse(JSON.stringify(e.data));if(401==t.code||403==t.code)return y.$message.error("登录过期,请重新登录!"),void setTimeout(function(){w(),l["a"].dispatch("user/resetToken").then(function(){location.reload()})},1e3);if(404==t.code&&g["c"].push("/404"),200!=t.code){var n=t.msg||"请求失败code码为".concat(t.code);return!0!==e.config.hint&&y.$message.error(n),w(),Promise.reject(t)}return w(),t}return w(),Promise.reject()},function(e){return"Network Error"==e.message?y.$message.error("网络异常,请检查网络连接"):y.$message.error(e.message),w(),Promise.reject(e)});var S=j,k=n("4328"),F=n.n(k);n.d(t,"h",function(){return I}),n.d(t,"i",function(){return x}),n.d(t,"j",function(){return P}),n.d(t,"n",function(){return $}),n.d(t,"m",function(){return L}),n.d(t,"p",function(){return C}),n.d(t,"a",function(){return z}),n.d(t,"q",function(){return q}),n.d(t,"r",function(){return A}),n.d(t,"u",function(){return E}),n.d(t,"o",function(){return D}),n.d(t,"s",function(){return N}),n.d(t,"e",function(){return M}),n.d(t,"b",function(){return R}),n.d(t,"l",function(){return Y}),n.d(t,"c",function(){return B}),n.d(t,"f",function(){return G}),n.d(t,"t",function(){return U}),n.d(t,"k",function(){return J}),n.d(t,"d",function(){return W}),n.d(t,"g",function(){return Q});var T="/api-web";function I(e){return Object(r["a"])({url:T+"/order/queryPage",method:"get",params:e})}function x(e){return Object(r["a"])({url:T+"/order/queryPage1",method:"get",params:e})}function P(e){return Object(r["a"])({url:T+"/order/queryPage2",method:"get",params:e})}function $(e){return Object(r["a"])({url:T+"/routeOrder/finance",method:"get",params:e})}function L(e){return Object(r["a"])({url:T+"/routeOrder/add",method:"post",headers:{"Content-Type":"application/json"},data:e})}function C(e){return Object(r["a"])({url:T+"/studentRefunds/queryPage",method:"get",params:e})}function z(e){return Object(r["a"])({url:T+"/vipGroupManage/applyRefundAudit",method:"post",data:F.a.stringify(e)})}function q(e){return Object(r["a"])({url:T+"/studentWithdraw/queryPage",method:"get",params:e})}function A(e){return Object(r["a"])({url:T+"/studentWithdraw/confirm",method:"post",data:F.a.stringify(e)})}function E(e){return Object(r["a"])({url:T+"/order/verifyMusicalList",method:"GET",params:e})}function D(e){return Object(r["a"])({url:T+"/studentRecharge/queryPage",method:"GET",params:e})}function N(e){return Object(r["a"])({url:T+"/tenantPaymentOrder/queryPage",method:"GET",params:e})}function M(e){return Object(r["a"])({url:T+"/order/getOrderStatus",method:"GET",params:e})}function R(e){return Object(r["a"])({url:T+"/financialExpenditure/queryPage",method:"GET",params:e})}function Y(e){return Object(r["a"])({url:T+"/financialExpenditure/batchDel",method:"POST",params:e})}function B(e){return Object(r["a"])({url:T+"/operatingReport/queryPage",method:"GET",params:e})}function G(e){return Object(r["a"])({url:T+"/sellOrder/queryPage",method:"GET",params:e})}function U(e){return Object(r["a"])({url:T+"/sellOrder/update",method:"POST",params:e})}function J(e){return S({url:T+"/sellOrder/refund",method:"POST",params:e,hint:!0})}function W(e){return Object(r["a"])({url:T+"/routeOrder/getOrderInfo",method:"GET",params:e})}function Q(e){return Object(r["a"])({url:T+"/routeOrder/delete",method:"POST",data:F.a.stringify(e)})}},"52cc":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[n("el-page-header",{attrs:{content:e.organName},on:{back:e.goBack}}),e._v(" "),n("div",{staticClass:"m-core"},[n("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm="string"===typeof t?t.trim():t},expression:"searchForm"}},[n("el-form-item",[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择所属学校"},model:{value:e.searchForm.cooperationOrganId,callback:function(t){e.$set(e.searchForm,"cooperationOrganId",t)},expression:"searchForm.cooperationOrganId"}},e._l(e.cooperations,function(e,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),n("el-form-item",[n("el-date-picker",{attrs:{type:"month",placeholder:"选择月份"},model:{value:e.searchForm.month,callback:function(t){e.$set(e.searchForm,"month",t)},expression:"searchForm.month"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"schoolName",label:"学校"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"sellAmount",width:"150px",label:"销售收入(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.sellAmount))+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"serviceAmount",width:"150px",label:"服务收入(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.serviceAmount))+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"otherIncome",width:"150px",label:"其它收入(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.otherIncome))+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"refundAmount",width:"150px",label:"业务退费(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.refundAmount))+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"incomeTotal",width:"150px",label:"收入合计(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"point"},[e._v("\n "+e._s(e._f("moneyFormat")(t.row.incomeTotal))+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"sellCost",width:"150px",label:"销售成本(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.sellCost))+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"expensesAmount",width:"150px",label:"固定支出(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.expensesAmount))+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"variableCost",width:"150px",label:"变动支出(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.variableCost))+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"distributionAmount",width:"150px",label:"分摊费用(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.distributionAmount))+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"costAmount",width:"150px",label:"成本费用合计(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"point"},[e._v("\n "+e._s(e._f("moneyFormat")(t.row.costAmount))+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"profit",label:"利润(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"point"},[e._v("\n "+e._s(e._f("moneyFormat")(t.row.profit))+"\n ")])]}}])})],1),e._v(" "),n("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)],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 e=this;this.organId=this.$route.query.organId,this.organName=this.$route.query.organName,Object(c["U"])().then(function(t){200==t.code&&(e.organList=t.data)}),Object(c["P"])({rows:1e3,organId:this.organId}).then(function(t){if(200==t.code){e.cooperations=t.data.rows;var n=e.cooperations.some(function(t){return t.id==e.searchForm.cooperationOrganId});n||(e.searchForm.cooperationOrganId=null);var r=Object(o["a"])({},e.searchForm);r.month=l()().format("YYYY-MM"),e.searchForm=r,e.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);e.orderDate=[],e.orderDate.push(i),e.orderDate.push(u)}})},search:function(){this.pageInfo.page=1,this.getList()},onTeachingSubmit:function(e,t){var n=this;this.$refs[e].validate(function(e){if(!e)return!1;n.form.status=t,Object(u["a"])(n.form).then(function(e){200==e.code?(n.$message.success("操作成功"),n.backStatus=!1,n.getList()):n.$message.error(e.msg)})})},getList:function(){var e=this,t=this.searchForm;t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,Object(u["c"])(Object(o["a"])({},t,{month:t.month?l()(t.month).format("YYYY-MM-DD"):"",organIdList:this.organId,type:"school"})).then(function(t){var n=t.data;200==t.code&&(e.tableList=n.rows,e.pageInfo.total=n.total)})},searchOrderDate:function(e){e?(this.searchForm.startTime=e[0]+" 00:00:00",this.searchForm.endTime=e[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)})}}},f=d,m=(n("b60b"),n("2877")),p=Object(m["a"])(f,r,a,!1,null,"545b269e",null);t["default"]=p.exports},adb2:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("bc3a"),a=n.n(r),o=(n("4328"),n("5f87")),i=n("3908"),u=function(e,t,n){var r=t.url,u={method:t.method?t.method:"get",headers:{Authorization:Object(o["a"])()},url:r,responseType:"blob"};"post"==u.method?u.data=t.params:u.params=t.params,e.$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);e.$message.error(a.msg)}else{var o=URL.createObjectURL(r),i=document.createElement("a"),u=t.fileName||"导出文件.xlsx";i.href=o,i.setAttribute("download",u),document.body.appendChild(i),i.click()}}),i["a"].endLoading()}).catch(function(t){e.$message.error("下载失败,请联系管理员"),i["a"].endLoading()})}).catch(function(){})}},b60b:function(e,t,n){"use strict";var r=n("1ff2"),a=n.n(r);a.a},c0b9:function(e,t,n){"use strict";var r=n("fa3b"),a=n.n(r);a.a},fa3b:function(e,t,n){}}]);