import{_ as B}from"./page-search.vue_vue_type_script_setup_true_lang.e284bf07.js";import{u as C}from"./use-page-search.da34a19a.js";import{aI as c,b as h,p as F,o as _,c as g,j as a,f as e,F as k}from"./index.4d3e3847.js";import{c as E,r as S}from"./column-helper.adef10ea.js";import{h as b,a as v,b as y,c as w,_ as D}from"./addModel.vue_vue_type_script_setup_true_lang.8f4555fe.js";import{P as R}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"./ComCard.vue_vue_type_script_setup_true_lang.96e3560a.js";import"./remoteSelect.9c029262.js";import"./ladder-table.vue_vue_type_script_setup_true_lang.faf8c645.js";import"./ladder-modal.vue_vue_type_script_setup_true_lang.d55a573b.js";import"./pageListModal.d34d93f8.js";import"./good.45265f96.js";import"./responseHandle.db1518c7.js";import"./index.a5d44002.js";import"./xlsx.ed122d16.js";const P={formItems:[{field:"status",type:"select",placeholder:"\u72B6\u6001",options:E(c)},{field:"company_title",type:"input",placeholder:"\u4F01\u4E1A\u540D\u79F0"},{field:"card_title",type:"input",placeholder:"\u5361\u7C7B\u578B"}]},p=P,x=[{type:"selection",width:55,hide:({checkList:i})=>!i.includes("\u52FE\u9009\u5217")},{prop:"id",label:"ID"},{prop:"company_title",label:"\u516C\u53F8\u540D\u79F0"},{prop:"card_title",label:"\u5361\u7C7B\u578B"},{prop:"code",label:"\u4E3B\u9898\u7F16\u53F7"},{prop:"status",label:"\u72B6\u6001",...S(c)},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",sortable:!0,width:160},{label:"\u64CD\u4F5C",fixed:"right",width:160,slot:"operation"}],A={title:"\u4E3B\u9898\u8BBE\u7F6E",columns:x,apis:{httpAdd:b,httpList:v,httpUpdate:y,httpStatus:w}},I=A,ot=h({__name:"index",setup(i){const o=F(null),{pageContentRef:r,handleResetClick:s,handleSearchClick:m}=C(void 0,void 0,p);function f(){r.value.getPageData({id:""})}function d(){o.value.onShow("\u4E3B\u9898\u8BBE\u7F6E","create","")}function u(l,t){o.value.onShow("\u4E3B\u9898\u8BBE\u7F6E",t,l)}return(l,t)=>(_(),g(k,null,[a(e(B),{"form-config":e(p),onSearchBtnClick:e(m),onResetBtnClick:e(s)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),a(e(R),{ref_key:"pageContentRef",ref:r,"content-config":e(I),onCreateBtnClick:d,onPreviewBtnClick:t[0]||(t[0]=({id:n})=>u(n,"preview")),onUpdateBtnClick:t[1]||(t[1]=({id:n})=>u(n,"update"))},null,8,["content-config"]),a(D,{ref_key:"actionModalRef",ref:o,onSubmitOk:f},null,512)],64))}});export{ot as default};
