import{_ as C}from"./page-search.vue_vue_type_script_setup_true_lang.e284bf07.js";import{u as B}from"./use-page-search.da34a19a.js";import{aI as n,b as g,o as h,c as b,j as o,f as e,F as k}from"./index.4d3e3847.js";import{c as E,r as A}from"./column-helper.adef10ea.js";import{a as y,h as _,b as D,c as S,d as x}from"./company.a05c4b39.js";import{u as P,_ as R}from"./use-page-modal.88aec721.js";import{P as I}from"./page-content.1fdb6363.js";import"./basic-form.114da3ff.js";import"./validate.93ab4ac7.js";import"./basic-form.vue_vue_type_style_index_0_scoped_d6f0d2ed_lang.3165143d.js";import"./useAsync.24db85a6.js";import"./useNav.afbe69e0.js";import"./image.7849d972.js";import"./hooks.428ba1c3.js";import"./index.a5d44002.js";import"./responseHandle.db1518c7.js";import"./xlsx.ed122d16.js";const v={formItems:[{field:"status",type:"select",placeholder:"\u72B6\u6001",options:E(n)},{field:"title",type:"input",placeholder:"\u4F01\u4E1A\u540D\u79F0"},{field:"contacts",type:"input",placeholder:"\u8054\u7CFB\u4EBA"},{field:"mobile",type:"input",placeholder:"\u8054\u7CFB\u65B9\u5F0F"}]},r=v,w=[{type:"selection",width:55,hide:({checkList:l})=>!l.includes("\u52FE\u9009\u5217")},{prop:"id",label:"ID"},{prop:"title",label:"\u5361\u7C7B\u578B"},{prop:"status",label:"\u72B6\u6001",...A(n)},{prop:"contacts",label:"\u8054\u7CFB\u4EBA"},{prop:"mobile",label:"\u8054\u7CFB\u65B9\u5F0F"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",sortable:!0},{label:"\u64CD\u4F5C",fixed:"right",width:160,slot:"operation"}],q={title:"\u4F01\u4E1A\u7BA1\u7406",columns:w,apis:{httpAdd:y,httpList:_,httpUpdate:D,httpStatus:S,httpDelete:x}},U=q,$={title:"\u4F01\u4E1A",colLayout:{span:24},itemStyle:{},width:"900px",contact:"company",labelWidth:"100px",formItems:[{field:"title",type:"input",label:"\u4F01\u4E1A\u540D\u79F0",placeholder:"\u4F01\u4E1A\u540D\u79F0",rules:[{required:!0,trigger:"blur",message:"\u8BF7\u8F93\u5165\u4F01\u4E1A\u540D\u79F0"}]},{field:"contacts",type:"input",label:"\u8054\u7CFB\u4EBA",placeholder:"\u8054\u7CFB\u4EBA",span:12,rules:[{required:!0,trigger:"blur",message:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA"}]},{field:"mobile",type:"input",label:"\u8054\u7CFB\u65B9\u5F0F",placeholder:"\u8054\u7CFB\u65B9\u5F0F",span:12,rules:[{required:!0,trigger:"blur",message:"\u8BF7\u8F93\u5165\u8054\u7CFB\u65B9\u5F0F"}]},{field:"remark",type:"textarea",label:"\u5907\u6CE8",placeholder:"\u5907\u6CE8",rules:[{required:!1,trigger:"blur",message:"\u8BF7\u8F93\u5165\u5907\u6CE8"}]}]},M=$,ue=g({__name:"index",setup(l){const{pageContentRef:a,handleResetClick:i,handleSearchClick:p}=B(void 0,void 0,r),{pageModalRef:s,handleUpdateData:c,handleCreateData:d,handlePreviewData:f,handleConfrim:m,defaultInfo:F}=P({pageContentRef:a});return(O,t)=>(h(),b(k,null,[o(e(C),{"form-config":e(r),onSearchBtnClick:e(p),onResetBtnClick:e(i)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),o(e(I),{ref_key:"pageContentRef",ref:a,"content-config":e(U),onCreateBtnClick:e(d),onPreviewBtnClick:t[0]||(t[0]=u=>e(f)(u)),onUpdateBtnClick:t[1]||(t[1]=u=>e(c)(u))},null,8,["content-config","onCreateBtnClick"]),o(e(R),{ref_key:"pageModalRef",ref:s,"modal-config":e(M),"default-info":e(F),onConfirmBtnClick:e(m)},null,8,["modal-config","default-info","onConfirmBtnClick"])],64))}});export{ue as default};
