import{_ as g,d as w,n as D,w as C,r as s,o as E,G as y,C as n,j as r,l as F,M as f}from"./index.js";import{u as x}from"./use-page-search.d1285cf7.js";import{a as A,b as P}from"./index.2d0ab936.js";import{a as l}from"./columnRenderHelper.2124f6e1.js";import{B as R,o as S}from"./index.64a52c.js";import{u as i,w as I}from"./execl-upload.29fc3bf2.js";import"./index.8858cda3.js";const N=[{label:"\u76D8\u70B9\u7F16\u53F7",prop:"checkCode",width:170},{label:"\u9500\u552E\u65B9\u516C\u53F8",minWidth:160,...l(e=>e.product.seller_code,e=>e.product.seller_name,"\u9500\u552E\u65B9\u516C\u53F8\u7EB3\u7A0E\u53F7:")},{label:"\u8D2D\u4E70\u65B9\u516C\u53F8",minWidth:160,...l(e=>e.product.buyer_code,e=>e.product.buyer_name,"\u8D2D\u4E70\u516C\u53F8\u7EB3\u7A0E\u53F7:")},{label:"\u5546\u54C1\u540D\u79F0",minWidth:160,...l(e=>e.product.good_code,e=>e.product.goodName,"\u5546\u54C1\u7F16\u53F7:")},{label:"\u89C4\u683C",prop:"spec",width:80,cellRenderer({row:e}){return e.product.spec}},{label:"\u5355\u4F4D",width:60,cellRenderer({row:e}){return e.product.unit}},{label:"\u5355\u4EF7",width:80,cellRenderer({row:e}){return e.product.subunit_price}},{label:"\u8D26\u9762\u6570\u91CF",prop:"stock_num",width:80},{label:"\u76D8\u70B9\u6570\u91CF",prop:"check_num",width:120},{label:"\u76D8\u4E8F\u6570\u91CF",prop:"diff_num",width:120},{label:"\u64CD\u4F5C\u4EBA",prop:"apply_name",width:80}],O={columns:N,title:"\u5546\u54C1\u7BA1\u7406",permissions:["003","007"],apis:{httpList:A,httpStatus:P,httpAdd:!0}},h={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"}]},j="productManager",L=w({__name:"index",setup(e){const p=D(),a=C(!1),c=C(null),_={pageSearchHook:()=>x(void 0,void 0,h)},v={content:{preview:({id:u})=>p.push("/invoiceInOut/inventoryCheckDetail?id="+u),create:()=>p.push("/invoiceInOut/inventoryCheckDetail")}};async function b(){const u=i.book_new(),t=i.json_to_sheet(S);i.book_append_sheet(u,t,"sheet"),I(u,"\u76D8\u70B9\u6A21\u677F.xlsx",{bookType:"xlsx"})}return(u,t)=>{const d=s("ElButton"),k=s("PageContainer"),B=s("PageAuth");return E(),y(B,{pageName:j},{default:n(()=>[r(k,{hooks:_,events:v,searchConfig:F(h),contentConfig:F(O),"get-content-ref":o=>c.value=o},{content_header:n(()=>[r(d,{type:"primary",size:"small",onClick:t[0]||(t[0]=o=>a.value=!0)},{default:n(()=>t[3]||(t[3]=[f(" \u6279\u91CF\u521B\u5EFA ")])),_:1}),r(d,{size:"small",onClick:b},{default:n(()=>t[4]||(t[4]=[f(" \u4E0B\u8F7D\u6A21\u677F ")])),_:1})]),_:1},8,["searchConfig","contentConfig","get-content-ref"]),r(R,{visible:a.value,"onUpdate:visible":t[1]||(t[1]=o=>a.value=o),onRefresh:t[2]||(t[2]=o=>{var m;return(m=c.value)==null?void 0:m.onSearch()})},null,8,["visible"])]),_:1})}}});var G=g(L,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/inventoryCheck/index.vue"]]);export{G as default};