????
Current Path : C:/inetpub/vhost/donthu.nextform.vn/wwwroot/assets/ |
Current File : C:/inetpub/vhost/donthu.nextform.vn/wwwroot/assets/index-DInHyU9k.js |
var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});import{h as useTheme,k as jsxRuntimeExports,am as Grid,x as IconButton,I as Icon,bV as useFormContext,F as useAuth,r as reactExports,y as Button,bh as CHECK_SUCCESS,bW as iniAddress,bi as CHECK_ERROR,P as Paper,B as Box,bg as CHECK_CONFIRM}from"./index-y1X-EiI1.js";import{v as v4,E as Enums_LoaiVanBan,a as FormControl,F as Form,j as useDetailUser,k as useDonThu,C as CardHeader,b as CardContent,T as TableContainer,l as default_1$1,A as Address,D as DataTable}from"./DataTable-BEDH0i35.js";import{c as columns}from"./letterprocess-CVN7qOWK.js";import{u as useLetterProcess}from"./LetterProcess.service-WE3ArG0h.js";import{d as default_1}from"./Edit-B3_PTrTU.js";import{T as TaiDonVi,c as createData}from"./TaiDonVi-BhB2EbXD.js";import{u as useCanBo}from"./CanBo.service-1WolgtmP.js";import{T as Table,a as TableHead,b as TableRow,c as TableCell,d as TableBody}from"./TableRow-BfZy-RM-.js";import"./Tooltip-C0pwvyhl.js";import"./Popper-BN0GgV3z.js";import"./utils-B_XeHYak.js";import"./DialogTitle-B28XGy8_.js";import"./FormGroup-CEJG6asl.js";import"./ListItemText-BvrfP19N.js";import"./Autocomplete-CpStdzj7.js";import"./Close-DnCuke95.js";import"./usePreviousProps-eNEUPQQG.js";import"./Chip-4iuxTgqW.js";import"./warning-BmqNoLzl.js";import"./TablePagination-Dnie0nHQ.js";import"./Toolbar-BZCdaOvb.js";import"./LoadingButton-DgqpHLzy.js";import"./Badge-BUU8rl3f.js";import"./Collapse-YEAu7S3-.js";import"./Alert-AfWalC00.js";import"./Switch-BlzK9Osj.js";import"./SwitchBase-HB81Uehs.js";import"./Checkbox-B8nePMFP.js";import"./AppBar-BrohM22l.js";import"./useMediaQuery-BtRkfgHg.js";import"./Link-D62DzNC-.js";const TitleLetterProcess=__name(({text})=>{const theme=useTheme();return jsxRuntimeExports.jsxs(Grid,{paddingX:0,lg:12,paddingTop:1,md:12,children:[jsxRuntimeExports.jsx(IconButton,{onClick:()=>{},color:"primary",size:"small",children:jsxRuntimeExports.jsx(Icon,{children:"keyboard_arrow_down"})}),jsxRuntimeExports.jsx("label",{style:{fontWeight:"bold",color:theme.palette.primary.main,fontSize:16},children:text})]})},"TitleLetterProcess"),uuid=v4(),XuLyTaiDonViForm=__name(({fileId})=>{const{watch,setValue,register,unregister}=useFormContext(),{getDocument,uploadDocument}=useLetterProcess(),{user}=useAuth(),dmHinhThucXuLyDonId=watch("dmHinhThucXuLyDonId"),loaiDonViNhan=watch("loaiDonViNhan")||1,isChuyenDon=[80,81,82].includes(dmHinhThucXuLyDonId),formData2={dmHinhThucXuLyDonId:{field_name:"dmHinhThucXuLyDonId",title:"Hướng xử lý",type:"select-async",value_field:"id",value_label:"name",url:"/api/buss/public/DanhMuc/GetHinhThucXuLyDon",rules:{required:"Vui lòng nhập"}},loaiDonViNhan:{field_name:"loaiDonViNhan",title:"Đơn vị nhận",options:[{value:1,label:"Trong hệ thống"},{value:2,label:"Ngoài hệ thống"}],type:isChuyenDon?"select-custom":"hidden",value:1},coQuanTiepNhanId:{field_name:"coQuanTiepNhanId",title:"Cơ quan tiếp nhận",url:"/api/buss/allow/Organizations",value_field:"id",value_label:"organName",rules:{required:"Vui lòng nhập"},isSearchByQuery:!0,type:!isChuyenDon||watch("loaiDonViNhan")===2?"hidden":"select-async",where:[{field:"id",expression:"ne",value:user.organizationId}]},canBoTiepNhanId:{field_name:"canBoTiepNhanId",title:"Cán bộ tiếp nhận",url:"/api/buss/allow/CanBos/getNonOrgan",value_field:"id",value_label:"hoVaTen",rules:{required:"Vui lòng nhập"},isSearchByQuery:!0,where:[{field:"organizationId",expression:"eq",value:`${watch("coQuanTiepNhanId")}`}],type:!isChuyenDon||loaiDonViNhan===2?"hidden":"select-async"},coQuanTiepNhanNgoaiHeThong:{field_name:"coQuanTiepNhanNgoaiHeThong",title:"Cơ quan tiếp nhận ngoài hệ thống",type:!isChuyenDon||loaiDonViNhan===1?"hidden":"textbox"},dmTrangThaiXuLyDonId:{field_name:"dmTrangThaiXuLyDonId",title:"Trạng thái xử lý",url:"/api/buss/allow/DMTrangThaiXuLyDons",value_field:"id",value_label:"name",rules:{required:"Vui lòng nhập"},type:"select-async"},fileId:{field_name:"fileId",title:"Tài liệu kèm theo",type:"file",isMulti:!0,value:uuid}};return register("fileId"),reactExports.useEffect(()=>{setValue("loaiDonViNhan",1)},[isChuyenDon]),reactExports.useEffect(()=>{unregister(isChuyenDon?loaiDonViNhan===2?["coQuanTiepNhanId","canBoTiepNhanId"]:["coQuanTiepNhanNgoaiHeThong"]:["loaiDonViNhan","coQuanTiepNhanId","canBoTiepNhanId","coQuanTiepNhanNgoaiHeThong"])},[isChuyenDon,unregister,loaiDonViNhan]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Grid,{container:!0,lg:12,children:Object.entries(formData2).map(([key,value],idx)=>{let data={...value,name:key};return key==="fileId"&&(data={...data,getDocument,uploadDocument,loaiVanBan:Enums_LoaiVanBan.ORGAN_RESOLVED,fileId}),value.type!=="hidden"?jsxRuntimeExports.jsx(Grid,{item:!0,lg:4,md:4,children:jsxRuntimeExports.jsx(FormControl,{ha:!0,data,rules:value.rules,name:key,fullLine:!0})},idx+key):null})}),jsxRuntimeExports.jsx(Grid,{container:!0,lg:12,justifyContent:"end",padding:4,children:jsxRuntimeExports.jsx(Button,{type:"submit",color:"primary",variant:"outlined",startIcon:jsxRuntimeExports.jsx(Icon,{children:isChuyenDon?"send":"save"}),children:isChuyenDon?"Chuyển đơn":"Lưu đơn"})})]})},"XuLyTaiDonViForm"),DonThuXuLys=__name(({donThuXuLys,onSuccess})=>{useAuth();const refFormXuLyDon=reactExports.useRef(),{updateLetterProcess}=useLetterProcess(),fileId=reactExports.useMemo(()=>v4(),[]),handleSubmitXuLyDon=__name(values=>{const{loaiDonViNhan,id,...rest}=values;updateLetterProcess(id,{...rest,fileId}).then(res=>{CHECK_SUCCESS("Chuyển đơn thư thành công","Xử lý đơn thư"),onSuccess==null||onSuccess()})},"handleSubmitXuLyDon");return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:donThuXuLys==null?void 0:donThuXuLys.map(dtxl=>dtxl.dmHinhThucXuLyDonId?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TitleLetterProcess,{text:"XỬ LÝ TẠI ĐƠN VỊ"}),jsxRuntimeExports.jsx(TaiDonVi,{donThuXuLy:dtxl})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TitleLetterProcess,{text:"XỬ LÝ TẠI ĐƠN VỊ"})," ",jsxRuntimeExports.jsx(Grid,{container:!0,lg:12,children:jsxRuntimeExports.jsx(Form,{ref:refFormXuLyDon,onSubmit:values=>handleSubmitXuLyDon({...values,id:dtxl.id}),defaultValues:()=>Promise.resolve({loaiDonViNhan:1,fileId}),style:{width:"100%"},children:jsxRuntimeExports.jsx(XuLyTaiDonViForm,{donThuXuLy:dtxl,fileId})})})]}))})},"DonThuXuLys"),Index$1=__name(({onClose,id,formData:formData2,formDataProcess:formDataProcess2})=>{useLetterProcess();const[arrUser,setArrUser]=reactExports.useState([]),{getListDetailUserById}=useDetailUser(),[selectedFilesList,setSelectedFilesList]=reactExports.useState([]),theme=useTheme(),[data,setData]=reactExports.useState({}),[typeLetter,setTypeletter]=reactExports.useState(""),[isUyQuyen,setIsUyQuyen]=reactExports.useState(!1),[isLS,setIsLS]=reactExports.useState(!1),{getListLetterById,getDocument,getXuLyByDonThu}=useDonThu(),{getAllCanBo}=useCanBo(),getInitData=reactExports.useCallback(()=>Promise.resolve(iniAddress),[]),getDataById=reactExports.useCallback(async id2=>{var _a,_b,_c,_d,_e,_f;try{const data2=await getXuLyByDonThu(id2);setData(data2),console.log(data2),setTypeletter(data2.phanTheoSoNguoi);const document=await getDocument(data2.fileId);setSelectedFilesList(document.resultObj),data2&&data2.donThuNguoiDungDons&&data2.donThuNguoiDungDons.forEach(value=>{getListDetailUserById(value.thongTinCaNhanId,{expand:["thuongTruHuyen","thuongTru"]}).then(res=>{setArrUser(prev=>[...prev,createData(res.gioiTinh,res.ngayCap,res.ngaySinh,res.noiCap,res.hoVaTenDem,res.soDinhDanh,res.ten,res.thuongTruHuyen&&res.thuongTruHuyen.name,res.thuongTru&&res.thuongTru.name,res.dienThoai,"","")])}).catch(err=>{console.log(err)})});const getDataCanbo=await getAllCanBo({filter:`thongTinCaNhanId eq ${data2.donThuCanBoTiepNhans[0].thongTinCaNhanId}`,expand:"thongTinCaNhan"});let getDataCanboUyQuyen;data2&&data2.donThuNguoiUyQuyen?(getDataCanboUyQuyen=await getListDetailUserById((_a=data2.donThuNguoiUyQuyen)==null?void 0:_a.thongTinCaNhanId,{expand:["thuongTruHuyen","thuongTru"]}),setIsUyQuyen(!0),setIsLS((_b=data2.donThuNguoiUyQuyen)==null?void 0:_b.isLuatSu)):(getDataCanboUyQuyen=void 0,setIsUyQuyen(!1),setIsLS(!1));let getDataCanboXuly;return data2&&data2.donThuXuLys.length>0?getDataCanboXuly=await getAllCanBo({filter:`thongTinCaNhanId eq ${data2.donThuXuLys[0].donThuXuLyCanBo.thongTinCaNhanId}`,expand:"thongTinCaNhan"}):getDataCanboXuly=void 0,{...data2,province:data2.noiGhiNhanTinh,district:data2.noiGhiNhanHuyen,ward:data2.noiGhiNhan,donThuCanBoTiepNhan:getDataCanbo[0].id,DonThuXuLy:getDataCanboXuly&&getDataCanboXuly[0].id,coUyQuyen:!!data2.donThuNguoiUyQuyen,luatSu:(_c=data2.donThuNguoiUyQuyen)==null?void 0:_c.isLuatSu,...getDataCanboUyQuyen,soThe:(_d=data2.donThuNguoiUyQuyen)==null?void 0:_d.soThe,noiCap:(_e=data2.donThuNguoiUyQuyen)==null?void 0:_e.noiCap,ngayCapThe:(_f=data2.donThuNguoiUyQuyen)==null?void 0:_f.ngayCap}}catch{}},[getAllCanBo,getDocument,getListDetailUserById,getListLetterById]);reactExports.useCallback(()=>{},[]);const handleSubmit=reactExports.useCallback(async dataForm=>{try{const{...dataEdit}=dataForm;console.log(dataEdit)}catch(error){CHECK_ERROR(error)}},[]),renderFormCreate=reactExports.useMemo(()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Grid,{padding:0,container:!0,children:[jsxRuntimeExports.jsxs(Grid,{container:!0,lg:10,md:8,xl:5,xs:5,children:[jsxRuntimeExports.jsx(IconButton,{onClick:()=>{onClose()},size:"small",color:"primary",children:jsxRuntimeExports.jsx(Icon,{children:"arrow_back"})}),jsxRuntimeExports.jsx(CardHeader,{titleTypographyProps:{fontSize:16,fontWeight:"bold",color:theme.palette.primary.main},title:"XỬ LÝ ĐƠN THƯ/VỤ VIỆC"})]}),jsxRuntimeExports.jsx(Grid,{lg:2,item:!0,md:2,xl:3.5,xs:3.5,container:!0,justifyContent:"center"})]}),jsxRuntimeExports.jsx(CardContent,{sx:{background:"#E7EBF0"},children:jsxRuntimeExports.jsxs(Paper,{sx:{borderRadius:"0.3rem",padding:"0.2rem"},children:[jsxRuntimeExports.jsxs(Form,{onSubmit:handleSubmit,defaultValues:()=>id?getDataById(id):getInitData(),children:[jsxRuntimeExports.jsxs(Grid,{paddingX:0,lg:12,paddingTop:3,paddingBottom:1,md:12,children:[jsxRuntimeExports.jsx(IconButton,{onClick:()=>{},color:"primary",size:"small",children:jsxRuntimeExports.jsx(Icon,{children:"keyboard_arrow_down"})}),jsxRuntimeExports.jsx("label",{style:{fontWeight:"bold",color:theme.palette.primary.main,fontSize:16},children:"NGƯỜI ĐỨNG ĐƠN/VỤ VIỆC"})]}),arrUser.length>0&&jsxRuntimeExports.jsx("div",{style:{paddingLeft:20,paddingRight:20},children:jsxRuntimeExports.jsx(TableContainer,{component:Paper,children:jsxRuntimeExports.jsxs(Table,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[jsxRuntimeExports.jsx(TableHead,{children:jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{align:"center",children:"CCCD/CMND"}),jsxRuntimeExports.jsx(TableCell,{colSpan:2,align:"center",children:"Tên"}),jsxRuntimeExports.jsx(TableCell,{colSpan:2,align:"center",children:"Địa chỉ"}),jsxRuntimeExports.jsx(TableCell,{align:"center",children:"Điện thoại"}),jsxRuntimeExports.jsx(TableCell,{align:"right"})]})}),jsxRuntimeExports.jsx(TableBody,{style:{padding:20},children:arrUser.map(row=>jsxRuntimeExports.jsxs(TableRow,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[jsxRuntimeExports.jsx(TableCell,{align:"center",component:"th",scope:"row",children:row.soDinhDanh}),jsxRuntimeExports.jsxs(TableCell,{colSpan:2,align:"center",component:"th",scope:"row",children:[row.hoVaTenDem," ",row.ten]}),jsxRuntimeExports.jsxs(TableCell,{colSpan:2,align:"center",children:[row.noiOHienTaiCode,", ",row.diaChi]}),jsxRuntimeExports.jsx(TableCell,{align:"center",children:row.dienThoai}),jsxRuntimeExports.jsxs(TableCell,{align:"center",children:[jsxRuntimeExports.jsx(IconButton,{onClick:()=>{},color:"primary","aria-label":"edit",children:jsxRuntimeExports.jsx(default_1,{})}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>{},color:"error","aria-label":"delete",children:jsxRuntimeExports.jsx(default_1$1,{})})]})]},row.name))})]})})}),jsxRuntimeExports.jsxs(Grid,{paddingX:0,lg:12,paddingTop:3,md:12,children:[jsxRuntimeExports.jsx(IconButton,{onClick:()=>{},color:"primary",size:"small",children:jsxRuntimeExports.jsx(Icon,{children:"keyboard_arrow_down"})}),jsxRuntimeExports.jsx("label",{style:{fontWeight:"bold",color:theme.palette.primary.main,fontSize:16},children:"THÔNG TIN ĐƠN THƯ"})]}),jsxRuntimeExports.jsxs(Grid,{container:!0,lg:12,children:[Object.entries(formData2).map(([key,value],idx)=>jsxRuntimeExports.jsx(Grid,{item:!0,lg:4,md:4,children:jsxRuntimeExports.jsx(FormControl,{fullLine:!0,data:{...value,name:key},rules:value.rules,name:key,value:data&&data[key],defaultValue:value.defaultValue||data[key]},idx+key)})),jsxRuntimeExports.jsx(Grid,{container:!0,lg:12,md:12,children:jsxRuntimeExports.jsx(Address,{value:data.address,wrapComponent:Grid,isRequire:!0,inline:!0,customProps:{item:!0,lg:4,md:4,xs:12}})}),jsxRuntimeExports.jsx(Grid,{lg:12,children:selectedFilesList.length>0&&jsxRuntimeExports.jsxs("div",{style:{padding:15},children:[jsxRuntimeExports.jsx("h4",{children:"Tài liệu đơn thư"}),jsxRuntimeExports.jsx("ul",{children:selectedFilesList.map((file,index)=>jsxRuntimeExports.jsx("li",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:jsxRuntimeExports.jsx("span",{onClick:()=>{console.log("view")},style:{flex:1,paddingRight:10,textDecoration:"underline",cursor:"pointer"},children:file.fileName})},index))})]})})]})]}),jsxRuntimeExports.jsx(DonThuXuLys,{donThuXuLys:data.donThuXuLys,onSuccess:()=>{onClose()}})]})})]}),[arrUser,data,formData2,formDataProcess2,getDataById,getInitData,handleSubmit,id,onClose,selectedFilesList,theme.palette.primary.main]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:renderFormCreate})},"Index$1"),UpdateForm=reactExports.memo(Index$1),DieuKien=[{value:"DuDieuKien",label:"Đủ điều kiện"},{value:"KhongDuDieuKien",label:"Không đủ điều kiện"}],ThamQuyen=[{value:"ThamQuyen",label:"Có thẩm quyền"},{value:"NgoaiThamQuyen",label:"Ngoài thẩm quyền"}],formData={dmPhanLoaiTheoNoiDungId:{field_name:"dmPhanLoaiTheoNoiDungId",title:"Loại đơn thư",type:"select-async",value_field:"id",value_label:"name",url:"api/buss/public/DanhMuc/GetPhanTheoNoiDung",rules:{required:"Vui lòng nhập"}},donThuCanBoTiepNhan:{field_name:"donThuCanBoTiepNhan",title:"Cán bộ tiếp nhận",type:"select-async",originfield:!0,value_field:"id",value_label:"thongTinCaNhan.ten",url:"/api/buss/auth/CanBos",rules:{required:"Vui lòng nhập"},multiLabel:[{field:"thongTinCaNhan.cccd",ligature:"-",position:"start",isSearch:!0}]},soVanBan:{field_name:"soVanBan",title:"Số văn bản",type:"textbox",rules:{required:"Vui lòng nhập"}},noiDungDon:{field_name:"noiDungDon",title:"Nội dung đơn",type:"textarea"},phanTheoDieuKien:{field_name:"phanTheoDieuKien",title:"Điều kiện",type:"select-custom",options:DieuKien,rules:{required:"Vui lòng nhập"}},phanTheoThamQuyen:{field_name:"phanTheoThamQuyen",title:"Thẩm quyền",type:"select-custom",options:ThamQuyen},dmPhanTheoThamQuyenId:{field_name:"dmPhanTheoThamQuyenId",title:"Thuộc thẩm quyền",type:"select-async",value_field:"id",value_label:"name",url:"/api/buss/public/DanhMuc/GetPhanTheoThamQuyen"},dmLinhVucId:{field_name:"dmLinhVucId",title:"Lĩnh vực",type:"select-async",value_field:"id",value_label:"name",url:"/api/buss/public/DanhMuc/GetLinhVuc",rules:{required:"Vui lòng nhập"}},lanThu:{field_name:"lanThu",title:"Lần thứ",type:"textbox",rules:{required:"Vui lòng nhập"}},dmLoaiHinhTiepNhanId:{field_name:"dmLoaiHinhTiepNhanId",title:"Hình thức tiếp nhận",type:"select-async",value_field:"id",value_label:"name",url:"/api/buss/public/DanhMuc/GetLoaiHinhTiepNhan",rules:{required:"Vui lòng nhập"}},DonThuXuLy:{field_name:"DonThuXuLy",title:"Cán bộ xử lý",type:"select-async",originfield:!0,value_field:"id",value_label:"thongTinCaNhan.ten",url:"/api/buss/auth/CanBos",multiLabel:[{field:"thongTinCaNhan.cccd",ligature:"-",position:"start",isSearch:!0}]}},formDataUser={soDinhDanh:{field_name:"soDinhDanh",title:"CCCD/CMND",type:"textbox"},phoneNumber:{field_name:"phoneNumber",title:"Điện thoại",type:"textbox"},hoVaTen:{field_name:"hoVaTen",title:"Họ tên",type:"textbox",options:ThamQuyen}},formDataProcess={ketQuaXuLyDon:{field_name:"ketQuaXuLyDon",title:"Hướng xử lý",type:"select-async",value_field:"id",value_label:"name",url:"api/buss/public/DanhMuc/GetHinhThucXuLyDon"},coQuanThamQuyen:{title:"Cơ quan thẩm quyền",field_name:"dmPhanTheoThamQuyenId",type:"select-async",value_field:"id",value_label:"name",url:"api/buss/public/DanhMuc/GetPhanTheoThamQuyen"},tomTatNoiDung:{field_name:"tomTatNoiDung",title:"Tóm tắt nội dung",type:"textarea"},yeuCauBaoCao:{field_name:"yeuCauBaoCao",title:"Yêu cầu báo cáo",type:"checkbox"},tenCoQuan:{field_name:"tenCoQuan",title:"Tên cơ quan cá nhân",type:"textbox"},soVanBan:{field_name:"soVanBan",title:"Số văn bản chuyển đơn",type:"textbox"},ngayChuyenDon:{field_name:"ngayChuyenDon",title:"Ngày chuyển đơn",type:"datetime"}},Index=__name(()=>{const tableRef=reactExports.createRef(),[openForm,setOpenForm]=reactExports.useState({}),reloadTable=__name(()=>tableRef.current&&tableRef.current.onQueryChange(),"reloadTable"),[query,setQuery]=reactExports.useState(""),[condition,setCondition]=reactExports.useState(""),{deleteLetterProcess}=useLetterProcess();reactExports.useEffect(()=>{setCondition(query),reloadTable()},[query]);const handleDelete=__name(rowData=>{console.log(rowData,"rowData"),CHECK_CONFIRM(`Trả đơn thư '${rowData.donThu.name}' ?`,"Trả đơn thư").then(res=>{res&&res.isConfirmed&&deleteLetterProcess(rowData.id).then(result=>{reloadTable(),CHECK_SUCCESS("Xoá thành công")}).catch(err=>CHECK_ERROR("Xoá thất bại !"))})},"handleDelete");return jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsx(Grid,{container:!0,children:openForm&&openForm.status==="open"&&openForm.id?jsxRuntimeExports.jsx(UpdateForm,{open:openForm.status,id:openForm.id,isEdit:!0,onClose:()=>{setOpenForm(null)},formData,handleReload:reloadTable,formDataUser,formDataProcess}):jsxRuntimeExports.jsx(DataTable,{tableRef,isAuth:!0,url:"/buss/allow/DonThus",title:"Đơn thư xử lý",columns,selectType:"withColumns",onAdd:{onClick:()=>{setOpenForm({status:"open",type:"add"})}},onRowClick:(e,rowData)=>{setOpenForm({status:"open",id:rowData.id,type:"info"})},onEdit:{onClick:(e,rowData)=>{setOpenForm({status:"open",id:rowData.id,type:"edit"})}},onDelete:{onClick:(event,rowData)=>handleDelete(rowData)},where:"donThuXuLys/$count gt 0"})})})},"Index");export{Index as default};