import{_,d as v,n as b,w as B,r as n,o as g,G as D,C as t,j as o,l as d,M as c}from"./index.js";import{u as E}from"./use-page-search.d8b430d6.js";import{a as k,b as w}from"./index.c67ff3ea.js";import{a}from"./columnRenderHelper.e61d905c.js";import y from"./index.22cff3.js";import"./index.bbcfdcee.js";import"./execl-upload.66e9e61c.js";const A=[{label:"\u76D8\u70B9\u7F16\u53F7",prop:"checkCode",width:170},{label:"\u9500\u552E\u65B9\u516C\u53F8",minWidth:160,...a(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,...a(e=>e.product.buyer_code,e=>e.product.buyer_name,"\u8D2D\u4E70\u516C\u53F8\u7EB3\u7A0E\u53F7:")},{label:"\u5546\u54C1\u540D\u79F0",minWidth:160,...a(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}],P={columns:A,title:"\u5546\u54C1\u7BA1\u7406",permissions:["003","007"],apis:{httpList:k,httpStatus:w,httpAdd:!0}},m={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"}]},x="productManager",I=v({__name:"index",setup(e){const i=b(),r=B(!1),C={pageSearchHook:()=>E(void 0,void 0,m)},F={content:{preview:({id:s})=>i.push("/invoiceInOut/inventoryCheckDetail?id="+s),create:()=>i.push("/invoiceInOut/inventoryCheckDetail")}};return(s,u)=>{const l=n("ElButton"),h=n("PageContainer"),f=n("PageAuth");return g(),D(f,{pageName:x},{default:t(()=>[o(h,{hooks:C,events:F,searchConfig:d(m),contentConfig:d(P)},{content_header:t(()=>[o(l,{type:"primary",size:"small",onClick:u[0]||(u[0]=p=>r.value=!0)},{default:t(()=>u[2]||(u[2]=[c("\u6279\u91CF\u521B\u5EFA")])),_:1}),o(l,{size:"small"},{default:t(()=>u[3]||(u[3]=[c("\u6279\u91CF\u5BFC\u51FA\u5F53\u524D\u7ED3\u5B58\u6570")])),_:1})]),_:1},8,["searchConfig","contentConfig"]),o(y,{visible:r.value,"onUpdate:visible":u[1]||(u[1]=p=>r.value=p)},null,8,["visible"])]),_:1})}}});var W=_(I,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/inventoryCheck/index.vue"]]);export{W as default};