1 |
- import{d as G,O as W,Q as b,u as p,U as y,h as E,j as t,z as s,B as D,aR as c,bG as I,F as R,T as r,w as d}from"./index.394decd7.js";import"./index.9e0d46e4.js";import{F as u}from"./index.224299a1.js";import{C as L}from"./index.9462d7c5.js";import"./index.cf474e9d.js";import{D as U}from"./index.44f74499.js";import{F as T}from"./index.4c43caee.js";import{P as g}from"./index.1dcc495a.js";import"./use-id.e2f22365.js";import"./utils.ae753603.js";const V="_resjetStudentWrap_o31ed_1",k="_bgWrap_o31ed_8",M="_rejectLogo_o31ed_15",K="_studentText_o31ed_24",q="_schoolNameWrap_o31ed_33",Q="_rejectSchool_o31ed_48",P="_centerLogo_o31ed_53",X="_infoWrap_o31ed_60",z="_infoWrapCore_o31ed_71",J="_subTitle_o31ed_78",O="_group_o31ed_86",Y="_noArrow_o31ed_90",Z="_inputCode_o31ed_113",H="_tips_o31ed_129",$="_sendBtn_o31ed_146",ee="_rejectBtn_o31ed_159",te="_showWrap_o31ed_168",oe="_showWrapTop_o31ed_181",ae="_downApp_o31ed_216",ne="_secondWrap_o31ed_231",se="_buttonWrap_o31ed_258",re="_closeBtn_o31ed_267",ue="_submitBtn_o31ed_280";var n={resjetStudentWrap:V,bgWrap:k,rejectLogo:M,studentText:K,schoolNameWrap:q,rejectSchool:Q,centerLogo:P,infoWrap:X,infoWrapCore:z,subTitle:J,group:O,noArrow:Y,inputCode:Z,tips:H,sendBtn:$,rejectBtn:ee,showWrap:te,showWrapTop:oe,downApp:ae,secondWrap:ne,buttonWrap:se,closeBtn:re,submitBtn:ue},le="./assets/bg.eafce322.png",ce="./assets/rejectLogo.6f541221.png",de="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAAXNSR0IArs4c6QAAAqNJREFUWEftl8trE1EUxr8zmSQ01NqCq0I6aRGlRVAMSklUooi0lUwXQl24c6EgUgRXRXDjol0VRPoX6KoLtYlaREsjNAk+urRQLOZdpFIXrdrYzMyRSQ0ksSaTmBEXucs755z7m+885g7hP1lUzhHs9O2DqB4mAWI9jBqUbPabfXHkc+hrLf4lIAGn5xgEegmgrZYgv9kyUhZh+/j5+NtPRuOUgAQl7wMGLgGsMSgGQDUaSLcTADsDUt6HMCbHwxNG/UsV6fI+B+EcGBNyMjxmNEixXbDLO8MEmUGTw4mFm0Zj7ApCoOv+xMKU0SDFdgHpxBTA15ogBVVMUeSRq98lsuUxgPbKaeI4cj+G/KuL300BCUieMwDNVasVBnKCqnX709GMKSA6wFOX54gGobIiQi7j//j6g25fAAEjRYSVP7zEqibgznAsvFx4blrXVFMRwIqcCB8AwDtjp2gFfs2RRrQvgAyBxsHadvEZDHKDcFXfExWrcygTSpsKQsx3/cnIjXJlnu0ftCu5jay+byVr92A8FK8KMg+fuCkpVwCto6LUjKScjNwvrhECTfp3mazzPp+4GcvlagJ54vTKmoAZA/nWM31ITobfF4q1oSAvetx7s2rLOFeZI0RItcbFW6cRUkwBMaREmVETpFw10xQJdrodwB5HpTRtta9tjCwt5eeFKSAB6eRRQI0CZKvcvrzuUJWDZzNv1k0B0b8zKlMEQEuVwl2zqVrvQDr6xRQQ/fDpvj6bXe2wVwJpW7Zu6a1rWmqa7dvIr29DR3wzNc3UFK6Ks65+lwLLADOPAtQLwjSYXtVTI2C+CMIpAs0x8LA8BoEFBu7p+wzcJuCdnAjP5u+shZTUdfBfOhHACqk9OyCS5wKBLnP+h/7fLgLFWhPi6E9A9WJr6DrvywAAAABJRU5ErkJggg==",ie="./assets/subTitle.fbf07443.png",pe="./assets/center.13bda931.png",me="./assets/studentText.6a2c2c10.png",m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAARRJREFUSEvF1UFqAjEUBuA/GheuPEQdqtdQSu0FBMUrKMho76BYoe0dRvEM7bbuXI8u3NQDiNJVcV4ZFwo2GZM3Kc1+/i8k8/IL/PESuvzPWTf/dRB32YNceK3hhrsPLRAG/juACoCdFPKh2Bh8cJAkYAugcAwl7GVG1jiIFlgFfjsCXk67ZiJaIA4OA/8RwCANkgi4QK4CaREjIEZW014/imhoe1zGABexAnRINifuvfporpoTa0CFCGB923y6cQb8+n2BdckVoJoNylCt3BgrnxKrI+IMnjHACY/vxAjghhsBacKvAmnDE4Fw0uuA6Nn2abichf8rnOXEfyNCFaCdFDn3lXku/e+F13p1X/qcgld98wOin6sZB+h4pAAAAABJRU5ErkJggg==",ge="./assets/rejectBtn.42205429.png",Ae="./assets/studentSuccess.639fc4e5.png",xe=G({name:"tenantStudentRejest",setup(){const i=W(),a=b({gender:"",name:"",phone:"",subjectId:"",subjectName:"",tenantGroupName:"",tenantGroupId:"",birthdate:"",code:"",genderName:"",tenantId:i.query.tenantId}),e=b({birthdate:new Date(p().year(),p().month()+1,p().date()),schoolName:i.query.name||"",id:i.query.tenantId,tenantGroupId:i.query.tenantGroupId,userSchoolName:"",cityName:"",showArea:!1,checked:!0,success:!1,areaList:{},sendMsg:"\u83B7\u53D6\u9A8C\u8BC1\u7801",imgCodeStatus:!1,subjectList:[],searchStatus:!1,openStatus:!1,dateState:!1,tenantGroupList:[],tenantGroupStatus:!1,genderState:!1,genderList:[{text:"\u7537",value:"1"},{text:"\u5973",value:"0"}],showSuccess:!1,secondConfirm:!1,minDate:new Date(1980,0,1),maxDate:new Date}),A=async()=>{try{if(!a.name){r("\u8BF7\u8F93\u5165\u59D3\u540D");return}if(!a.gender){r("\u8BF7\u9009\u62E9\u6027\u522B");return}if(!a.birthdate){r("\u8BF7\u9009\u62E9\u51FA\u751F\u5E74\u6708");return}if(!a.phone){r("\u8BF7\u8F93\u5165\u624B\u673A\u53F7");return}if(!a.code){r("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801");return}if(!a.subjectId){r("\u8BF7\u9009\u62E9\u58F0\u90E8");return}if(!a.tenantGroupId){r("\u8BF7\u9009\u62E9\u5C0F\u7EC4");return}const o=await d.post("/api-tenant/open/student/save",{data:{...a},hideLoading:!0});o.code==200&&(e.showSuccess=!0),o.code==5004&&(e.secondConfirm=!0,e.userSchoolName=o.msg)}catch{}},C=async()=>{try{const l=(await d.get("/api-tenant/open/subject/queryPage",{params:{page:1,rows:9999,queryType:"list"}})).data.rows||[],f=[];l.forEach(h=>{f.push({text:h.name,value:h.id})}),e.subjectList=f}catch(o){console.log(o)}},w=o=>{a.subjectName=o.text,a.subjectId=o.value,e.searchStatus=!1},S=o=>{console.log(o,"confirmTenant"),a.tenantGroupName=o.text,a.tenantGroupId=o.value,e.tenantGroupStatus=!1},B=o=>{a.birthdate=p(o).format("YYYY-MM-DD"),e.dateState=!1},_=async()=>{try{const o=await d.post("/api-tenant/open/tenantGroup/page",{data:{page:1,rows:999,tenantId:e.id}});e.tenantGroupList=o.data.rows.map(l=>({text:l.name,value:l.id}))||[]}catch{}};y(()=>{E(),e.tenantGroupId&&(a.tenantGroupId=e.tenantGroupId),_(),C()});const j=o=>{o.value?(a.gender=o.value,a.genderName=o.text):(a.gender="",a.genderName=""),e.genderState=!1},v=async()=>{if(!a.phone){r("\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801");return}if(!/^1[3456789]\d{9}$/.test(a.phone)){r("\u624B\u673A\u53F7\u7801\u683C\u5F0F\u4E0D\u6B63\u786E");return}await d.post("/api-student/code/sendSmsCode",{requestType:"form",data:{mobile:a.phone,type:"REGISTER"}}),x(),setTimeout(()=>{r("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001")},100)},x=()=>{e.sendMsg="60s";let o=60;const l=setInterval(()=>{o--,e.sendMsg=`${o}s`,o<=0&&(e.sendMsg="\u83B7\u53D6\u9A8C\u8BC1\u7801",clearInterval(l))},1e3)},F=()=>{window.open(location.origin+"/student/#/download"),e.showSuccess=!1},N=async()=>{try{await d.post("/api-tenant/open/student/save",{data:{...a,updateTenant:!0},hideLoading:!0}),e.showSuccess=!0,e.secondConfirm=!1}catch(o){console.log(o)}};return()=>t(R,null,[t("div",{class:n.videoClass},[t("div",{class:n.resjetStudentWrap},[t("img",{src:ce,class:n.rejectLogo,alt:""},null),t("img",{src:me,class:n.studentText,alt:""},null),t("img",{src:le,class:n.bgWrap,alt:""},null),t("div",{class:n.schoolNameWrap},[t("img",{src:de,class:n.rejectSchool,alt:""},null),t("p",null,[e.schoolName])]),t("img",{class:n.centerLogo,src:pe,alt:""},null),t("div",{class:n.infoWrap},[t("div",{class:n.infoWrapCore},[t("img",{src:ie,class:n.subTitle,alt:""},null),t(T,{onSubmit:()=>A()},{default:()=>[t(L,{class:n.group,border:!1},{default:()=>[t(u,{class:n.noArrow,inputAlign:"right",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",maxlength:14,modelValue:a.name,"onUpdate:modelValue":o=>a.name=o},null),t(u,{readonly:!0,inputAlign:"right",label:"\u6027\u522B",placeholder:"\u8BF7\u9009\u62E9\u6027\u522B",modelValue:a.genderName,"onUpdate:modelValue":o=>a.genderName=o,onClick:()=>{e.genderState=!0}},{button:()=>t("img",{style:{display:"block",width:"12px",height:"12px"},src:m},null)}),t(u,{readonly:!0,inputAlign:"right",label:"\u51FA\u751F\u65E5\u671F",placeholder:"\u8BF7\u9009\u62E9\u51FA\u751F\u65E5\u671F",maxlength:20,modelValue:a.birthdate,"onUpdate:modelValue":o=>a.birthdate=o,onClick:()=>{e.dateState=!0}},{button:()=>t("img",{style:{display:"block",width:"12px",height:"12px"},src:m},null)}),t(u,{inputAlign:"right",label:"\u624B\u673A\u53F7",class:n.noArrow,maxlength:11,placeholder:"\u624B\u673A\u53F7\u7801",modelValue:a.phone,"onUpdate:modelValue":o=>a.phone=o},null),t("div",{class:n.tips},[s("\u624B\u673A\u53F7\u7801\u4E3A\u9177\u4E50\u79C0\u673A\u6784\u7248\u767B\u5F55\u8D26\u53F7")]),t(u,{class:n.inputCode,inputAlign:"left",label:"\u9A8C\u8BC1\u7801",labelWidth:0,modelValue:a.code,"onUpdate:modelValue":o=>a.code=o,maxlength:6},{button:()=>t(D,{disabled:e.sendMsg.includes("s"),class:n.sendBtn,onClick:()=>v()},{default:()=>[e.sendMsg]})}),t(u,{border:!1,inputAlign:"right",label:"\u58F0\u90E8",placeholder:"\u8BF7\u9009\u62E9\u58F0\u90E8",readonly:!0,modelValue:a.subjectName,"onUpdate:modelValue":o=>a.subjectName=o,onClick:()=>e.searchStatus=!0},{button:()=>t("img",{style:{display:"block",width:"12px",height:"12px"},src:m},null)}),e.tenantGroupId?"":t(u,{border:!1,inputAlign:"right",label:"\u5C0F\u7EC4",placeholder:"\u8BF7\u9009\u62E9\u5C0F\u7EC4",readonly:!0,modelValue:a.tenantGroupName,"onUpdate:modelValue":o=>a.tenantGroupName=o,onClick:()=>e.tenantGroupStatus=!0},{button:()=>t("img",{style:{display:"block",width:"12px",height:"12px"},src:m},null)})]})]})]),t("img",{src:ge,onClick:()=>{A()},class:n.rejectBtn,alt:""},null)])]),t(c,{show:e.searchStatus,position:"bottom",round:!0,"columns-field-names":{text:""},"safe-area-inset-bottom":!0,onClose:()=>e.searchStatus=!1,onClosed:()=>e.openStatus=!1},{default:()=>[t(g,{columns:e.subjectList,onCancel:()=>{e.searchStatus=!1},onConfirm:w},null)]}),t(c,{show:e.tenantGroupStatus,position:"bottom",round:!0,"columns-field-names":{text:""},"safe-area-inset-bottom":!0,onClose:()=>e.tenantGroupStatus=!1,onClosed:()=>e.openStatus=!1},{default:()=>[t(g,{columns:e.tenantGroupList,onCancel:()=>{e.tenantGroupStatus=!1},onConfirm:S},null)]}),t(c,{show:e.dateState,position:"bottom",round:!0,"columns-field-names":{text:""},"safe-area-inset-bottom":!0,onClose:()=>e.dateState=!1,onClosed:()=>e.dateState=!1},{default:()=>[t(U,{"min-date":e.minDate,"max-date":e.maxDate,type:"date",modelValue:e.birthdate,"onUpdate:modelValue":o=>e.birthdate=o,onCancel:()=>{e.dateState=!1},onConfirm:B},null)]}),t(c,{show:e.genderState,position:"bottom",round:!0,"columns-field-names":{text:""},"safe-area-inset-bottom":!0,onClose:()=>e.genderState=!1,onClosed:()=>e.genderState=!1},{default:()=>[t(g,{columns:e.genderList,onCancel:()=>{e.genderState=!1},onConfirm:j},null)]}),t(I,{show:e.showSuccess,"z-index":1e3},{default:()=>[t("div",{class:n.showWrap},[t("img",{class:n.showWrapTop,src:Ae,alt:""},null),t("h2",null,[s("\u606D\u559C\u60A8\u5DF2\u6210\u529F\u767B\u8BB0\u4E3A")]),t("h4",null,[e.schoolName,s(" "),t("span",null,[s("\u3010\u5B66\u5458\u3011")])," "]),t("p",null,[s("\u8BF7\u4E0B\u8F7D\u9177\u4E50\u79C0\u673A\u6784\u7248APP\u8FDB\u884C\u5B66\u4E60")]),t("div",{class:n.downApp,onClick:F},[s("\u7ACB\u5373\u4E0B\u8F7D")])])]}),t(c,{show:e.secondConfirm,position:"center",round:!0,onClose:()=>e.secondConfirm=!1,onClosed:()=>e.secondConfirm=!1},{default:()=>[t("div",{class:n.secondWrap},[t("h2",null,[s("\u63D0\u793A")]),t("p",null,[s("\u5F53\u524D\u8D26\u53F7\u5DF2\u5B58\u5728 "),t("span",null,[s("\u3010"),e.userSchoolName,s("\u3011")])," ",s("\uFF0C\u662F\u5426\u786E\u8BA4\u66F4\u6362\u5230"),t("span",null,[e.schoolName]),s("\u5417?")]),t("div",{class:n.buttonWrap},[t("div",{class:n.closeBtn,onClick:()=>{e.secondConfirm=!1}},[" ",s("\u53D6\u6D88")]),t("div",{class:n.submitBtn,onClick:N},[s("\u786E\u5B9A")])])])]})])])}});export{xe as default};
|