"use strict";(self.webpackChunkkns_reports=self.webpackChunkkns_reports||[]).push([[24702],{24702:(e,d,i)=>{i.r(d),i.d(d,{default:()=>p});var t=i(65043),n=i(68903),l=i(11906),s=i(18356),c=i(96446),r=i(14556),o=(i(27571),i(66675)),a=i(11852),h=i(10159),x=i(96801),j=i(73216),u=i(2448),v=i(70579);const m=(0,x.Gq)("enuseloc"),p=(m&&Object.keys(m).length>0&&m.user_id,e=>{var d,i;const x=(0,j.zy)(),m=null===(d=x.state)||void 0===d?void 0:d.rowsSelected;null===(i=x.state)||void 0===i||i.filterData;console.log("selectedRowsData",m);(0,r.d4)((e=>e.bd.bdProjectTaskRejectionReasonList.data));const p=(0,r.wA)(),_=(0,j.Zp)(),y=()=>{_(-1)};(0,t.useEffect)((()=>{p((0,a.tuB)({reasonCategory:"LiaisonProcess",reasonID:"",status:"",generalSearch:"",sortOrder:"",iDisplayStart:0,iDisplayLength:-1}))}),[]);const[w,f]=(0,t.useState)(!1);return(0,v.jsxs)("div",{className:"project-steps",children:[(0,v.jsx)("div",{className:"component-list",children:(0,v.jsx)(n.Ay,{container:!0,className:"component-form",sx:{overflow:"unset !important"},children:(0,v.jsx)(n.Ay,{container:!0,className:"align-items-center",children:(0,v.jsxs)(n.Ay,{item:!0,xs:12,sm:6,md:6,lg:6,className:"d-flex justify-content-start align-items-center",children:[(0,v.jsxs)(l.A,{onClick:y,children:[" ",(0,v.jsx)(o.A,{})]})," ","\xa0",(0,v.jsx)(s.A,{className:"common-header-label",children:"Send for Approval"})]})})})}),(0,v.jsx)(c.A,{sx:{bgcolor:"background.paper",textAlign:"left"},children:(0,v.jsx)("div",{className:"component-list",style:{marginTop:"20px"},children:(0,v.jsx)("div",{className:"component-form",children:(0,v.jsxs)("table",{children:[(0,v.jsx)("thead",{style:{background:"aliceblue"},children:(0,v.jsxs)("tr",{children:[(0,v.jsx)("th",{width:"1%",children:"Sl No"}),(0,v.jsx)("th",{width:"8%",children:"Project"}),(0,v.jsx)("th",{width:"8%",children:"WBS"}),(0,v.jsx)("th",{width:"8%",children:"Activity"}),(0,v.jsx)("th",{width:"8%",children:"Material"}),(0,v.jsx)("th",{width:"7%",children:"Material Code"}),(0,v.jsx)("th",{width:"5%",children:"UOM"}),(0,v.jsx)("th",{width:"8%",children:"Specification"}),(0,v.jsx)("th",{width:"5%",children:"Scheduled Quantity"}),(0,v.jsx)("th",{width:"7%",children:"Scheduled Date"}),(0,v.jsx)("th",{width:"8%",children:"Description"}),(0,v.jsx)("th",{width:"7%",children:"Scheduled By"}),(0,v.jsx)("th",{width:"7%",children:"Scheduled On"}),(0,v.jsx)("th",{width:"5%",children:"Procurement Status"})]})}),(0,v.jsx)("tbody",{children:(null===m||void 0===m?void 0:m.length)>0&&m.map(((e,d)=>(0,v.jsxs)("tr",{children:[(0,v.jsx)("td",{children:d+1}),(0,v.jsx)("td",{children:null===e||void 0===e?void 0:e.project_name}),(0,v.jsx)("td",{children:null===e||void 0===e?void 0:e.process_name}),(0,v.jsx)("td",{children:null===e||void 0===e?void 0:e.task_name}),(0,v.jsx)("td",{children:null===e||void 0===e?void 0:e.stock_material_name}),(0,v.jsx)("td",{children:null===e||void 0===e?void 0:e.stock_material_code}),(0,v.jsx)("td",{children:null===e||void 0===e?void 0:e.stock_unit_name}),(0,v.jsx)("td",{children:null===e||void 0===e?void 0:e.resource_description}),(0,v.jsx)("td",{children:null===e||void 0===e?void 0:e.required_quantity}),(0,v.jsx)("td",{children:(0,u.i$)(null===e||void 0===e?void 0:e.required_date)}),(0,v.jsx)("td",{dangerouslySetInnerHTML:{__html:null===e||void 0===e?void 0:e.remark}}),(0,v.jsx)("td",{children:null===e||void 0===e?void 0:e.added_user_name}),(0,v.jsx)("td",{children:(0,u.i$)(null===e||void 0===e?void 0:e.added_on)}),(0,v.jsx)("td",{children:null===e||void 0===e?void 0:e.status})]},d)))})]})})})}),(0,v.jsx)("div",{className:"component-list",children:(0,v.jsx)(n.Ay,{container:!0,className:"component-form",children:(0,v.jsxs)(n.Ay,{item:!0,xs:12,md:12,pt:1,className:"d-flex justify-content-end",children:[(0,v.jsx)(l.A,{onClick:()=>y(),variant:"contained",color:"secondary",children:"Cancel"}),"\xa0 \xa0",(0,v.jsx)(l.A,{disabled:!((null===m||void 0===m?void 0:m.length)>0)||w,onClick:()=>(e=>{const d={scheduleItemID:null===e||void 0===e?void 0:e.map((e=>({task_plan_material_schedule_id:null===e||void 0===e?void 0:e.id})))};console.log(d),f(!0),p((0,h.xbK)(d)).then((()=>{f(!1),y()}))})(m),variant:"contained",children:"Send for Approval"})]})})})]})})},66675:(e,d,i)=>{var t=i(24994);d.A=void 0;var n=t(i(40039)),l=i(70579);d.A=(0,n.default)((0,l.jsx)("path",{d:"M3 18h13v-2H3zm0-5h10v-2H3zm0-7v2h13V6zm18 9.59L17.42 12 21 8.41 19.59 7l-5 5 5 5z"}),"MenuOpen")},27571:()=>{}}]);
//# sourceMappingURL=24702.ddc6abda.chunk.js.map