"use strict";(self.webpackChunkwheelsmart_admin_react=self.webpackChunkwheelsmart_admin_react||[]).push([[232],{20232:(e,t,r)=>{r.r(t),r.d(t,{default:()=>x});var o=r(65043),l=r(47419),a=r(26655),i=r(11645),n=r(83003),d=r(60273),s=r(91688),h=r(20541),c=(r(55314),r(4152)),p=r(79797),u=r(70579);const x=function(){var e,t,r;const x=(0,n.wA)();(0,s.useHistory)(),(0,d.MD)("lotTransferout","lotTransferOutlist");const{id:v}=(0,s.useParams)(),f=(0,d.MD)("lotTransferout","rowdata"),m=((0,d.MD)("lotTransferout","noofpages"),(0,d.MD)("lotTransferout","listItemCount")),j=((0,d.MD)("lotTransferout","lotTransferOutParams"),(0,d.MD)("lotTransferout","pageParams")),w=(0,d.MD)("lotTransferout","loading");(0,o.useEffect)((()=>{x((0,c.dT)(v))}),[v]);const k=null===f||void 0===f||null===(e=f.lottransferoutitems)||void 0===e?void 0:e.map(((e,t)=>({...e,index:(j.page-1)*j.page_size+t+1}))),b=[{title:"S.No",dataIndex:"index",width:"5%"},{title:"From Lot",render:e=>{var t;return(0,u.jsx)("span",{children:null===(t=e.from_lot)||void 0===t?void 0:t.name})},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Item",render:e=>{var t;return(0,u.jsx)("span",{children:null===(t=e.item)||void 0===t?void 0:t.name})},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Jattu",render:e=>{var t;return(0,u.jsx)("span",{children:null===(t=e.jattu)||void 0===t?void 0:t.name})},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Jattu Activity",render:e=>{var t;return(0,u.jsx)("span",{children:null===(t=e.jattuactivity)||void 0===t?void 0:t.name})},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Number of Packs",render:e=>(0,u.jsx)("span",{children:null===e||void 0===e?void 0:e.no_of_packs}),filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Quantity",render:e=>(0,u.jsx)("span",{children:null===e||void 0===e?void 0:e.quantity}),filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Unit",render:e=>{var t;return(0,u.jsx)("span",{children:null===(t=e.unit)||void 0===t?void 0:t.name})},filterMode:"tree",filterSearch:!0,width:"5%"}];return(0,u.jsxs)(l.A,{gutter:[12,12],children:[(0,u.jsx)(p.A,{pageTitle:"View Lot Transfer Out"}),(0,u.jsxs)(a.A,{style:{width:"100%"},children:[(0,u.jsxs)(l.A,{children:[(0,u.jsxs)(i.A,{span:8,children:[(0,u.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"Code"}),(0,u.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-400",children:null!==f&&void 0!==f&&f.code?null===f||void 0===f?void 0:f.code:"-------"})]}),(0,u.jsxs)(i.A,{span:8,children:[(0,u.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"From Warehouse"}),(0,u.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-400",children:null!==f&&void 0!==f&&f.from_warehouse?null===f||void 0===f||null===(t=f.from_warehouse)||void 0===t?void 0:t.name:"-------"})]}),(0,u.jsxs)(i.A,{span:8,children:[(0,u.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"To Warehouse"}),(0,u.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-400",children:null!==f&&void 0!==f&&f.to_warehouse?null===f||void 0===f||null===(r=f.to_warehouse)||void 0===r?void 0:r.name:"-------"})]})]}),(0,u.jsx)("br",{}),(0,u.jsxs)(l.A,{children:[(0,u.jsxs)(i.A,{span:8,children:[(0,u.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"Date"}),(0,u.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-400",children:null!==f&&void 0!==f&&f.date?null===f||void 0===f?void 0:f.date:"-------"})]}),(0,u.jsxs)(i.A,{span:8,children:[(0,u.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"Narration"}),(0,u.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-400",children:null!==f&&void 0!==f&&f.narration?null===f||void 0===f?void 0:f.narration:"-------"})]}),(0,u.jsxs)(i.A,{span:8,children:[(0,u.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"Transfar Type"}),(0,u.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-400",children:null!==f&&void 0!==f&&f.transfertype_name?null===f||void 0===f?void 0:f.transfertype_name:"-------"})]})]})]}),(0,u.jsxs)(l.A,{gutter:[12,12],children:[(0,u.jsx)("h3",{children:"Lot Transfer Out Items"}),(0,u.jsx)(h.A,{span:20,page:j.page,count:m,pageSize:j.page_size,columns:b,data:k,loading:w,showTotal:function(e){return"Total "+e+" items"},scroll:!0})]})]})}}}]);
//# sourceMappingURL=232.9f495fea.chunk.js.map