import{a1 as o,aP as r,_ as h,d as m,n as C,r as n,o as _,G as f,C as g,j as b,l}from"./index.js";import{u as F}from"./use-page-search.98f4d8c5.js";import{h as w,d as B}from"./index.56c71262.js";import{c as v,a as i,g as y}from"./status.d3ab78fb.js";import{b as E}from"./columns.a2411b4e.js";const D=[{label:"\u5546\u54C1\u7F16\u7801",prop:"skuCode",width:150},{label:"\u9500\u552E\u65B9\u516C\u53F8",prop:"seller_name",width:160},{label:"\u8D2D\u4E70\u65B9\u516C\u53F8",prop:"buyer_name",width:160},{label:"\u5546\u54C1\u7C7B\u578B",width:100,cellRenderer({row:u}){return o(r,{size:"small"},{default:()=>{var e;return((e=v.find(t=>t.value==u.good_type))==null?void 0:e.label)||"--"}})}},{label:"\u8FDB\u9879\u6210\u672C\u72B6\u6001",width:110,cellRenderer({row:u}){return o(r,{size:"small"},{default:()=>{var e;return((e=E.find(t=>t.value==u.basic_status))==null?void 0:e.label)||"--"}})}},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",width:150},{label:"\u89C4\u683C",prop:"spec",width:80},{label:"\u5355\u4F4D",prop:"unit",width:80},{label:"\u72B6\u6001",prop:"status",width:80,cellRenderer({row:u}){var e;return o(r,{size:"small",type:((e=i.find(t=>t.value==u.status))==null?void 0:e.type)||"warning"},{default:()=>{var t;return((t=i.find(a=>a.value==u.status))==null?void 0:t.label)||"--"}})}},{label:"\u7A0E\u524D\u5355\u4EF7",prop:"subunit_price",width:100},{label:"\u7A0E\u540E\u5355\u4EF7",prop:"unit_price",width:100},{label:"\u91CD\u91CF",prop:"unit_weight",width:80},{label:"\u5206\u5149",prop:"spectral",width:80},{label:"\u521B\u5EFA\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time",width:140},{label:"\u64CD\u4F5C",fixed:"right",width:70,slot:"operation"}],P={columns:D,title:"\u5546\u54C1\u7BA1\u7406",permissions:["003","004","007"],apis:{httpList:w,httpStatus:B,httpAdd:!0}},p={formItems:[{field:"timer",type:"date_picker",span:7,label:"\u521B\u5EFA\u65F6\u95F4",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"}},{field:"skuCode",type:"input",placeholder:"\u5546\u54C1\u7F16\u7801"},{field:"good_type",type:"select",options:y,placeholder:"\u5546\u54C1\u7C7B\u578B"}]},A="productManager",k=m({__name:"index",setup(u){const e=C(),t={pageSearchHook:()=>F(void 0,void 0,p)},a={content:{preview:({id:s})=>e.push("/invoiceInOut/productManagerDetail?id="+s),create:()=>e.push("/invoiceInOut/productManagerDetail")}};return(s,x)=>{const d=n("PageContainer"),c=n("PageAuth");return _(),f(c,{pageName:A},{default:g(()=>[b(d,{hooks:t,events:a,searchConfig:l(p),contentConfig:l(P)},null,8,["searchConfig","contentConfig"])]),_:1})}}});var S=h(k,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/productManager/index.vue"]]);export{S as default};
