import{_ as x,P as b}from"./page-content.e0c7af12.js";import{u as k}from"./use-page-search.0f272301.js";import{h as w,a as D,b as y,_ as v}from"./edit-dialog.vue_vue_type_script_setup_true_lang.c11dbdba.js";import{r as A,t as P}from"./column-helper.64ceba17.js";import{c as S}from"./status.2b37e8be.js";import{u as R}from"./usePermission.8064505c.js";import{a as E,r as N,b as c,c as d,j as f,h as r,f as p,u as e,x as I,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"./Card.vue_vue_type_script_setup_true_lang.27e443dd.js";import"./remoteSelect.403add72.js";import"./btnList.6c44b4ef.js";const O={formItems:[{field:"title",type:"input",placeholder:"\u670D\u52A1\u540D\u79F0"},{field:"company_title",type:"input",placeholder:"\u4F01\u4E1A\u540D\u79F0"},{field:"card_title",type:"input",placeholder:"\u5361\u7C7B\u578B\u540D\u79F0"}]},h=O,V=[{type:"selection",width:55,hide:({checkList:a})=>!a.includes("\u52FE\u9009\u5217")},{prop:"id",label:"ID",width:"90px"},{prop:"title",label:"\u670D\u52A1\u540D\u79F0",minWidth:"180px"},{prop:"status",label:"\u72B6\u6001",...A(S),width:"100px"},{prop:"company_title",label:"\u516C\u53F8\u540D\u79F0",minWidth:"150px"},{prop:"card_title",label:"\u5361\u7C7B\u578B",width:"120px"},{prop:"original_price",label:"\u539F\u4EF7",width:"110px"},{prop:"activity_price",label:"\u6D3B\u52A8\u4EF7",width:"110px"},{prop:"starttime",label:"\u6D3B\u52A8\u65F6\u95F4",...P(["starttime","endtime"],"~"),width:"200px"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",sortable:!0,width:"160px"},{label:"\u64CD\u4F5C",fixed:"right",width:160,slot:"operation"}],W={title:"\u670D\u52A1\u7BA1\u7406",columns:V,apis:{httpList:w,httpStatus:D,httpDelete:y}},L=W,pt=E({__name:"index",setup(a){const{pageContentRef:u,handleResetClick:C,handleSearchClick:_}=k(void 0,void 0,h),l="setService",s=N(null),{hasPermissionWithCode:g,permissions:B}=R(l);function i(m,t,n){s.value.show(m,t,n)}return(m,t)=>{const n=c("el-button"),F=c("PageAuth");return d(),f(F,{pageName:l},{default:r(()=>[p(e(x),{"form-config":e(h),onSearchBtnClick:e(_),onResetBtnClick:e(C)},{action:r(()=>[e(g)("002")?(d(),f(n,{key:0,type:"primary",onClick:t[0]||(t[0]=o=>i({},"","create"))},{default:r(()=>[I(" \u65B0\u589E ")]),_:1})):$("",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),p(e(b),{ref_key:"pageContentRef",ref:u,powers:e(B),"content-config":e(L),onPreviewBtnClick:t[1]||(t[1]=o=>i(o,o.id,"view")),onUpdateBtnClick:t[2]||(t[2]=o=>i(o,o.id,"edit"))},null,8,["powers","content-config"]),p(v,{ref_key:"modelRef",ref:s,onReload:t[3]||(t[3]=o=>e(u).onSearch())},null,512)]),_:1})}}});export{pt as default};
