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-BkgeZpOO.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-BbAlR6XI.js";import{P as E}from"./index-BxgvQLkr.js";import{J as b}from"./antd-vue-vendor-CDWW6V_M.js";import{u as P,B as C}from"./useForm-8o5KRzWo.js";import{_ as F}from"./index-CYriLmQo.js";import"./componentMap-7D1QIeNI.js";import"./useFormItem-CWa0w7fA.js";import"./index-CF_FJn6P.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JAddInput-CXT54-j9.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-BTSd5ebC.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./depart.api-C9T5xfw6.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./JSelectDept-DorRVguN.js";import"./JPopup-KP1kIsae.js";import"./JEllipsis-287cEHxd.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./JAreaLinkage-DFTeDmm8.js";import"./JCodeEditor-_KZ8XnNK.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-XK54XB3r.js";import"./index-BN5Ac_IG.js";import"./BasicTable-DAfCfXmD.js";import"./injectionKey-DPVn4AgL.js";import"./useContentHeight-DtBiGC0g.js";import"./useContentViewHeight-D71xl1HH.js";import"./usePageContext-CCgh0KDo.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 Go=F(R,[["render",S],["__scopeId","data-v-a0203b52"]]);export{Go as default};
