import{ch as d,a5 as _,af as h,ce as f,_ as g,d as m,r,o as E,A as C,y as A,h as x,i,cC as F,a7 as c}from"./index.js";const{VITE_PROXY_DOMAIN_REAL:S,VITE_PROXY_USER_REAL:y}=_(),v=y+"/admin/",b=e=>d.request("post",`${v}catlist`,{data:e}),o=[{value:"2",label:"\u662F",type:"success"},{value:"3",label:"\u5426",type:"warning"}],D=[{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 n;return h(f,{type:((n=o.find(({value:t})=>String(t)===String(e.status)))==null?void 0:n.type)||"danger"},{default:()=>{var t;return((t=o.find(({value:u})=>String(u)===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"}],Y={title:"\u5143\u9686\u53EF\u5F00\u7968\u7C7B\u76EE",columns:D,superUserNoAction:!0,apis:{httpList:(e={})=>(e.status==="3"?e.status=["3"]:e.status==="2"?e.status=["2"]:e.status=["2","3"],b(e))}},l={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:o}]},P="invCategory",B=m({__name:"index",setup(e){const n={pageSearchHook:()=>F((t={})=>{const{order_timer:u,...a}=t;if(u&&u.length===2){const[s,p]=u;a.betweenTime=[c(s).format("YYYY-MM-DD"),c(p).format("YYYY-MM-DD")]}return{result:a,deleteProps:["start","end"]}},void 0,l)};return(t,u)=>{const a=r("PageContainer"),s=r("PageAuth");return E(),C(s,{pageName:P},{default:A(()=>[x(a,{hooks:n,contentConfig:i(Y),"search-config":i(l)},null,8,["contentConfig","search-config"])]),_:1})}}});var k=g(B,[["__file","D:/work/jiesuan/settle-vue3/src/views/invCategory/invCategory/index.vue"]]);export{k as default};
