"use strict";(self.webpackChunkwheelsmart_admin_react=self.webpackChunkwheelsmart_admin_react||[]).push([[7148],{57148:(e,t,i)=>{i.r(t),i.d(t,{default:()=>x});var r=i(65043),o=i(47419),n=i(26655),l=i(11645),d=i(58032),a=i(83003),c=i(60273),s=i(91688),h=i(20541),p=i(59274),u=i(79797),v=(i(86178),i(70579));const x=function(){var e,t,i;const x=(0,a.wA)(),{id:f}=(0,s.useParams)(),j=(0,c.MD)("productionin","rowdata"),m=(0,c.MD)("productionin","listItemCount"),w=(0,c.MD)("productionin","productionInParams"),g=(0,c.MD)("productionin","loading");(0,r.useEffect)((()=>{x((0,d.Vv)(f))}),[f]);const k=null===j||void 0===j||null===(e=j.productioninitems)||void 0===e?void 0:e.map(((e,t)=>({...e,index:(w.page-1)*w.page_size+t+1}))),b=[{title:"S.No",dataIndex:"index",width:"5%"},{title:"Warehouse",render:e=>{var t;return(0,v.jsx)("span",{children:null===(t=e.warehouse)||void 0===t?void 0:t.name})},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Lot",render:e=>{var t;return(0,v.jsx)("span",{children:null===(t=e.lot)||void 0===t?void 0:t.name})},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Jattu",render:e=>{var t;return(0,v.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,v.jsx)("span",{children:null===(t=e.jattuactivity)||void 0===t?void 0:t.name})},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Item",render:e=>{var t;return(0,v.jsx)("span",{children:null===(t=e.item)||void 0===t?void 0:t.name})},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Unit",render:e=>{var t;return(0,v.jsx)("span",{children:null===(t=e.unit)||void 0===t?void 0:t.name})},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Number of Packs",render:e=>(0,v.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,v.jsx)("span",{children:null===e||void 0===e?void 0:e.quantity}),filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Narration",render:e=>(0,v.jsx)("span",{children:null===e||void 0===e?void 0:e.narration}),filterMode:"tree",filterSearch:!0,width:"5%"}];return(0,v.jsxs)(o.A,{gutter:[12,12],children:[(0,v.jsx)(u.A,{pageTitle:"View Production In"}),(0,v.jsxs)(n.A,{style:{width:"100%"},children:[(0,v.jsxs)(o.A,{children:[(0,v.jsxs)(l.A,{span:8,children:[(0,v.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"Code"}),(0,v.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-400",children:null!==j&&void 0!==j&&j.code?null===j||void 0===j?void 0:j.code:"-------"})]}),(0,v.jsxs)(l.A,{span:8,children:[(0,v.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"Date"}),(0,v.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-400",children:null!==j&&void 0!==j&&j.date?null===j||void 0===j?void 0:j.date:"-------"})]}),(0,v.jsxs)(l.A,{span:8,children:[(0,v.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"Production Type"}),(0,v.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-400",children:null!==j&&void 0!==j&&j.productiontype?1==(null===j||void 0===j?void 0:j.productiontype)?"Milling":2==(null===j||void 0===j?void 0:j.productiontype)?"Job Work":3==(null===j||void 0===j?void 0:j.productiontype)?"Reprocessing":"":"-------"})]})]}),(0,v.jsx)("br",{}),(0,v.jsx)(o.A,{children:(0,v.jsxs)(l.A,{span:8,children:[(0,v.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"Location"}),(0,v.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-400",children:null!==j&&void 0!==j&&null!==(t=j.location)&&void 0!==t&&t.name?null===j||void 0===j||null===(i=j.location)||void 0===i?void 0:i.name:"-------"})]})}),(0,v.jsx)("br",{})]}),(0,v.jsxs)(o.A,{gutter:[12,12],children:[(0,v.jsx)("h3",{children:"Production In Items"}),(0,v.jsx)(h.A,{span:20,page:w.page,count:m,pageSize:w.page_size,columns:b,data:k,loading:g,onPageChange:function(e,t){x((0,p.Hd)({...w,page_size:t,page:0==e?1:e})),x((0,d.Vv)({...w,page_size:t,page:0==e?1:e}))},showTotal:function(e){return"Total "+e+" items"},scroll:!0})]})]})}}}]);
//# sourceMappingURL=7148.572117ab.chunk.js.map