????
Current Path : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/ |
Current File : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/5899.cb229b5c.chunk.js |
"use strict";(self.webpackChunkgdt=self.webpackChunkgdt||[]).push([[5899],{35414:(a,e,t)=>{t.d(e,{A:()=>s});t(9950);var n=t(78873),i=t(44414);const h=a=>{const{children:e,style:t,...h}=a;return(0,i.jsx)(n.A,{style:{...t,fontSize:12,whiteSpace:"pre-line"},...h,children:e})};h.defaultProps={};const s=h},57780:(a,e,t)=>{t.d(e,{A:()=>s});t(9950);var n=t(35414),i=t(44414);const h=a=>{const{children:e,isCheck:t,...h}=a;return(0,i.jsx)(n.A,{...h,color:t?"success":"danger",children:e})};h.defaultProps={};const s=h},37746:(a,e,t)=>{t.d(e,{A:()=>l});var n=t(9950),i=t(78854),h=t(9330),s=t(44414);const o=n.forwardRef(((a,e)=>(0,s.jsx)(h.A,{direction:"up",ref:e,...a})));function l(a){const{children:e,onClose:t,open:n,className:h}=a;return(0,s.jsx)(i.A,{className:h,fullScreen:!0,open:n,onClose:t,TransitionComponent:o,children:e})}},82376:(a,e,t)=>{t.d(e,{A:()=>x});var n=t(9950),i=t(37746),h=t(69994),s=t(87092),o=t(29312),l=t(81270),r=t(39886),d=t(33322),c=t(44414);const u=(0,h.A)((a=>(0,s.A)({appBar:{position:"relative",backgroundColor:"rgb(3,56,99)"},toolbar:{minHeight:40},title:{marginLeft:a.spacing(2),flex:1}})));function p(a){const e=u(),{renderCustom:t,renderButton:n,title:i,onClose:h}=a;return(0,c.jsx)(o.A,{className:e.appBar,children:(0,c.jsxs)(l.A,{className:e.toolbar,variant:"dense",children:[t,(0,c.jsx)(r.A,{variant:"h6",className:e.title,children:i}),n,(0,c.jsx)(d.A,{onClick:h,children:"\u0110\xf3ng"})]})})}var T=t(77766);function g(a){return(0,c.jsx)(T.A,{style:{backgroundColor:"#eee",paddingTop:20,overflow:"unset"},children:a.children})}function m(a){const{renderCustom:e,renderButton:t,children:h,title:s,onClose:o,open:l,className:r}=a;return(0,n.useEffect)((()=>{}),[l]),(0,c.jsxs)(i.A,{className:r,open:l,onClose:o,children:[(0,c.jsx)(p,{renderCustom:e,renderButton:t,title:s,onClose:o}),(0,c.jsx)(g,{children:h})]})}const x=n.memo(m)},57736:(a,e,t)=>{t.d(e,{A:()=>l});var n=t(9950),i=t(58195),h=t(14113),s=t(99308),o=t(44414);class l extends n.Component{constructor(a){super(a),this.state={}}render(){const{title:a,open:e,handleClose:t,children:n,maxWidth:l}=this.props;return(0,o.jsxs)(i.A,{size:this.props.size,style:{maxWidth:"".concat(this.props.width)},isOpen:e,toggle:t,zIndex:9999,className:"modal-"+l,children:[(0,o.jsx)(h.A,{toggle:t,children:a}),(0,o.jsx)(s.A,{children:n})]})}}},66202:(a,e,t)=>{t.d(e,{A:()=>g});var n=t(9950),i=t(70349),h=t(23931),s=t(52308),o=t(8743),l=t(36640),r=t(51445),d=t(52088),c=t(48738),u=t.n(c),p=t(53744),T=t(44414);const g=a=>{const{OnChangeActiveTab:e,className:t,propsActiveTab:c}=a,[g,m]=(0,n.useState)(0);(0,n.useEffect)((()=>{m(c||0)}),[c]),(0,n.useEffect)((()=>{e&&e(g)}),[g]);const x=a=>{g!==a&&m(a)};return(0,T.jsx)("div",{className:a.IsPageSoQuy?"win10-container page-so-quy":"win10-container",children:(0,T.jsxs)(i.A,{className:t,children:[(0,T.jsx)(h.A,{md:"12",children:(0,T.jsx)(s.A,{tabs:!0,children:a.data&&a.data.map(((e,t)=>{let n=e.MaChucNang;const i=p.oC.filter((a=>a.ma_chuc_nang===n));return n?i[0]&&i[0].access&&(0,T.jsx)(o.A,{children:(0,T.jsx)(l.A,{className:u()({active:g===t}),onClick:()=>{x(t),a.onChangeTab&&a.onChangeTab(t)},children:e.TabName})},t):(0,T.jsx)(o.A,{children:(0,T.jsx)(l.A,{className:u()({active:g===t}),onClick:()=>{x(t),a.onChangeTab&&a.onChangeTab(t)},children:e.TabName})},t)}))})}),(0,T.jsx)(h.A,{md:"12",children:(0,T.jsx)(r.A,{activeTab:g,children:a.data&&a.data.map(((a,e)=>(0,T.jsx)(d.A,{tabId:e,children:g===e&&a.TabContent},e)))})})]})})}},60150:(a,e,t)=>{t.d(e,{A:()=>c});var n=t(9950),i=t(53832),h=t(85907),s=t(55002),o=t(67116),l=t(4370),r=t(44414),d={mat_khau_moi:{field_name:"mat_khau_moi",title:"M\u1eadt kh\u1ea9u m\u1edbi",type:"password",required:!0,width:150},NhapLaiMatKhau:{field_name:"NhapLaiMatKhau",title:"Nh\u1eadp l\u1ea1i m\u1eadt kh\u1ea9u",type:"password",required:!0,width:150}};class c extends n.Component{constructor(a){super(a),this.setStateData=(a,e)=>{var{data:t}=this.state;t[a]=e,this.setState({data:t})},this.handleChange=(a,e)=>{this.setStateData(a,e)},this.save=()=>{let{data:a}=this.state;this.handleValidate()&&(0,l.Pq)("QuanLyTaiKhoan/CapLaiMatKhau","POST",JSON.stringify(a),!1).then((a=>(0,o.nw)("C\u1ea5p m\u1eadt kh\u1ea9u th\xe0nh c\xf4ng").then((()=>{this.props.reloadList(),this.props.handleClose()})))).catch((a=>(0,o.AB)(a,"TH\xd4NG B\xc1O")))},this.handleValidate=a=>{const e=Object.values(d).filter((a=>!0===a.required));let{data:t}=this.state;for(let n=0;n<e.length;n++){const a=e[n];let i=t[a.field_name];if(null===i||""===i||void 0===i||0===i.length)return(0,o.AB)('Vui l\xf2ng nh\u1eadp "'+a.title+'"'),!1}return t.mat_khau_moi===t.NhapLaiMatKhau||((0,o.AB)("Nh\u1eadp m\u1eadt kh\u1ea9u kh\xf4ng kh\u1edbp"),!1)},this.state={data:{ma_tai_khoan:null,mat_khau_moi:null,NhapLaiMatKhau:null}}}componentDidMount(){this.setStateData("ma_tai_khoan",this.props.ID)}render(){let{data:a}=this.state;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.A,{data:d.mat_khau_moi,value:a.mat_khau_moi,onChange:this.handleChange}),(0,r.jsx)(i.A,{data:d.NhapLaiMatKhau,value:a.NhapLaiMatKhau,onChange:this.handleChange}),(0,r.jsxs)(h.A,{children:[(0,r.jsx)(s.QB,{onClick:this.save,children:"L\u01b0u"})," ",(0,r.jsx)(s.$n,{onClick:this.props.handleClose,children:"H\u1ee7y"})]})]})}}},20390:(a,e,t)=>{t.d(e,{A:()=>p});var n=t(9950),i=t(58195),h=t(14113),s=t(99308),o=t(76152),l=t(23931),r=t(55627),d=t(4370),c=t(35414),u=t(44414);class p extends n.Component{constructor(a){super(a),this.loadData=()=>{this.props.open&&this.props.MaTaiKhoan&&(0,d.Pq)("TaiKhoans?$filter=MaTaiKhoan eq '".concat(this.props.MaTaiKhoan,"'"),"GET",null).then((a=>a.value[0])).then((a=>this.setState({data:a})))},this.state={}}componentDidMount(){this.loadData()}componentDidUpdate(a){this.props.MaTaiKhoan!==a.MaTaiKhoan&&this.loadData()}render(){const{data:a}=this.state;return(0,u.jsxs)(i.A,{isOpen:this.props.open,toggle:this.props.handleClose,children:[(0,u.jsx)(h.A,{toggle:this.props.handleClose,children:"Th\xf4ng tin t\xe0i kho\u1ea3n"}),(0,u.jsx)(s.A,{children:this.state.data&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(o.A,{row:!0,children:[(0,u.jsx)(l.A,{xs:"4",paddingbotton:"0.5rem",children:(0,u.jsx)(r.A,{className:"font-weight-bold",children:"T\xe0i kho\u1ea3n:"})}),(0,u.jsx)(l.A,{xs:"8",children:(0,u.jsx)("span",{children:a.MaTaiKhoan})})]}),(0,u.jsxs)(o.A,{row:!0,children:[(0,u.jsx)(l.A,{xs:"4",children:(0,u.jsx)(r.A,{className:"font-weight-bold",children:"T\xean hi\u1ec3n th\u1ecb:"})}),(0,u.jsx)(l.A,{xs:"8",children:(0,u.jsx)("span",{children:a.TenHienThi})})]}),(0,u.jsxs)(o.A,{row:!0,children:[(0,u.jsx)(l.A,{xs:"4",children:(0,u.jsx)(r.A,{className:"font-weight-bold",children:"S\u1eed d\u1ee5ng:"})}),(0,u.jsx)(l.A,{xs:"8",style:{paddingTop:"auto",paddingBottom:"auto"},children:a.TinhTrangHoatDong?(0,u.jsx)(c.A,{color:"success",children:"\u0110ang s\u1eed d\u1ee5ng"}):(0,u.jsx)(c.A,{color:"danger",children:"\u0110\xe3 kh\xf3a"})})]})]})})]})}}},38611:(a,e,t)=>{t.d(e,{A:()=>m});var n=t(9950),i=t(70349),h=t(23931),s=t(50651),o=t(75490),l=t(76991),r=t(76152),d=t(55627),c=t(85077),u=t(4370),p=t(82376),T=t(53832),g=t(44414);class m extends n.Component{constructor(a){super(a),this.loadData=a=>{a||(a="web"),this.props.ID?(0,u.Pq)("PhanQuyen/ListChucNang?MaTaiKhoan=".concat(this.props.ID,"&FlatForm=").concat(a),"GET",null,!1).then((a=>{this.setState({data:a})})):this.setState({data:[]})},this.handleChange=(a,e)=>{this.loadData(e),this.setState({flatForm:e})},this.handleChangeCheck=(a,e)=>{e?(0,u.Pq)("PhanQuyen/ThemChucNang","POST",JSON.stringify({MaTaiKhoan:this.props.ID,ChucNang_Id:a}),!1):(0,u.Pq)("PhanQuyen/XoaChucNang","POST",JSON.stringify({MaTaiKhoan:this.props.ID,ChucNang_Id:a}),!1)},this.state={data:[],flatForm:"web"}}componentDidMount(){this.loadData()}componentDidUpdate(a){this.props.ID!==a.ID&&this.loadData()}render(){let{data:a}=this.state;return(0,g.jsx)(p.A,{open:this.props.open,title:"PH\xc2N QUY\u1ec0N CHO T\xc0I KHO\u1ea2N: ".concat(this.props.TenHienThi),onClose:this.props.onClose,children:(0,g.jsxs)("div",{className:"don-vi-detail",children:[(0,g.jsx)(i.A,{children:(0,g.jsx)(h.A,{md:"6",children:(0,g.jsx)(T.A,{data:{field_name:"FlatForm",title:"Flat form",type:"radio-list",required:!0,data:[{label:"web",value:"web"},{label:"mobile",value:"mobile"}]},value:this.state.flatForm,onChange:this.handleChange})})}),a&&a.map(((a,e)=>(0,g.jsxs)("div",{children:[(0,g.jsxs)(s.A,{children:[(0,g.jsx)(o.A,{children:(0,g.jsx)("b",{children:a.TenNhom})}),(0,g.jsxs)(l.A,{children:[a.ListChucNang&&a.ListChucNang.map(((a,e)=>(0,g.jsx)(r.A,{check:!0,children:(0,g.jsxs)(d.A,{check:!0,children:[(0,g.jsx)(c.A,{type:"checkbox",defaultChecked:a.Checked,onChange:e=>this.handleChangeCheck(a.Id,e.target.checked)})," ",a.TenChucNang]})},a.Id))),a.ListNhom&&a.ListNhom.map(((a,e)=>(0,g.jsxs)("div",{children:[(0,g.jsx)("h6",{children:a.TenNhom}),a.ListChucNang&&a.ListChucNang.map(((a,e)=>(0,g.jsx)(r.A,{check:!0,children:(0,g.jsxs)(d.A,{check:!0,children:[(0,g.jsx)(c.A,{type:"checkbox",defaultChecked:a.Checked,onChange:e=>this.handleChangeCheck(a.Id,e.target.checked)})," ",a.TenChucNang]})},a.Id))),(0,g.jsx)("p",{})]},e)))]})]}),(0,g.jsx)("p",{})]},e)))]})})}}},5899:(a,e,t)=>{t.r(e),t.d(e,{default:()=>M});var n=t(9950),i=t(85560),h=t(57736),s=t(53832),o=t(70349),l=t(23931),r=t(85907),d=t(55002),c=t(67116),u=t(4370),p=t(44414),T={loai_tai_khoan_rong:{field_name:"loai_tai_khoan_rong",title:"",type:"label",required:!1},loai_tai_khoan:{field_name:"loai_tai_khoan",title:"Lo\u1ea1i t\xe0i kho\u1ea3n",type:"label",required:!0},MaTaiKhoan:{field_name:"MaTaiKhoan",title:"T\xean t\xe0i kho\u1ea3n",type:"textbox",required:!0},MatKhau:{field_name:"MatKhau",title:"M\u1eadt kh\u1ea9u",type:"password",required:!0},NhapLaiMatKhau:{field_name:"NhapLaiMatKhau",title:"Nh\u1eadp l\u1ea1i m\u1eadt kh\u1ea9u",type:"password",required:!0},TenHienThi:{field_name:"TenHienThi",title:"T\xean hi\u1ec3n th\u1ecb",type:"textbox",required:!0},Email:{field_name:"Email",title:"Email",type:"textbox"},TinhTrangHoatDong:{field_name:"TinhTrangHoatDong",title:"Tr\u1ea1ng th\xe1i",type:"checkbox"},DiemKinhDoanh_Id:{field_name:"DiemKinhDoanh_Id",title:"Thu\u1ed9c chi nh\xe1nh",type:"data-select",dataSelect:{url:"DiemKinhDoanhs",column:["Id","Ten"],value_field:"Id",text_field:"Ten"},required:!0},TrangChu:{field_name:"TrangChu",title:"Trang m\u1eb7c \u0111\u1ecbnh",type:"textbox"}};class g extends n.Component{constructor(a){super(a),this.setStateData=(a,e)=>{var{data:t}=this.state;t[a]=e,this.setState({data:t})},this.handleChange=(a,e)=>{this.setStateData(a,e)},this.save=()=>{let{data:a}=this.state;if(this.handleValidate())if(null!=this.props.ID){let e={MaTaiKhoan:this.props.ID,TenHienThi:a.TenHienThi,Email:a.Email,TinhTrangHoatDong:a.TinhTrangHoatDong,TrangChu:a.TrangChu,DiemKinhDoanh_Id:a.DiemKinhDoanh_Id,VaiTro_Id:a.VaiTro_Id};(0,u.a7)("QuanLyTaiKhoan/ChinhSuaTaiKhoan","POST",JSON.stringify(e)).then((a=>(0,c.nw)("C\u1eadp nh\u1eadt th\xe0nh c\xf4ng","TH\xd4NG B\xc1O").then((()=>{this.props.reloadList(),this.props.handleClose()})))).catch((a=>(0,c.AB)(a,"TH\xd4NG B\xc1O")))}else{let e={MaTaiKhoan:a.MaTaiKhoan,MatKhau:a.MatKhau,TenHienThi:a.TenHienThi,Email:a.Email,TinhTrangHoatDong:a.TinhTrangHoatDong,loai_tai_khoan:a.loai_tai_khoan,IDDonVi:this.props.IDDonVi,TrangChu:a.TrangChu,DiemKinhDoanh_Id:a.DiemKinhDoanh_Id,VaiTro_Id:a.VaiTro_Id};(0,u.Pq)("TaiKhoans","POST",JSON.stringify(e)).then((a=>(0,c.nw)("T\u1ea1o t\xe0i kho\u1ea3n th\xe0nh c\xf4ng","TH\xd4NG B\xc1O").then((()=>{this.props.reloadList(),this.props.handleClose()})))).catch((a=>(0,c.AB)("T\xe0i kho\u1ea3n \u0111\xe3 t\u1ed3n t\u1ea1i","TH\xd4NG B\xc1O")))}},this.handleValidate=a=>{const e=Object.values(T).filter((a=>!0===a.required));let{data:t}=this.state;for(let n=0;n<e.length;n++){const a=e[n];let i=t[a.field_name];if(null===i||""===i||void 0===i||0===i.length)return(0,c.AB)('Vui l\xf2ng nh\u1eadp "'+a.title+'"'),!1}return null!=this.props.ID||t.MatKhau===t.NhapLaiMatKhau||((0,c.AB)("Nh\u1eadp m\u1eadt kh\u1ea9u kh\xf4ng kh\u1edbp"),!1)},this.state={data:{MaTaiKhoan:null,MatKhau:null,NhapLaiMatKhau:null,TenHienThi:null,Email:null,TinhTrangHoatDong:!0,loai_tai_khoan:null,TrangChu:null,VaiTro_Id:null}}}componentDidMount(){null!==this.props.ID?(0,u.Pq)("TaiKhoans?$filter=MaTaiKhoan eq '".concat(this.props.ID,"'"),"GET",null).then((a=>{let{data:e}=this.state;e.MaTaiKhoan=this.props.ID,e.TenHienThi=a.value[0].TenHienThi,e.Email=a.value[0].Email,e.TinhTrangHoatDong=a.value[0].TinhTrangHoatDong,e.DiemKinhDoanh_Id=a.value[0].DiemKinhDoanh_Id,e.TrangChu=a.value[0].TrangChu,e.VaiTro_Id=a.value[0].VaiTro_Id,T.MaTaiKhoan.type="label",T.MatKhau.required=!1,T.NhapLaiMatKhau.required=!1,this.setState({data:e})})).catch((a=>(0,c.AB)(a,"TH\xd4NG B\xc1O"))):T.MaTaiKhoan.type="textbox",this.setStateData("loai_tai_khoan",this.props.LoaiTaiKhoan)}componentDidUpdate(a,e){this.props.ID!==a.ID&&this.props.ID&&(T.MaTaiKhoan.type="label",T.MatKhau.required=!1,T.NhapLaiMatKhau.required=!1)}render(){let{data:a}=this.state;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(o.A,{children:[(0,p.jsxs)(l.A,{children:[(0,p.jsx)(s.A,{data:T.loai_tai_khoan,value:a.loai_tai_khoan}),(0,p.jsx)(s.A,{data:T.MaTaiKhoan,value:a.MaTaiKhoan,onChange:this.handleChange}),null==this.props.ID&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(s.A,{data:T.MatKhau,value:a.MatKhau,onChange:this.handleChange}),(0,p.jsx)(s.A,{data:T.NhapLaiMatKhau,value:a.NhapLaiMatKhau,onChange:this.handleChange})]}),(0,p.jsx)(s.A,{data:T.TenHienThi,value:a.TenHienThi,onChange:this.handleChange}),(0,p.jsx)(s.A,{data:T.Email,value:a.Email,onChange:this.handleChange})]}),(0,p.jsxs)(l.A,{style:{marginTop:null==this.props.ID?7:15},children:[null==this.props.ID&&(0,p.jsx)(s.A,{data:T.loai_tai_khoan_rong,value:a.loai_tai_khoan_rong}),(0,p.jsx)(s.A,{data:T.DiemKinhDoanh_Id,value:a.DiemKinhDoanh_Id,onChange:this.handleChange}),(0,p.jsx)(s.A,{data:T.TrangChu,value:a.TrangChu,onChange:this.handleChange}),(0,p.jsx)(s.A,{data:T.TinhTrangHoatDong,value:a.TinhTrangHoatDong,onChange:this.handleChange})]})]}),(0,p.jsxs)(r.A,{children:[(0,p.jsx)(d.QB,{onClick:this.save,children:"L\u01b0u"})," ",(0,p.jsx)(d.$n,{onClick:this.props.handleClose,children:"H\u1ee7y"})]})]})}}var m=t(20390),x=t(60150),C=t(57780),D=t(66202),j=t(53744),A=t(38611),_=t(30616),k=t(28412),f=t(62181),K=t(32385),N=[{title:"M\xe3 t\xe0i kho\u1ea3n",field:"MaTaiKhoan",dataID:!0,type:"string",editable:"never",searchable:!0,render:a=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{children:a.MaTaiKhoan}),"admin_don_vi"===a.code&&(0,p.jsxs)("span",{style:{color:"green",border:"1px solid green",marginLeft:5},children:[" ",(0,p.jsx)("i",{className:"fa fa-exclamation-circle"})," Qu\u1ea3n tr\u1ecb"]})]})},{title:"T\xean t\xe0i kho\u1ea3n",field:"TenHienThi",type:"string",searchable:!0},{title:"Trang m\u1eb7c \u0111\u1ecbnh",field:"TrangChu",type:"string",dataCheck:!0},{title:"T\xecnh tr\u1ea1ng",field:"TinhTrangHoatDong",type:"boolean",searchable:!1,lookup:{true:"Ho\u1ea1t \u0111\u1ed9ng",false:"\u0110\xe3 kh\xf3a"},render:a=>(0,p.jsx)(C.A,{isCheck:a.TinhTrangHoatDong,children:a.TinhTrangHoatDong?"Ho\u1ea1t \u0111\u1ed9ng":"\u0110\xe3 kh\xf3a"})},{field:"code",type:"string",hidden:!0}];const I=n.createRef(),v=()=>I.current&&I.current.onQueryChange();class M extends n.Component{constructor(a){super(a),this.handleChangeIDDonVi=(a,e)=>{this.setState({IDDonVi:a,TenDonVi:e.title}),v()},this.back=()=>{this.setState({IDDonVi:null})},this.setSearch=a=>{13===a.charCode&&this.setState({search:a.target.value},(()=>v()))},this.state={open:!1,openChangePassword:!1,openBangPhanQuyen:!1,openDetail:!1,ID:null,LoaiTaiKhoan:null,IDDonVi:null,search:null}}componentDidMount(){this.setState({LoaiTaiKhoan:"don_vi"})}render(){const{odata:a}=this.props,{search:e}=this.state;let t=[];return t.push("TinhTrangHoatDong eq true"),t.push("loai_tai_khoan eq 'don_vi' and IDDonVi eq '".concat(j.lg.IDDonVi,"'")),e&&t.push("(substringof('".concat(e,"', MaTaiKhoan) or substringof('").concat(e,"', TenHienThi))")),(0,p.jsx)(D.A,{data:[{TabName:"Qu\u1ea3n l\xfd t\xe0i kho\u1ea3n - Ph\xe2n quy\u1ec1n",TabContent:(0,p.jsxs)(_.A,{children:[(0,p.jsx)(k.A,{children:(0,p.jsx)(l.A,{md:"12",className:"p-0 mb-2",children:(0,p.jsx)(f.A,{title:"T\xecm ki\u1ebfm",defaultValue:e,onKeyPress:a=>this.setSearch(a),placeholder:"T\xecm ki\u1ebfm theo m\xe3, t\xean..."})})}),(0,p.jsxs)(K.A,{children:[(0,p.jsx)(i.A,{title:"T\xe0i kho\u1ea3n",tableRef:I,url:a?a.url:"TaiKhoans",where:t.join(" and "),columns:N,selectType:"withColumns",onAdd:{onClick:a=>this.setState({open:!0,ID:null})},onEdit:{onClick:(a,e)=>this.setState({open:!0,ID:e.MaTaiKhoan})},onDelete:{disabled:a=>"admin_don_vi"===a.code,onRowDelete:a=>new Promise((async(e,t)=>{(0,u.Pq)("QuanLyTaiKhoan/XoaTaiKhoan?ma_tai_khoan=".concat(a.MaTaiKhoan),"POST",null,!1).then((()=>e())).then((()=>(0,c.nw)("X\xf3a th\xe0nh c\xf4ng"))).catch((a=>t(a)))}))},onActions:[{icon:"check",tooltip:"Ph\xe2n quy\u1ec1n",onClick:(a,e)=>this.setState({openBangPhanQuyen:!0,ID:e.MaTaiKhoan,TenHienThi:e.TenHienThi})},{icon:"key",tooltip:"\u0110\u1ed5i m\u1eadt kh\u1ea9u",onClick:(a,e)=>this.setState({openChangePass:!0,ID:e.MaTaiKhoan})}],onRowClick:(a,e)=>this.setState({openDetail:!0,ID:e.MaTaiKhoan})}),this.state.open&&(0,p.jsx)(h.A,{maxWidth:"lg",open:this.state.open,title:null!=this.state.ID?"C\u1eadp nh\u1eadt":"Th\xeam m\u1edbi",handleClose:()=>this.setState({open:!1}),children:(0,p.jsx)(g,{ID:this.state.ID,LoaiTaiKhoan:this.state.LoaiTaiKhoan,IDDonVi:this.state.IDDonVi,handleClose:()=>this.setState({open:!1}),reloadList:v})}),(0,p.jsx)(m.A,{open:this.state.openDetail,handleClose:()=>this.setState({openDetail:!1}),MaTaiKhoan:this.state.ID}),(0,p.jsx)(h.A,{maxWidth:"md",open:this.state.openChangePass,title:"\u0110\u1ed5i m\u1eadt kh\u1ea9u",handleClose:()=>this.setState({openChangePass:!1}),children:(0,p.jsx)(x.A,{ID:this.state.ID,handleClose:()=>this.setState({openChangePass:!1}),reloadList:v})}),this.state.openBangPhanQuyen&&(0,p.jsx)(A.A,{ID:this.state.ID,TenHienThi:this.state.TenHienThi,open:this.state.openBangPhanQuyen,onClose:()=>this.setState({openBangPhanQuyen:!1,ID:null})})]})]})}]})}}},32385:(a,e,t)=>{t.d(e,{A:()=>s});var n=t(9950),i=t(23931),h=t(44414);class s extends n.Component{render(){let{children:a,className:e,FilterSearchAdvanced:t,FilterNoHeader:n,NoTabs:s}=this.props,o=[];return e&&o.push(e),o.push("filter-datatable"),t&&o.push("filter-search-advanced"),n&&o.push("filter-no-header"),s&&o.push("filter-no-tabs"),(0,h.jsx)(i.A,{className:o.join(" "),md:"9",children:a})}}s.defaultProps={className:"",FilterSearchAdvanced:"",FilterNoHeader:"",NoTabs:""}}}]);