index-0f7480f0.js 12 KB

1
  1. import{d as G,P as S,r as u,x as D,y as I,a as t,U as y,A as c,bW as h,a2 as O,Q as U,a3 as F,D as b}from"./index-521a9826.js";import{M as N}from"./index-4abd1098.js";import{T as K,a as g}from"./index-d7ab4b9c.js";import{C as B}from"./index-1ad6a58d.js";import{R as Q,C as n}from"./index-163db0a7.js";import{L as T}from"./index-b1810e0a.js";import{C as J}from"./index-9b272659.js";import{P as x}from"./index-673d3e97.js";import"./use-tab-status-da6d8e9f.js";import"./index-5b82f39e.js";const R="_tenantApplyData_703s8_1",P="_searchSchool_703s8_17",L="_statisticsGroup_703s8_34",M="_item_703s8_37",k="_price_703s8_48",Z="_text_703s8_53",V="_icon_703s8_61",W="_item1_703s8_66",j="_item2_703s8_72",q="_item3_703s8_78",Y="_item4_703s8_84",H="_refreshC_703s8_90",X="_emptyC_703s8_93",_="_buyContainer_703s8_97",$="_buyList_703s8_101",tt="_buyItem_703s8_104",st="_buyHeader_703s8_110",at="_buyPrice_703s8_117",et="_iconTimer_703s8_127",ot="_buyTimer_703s8_132",lt="_b_703s8_97",ct="_contact_703s8_140",it="_buyContent_703s8_145",s={tenantApplyData:R,searchSchool:P,statisticsGroup:L,item:M,price:k,text:Z,icon:V,item1:W,item2:j,item3:q,item4:Y,refreshC:H,emptyC:X,buyContainer:_,buyList:$,buyItem:tt,buyHeader:st,buyPrice:at,iconTimer:et,buyTimer:ot,b:lt,contact:ct,buyContent:it},ut="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAuJJREFUSEu9lT1oFEEUx/9vLuexfmAMNjaKEgVtAiagRUTEWJheUdBC0CuEoBBzs1sIA0J25tYQQyBFFCwUFO1jYYiIFgpGxEJBJaKNjUT8YjkvzpM59uTOxORyd+RVs7Pz/r/33sybIayw0QrzsGygUqqlUChsc4FmMpkZpdTccoKuGaiUWhXH8UUAZwG0JZBZAGOe511SSv2qBVwTMJvNptva2ia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hDH5ScpIOEQrbwR8gudDUkrPQo+fsFek/EkvfR3ErtvjGEwlrHxUlTptTXlTqypcFh5+DvH0Dkk+x3ApOyl936TphGnpMaTVOCbOZ68pslbWo5pZDPYdCWKkQSbawhsoHeuRsuTnDC2hcxie5WGmkJz3423LfIBc7dFZ1DHzhsx+xhjrcIQevml0E1mufEZdZMd2DZ74o2fD5i78b/uiOGXfj11XlJHd2PRQgO49GJoGws+bB6kDP9LblR5x29t4wHHa213h3R88mvMuiAwuKl39WSztb167JoTlTVG8zZOChehdaEbXqd9UqSbd4FKcKZOkAQzIjo/1byH44ymq2Poi1rGCvQMBObhozqzecux6OdIva7rZ1kwyYxf9Cr4YoELRRnQ/zKM/F3C9lyP4bZ0phxETISG7lVF9vGUDjT3/Mi3uuCW9D2lzE1oma9hji/7zJsILGXcdzOeWZkE7u9pLNqZnpN9uvpZqVw0fFoIakzdxAznLi9TUT/LgfnFquHczCGtfyuo49yjJC725zYEbu+55VsLv32vefrW5mdlxrxQKxQ0g83TMz2KnECFVzHalxwDMcbDkMBI7qWQiCFEW89t365MmKHwRPLMPDNSz4LbAMiL7/8ZAVKoOb1muRPzXoRx7JpzeknVZoKyFeDa/FTqYIijvQP3T0g3TvRufmDGrLKz0XJHMr4MilINIcyrvqIMQohA0qFd7m94tqv+vycazGpDTLRwAAAAAElFTkSuQmCC";function pt(A){return typeof A=="function"||Object.prototype.toString.call(A)==="[object Object]"&&!F(A)}const Ut=G({name:"tenant-apply-data",setup(){const A=S(),C=u("all"),a=D({id:A.query.id,classStatus:!1,schoolId:null,schoolName:"全部学校",classList:[],statObj:{},classStatus1:!1,schoolId1:null,schoolName1:"全部学校",classList1:[],page:1,rows:20,isClick:!1}),r=u(!1),p=u(!0),m=u(!1),d=u(!1),i=u([]),w=async()=>{try{const{data:o}=await b.get("/edu-app/open/school/list",{params:{tenantId:a.id}}),e=[{value:"",text:"全部学校"}];Array.isArray(o)&&(o.forEach(l=>{e.push({value:l.id,text:l.name})}),a.classList=e,a.classList1=e)}catch(o){}},E=async()=>{try{const{data:o}=await b.post("/edu-app/open/school/registerStat",{data:{tenantId:a.id,schoolId:a.schoolId}});a.statObj=o}catch(o){}},f=async()=>{if(!a.isClick){a.isClick=!0,r.value&&(i.value=[],a.page=1,r.value=!1);try{const o=await b.post("/edu-app/open/school/orderPage",{data:{tenantId:a.id,schoolId:a.schoolId1,page:a.page,rows:a.rows}});if(i.value.length>0&&o.data.current===1)return;i.value=i.value.concat(o.data.rows||[]),a.page=o.data.current+1,d.value=i.value.length>0,p.value=!1,m.value=o.data.current>=o.data.pages}catch(o){d.value=!1,m.value=!0}finally{p.value=!1}a.isClick=!1}},z=()=>{m.value=!1,p.value=!0,f()};return I(async()=>{document.title="学生报名统计",await w(),await E(),await f()}),()=>{let o;return t("div",{class:s.tenantApplyData},[t(K,{active:C.value,"onUpdate:active":e=>C.value=e,swipeable:!0,animated:!0},{default:()=>[t(g,{title:"数据总览",name:"all"},{default:()=>[t(B,{class:s.searchSchool,title:a.schoolName,isLink:!0,arrowDirection:"down",onClick:()=>a.classStatus=!0},null),t("div",{class:s.statisticsGroup},[t(Q,{gutter:12},{default:()=>[t(n,{span:12},{default:()=>[t("div",{class:[s.item,s.item1]},[t("p",{class:s.price},[y(a.statObj.totalAmount)]),t("p",{class:s.text},[t("img",{src:v,class:s.icon},null),c("缴费总金额")])])]}),t(n,{span:12},{default:()=>[t("div",{class:[s.item,s.item1]},[t("p",{class:s.price},[h(a.statObj.totalNum)]),t("p",{class:s.text},[t("img",{src:ut,class:s.icon},null),c("缴费总人数")])])]}),t(n,{span:12},{default:()=>[t("div",{class:[s.item,s.item4]},[t("p",{class:s.price},[y(a.statObj.vipAmount)]),t("p",{class:s.text},[t("img",{src:v,class:s.icon},null),c("学练工具缴费金额")])])]}),t(n,{span:12},{default:()=>[t("div",{class:[s.item,s.item4]},[t("p",{class:s.price},[h(a.statObj.vipNum)]),t("p",{class:s.text},[t("img",{src:At,class:s.icon},null),c("学练工具购买人数")])])]}),t(n,{span:12},{default:()=>[t("div",{class:[s.item,s.item3]},[t("p",{class:s.price},[y(a.statObj.instrumentAmount)]),t("p",{class:s.text},[t("img",{src:v,class:s.icon},null),c("乐器缴费金额")])])]}),t(n,{span:12},{default:()=>[t("div",{class:[s.item,s.item3]},[t("p",{class:s.price},[h(a.statObj.instrumentNum)]),t("p",{class:s.text},[t("img",{src:nt,class:s.icon},null),c("乐器购买人数")])])]})]})])]}),t(g,{title:"购买详情",name:"detail"},{default:()=>[t(B,{class:s.searchSchool,title:a.schoolName1,isLink:!0,arrowDirection:"down",onClick:()=>a.classStatus1=!0},null),t("div",{class:s.buyContainer},[t("div",{class:s.buyList},[d.value?t(N,{modelValue:r.value,"onUpdate:modelValue":e=>r.value=e,onRefresh:z,class:s.refreshC},{default:()=>[t(T,{"loading-text":" ",finished:m.value,"finished-text":" ",onLoad:f},pt(o=i.value.map(e=>t(J,{class:s.buyItem,border:!1},{default:()=>[t(B,null,{title:()=>t("div",{class:s.buyHeader},[t("span",{class:s.buyTimer},[t("img",{src:rt,class:s.iconTimer},null),e.payTime]),t("span",{class:s.buyPrice},[t("i",null,[c("¥")])," ",y(e.paymentCashAmount)])])}),t(B,null,{title:()=>t("div",{class:s.contact},[t("span",{class:s.b},[e.userName]),t("span",{class:s.b},[e.schoolName])]),label:()=>t("div",{class:s.buyContent},[t("span",null,[c("购买内容")]),e.goodsName])})]})))?o:{default:()=>[o]})]}):"",!d.value&&!p.value&&t(O,{description:"暂无购买详情",class:s.emptyC},null)])])]})]}),t(U,{show:a.classStatus,"onUpdate:show":e=>a.classStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[t(x,{showToolbar:!0,columns:a.classList,onCancel:()=>a.classStatus=!1,onConfirm:e=>{const l=e.selectedOptions[0];console.log(l,"selectedOption"),a.schoolId=l.value,a.schoolName=l.text,E(),a.classStatus=!1}},null)]}),t(U,{show:a.classStatus1,"onUpdate:show":e=>a.classStatus1=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[t(x,{showToolbar:!0,columns:a.classList1,onCancel:()=>a.classStatus1=!1,onConfirm:e=>{const l=e.selectedOptions[0];a.schoolId1=l.value,a.schoolName1=l.text,r.value=!0,f(),a.classStatus1=!1}},null)]})])}}});export{Ut as default};