"use strict";(self.webpackChunkkns_reports=self.webpackChunkkns_reports||[]).push([[24702],{24702:(e,d,t)=>{t.r(d),t.d(d,{default:()=>p});var i=t(65043),l=t(68903),n=t(11906),s=t(18356),r=t(96446),c=t(14556),o=(t(27571),t(66675)),a=t(11852),h=t(10159),x=t(96801),j=t(73216),v=t(2448),u=t(70579);const m=(0,x.Gq)("enuseloc"),p=(m&&Object.keys(m).length>0&&m.user_id,e=>{var d,t;const x=(0,j.zy)(),m=null===(d=x.state)||void 0===d?void 0:d.rowsSelected;null===(t=x.state)||void 0===t||t.filterData;console.log("selectedRowsData",m);(0,c.d4)((e=>e.bd.bdProjectTaskRejectionReasonList.data));const p=(0,c.wA)(),y=(0,j.Zp)(),_=()=>{y(-1)};(0,i.useEffect)((()=>{p((0,a.tuB)({reasonCategory:"LiaisonProcess",reasonID:"",status:"",generalSearch:"",sortOrder:"",iDisplayStart:0,iDisplayLength:-1}))}),[]);const[w,f]=(0,i.useState)(!1);return(0,u.jsxs)("div",{className:"project-steps",children:[(0,u.jsx)("div",{className:"component-list",children:(0,u.jsx)(l.Ay,{container:!0,className:"component-form",sx:{overflow:"unset !important"},children:(0,u.jsx)(l.Ay,{container:!0,className:"align-items-center",children:(0,u.jsxs)(l.Ay,{item:!0,xs:12,sm:6,md:6,lg:6,className:"d-flex justify-content-start align-items-center",children:[(0,u.jsxs)(n.A,{onClick:_,children:[" ",(0,u.jsx)(o.A,{})]})," ","\xa0",(0,u.jsx)(s.A,{className:"common-header-label",children:"Send for Approval"})]})})})}),(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:"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:"10%",children:"Description"}),(0,u.jsx)("th",{width:"15%",children:"Brand"}),(0,u.jsx)("th",{width:"10%",children:"Scheduled Quantity"}),(0,u.jsx)("th",{width:"10%",children:"Scheduled Date"}),(0,u.jsx)("th",{width:"10%",children:"Scheduled By"}),(0,u.jsx)("th",{width:"10%",children:"Scheduled On"}),(0,u.jsx)("th",{width:"15%",children:"Procurement Status"})]})}),(0,u.jsx)("tbody",{children:(null===m||void 0===m?void 0:m.length)>0&&m.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.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",{dangerouslySetInnerHTML:{__html:null===e||void 0===e?void 0:e.remark}}),(0,u.jsx)("td",{children:null===e||void 0===e?void 0:e.brand}),(0,u.jsx)("td",{children:null===e||void 0===e?void 0:e.required_quantity}),(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.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.jsx)("div",{className:"component-list",children:(0,u.jsx)(l.Ay,{container:!0,className:"component-form",children:(0,u.jsxs)(l.Ay,{item:!0,xs:12,md:12,pt:1,className:"d-flex justify-content-end",children:[(0,u.jsx)(n.A,{onClick:()=>_(),variant:"contained",color:"secondary",children:"Cancel"}),"\xa0 \xa0",(0,u.jsx)(n.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),_()}))})(m),variant:"contained",children:"Send for Approval"})]})})})]})})},66675:(e,d,t)=>{var i=t(24994);d.A=void 0;var l=i(t(40039)),n=t(70579);d.A=(0,l.default)((0,n.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.fcacf5a0.chunk.js.map