"use strict";(self.webpackChunkwheelsmart_admin_react=self.webpackChunkwheelsmart_admin_react||[]).push([[7047],{17047:(e,r,a)=>{a.r(r),a.d(r,{default:()=>f});var i=a(65043),s=a(68493),t=a(5835),d=a(47419),l=a(11645),n=a(26655),o=a(5397),c=a(83003),h=a(60273),p=a(16876),u=a(20541),m=a(67005),v=a(20501),g=a(70579);const f=function(){const e=(0,c.wA)(),r=(0,h.MD)("masters","deliveryorder").deliveryorderlist,a=((0,c.d4)((e=>e.masters.deliveryorder.noofpages)),(0,c.d4)((e=>e.masters.deliveryorder.listCount))),f=(0,c.d4)((e=>e.masters.deliveryorder.deliveryorderParams)),x=(0,c.d4)((e=>e.masters.deliveryorder.loading)),[j]=((0,c.d4)((e=>e.system.userAccessList)),s.A.useForm());(0,i.useEffect)((()=>{e((0,m.d)({page:1,search:"",page_size:10}))}),[]);const y=[{title:"S.No",dataIndex:"index",width:"5%"},{title:"Number",render:e=>(0,g.jsx)("span",{children:null===e||void 0===e?void 0:e.code}),filterMode:"tree",filterSearch:!0},{title:"Company Name",render:e=>{var r;return(0,g.jsx)("span",{children:null===(r=e.company)||void 0===r?void 0:r.name})},filterMode:"tree",filterSearch:!0},{title:"Location",render:e=>{var r;return(0,g.jsx)("span",{children:null===(r=e.location)||void 0===r?void 0:r.name})},filterMode:"tree",filterSearch:!0},{title:"Vehicle Number",render:e=>{var r;return(0,g.jsx)("span",{children:null===(r=e.vehicle)||void 0===r?void 0:r.number})},filterMode:"tree",filterSearch:!0},{title:"Party",render:e=>{var r;return(0,g.jsx)("span",{children:null===(r=e.party)||void 0===r?void 0:r.name})},filterMode:"tree",filterSearch:!0},{title:"Warehouse",render:e=>{var r;return(0,g.jsx)("span",{children:null===(r=e.warehouse)||void 0===r?void 0:r.name})},filterMode:"tree",filterSearch:!0}],A=null===r||void 0===r?void 0:r.map(((e,r)=>({...e,index:(f.page-1)*f.page_size+r+1}))),{Search:S}=t.A;return(0,g.jsxs)(d.A,{gutter:[12,12],className:"hp-mt-32",children:[(0,g.jsx)(p.A,{prefix:"Masters",postfix:"deliveryorder",pageTitle:"Delivery Order Number",goBack:!0}),(0,g.jsx)(l.A,{span:24,children:(0,g.jsx)(n.A,{children:(0,g.jsxs)(d.A,{children:[(0,g.jsx)(l.A,{span:12,xs:24,sm:24,md:12,className:"hp-mb-12",children:(0,g.jsx)(S,{placeholder:"Search...",allowClear:!0,onChange:r=>{""==r.target.value&&(e((0,m.d)({...f,page:1,search:""})),e((0,v.Xi)({...f,page:1,search:""})))},onSearch:r=>{var a;a=r,e((0,v.Xi)({...f,page:1,search:a})),e((0,m.d)({...f,page:1,search:a}))}})}),(0,g.jsx)(l.A,{span:24,children:(0,g.jsx)(o.A,{tip:"Loading...",spinning:x,delay:500,children:(0,g.jsx)(u.A,{page:f.page,count:a,pageSize:f.page_size,columns:y,data:A,loading:x,onPageChange:function(r,a){e((0,v.Xi)({...f,page_size:a,page:0==r?1:r})),e((0,m.d)({...f,page_size:a,page:0==r?1:r}))},showTotal:function(e){return"Total "+e+" items"},scroll:!0})})})]})})})]})}}}]);
//# sourceMappingURL=7047.56e67a8c.chunk.js.map