import{eq as d,eT as m,eU as g,eV as B,eW as f,cA as h,af as n,ce as s,a7 as E,_ as F,d as y,O as C,r as p,o as b,A as _,y as D,h as v,i as l,cC as x}from"./index.js";import{u as A}from"./use-page-modal.13b99c3b.js";const o=[{value:"1",label:"\u5BF9\u8D26\u5355\u4ED8\u6B3E"},{value:"2",label:"\u5BF9\u8D26\u5355\u56DE\u7968"},{value:"3",label:"\u9500\u552E\u56DE\u6B3E"},{value:"4",label:"\u9500\u552E\u5F00\u7968"},{value:"5",label:"\u91C7\u8D2D\u5355\u4ED8\u6B3E"},{value:"6",label:"\u91C7\u8D2D\u5355\u56DE\u7968"}],N=[{type:"selection",width:40,align:"center",hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u4E1A\u52A1\u516C\u53F8",prop:"companyName",width:"160px",...h("companyNo","companyName","\u4E1A\u52A1\u516C\u53F8\u7F16\u7801:","companyNo")},{label:"\u6807\u7B7E\u7C7B\u578B",prop:"type",cellRenderer:({row:e,props:u})=>n(s,{size:u.size},{default:()=>{var a;return(a=o.find(t=>String(e.type)===t.value))==null?void 0:a.label}})},{label:"\u72B6\u6001",prop:"status",cellRenderer:({row:e,props:u})=>n(s,{size:u.size,type:String(e.status)==="1"?"success":"danger"},{default:()=>String(e.status)==="1"?"\u542F\u7528":"\u7981\u7528"})},{label:"\u6807\u7B7E\u540D\u79F0",prop:"tag_name"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",formatter:({addtime:e})=>E(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:150,slot:"operation"}],k={title:"\u516C\u53F8\u6807\u7B7E\u7BA1\u7406",columns:N,apis:{httpList:d,httpAdd:m,httpUpdate:g,httpStatus:B,httpDelete:f}},r={formItems:[{field:"type",type:"select",placeholder:"\u6807\u7B7E\u7C7B\u578B",options:o},{field:"tag_name",type:"input",placeholder:"\u6807\u9898\u540D\u79F0"},{field:"status",type:"select",placeholder:"\u72B6\u6001",options:[{value:"0",label:"\u7981\u7528"},{value:"1",label:"\u542F\u7528"}]}]},P={title:"\u6807\u7B7E",colLayout:{span:24},itemStyle:{},formItems:[{field:"type",type:"select",label:"\u6807\u7B7E\u7C7B\u578B",labelWidth:"120px",placeholder:"\u8BF7\u9009\u62E9\u6807\u7B7E\u7C7B\u578B",rules:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u6807\u7B7E\u7C7B\u578B"}],options:o},{field:"tag_name",type:"input",label:"\u6807\u7B7E\u540D\u79F0",labelWidth:"120px",placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0"}]}]},S="tagManage",w=y({__name:"index",setup(e){const{currentCompany:u}=C(),a={pageSearchHook:()=>x(void 0,void 0,r),pageModalHook:t=>A({pageContentRef:t,confirmCallback:()=>({companyNo:u.value.companyNo})})};return(t,M)=>{const i=p("PageContainer"),c=p("PageAuth");return b(),_(c,{pageName:S},{default:D(()=>[v(i,{hooks:a,contentConfig:l(k),"search-config":l(r),"modal-config":l(P)},null,8,["contentConfig","search-config","modal-config"])]),_:1})}}});var L=F(w,[["__file","D:/work/jiesuan/settle-vue3/src/views/parameter/tagManage/index.vue"]]);export{L as default};
