var d=(e,i,r)=>new Promise((u,l)=>{var c=o=>{try{t(r.next(o))}catch(a){l(a)}},n=o=>{try{t(r.throw(o))}catch(a){l(a)}},t=o=>o.done?u(o.value):Promise.resolve(o.value).then(c,n);t((r=r.apply(e,i)).next())});import"./index-BN26Feep.js";import{d as A,f as h,U as m,a2 as B,ad as v,af as s,k as p,G as k}from"./vue-vendor-CxLCUzY4.js";import q from"./PersonTable-B_xtAtR6.js";import{P as E}from"./index-CRgSyMPH.js";import{J as b}from"./antd-vue-vendor-CahNzUUa.js";import{u as P,B as C}from"./useForm-DfoT2G6J.js";import{_ as F}from"./index-Cy4uayzW.js";import"./componentMap-0iK4HQBq.js";import"./useFormItem-IOFWTdED.js";import"./index-zKZnG1QC.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JAddInput-DP4caUmw.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-tDBMxW9-.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./depart.api-B8q8MC-j.js";import"./JImageUpload-C5OCTlCG.js";import"./JDictSelectTag-CalJXNVe.js";import"./JSelectDept-D-TUaHvK.js";import"./JPopup-CVHkQZFq.js";import"./JEllipsis-TuDc52fh.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./JAreaLinkage-CTMEfTuh.js";import"./JCodeEditor-U9QIstNN.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CZdChTcP.js";import"./index-gyz1IdHU.js";import"./BasicTable-CgafrQwz.js";import"./injectionKey-DPVn4AgL.js";import"./useContentHeight-XU-h1taH.js";import"./useContentViewHeight-Qm4QNm5l.js";import"./usePageContext-CXQdt-5h.js";const f=[{label:"付晓晓",value:"1"},{label:"周毛毛",value:"2"}],_=[{label:"私密",value:"1"},{label:"公开",value:"2"}],T=[{field:"f1",component:"Input",label:"仓库名",required:!0},{field:"f2",component:"Input",label:"仓库域名",required:!0,componentProps:{addonBefore:"http://",addonAfter:"com"},colProps:{offset:2}},{field:"f3",component:"Select",label:"仓库管理员",componentProps:{options:f},required:!0,colProps:{offset:2}},{field:"f4",component:"Select",label:"审批人",componentProps:{options:f},required:!0},{field:"f5",component:"RangePicker",label:"生效日期",required:!0,colProps:{offset:2}},{field:"f6",component:"Select",label:"仓库类型",componentProps:{options:_},required:!0,colProps:{offset:2}}],y=[{field:"t1",component:"Input",label:"任务名",required:!0},{field:"t2",component:"Input",label:"任务描述",required:!0,colProps:{offset:2}},{field:"t3",component:"Select",label:"执行人",componentProps:{options:f},required:!0,colProps:{offset:2}},{field:"t4",component:"Select",label:"责任人",componentProps:{options:f},required:!0},{field:"t5",component:"TimePicker",label:"生效日期",required:!0,componentProps:{style:{width:"100%"}},colProps:{offset:2}},{field:"t6",component:"Select",label:"任务类型",componentProps:{options:_},required:!0,colProps:{offset:2}}],R=A({name:"FormHightPage",components:{BasicForm:C,PersonTable:q,PageWrapper:E,[b.name]:b},setup(){const e=h(null),[i,{validate:r}]=P({baseColProps:{span:6},labelWidth:200,layout:"vertical",schemas:T,showActionButtonGroup:!1}),[u,{validate:l}]=P({baseColProps:{span:6},labelWidth:200,layout:"vertical",schemas:y,showActionButtonGroup:!1});function c(){return d(this,null,function*(){try{e.value;const[n,t]=yield Promise.all([r(),l()])}catch(n){}})}return{register:i,registerTask:u,submitAll:c,tableRef:e}}});function S(e,i,r,u,l,c){const n=m("BasicForm"),t=m("a-card"),o=m("PersonTable"),a=m("a-button"),g=m("PageWrapper");return B(),v(g,{class:"high-form",title:"高级表单",content:" 高级表单常见于一次性输入和提交大批量数据的场景。"},{rightFooter:s(()=>[p(a,{type:"primary",onClick:e.submitAll},{default:s(()=>i[0]||(i[0]=[k(" 提交 ")])),_:1},8,["onClick"])]),default:s(()=>[p(t,{title:"仓库管理",bordered:!1},{default:s(()=>[p(n,{onRegister:e.register},null,8,["onRegister"])]),_:1}),p(t,{title:"任务管理",bordered:!1,class:"!mt-5"},{default:s(()=>[p(n,{onRegister:e.registerTask},null,8,["onRegister"])]),_:1}),p(t,{title:"成员管理",bordered:!1},{default:s(()=>[p(o,{ref:"tableRef"},null,512)]),_:1})]),_:1})}const Vo=F(R,[["render",S],["__scopeId","data-v-a0203b52"]]);export{Vo as default};
