(self.webpackChunkkns_reports=self.webpackChunkkns_reports||[]).push([[74288],{22658:(e,d,n)=>{"use strict";n.r(d),n.d(d,{default:()=>y});var i=n(65043),t=n(68903),s=n(11906),l=n(18356),r=n(96446),c=n(14556),o=(n(80260),n(66675)),a=n(11852),h=n(48376),x=n(96801),j=n(73216),v=n(2448),m=n(58925),u=n(70579);const p=(0,x.Gq)("enuseloc"),y=(p&&Object.keys(p).length>0&&p.user_id,e=>{var d;const n=null===(d=(0,j.zy)().state)||void 0===d?void 0:d.selectedRows,x=(0,c.wA)(),p=(0,j.Zp)(),y=()=>{p(-1)};(0,i.useEffect)((()=>{x((0,a.tuB)({reasonCategory:"LiaisonProcess",reasonID:"",status:"",generalSearch:"",sortOrder:"",iDisplayStart:0,iDisplayLength:-1}))}),[]);return(0,u.jsxs)("div",{className:"project-steps",children:[(0,u.jsx)("div",{className:"component-list",children:(0,u.jsx)(t.Ay,{container:!0,className:"component-form",sx:{overflow:"unset !important"},children:(0,u.jsx)(t.Ay,{container:!0,className:"align-items-center",children:(0,u.jsxs)(t.Ay,{item:!0,xs:12,sm:6,md:6,lg:6,className:"d-flex justify-content-start align-items-center",children:[(0,u.jsxs)(s.A,{onClick:y,children:[" ",(0,u.jsx)(o.A,{})]})," ","\xa0",(0,u.jsx)(l.A,{className:"common-header-label",children:"Indent"})]})})})}),(0,u.jsx)(r.A,{sx:{bgcolor:"background.paper",textAlign:"left"},children:(0,u.jsx)("div",{className:"component-list",style:{marginTop:"20px"},children:(0,u.jsx)("div",{className:"component-form",children:(0,u.jsxs)("table",{children:[(0,u.jsx)("thead",{style:{background:"aliceblue"},children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{width:"5%",children:"Sl No"}),(0,u.jsx)("th",{width:"10%",children:"Indent No"}),(0,u.jsx)("th",{width:"10%",children:"Indent Date"}),(0,u.jsx)("th",{width:"10%",children:"Project"}),(0,u.jsx)("th",{width:"10%",children:"WBS"}),(0,u.jsx)("th",{width:"15%",children:"Activity"}),(0,u.jsx)("th",{width:"10%",children:"Material"}),(0,u.jsx)("th",{width:"10%",children:"Material Code"}),(0,u.jsx)("th",{width:"15%",children:"UOM"}),(0,u.jsx)("th",{width:"10%",children:"Indent Quantity"}),(0,u.jsx)("th",{width:"10%",children:"Remarks"}),(0,u.jsx)("th",{width:"10%",children:"Requested By"}),(0,u.jsx)("th",{width:"15%",children:"Requested Date"}),(0,u.jsx)("th",{width:"15%",children:"Status"})]})}),(0,u.jsx)("tbody",{children:(null===n||void 0===n?void 0:n.length)>0&&n.map(((e,d)=>(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:d+1}),(0,u.jsx)("td",{children:null===e||void 0===e?void 0:e.indent_number}),(0,u.jsx)("td",{children:(0,v.i$)(null===e||void 0===e?void 0:e.required_date)}),(0,u.jsx)("td",{children:null===e||void 0===e?void 0:e.project_name}),(0,u.jsx)("td",{children:null===e||void 0===e?void 0:e.process_name}),(0,u.jsx)("td",{children:null===e||void 0===e?void 0:e.task_name}),(0,u.jsx)("td",{children:null===e||void 0===e?void 0:e.stock_material_name}),(0,u.jsx)("td",{children:null===e||void 0===e?void 0:e.stock_material_code}),(0,u.jsx)("td",{children:null===e||void 0===e?void 0:e.stock_unit_name}),(0,u.jsx)("td",{children:null===e||void 0===e?void 0:e.quantity}),(0,u.jsx)("td",{children:""!==(null===e||void 0===e?void 0:e.remark)?(0,m.Ay)(null===e||void 0===e?void 0:e.remark):""}),(0,u.jsx)("td",{children:null===e||void 0===e?void 0:e.added_user_name}),(0,u.jsx)("td",{children:(0,v.i$)(null===e||void 0===e?void 0:e.added_on)}),(0,u.jsx)("td",{children:null===e||void 0===e?void 0:e.status})]},d)))})]})})})}),(0,u.jsxs)("div",{className:"component-list",children:[(0,u.jsx)("span",{className:"common-header-label-bold"}),(0,u.jsx)(t.Ay,{container:!0,className:"component-form",children:(0,u.jsxs)(t.Ay,{item:!0,xs:12,md:12,pt:1,className:"d-flex justify-content-end",children:[(0,u.jsx)(s.A,{onClick:()=>y(),variant:"contained",color:"secondary",children:"Cancel"}),"\xa0 \xa0",(0,u.jsx)(s.A,{disabled:!((null===n||void 0===n?void 0:n.length)>0),onClick:()=>{const e={indentItemID:null===n||void 0===n?void 0:n.map((e=>null===e||void 0===e?void 0:e.id)),indentStatusID:"Pending",reasonID:"",remark:""};x((0,h.XaZ)(e)),y()},variant:"contained",children:"Send for Approval"})]})})]})]})})},66675:(e,d,n)=>{"use strict";var i=n(24994);d.A=void 0;var t=i(n(40039)),s=n(70579);d.A=(0,t.default)((0,s.jsx)("path",{d:"M3 18h13v-2H3zm0-5h10v-2H3zm0-7v2h13V6zm18 9.59L17.42 12 21 8.41 19.59 7l-5 5 5 5z"}),"MenuOpen")},80260:()=>{},95098:()=>{}}]);
//# sourceMappingURL=74288.2995f404.chunk.js.map