"use strict";(self.webpackChunkwheelsmart_admin_react=self.webpackChunkwheelsmart_admin_react||[]).push([[3017],{43017:(e,s,a)=>{a.r(s),a.d(s,{default:()=>x});var t=a(65043),n=a(5835),c=a(47419),r=a(11645),o=a(26655),i=a(5397),l=a(83003),d=a(60273),u=a(16876),p=a(20541),m=a(97661),h=a(70645),g=a(70579);const x=function(){const e=(0,l.wA)(),s=(0,d.MD)("masters","stockDocument").stockdocumentlist,a=((0,l.d4)((e=>e.masters.stockDocument.noofpages)),(0,l.d4)((e=>e.masters.stockDocument.listCount))),x=(0,l.d4)((e=>e.masters.stockDocument.stockDocumentParams)),k=(0,l.d4)((e=>e.masters.stockDocument.loading));(0,l.d4)((e=>e.system.userAccessList)),(0,t.useEffect)((()=>{e((0,m.u)({page:1,search:"",page_size:10}))}),[]);const f=[{title:"S.No",dataIndex:"index",width:"5%"},{title:"Document Number",render:e=>(0,g.jsx)("span",{children:e.number}),filterMode:"tree",filterSearch:!0,width:"30%"}],A=null===s||void 0===s?void 0:s.map(((e,s)=>({...e,index:(x.page-1)*x.page_size+s+1}))),{Search:j}=n.A;return(0,g.jsxs)(c.A,{gutter:[12,12],className:"hp-mt-32",children:[(0,g.jsx)(u.A,{prefix:"Masters",postfix:"stockDocument",pageTitle:"Stock Document",goBack:!0}),(0,g.jsx)(r.A,{span:24,children:(0,g.jsx)(o.A,{children:(0,g.jsxs)(c.A,{children:[(0,g.jsx)(r.A,{span:12,xs:24,sm:24,md:12,className:"hp-mb-12",children:(0,g.jsx)(j,{placeholder:"Search...",allowClear:!0,onChange:s=>{""==s.target.value&&(e((0,m.u)({...x,page:1,search:""})),e((0,h.QL)({...x,page:1,search:""})))},onSearch:s=>{var a;a=s,e((0,h.QL)({...x,page:1,search:a})),e((0,m.u)({...x,page:1,search:a}))}})}),(0,g.jsx)(r.A,{span:24,children:(0,g.jsx)(i.A,{tip:"Loading...",spinning:k,delay:500,children:(0,g.jsx)(p.A,{page:x.page,count:a,pageSize:x.page_size,columns:f,data:A,loading:k,onPageChange:function(s,a){e((0,h.QL)({...x,page_size:a,page:0==s?1:s})),e((0,m.u)({...x,page_size:a,page:0==s?1:s}))},showTotal:function(e){return"Total "+e+" items"},scroll:!0})})})]})})})]})}}}]);
//# sourceMappingURL=3017.d35cecc9.chunk.js.map