import{_ as S,P as y}from"./page-content.e0c7af12.js";import{u as E}from"./use-page-search.0f272301.js";import{S as C}from"./status.2b37e8be.js";import{c as b,r as v}from"./column-helper.64ceba17.js";import{h as w,a as P,_ as R}from"./addModel.vue_vue_type_script_setup_true_lang.fd3299fd.js";import{u as x}from"./usePermission.8064505c.js";import{a as A,r as N,b as m,c,j as f,h as i,f as r,u as e,x as T,l as $}from"./index.4d061c66.js";import"./remote-select.36ee67a3.js";import"./useAsync.df7387ce.js";import"./useNav.5e73c372.js";import"./image.e35d846c.js";import"./hooks.9f8f44e2.js";/* empty css                                                              */import"./image.4c97dbe3.js";/* empty css                                                              */import"./index.e63aea62.js";import"./responseHandle.fe68d5aa.js";import"./ComCard.vue_vue_type_script_setup_true_lang.ad550102.js";import"./remoteSelect.403add72.js";import"./ladder-table.vue_vue_type_script_setup_true_lang.9c5f51d5.js";import"./ladder-modal.vue_vue_type_script_setup_true_lang.a690f28b.js";import"./pageListModal.b8e2dd01.js";import"./good.75e37e88.js";import"./btnList.6c44b4ef.js";const D={formItems:[{field:"status",type:"select",placeholder:"\u72B6\u6001",options:b(C)},{field:"company_title",type:"input",placeholder:"\u4F01\u4E1A\u540D\u79F0"},{field:"card_title",type:"input",placeholder:"\u5361\u7C7B\u578B"}]},d=D,I=[{type:"selection",width:55,hide:({checkList:a})=>!a.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",...v(C)},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",width:160},{label:"\u64CD\u4F5C",fixed:"right",width:160,slot:"operation"}],O={title:"\u4E3B\u9898\u8BBE\u7F6E",columns:I,apis:{httpList:w,httpStatus:P}},V=O,ut=A({__name:"index",setup(a){const p=N(null),s="setTheme",{pageContentRef:u,handleResetClick:h,handleSearchClick:B}=E(void 0,void 0,d),{hasPermissionWithCode:_,permissions:g}=x(s);function n(l,t){p.value.onShow("\u4E3B\u9898\u8BBE\u7F6E",l,t)}return(l,t)=>{const k=m("el-button"),F=m("PageAuth");return c(),f(F,{pageName:s},{default:i(()=>[r(e(S),{"form-config":e(d),onSearchBtnClick:e(B),onResetBtnClick:e(h)},{action:i(()=>[e(_)("002")?(c(),f(k,{key:0,type:"primary",onClick:t[0]||(t[0]=o=>n("create",""))},{default:i(()=>[T(" \u65B0\u589E ")]),_:1})):$("",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),r(e(y),{ref_key:"pageContentRef",ref:u,powers:e(g),"content-config":e(V),onPreviewBtnClick:t[1]||(t[1]=({id:o})=>n("preview",o)),onUpdateBtnClick:t[2]||(t[2]=({id:o})=>n("update",o))},null,8,["powers","content-config"]),r(R,{ref_key:"actionModalRef",ref:p,onReload:t[3]||(t[3]=o=>e(u).onSearch())},null,512)]),_:1})}}});export{ut as default};
