????
Current Path : C:/inetpub/vhost/gdnn.gdtsolutions.vn/build/assets/ |
Current File : C:/inetpub/vhost/gdnn.gdtsolutions.vn/build/assets/index-0e3aa758.js |
import{r as t,C as V,j as e}from"./index-fa055cb8.js";import{R as g,C as r,d as v,h as B,e as x,O as E,f as K}from"./reactstrap.modern-274e1102.js";import{k as D}from"./QLLD_DM_TinhTrangViecLamEndpoint-619b3d52.js";import{A as I}from"./AddressComponent-d072bcdf.js";import{B as _}from"./Button-b6c26fff.js";import{B as R}from"./ButtonLoad-5b8d7df7.js";import"./ButtonClose-01990b88.js";import{F as S,C as j,I as F}from"./Form-44494cfc.js";import{F as M}from"./FontAwesome4-64371a0f.js";import"./Transition-c4233574.js";import"./Service-b8ed62b2.js";import"./FormControl-dda7d30a.js";import"./Required-11df292c.js";import"./InputNumber-092cea71.js";import"./InputTime-cf0160db.js";import"./createClass-5c3a3f66.js";import"./OdataUtils-36531977.js";import"./DropdownList-1816cc1a.js";import"./Select-d5b8e2a0.js";import"./classCallCheck-22a738c0.js";import"./SelectCustom-028e0a1b.js";import"./TextHuyenPhuongXa-91b9e817.js";import"./QuickSearch-2b8999c3.js";import"./withStyles-fa9fb6d9.js";import"./capitalize-d666ae9b.js";import"./DialogCustomize-3c3737d6.js";import"./interopRequireDefault-f95a7153.js";import"./Slide-50179c26.js";import"./ListItem-1dafb2d8.js";import"./Icon-d973dfc5.js";import"./Skeleton-7cb68aa7.js";import"./DataTable-fad8b46b.js";import"./PhanRow-9a886c05.js";import"./DataSelect-7a237583.js";import"./SelectPanelMulti-c769273a.js";import"./ModalChiTietGiaDinh-0c4f19f4.js";import"./BodyDialog-341140bb.js";import"./TabsBasic-86b6759a.js";import"./DetailFormControl-8e322b93.js";const L=new Date().getFullYear(),H=Array.from({length:40},(l,a)=>a).reduce((l,a)=>(l.push({Id:L-a,Name:L-a}),l),[]),T={IsThanhThi:{hidden_label:!0,notMap:!0,field_name:"IsThanhThi",title:"Nhu cầu",type:"data-select",rules:{required:"Vui lòng chọn"},dataSelect:{isMulti:!0,options:[{value:1,label:"Nông thôn"},{value:2,label:"Thành thị"}],value_field:"value",text_field:"label",placeholder:"Chọn loại địa phương"}},NhuCau:{field_name:"NhuCau",title:"Nhu cầu",type:"data-select",rules:{required:"Vui lòng chọn"},dataSelect:{options:[{value:1,label:"Nhu cầu học nghề"},{value:2,label:"Nhu cầu chuyển đổi học nghề"},{value:3,label:"Không có nhu cầu"},{value:4,label:"Tất cả"}],value_field:"value",text_field:"label",placeholder:"Chọn..."}},Nam:{field_name:"Nams",title:"Năm",type:"data-select",dataSelect:{isMulti:!0,options:H,value_field:"Id",text_field:"Name",placeholder:"Chọn năm"},rules:{required:"Vui lòng nhập"}},NganhNgheDaoTao_Ids:{field_name:"NganhNgheDaoTao_Ids",title:"Ngành nghề",type:"data-select",required:!0,dataSelect:{isMulti:!0,url:"QLLD_DM_NganhNgheDaoTao",value_field:"Id",text_field:"Name",placeholder:"Chọn..."}}},G=[{title:"Họ và tên",field:"HoVaTen",type:"string"},{title:"Ngày sinh",field:"NgayThangNamSinh",type:"date"},{title:"Giới tính",field:"GioiTinh",type:"string"},{title:"CMND/CCCD",field:"CCCD",type:"string"},{title:"SĐT",field:"SDT",type:"string"},{title:"Dân tộc",field:"DanToc",type:"string"},{title:"Nơi ở hiện tại",field:"NoiOHienTai",type:"string"},{title:"Đối tượng ưu tiên",field:"DoiTuongUuTien",type:"string"},{title:"Trình độ ",field:"TrinhDoHV",type:"string"},{title:"Trình độ CMKT",field:"TrinhDoCMKT",type:"string"},{title:"Nhu cầu chuyển đổi",field:"NhuCauChuyenDoi",type:"string"},{title:"Tên nghề nhu cầu",field:"TenNghe",type:"string"},{title:"Trình độ đào tạo",field:"TrinhDoDaoTao",type:"string"}];function we(l){const[a,N]=t.useState("1"),[u,C]=t.useState({Report:0,NhuCau:1,Nam:new Date().getFullYear(),NganhNgheDaoTao_Ids:[],IsThanhThi:1}),[b,O]=t.useState(G),s=t.useRef(),h=t.useRef(),p=t.useRef(),k=n=>{a===n?N():N(n)},f=t.useCallback((n,o)=>{C(i=>({...i,[n]:o}))},[]),c=t.useCallback(n=>{var m;const o=(h==null?void 0:h.current)&&((m=h==null?void 0:h.current)==null?void 0:m.getData()),i={...n,...o,IsThanhThi:n.IsThanhThi===2};return n.IsThanhThi.length!==1&&delete i.IsThanhThi,i},[]),w=t.useCallback(n=>{var o;try{const i=c(n);s!=null&&s.current&&((o=s==null?void 0:s.current)==null||o.reload(i))}catch{}},[c]),y=t.useCallback(async n=>{try{const o=c(n),i=await D.getDataReport(o,{responseType:"blob"}),m=URL.createObjectURL(i);let d=document.createElement("a");d.href=m,d.download="Báo cáo nhu cầu theo khu vực",d.click()}catch(o){V(o.Message||"Thao tác không thành công!")}},[c]);return e.jsxDEV(S,{ref:p,onSubmit:w,children:e.jsxDEV(g,{children:[e.jsxDEV(r,{lg:4,children:e.jsxDEV(v,{children:[e.jsxDEV(B,{className:"d-flex justify-content-between",children:e.jsxDEV(g,{className:"w-100 ms-0",children:[e.jsxDEV(r,{md:"4",children:"Bộ lọc"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:89,columnNumber:17},this),e.jsxDEV(r,{md:"8",children:e.jsxDEV(j,{name:"IsThanhThi",colValue:"12",data:T.IsThanhThi,rules:T.IsThanhThi.rules,defaultValue:u&&u.IsThanhThi,onChange:f},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:91,columnNumber:19},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:90,columnNumber:17},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:88,columnNumber:15},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:87,columnNumber:13},this),e.jsxDEV(x,{children:[e.jsxDEV(g,{children:e.jsxDEV(r,{md:"12",children:[e.jsxDEV(I,{ref:h},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:105,columnNumber:19},this),Object.entries(T).map(([n,o],i)=>!o.notMap&&e.jsxDEV(j,{colLabel:"4",colValue:"8",data:o,rules:o.rules,name:n,defaultValue:u&&u[n],onChange:f},i,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:109,columnNumber:25},this))]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:104,columnNumber:17},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:103,columnNumber:15},this),e.jsxDEV(E,{open:a,toggle:k},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:124,columnNumber:15},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:102,columnNumber:13},this),e.jsxDEV(K,{className:"d-flex justify-content-end",children:[e.jsxDEV(R,{onClick:()=>{y({...p.current.getData(),Mode:"download_excel"})},size:"sm",color:"success",children:"Xuất Excel"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:127,columnNumber:15},this),e.jsxDEV(_,{type:"submit",color:"danger",children:[e.jsxDEV(M,{style:{marginRight:"0.5rem"},fa:"file-pdf-o"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:137,columnNumber:17},this),"Xuất PDF"]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:136,columnNumber:15},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:126,columnNumber:13},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:86,columnNumber:11},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:85,columnNumber:9},this),e.jsxDEV(r,{lg:8,children:e.jsxDEV(v,{children:e.jsxDEV(x,{style:{borderRadius:"1rem"},children:e.jsxDEV(F,{title:"Danh sách nhu cầu theo khu vực",ref:s,url:"NhuCauHocNghes/KetXuatBaoCao",endpoint:D,columns:b,...l},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:146,columnNumber:15},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:145,columnNumber:13},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:144,columnNumber:11},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:143,columnNumber:9},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:84,columnNumber:7},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoThanhThi/index.jsx",lineNumber:83,columnNumber:5},this)}export{we as default};