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-ARbUvvsq.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-CaoC4EcH.js";import{P as E}from"./index-DaObvZxT.js";import{J as b}from"./antd-vue-vendor-CDWW6V_M.js";import{u as P,B as C}from"./useForm-CcjrODHR.js";import{_ as F}from"./index-B_2CoVdl.js";import"./componentMap-CzCGDP7x.js";import"./useFormItem-CWa0w7fA.js";import"./index-D2AmS0aU.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JAddInput-YFlAniYT.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-CkL00Q0a.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./depart.api-0qTriT9h.js";import"./JDictSelectTag-CxpDdimB.js";import"./JSelectDept-wKz_Qtmc.js";import"./JPopup-BJBYqoWe.js";import"./JEllipsis-Cn7GCKHR.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.js";import"./JAreaLinkage-CSgDAlrn.js";import"./JCodeEditor-esTLnfS3.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-DclSHT47.js";import"./index-LwlFn7Y4.js";import"./BasicTable-Clbg3fHx.js";import"./injectionKey-DPVn4AgL.js";import"./useContentHeight-BWLGvKEC.js";import"./useContentViewHeight-DlpfApuB.js";import"./usePageContext-HMYqek-Q.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};
