1 |
- import{_ as E,d as y,n as x,a4 as A,w as f,r as s,o as F,G as h,C as n,j as a,l as i,M as _,a as P}from"./index.js";import{u as S}from"./use-page-search.0088a7fd.js";import{a as I,b as N}from"./index.4344e637.js";import{a as l}from"./columnRenderHelper.e53c11ea.js";import{B as R,o as O}from"./index.64a52c.js";import{u as p,w as U}from"./execl-upload.0e9ffc49.js";import"./index.00d6e041.js";const V=[{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}],j={columns:V,title:"\u5546\u54C1\u7BA1\u7406",permissions:["003","007"],apis:{httpList:I,httpStatus:N,httpAdd:!0}},v={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"}]},L="productManager",M=y({__name:"index",setup(e){const c=x(),{isSuperUser:b}=A(),r=f(!1),d=f(null),k={pageSearchHook:()=>S(void 0,void 0,v)},B={content:{preview:({id:u})=>c.push("/invoiceInOut/inventoryCheckDetail?id="+u),create:()=>c.push("/invoiceInOut/inventoryCheckDetail")}};async function g(){const u=p.book_new(),t=p.json_to_sheet(O);p.book_append_sheet(u,t,"sheet"),U(u,"\u76D8\u70B9\u6A21\u677F.xlsx",{bookType:"xlsx"})}return(u,t)=>{const m=s("ElButton"),w=s("PageContainer"),D=s("PageAuth");return F(),h(D,{pageName:L},{default:n(()=>[a(w,{hooks:k,events:B,searchConfig:i(v),contentConfig:i(j),"get-content-ref":o=>d.value=o},{content_header:n(()=>[i(b)?P("v-if",!0):(F(),h(m,{key:0,type:"primary",size:"small",onClick:t[0]||(t[0]=o=>r.value=!0)},{default:n(()=>t[3]||(t[3]=[_(" \u6279\u91CF\u521B\u5EFA ")])),_:1})),a(m,{size:"small",onClick:g},{default:n(()=>t[4]||(t[4]=[_(" \u4E0B\u8F7D\u6A21\u677F ")])),_:1})]),_:1},8,["searchConfig","contentConfig","get-content-ref"]),a(R,{visible:r.value,"onUpdate:visible":t[1]||(t[1]=o=>r.value=o),onRefresh:t[2]||(t[2]=o=>{var C;return(C=d.value)==null?void 0:C.onSearch()})},null,8,["visible"])]),_:1})}}});var J=E(M,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/inventoryCheck/index.vue"]]);export{J as default};
|