import{aU as _,ac as m,am as f,aR as g,_ as h,d as E,r as i,o as C,G as A,D as x,l as F,m as l,bd as b,ae as c}from"./index.js";const{VITE_PROXY_DOMAIN_REAL:S,VITE_PROXY_USER_REAL:v}=m(),y=v+"/admin/",D=e=>_.request("post",`${y}catlist`,{data:e}),r=[{value:"2",label:"\u662F",type:"success"},{value:"3",label:"\u5426",type:"warning"}],Y=[{label:"\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",prop:"merge_code",minWidth:"160px"},{label:"\u8D27\u7269\u548C\u52B3\u52A1\u540D\u79F0",prop:"cat_name",minWidth:"200px"},{label:"\u7A0E\u76EE",prop:"short_name",minWidth:"200px"},{label:"\u7A0E\u7387",prop:"supplierName",minWidth:"80px",cellRenderer({row:e}){return e.tax.join("\u3001")}},{label:"\u5143\u9686\u662F\u5426\u80FD\u5F00\u7968",prop:"status",width:"110px",align:"center",cellRenderer({row:e}){var u;return f(g,{type:((u=r.find(({value:t})=>String(t)===String(e.status)))==null?void 0:u.type)||"danger"},{default:()=>{var t;return((t=r.find(({value:n})=>String(n)===String(e.status)))==null?void 0:t.label)||"--"}})}},{label:"\u5EFA\u8BAE\u5F00\u7968\u7A0E\u76EE",prop:"cat_desc",minWidth:"200px"},{label:"\u5907\u6CE8",prop:"remark",minWidth:"200px"}],P={title:"\u5143\u9686\u53EF\u5F00\u7968\u7C7B\u76EE",columns:Y,superUserNoAction:!0,apis:{httpList:(e={})=>(e.status==="3"?e.status=["3"]:e.status==="2"?e.status=["2"]:e.status=["2","3"],D(e))}},p={formItems:[{field:"cat_code",type:"input",placeholder:"\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"},{field:"cat_name",type:"input",placeholder:"\u7A0E\u76EE"},{field:"status",type:"select",placeholder:"\u5143\u9686\u662F\u5426\u80FD\u5F00\u7968",options:r}]},R=E({__name:"index",setup(e){const u="invCategory",t={pageSearchHook:()=>b((n={})=>{const{order_timer:s,...a}=n;if(s&&s.length===2){const[o,d]=s;a.betweenTime=[c(o).format("YYYY-MM-DD"),c(d).format("YYYY-MM-DD")]}return{result:a,deleteProps:["start","end"]}},void 0,p)};return(n,s)=>{const a=i("PageContainer"),o=i("PageAuth");return C(),A(o,{pageName:u},{default:x(()=>[F(a,{hooks:t,contentConfig:l(P),"search-config":l(p)},null,8,["contentConfig","search-config"])]),_:1})}}});var k=h(R,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/invCategory/invCategory/index.vue"]]);export{k as default};
