import{s as d}from"./configs.a7e7e50a.js";import{ah as s,aE as r,aF as i,aG as a,aH as E}from"./index.d8ce26ef.js";const n=[{value:"0",label:"\u672A\u5173\u8054\u5F00\u7968\u7C7B\u76EE"},{value:"1",label:"\u5DF2\u5173\u8054"}],c={cat_code:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u7C7B\u76EE"}],inv_tag:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u7A0E\u7387\u6807\u8BC6"}],is_discount:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u662F\u5426\u5305\u542B\u4F18\u60E0\u653F\u7B56"}],inv_good_name:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u5546\u54C1\u540D\u79F0"}],tax:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u7A0E\u7387"}],addTax:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u589E\u503C\u7A0E\u7BA1\u7406\u5185\u5BB9"}]},_=[{field:"spuCode",label:"\u5546\u54C1\u7F16\u53F7"},{field:"good_name",label:"\u5546\u54C1\u540D\u79F0"},{field:"companyNo",label:"\u4E1A\u52A1\u516C\u53F8\u7F16\u53F7"},{field:"supplierNo",label:"\u4F9B\u5E94\u5546\u7F16\u53F7"},{field:"is_stock",label:"\u662F\u5426\u5E93\u5B58",render(u){return s(r,null,{default:()=>{var e;return(e=d.find(t=>t.value===u))==null?void 0:e.label}})}},{field:"craft_desc",label:"\u5DE5\u827A\u63CF\u8FF0"},{field:"good_img",label:"\u5546\u54C1\u56FE",render(u){return u.split(",").map(e=>s(i,{src:e,style:{height:"20px"}}))}},{field:"creater",label:"\u521B\u5EFA\u4EBA"},{field:"cat_name",label:"\u5206\u7C7B\u540D\u79F0"},{field:"unit_name",label:"\u5355\u4F4D\u540D\u79F0"},{field:"status",label:"\u662F\u5426\u5173\u8054\u5F00\u7968\u7C7B\u76EE",render(u){return s(r,null,{default:()=>{var e;return(e=n.find(t=>t.value===u))==null?void 0:e.label}})}},{field:"inv_cat_name",label:"\u7C7B\u76EE\u540D\u79F0"},{field:"inv_cat_code",label:"\u7C7B\u76EE\u7F16\u53F7"},{field:"inv_tax",label:"\u7C7B\u76EE\u7A0E\u7387\u989D"},{field:"inv_good_name",label:"\u5F00\u7968\u5546\u54C1\u540D\u79F0"},{field:"inv_good_name",label:"\u5F00\u7968\u5546\u54C1\u540D\u79F0"},{field:"addtime",label:"\u7533\u8BF7\u65F6\u95F4"},{field:"after_sales",label:"\u552E\u540E"}],b=[{value:"0",label:"\u975E\u96F6\u7A0E\u7387"},{value:"1",label:"\u514D\u7A0E"},{value:"2",label:"\u4E0D\u5F81\u7A0E"},{value:"3",label:"\u96F6\u7A0E\u7387"}],f=[{value:"\u514D\u7A0E",label:"\u514D\u7A0E"},{value:"\u4E0D\u5F81\u7A0E",label:"\u4E0D\u5F81\u7A0E"}],{VITE_PROXY_DOMAIN_REAL:m,VITE_PROXY_USER_REAL:o}=E(),l=o+"/admin/",A=u=>a.request("post",`${l}goodlist`,{data:{...u,isZx:0}}),B=u=>a.request("post",`${l}goodinfo`,{data:u}),p=u=>a.request("post",`${l}catquery`,{data:u}),v=u=>a.request("post",`${l}addgood`,{data:u});export{f as a,v as b,c,B as d,n as e,A as f,_ as g,p as h,b as i};
