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-ByX9XNkE.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-GAyygw-Z.js";import{P as E}from"./index-D55rh6hR.js";import{J as b}from"./antd-vue-vendor-CahNzUUa.js";import{u as P,B as C}from"./useForm-Dx3lJ3DG.js";import{_ as F}from"./index-CLZzJyTP.js";import"./componentMap-DpsJvoqz.js";import"./useFormItem-IOFWTdED.js";import"./index-XZKTTfG1.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JAddInput-B36c3B5x.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-C7yPiS0L.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./depart.api-DHG2p2Yd.js";import"./JImageUpload-BFwNYdm5.js";import"./JDictSelectTag-CfF54ALX.js";import"./JSelectDept-CaEHrQp6.js";import"./JPopup-BvqhHpPl.js";import"./JEllipsis-C_gT_vEQ.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./JAreaLinkage-M9TGy8nY.js";import"./JCodeEditor-CR57XeIe.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CWOTSpxK.js";import"./index-KOQNKxnC.js";import"./BasicTable-DUJWN3yz.js";import"./injectionKey-DPVn4AgL.js";import"./useContentHeight-DLfJuPsF.js";import"./useContentViewHeight-BIb_dTbE.js";import"./usePageContext-FyDvfV_K.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};
