data.config-57571b31.js 3.6 KB

1
  1. var s=(t,e,l)=>new Promise((a,d)=>{var i=n=>{try{p(l.next(n))}catch(c){d(c)}},o=n=>{try{p(l.throw(n))}catch(c){d(c)}},p=n=>n.done?a(n.value):Promise.resolve(n.value).then(i,o);p((l=l.apply(t,e)).next())});import{fy as r,__tla as I}from"./index-b5895273.js";import{f as m,__tla as P}from"./index-f35bbafa.js";let u,f,g,b,h=Promise.all([(()=>{try{return I}catch(t){}})(),(()=>{try{return P}catch(t){}})()]).then(()=>s(void 0,null,function*(){let t;t=yield r({url:"baseData/dormitory/info"}),g=[{title:"\u5E74\u7EA7",dataIndex:"gradeName",width:120,align:"left"},{title:"\u4E13\u4E1A\u90E8",dataIndex:"orgName",width:120,align:"left"},{title:"\u884C\u653F\u73ED",dataIndex:"className",align:"left"},{title:"\u4F4F\u5BBF\u4EBA\u6570",dataIndex:"needCount",width:80,align:"left"},{title:"\u5DF2\u5206\u914D",dataIndex:"distributeCount",width:80,align:"left"},{title:"\u672A\u5206\u914D",dataIndex:"unassignedNumber",customRender:({record:e})=>e.needCount-e.distributeCount,width:80,align:"left"}],u=[{label:"\u5E74\u7EA7",field:"gradeId",component:"ApiSelect",componentProps:({formModel:e})=>({api:r,params:{url:"baseData/grade/option"},onChange:()=>{e.classId=void 0}}),colProps:{span:8}},{label:"\u884C\u653F\u73ED",field:"classId",component:"ApiSelect",componentProps:({formModel:e})=>({getPopupContainer:()=>document.body,api:r,params:{url:`educational/class/gradeid?grade_id=${e.gradeId}`}}),colProps:{span:8}},{label:"\u5165\u4F4F\u6027\u522B",field:"gender",component:"ApiSelect",componentProps:{getPopupContainer:()=>document.body,api:m,params:{code:"gender"}},colProps:{span:8}}],b=[{title:"\u697C\u680B",dataIndex:"buildName",align:"left"},{title:"\u697C\u5C42",dataIndex:"floorNumber",customRender:({text:e})=>`${e}\u5C42`,width:60,align:"left"},{title:"\u5BDD\u5BA4\u53F7",dataIndex:"roomName",width:80,align:"left"},{title:"\u5165\u4F4F\u6027\u522B",dataIndex:"genderCn",width:80,align:"left"},{title:"\u5165\u4F4F\u8EAB\u4EFD",dataIndex:"checkInStatusCn",width:80,align:"left"},{title:"\u5165\u4F4F\u73ED\u7EA7",dataIndex:"intoClass",width:120,align:"left"},{title:"\u5E8A\u4F4D\u6570",dataIndex:"bedCount",width:60,align:"left"},{title:"\u5DF2\u4F4F\u4EBA\u6570",dataIndex:"intoCount",width:80,align:"left"},{title:"\u7A7A\u5E8A\u4F4D",dataIndex:"emptyBedCount",customRender:({record:e})=>e.bedCount-e.intoCount,width:60,align:"left"}],f=[{label:"\u697C\u680B\u540D\u79F0",field:"officeBuildId",component:"Select",componentProps:({formActionType:e,formModel:l})=>({getPopupContainer:()=>document.body,options:t.map(a=>({label:a.officeBuildName,value:a.officeBuildId})),params:{url:"baseData/dormitory/info"},onChange:a=>{if(!a)return l.floorNumber=void 0,e.updateSchema({field:"floorNumber",label:"\u697C\u5C42",component:"Select",componentProps:{getPopupContainer:()=>document.body,options:[]}}),!1;const d=t.findIndex(o=>o.officeBuildId===a),i=[];for(let o=0;o<t[d].floorTotal;o++)i.push({label:`${o+1}\u5C42`,value:o+1});e.updateSchema({field:"floorNumber",label:"\u697C\u5C42",component:"Select",componentProps:{options:i,getPopupContainer:()=>document.body}})}}),colProps:{span:6}},{label:"\u697C\u5C42",field:"floorNumber",component:"Select",componentProps:{getPopupContainer:()=>document.body},colProps:{span:6}},{label:"\u5165\u4F4F\u6027\u522B",field:"gender",component:"ApiSelect",componentProps:{getPopupContainer:()=>document.body,api:m,params:{code:"gender"}},colProps:{span:6}},{label:"\u5BDD\u5BA4\u53F7",field:"roomName",component:"Input",colProps:{span:6}},{label:"\u5165\u4F4F\u73ED\u7EA7",field:"classId",component:"ApiSelect",componentProps:{api:r,getPopupContainer:()=>document.body,params:{url:"educational/class/option"}},colProps:{span:6}}]}));export{h as __tla,u as a,f as b,g as c,b as r};