????
Current Path : C:/inetpub/vhost/lantha.gdtsolutions.vn/wwwtest/wwwroot/static/js/ |
Current File : C:/inetpub/vhost/lantha.gdtsolutions.vn/wwwtest/wwwroot/static/js/7913.ca6f7246.chunk.js |
"use strict";(self.webpackChunkgdt=self.webpackChunkgdt||[]).push([[7913],{428:(a,e,t)=>{t.d(e,{A5:()=>r,G5:()=>i,Is:()=>g,UI:()=>n,V$:()=>u,Yv:()=>o,Z5:()=>c,e9:()=>p,gn:()=>s,jB:()=>d,xz:()=>m});t(67116);const i=a=>a.filter((a=>a.dataID))[0],n=a=>i(a).field,s=a=>a&&a.includes("."),l=a=>a.split(".").join("/"),h=(a,e)=>a?e.field:e,o=(a,e,t)=>{const n=i(e);return`${a}(${"guid"===n.type?"guid":""}'${t[n.field]}')`},d=function(a,e,t){return arguments.length>3&&void 0!==arguments[3]&&arguments[3]?`substringof('${t}', ${a})`:`${a} eq ${((a,e)=>"string"===a?`'${e}'`:"datetime"===a?`datetime'${e}'`:"guid"===a?`guid'${e}'`:`${e}`)(e,t)}`},r=(a,e)=>{if(a.filters&&a.filters.length>0){const e=a.filters.filter((a=>a.column.field&&a.column.type)).map((a=>{const e=`${s(a.column.field)?a.column.dataRef?a.column.dataRef[0]:l(a.column.field):a.column.field}`;return d(e,a.column.type,a.value)}));return e&&e.join(" and ")}if(a.search&&a.search.length>=1){const t=e.filter((a=>a.searchable&&a.field&&a.type)).map((e=>{const t=`${s(e.field)?l(e.field):e.field}`;return d(t,e.type,a.search,!0)}));return t&&t.join(" or ")}return""},c=(a,e)=>`$top=${e}&$skip=${a*e}&$inlinecount=allpages`,u=(a,e)=>`&$orderby=${s(a)?l(a):a} ${e}`,p=function(a){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=a.filter((a=>s(h(e,a))));return 0===t.length?"":`&$expand=${function(a){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=[];return a.forEach(((a,i)=>{let n=h(e,a).split(".").reverse().splice(1).reverse().join("/");0===i?t.push(n):t.some((a=>a===n))||t.push(n)})),t.join(",")}(t,e)}`},g=function(a){const e=function(a,e){let t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e?"withColumns"===e?`${a.reduce(((a,e,i,n)=>{let o=h(t,e),d=`${a}`;return s(o)?d+=`${void 0===e.dataRef?"":e.dataRef[0]+","}${l(o)}`:d+=`${o}`,`${d}${i===n.length-1?"":","}`}),"")}`:"":`${a.filter((a=>s(a.field))).reduce(((a,e)=>`${a},${l(h(t,e))}`),"*")}`}(a,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"withColumns",!(arguments.length>2&&void 0!==arguments[2])||arguments[2]);return e?`&$select=${e}`:""},m=function(a,e){let t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"withColumns";return`${p(a,t)}${g(a,i,t)}${e?"&$filter="+e:""}`}},10077:(a,e,t)=>{t.d(e,{A:()=>T});var i=t(9950),n=t(15255);const s={body:{emptyDataSourceMessage:"Kh\xf4ng c\xf3 d\u1eef li\u1ec7u \u0111\u1ec3 hi\u1ec3n th\u1ecb",addTooltip:"Th\xeam",editTooltip:"S\u1eeda",deleteTooltip:"X\xf3a",editRow:{deleteText:"B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn x\xf3a d\xf2ng n\xe0y kh\xf4ng?",cancelTooltip:"H\u1ee7y",saveTooltip:"L\u01b0u"}},toolbar:{exportTitle:"Xu\u1ea5t file",searchTooltip:"T\xecm ki\u1ebfm",showColumnsTitle:"Hi\u1ec7n c\u1ed9t",addRemoveColumns:"Th\xeam v\xe0 hi\u1ec3n th\u1ecb c\xe1c c\u1ed9t",searchPlaceholder:"T\xecm ki\u1ebfm"},pagination:{labelRowsPerPage:"S\u1ed1 d\xf2ng cho 1 trang",labelRowsSelect:"d\xf2ng",labelDisplayedRows:" {from}-{to} c\u1ee7a {count}",firstTooltip:"Trang \u0111\u1ea7u ti\xean",previousTooltip:"Trang tr\u01b0\u1edbc",nextTooltip:"Trang sau",lastTooltip:"Trang cu\u1ed1i c\xf9ng"},header:{actions:"Thao t\xe1c"}};var l=t(44414);const h=i.lazy((()=>Promise.all([t.e(9818),t.e(8185),t.e(3130),t.e(783),t.e(7930),t.e(7608),t.e(7476),t.e(484),t.e(7925),t.e(5060),t.e(2026),t.e(8190),t.e(537),t.e(1105)]).then(t.bind(t,38671)))),o=i.lazy((()=>Promise.all([t.e(9818),t.e(3130),t.e(783),t.e(7930),t.e(5060),t.e(5897)]).then(t.bind(t,46350)))),d=i.lazy((()=>Promise.all([t.e(9818),t.e(3435)]).then(t.bind(t,33435)))),r={color:"#000",padding:"2px",fontSize:"12px",fontWeight:"bold",textAlign:"center",backgroundColor:"powderblue",borderLeft:"0.5px solid rgb(224, 224, 224)",zIndex:99},c={even:"#FFF",odd:"rgb(247, 248, 255)"},u={fontSize:"12px",borderLeft:"0.5px solid rgba(224, 224, 224, 1)"};class p extends i.Component{render(){const{addMoreRows:a,pageSize:e,search:t,CustumToolbar:i,CustumCell:n,SearchAdvanced:c,onRowClick:p,dataCount:g,rowStyle:m,rowsPerPage:G,page:T,...D}=this.props;return(0,l.jsx)(h,{...D,addMoreRows:a,localization:s,options:{exportButton:!1,search:t,actionsColumnIndex:-1,pageSize:e,headerStyle:r,rowStyle:m},onRowClick:void 0===p?void 0:(a,e)=>p(a,e),components:(()=>{let a={Toolbar:a=>(0,l.jsx)(o,{...a,SearchAdvanced:c}),Cell:a=>(0,l.jsx)(d,{...a,style:u})};return i&&(a.Toolbar=i),n&&(a.Cell=n),a})()})}}p.defaultProps={rowStyle:(a,e,t)=>({backgroundColor:e%2===0?c.even:c.odd}),pageSize:10,search:!0};var g=t(428),m=t(4370),G=t(67116);class T extends i.Component{render(){const{tableRef:a,url:e,title:t,columns:i,pageSize:s,detailPanel:h,where:o,search:d,selectType:r,rowStyle:c,onAdd:u,onEdit:T,onDelete:D,onActions:C,onRowClick:f,SearchAdvanced:x,CustumToolbar:N,CustumCell:I,urlExt:B,unRefresDatatable:S,notCreateUUID:L,messageCustomDetele:b}=this.props,v=a=>i.filter((a=>g.gn(a.field)&&a.dataRef)).map((a=>({column:a,field_split:a.field.split(".")}))).forEach((e=>{delete a[e.field_split[0]]})),j=a=>{let e=i.filter((a=>a.dataCheck));for(var t=0;t<e.length;t++)if(g.gn(e[t].field)&&e[t].dataRef){if(null===a[e[t].dataRef[0]]||void 0===a[e[t].dataRef[0]]||""===a[e[t].field])return(0,G.AB)("Vui l\xf2ng nh\u1eadp d\u1eef li\u1ec7u c\u1ed9t "+e[t].title),!1}else if(void 0===a[e[t].field]||null===a[e[t].field]||""===a[e[t].field])return(0,G.AB)("Vui l\xf2ng nh\u1eadp d\u1eef li\u1ec7u c\u1ed9t "+e[t].title),!1;return!0};return(0,l.jsx)(p,{search:d,pageSize:s,title:t,columns:i,tableRef:a,SearchAdvanced:x,CustumToolbar:N,CustumCell:I,data:a=>B?(0,m.g3)((a=>`${B}${o?"?"+o:"&"}skip=${a.page*a.pageSize}&take=${a.pageSize}`)(a),"GET",null,!1).then((e=>({data:void 0===e.value?[]:e.value,page:a.page,totalCount:Number(e.count)}))):(0,m.g3)((a=>{let t=`${e}?${g.Z5(a.page,a.pageSize)}`;t+=`${g.e9(i)}${g.Is(i,r)}`,a.orderBy&&void 0!==a.orderBy&&a.orderDirection&&""!==a.orderDirection&&(t+=g.V$(a.orderBy.field,a.orderDirection));let n=g.A5(a,i);return t+=n?o?`&$filter=(${n}) and ${o}`:`&$filter=${n}`:o?"&$filter="+o:"",t})(a)).then((e=>({data:void 0===e.value?[]:e.value,page:a.page,totalCount:Number(e["odata.count"])}))),rowStyle:c,detailPanel:h,editable:(()=>{let a={};return u&&void 0===u.onClick&&!1===u.disabled&&(void 0===u.onRowAdd?a.onRowAdd=a=>new Promise(((t,s)=>{let l=g.G5(i);l.type&&"numeric"!==l.type&&(L?delete a[g.UI(i)]:l.dataIdCustom||(a[g.UI(i)]=(0,n.A)())),v(a),u.defaultValues&&u.defaultValues.forEach((e=>a[e.field]=e.value)),j(a)?(0,m.g3)(`${e}`,"POST",JSON.stringify(a)).then((a=>t(a))).catch((a=>{a.json().then((a=>(0,G.AB)(a.value))),s(a)})).finally((()=>{this.props.updateCountRadioList&&this.props.updateCountRadioList(),this.props.addCallback&&this.props.addCallback()})):s()})).then((a=>this.props.addCallbackWithResponse&&this.props.addCallbackWithResponse(a))).catch((a=>console.log(a))):a.onRowAdd=a=>u.onRowAdd(a)),T&&void 0===T.onClick&&(T.hidden&&("function"===typeof T.hidden?a.onUpdateHidden=a=>T.hidden(a):a.onUpdateHidden=T.hidden),T.disabled&&(a.isEditable=a=>T.disabled(a)),void 0===T.onRowUpdate?a.onRowUpdate=(a,t)=>new Promise(((n,s)=>{v(a),j(a)?(0,m.g3)(g.Yv(e,i,t),"PATCH",JSON.stringify(a)).then((()=>n())).catch((a=>{a.json().then((a=>(0,G.AB)(a.value))),s(a)})).finally((()=>{this.props.updateCountRadioList&&this.props.updateCountRadioList(),this.props.updateCallback&&this.props.updateCallback()})):s()})):a.onRowUpdate=(a,e)=>T.onRowUpdate(a,e)),D&&void 0===D.onClick&&(D.hidden&&("function"===typeof D.hidden?a.onDeleteHidden=a=>D.hidden(a):a.onDeleteHidden=D.hidden),D.disabled&&(a.isDeletable=a=>D.disabled(a)),void 0===D.onRowDelete?a.onRowDelete=a=>new Promise(((t,n)=>(0,m.g3)(g.Yv(e,i,a),"DELETE").then((()=>{D.messageSuccess?t(null,D.messageSuccess):t("X\xf3a d\u1eef li\u1ec7u th\xe0nh c\xf4ng !")})).catch((a=>{b?(0,G.a3)(b,"Th\xf4ng b\xe1o"):(0,G.a3)("X\xf3a d\u1eef li\u1ec7u kh\xf4ng th\xe0nh c\xf4ng !"),D.messageError?n(a,D.messageError):n("X\xf3a d\u1eef li\u1ec7u th\u1ea5t b\u1ea1i !")})).finally((()=>{this.props.updateCountRadioList&&this.props.updateCountRadioList(),this.props.deleteCallback&&this.props.deleteCallback()})))):a.onRowDelete=a=>D.onRowDelete(a)),a})(),actions:(()=>{let a=[];return C&&C.map((e=>a.push(e))),u&&u.onClick&&(u.icon="add_box",u.tooltip="Th\xeam",u.isAdd=!0,u.isFreeAction=!0,a.push(u)),T&&T.onClick&&(T.icon="edit",T.tooltip="S\u1eeda",T.isEdit=!0,a.push(T)),D&&D.onClick&&(D.icon="delete",D.tooltip="X\xf3a",D.isDelete=!0,a.push(D)),a})(),onRowClick:void 0===f?void 0:(a,e)=>f(a,e)})}}T.defaultProps={title:"",columns:[],pageSize:10,search:!0,tableRef:i.createRef()}},25602:(a,e,t)=>{t.d(e,{D:()=>i,M:()=>n});const i={DongGoi:"dong-goi",HangLe:"hang-le"},n={SanPham:"SanPham",DichVu:"DichVu"}},32385:(a,e,t)=>{t.d(e,{A:()=>l});var i=t(9950),n=t(23931),s=t(44414);class l extends i.Component{render(){let{children:a,className:e,FilterSearchAdvanced:t,FilterNoHeader:i,NoTabs:l}=this.props,h=[];return e&&h.push(e),h.push("filter-datatable"),t&&h.push("filter-search-advanced"),i&&h.push("filter-no-header"),l&&h.push("filter-no-tabs"),(0,s.jsx)(n.A,{className:h.join(" "),md:"9",children:a})}}l.defaultProps={className:"",FilterSearchAdvanced:"",FilterNoHeader:"",NoTabs:""}},65597:(a,e,t)=>{t.d(e,{A:()=>G});t(9950);var i=t(33720),n=t(78854),s=t(96918),l=t(77766),h=t(43510),o=t(97226),d=t(13144),r=t(39886),c=t(86006),u=t(44414);const p=(0,i.A)((a=>({root:{margin:0,backgroundColor:"rgb(3,56,99)",color:"#FFF",padding:"6px 12px"},closeButton:{position:"absolute",right:a.spacing(1),top:a.spacing(1),color:a.palette.grey[500],padding:"0 6px"}})))((a=>{const{children:e,classes:t,onClose:i}=a;return(0,u.jsxs)(s.A,{disableTypography:!0,className:t.root,children:[(0,u.jsx)(r.A,{variant:"subtitle2",children:e}),i?(0,u.jsx)(o.A,{"aria-label":"close",className:t.closeButton,onClick:i,children:(0,u.jsx)(d.A,{fontSize:"small"})}):null]})})),g=(0,i.A)((a=>({root:{padding:a.spacing(2)}})))(l.A),m=(0,i.A)((a=>({root:{margin:0,padding:a.spacing(1),marginLeft:0}})))(h.A);function G(a){const{title:e,open:t,children:i,renderButton:s,handleClose:l,maxWidth:h,className:o,zIndex:d,renderButtonHeader:r,transferToModal:c}=a;let G=[];return o&&G.push(o),c&&G.push("Dialog-Transfer-To-Modal"),(0,u.jsx)("div",{children:(0,u.jsxs)(n.A,{className:G.join(" "),style:{zIndex:d||9999},onClose:l,open:t,fullWidth:!0,maxWidth:h,children:[e&&(0,u.jsxs)(p,{onClose:l,children:[e," ",r&&(0,u.jsx)(T,{children:r})]}),(0,u.jsx)(g,{dividers:!0,children:i}),s&&(0,u.jsx)(m,{children:s})]})})}G.defaultProps={open:!1};const T=c.Ay.div` display: inline; `},97913:(a,e,t)=>{t.r(e),t.d(e,{default:()=>E});var i=t(9950),n=t(30616),s=t(28412),l=t(23931),h=t(78513),o=t(16328),d=t(33151),r=t(18849),c=t(76991),u=t(21205),p=t(27220),g=t(62181),m=t(4370),G=t(67116),T=t(32385),D=t(95888),C=t(53744),f=t(36841),x=t(86803),N=t.n(x),I=t(34849),B=t(73613),S=t(65597),L=t(10077),b=t(97540),v=t(70349),j=t(16272),y=t(44414);const P={TenBangGia:{field_name:"TenBangGia",title:"T\xean b\u1ea3ng gi\xe1",type:"textbox",required:!0},TrangThai:{field_name:"TrangThai",title:"Tr\u1ea1ng th\xe1i s\u1eed d\u1ee5ng",type:"checkbox"},MacDinh:{field_name:"MacDinh",title:"M\u1eb7c \u0111\u1ecbnh",type:"checkbox"},DiemKinhDoanhId:{field_name:"DiemKinhDoanhId",title:"\u0110i\u1ec3m kinh doanh",type:"data-select",required:!1,dataSelect:{url:"DiemKinhDoanhs",column:["Id","Ten"],value_field:"Id",text_field:"Ten"}},IsChung:{field_name:"IsChung",title:"B\u1ea3ng gi\xe1 \u0111\u01b0\u1ee3c d\xf9ng chung",type:"checkbox"}};class A extends i.Component{constructor(a){super(a),this.getDataBangGia=()=>{const{IdBangGia:a}=this.props;(0,m.Pq)(`Sale_BangGia(${a})`).then((a=>this.setState({data:{Id:a.Id,TenBangGia:a.Ten,TrangThai:a.TrangThai,MacDinh:a.MacDinh,DiemKinhDoanhId:a.DiemKinhDoanh_Id,IsChung:a.IsChung},loading:!1}))).catch((a=>(0,G.a3)(a.Message)))},this.handleValidate=a=>{const e=Object.values(P).filter((a=>a.required));let{data:t}=this.state;for(let i=0;i<e.length;i++){const a=e[i];let n=t[a.field_name];if(null===n||""===n||void 0===n||0===n.length)return(0,G.AB)('Vui l\xf2ng nh\u1eadp "'+a.title+'"'),!1}return!0},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=()=>{const{data:a}=this.state,{IdBangGia:e}=this.props;if(this.handleValidate())if(e){let e={Id:a.Id,Ten:a.TenBangGia,TrangThai:a.TrangThai||!1,MacDinh:a.MacDinh||!1,IsChung:a.IsChung||!1,DiemKinhDoanhId:"dieuhanh"===C.lg.MaVaiTro?a.DiemKinhDoanhId:C.b9.DiemKinhDoanhId};this.setState({disBtn:!0},(()=>{(0,m.Pq)("BangGia/CapNhatBangGia","POST",JSON.stringify(e),!1).then((a=>this.setState({disBtn:!1},(()=>(0,G.nw)(a.Message).then((()=>{this.setState({disBtn:!1}),this.props.getDataBangGia(),this.props.addCallback(),this.props.closeCreate(),this.props.reloadTable()})))))).catch((a=>(0,G.a3)(a.Message).then((()=>this.setState({disBtn:!1})))))}))}else{let e={Ten:a.TenBangGia,TrangThai:a.TrangThai||!1,MacDinh:a.MacDinh||!1,DiemKinhDoanhId:"dieuhanh"===C.lg.MaVaiTro?a.DiemKinhDoanhId:C.b9.DiemKinhDoanhId};this.setState({disBtn:!0},(()=>{(0,m.Pq)("BangGia/TaoBangGia","POST",JSON.stringify(e),!1).then((a=>this.setState({disBtn:!1},(()=>(0,G.nw)(a).then((()=>{this.setState({disBtn:!1}),this.props.getDataBangGia(),this.props.addCallback(),this.props.closeCreate(),this.props.reloadTable()})))))).catch((a=>(0,G.a3)(a.Message).then((()=>this.setState({disBtn:!1})))))}))}},this.state={data:{},loading:!0,disBtn:!1}}componentDidMount(){const{IdBangGia:a}=this.props;a?this.getDataBangGia():"dieuhanh"===C.lg.MaVaiTro?(P.DiemKinhDoanhId.required=!0,this.setState({data:{DiemKinhDoanhId:C.lg.DiemKinhDoanhId,TrangThai:!0},loading:!1})):this.setState({data:{},loading:!1})}render(){const{openCreate:a,closeCreate:e,title:t,IdBangGia:i}=this.props,{data:n,loading:s,disBtn:h}=this.state;return(0,y.jsx)(S.A,{open:a,maxWidth:"sm",handleClose:e,title:t,children:s?(0,y.jsx)(b.A,{style:{display:"flex",margin:"auto",color:"#f19898"}}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(v.A,{children:(0,y.jsxs)(l.A,{children:[(0,y.jsx)(j.A,{data:P.TenBangGia,value:n.TenBangGia,onChange:this.handleChange}),"dieuhanh"===C.lg.MaVaiTro&&(0,y.jsx)(j.A,{data:P.DiemKinhDoanhId,value:n.DiemKinhDoanhId,onChange:this.handleChange}),(0,y.jsx)(j.A,{data:P.MacDinh,value:n.MacDinh,onChange:this.handleChange})]})}),(0,y.jsx)(v.A,{children:(0,y.jsxs)(l.A,{style:{textAlign:"right"},children:[(0,y.jsxs)(r.A,{disabled:h,size:"sm",color:"success",onClick:this.save,children:[(0,y.jsx)(B.A,{fa:"save"})," ","L\u01b0u"]}),(0,y.jsxs)(r.A,{size:"sm",style:{marginLeft:"10px"},color:"dark",onClick:e,children:[(0,y.jsx)(B.A,{fa:"ban"})," ","B\u1ecf qua"]})]})})]})})}}var V=t(1254);const k=[{title:"Id",field:"Id",type:"numeric",dataID:!0,hidden:!0,editable:"never",cellStyle:{textAlign:"center"}},{title:"Ng\xe0y t\u1ea1o",field:"NgayTao",type:"datetime",defaultSort:"desc",cellStyle:{textAlign:"left"}},{title:"B\u1ea3ng gi\xe1",field:"Ten",type:"string",dataCheck:!0,searchable:!0,cellStyle:{textAlign:"left"}},{title:"Tr\u1ea1ng th\xe1i ho\u1ea1t \u0111\u1ed9ng",field:"TrangThai",type:"boolean",hidden:!0,cellStyle:{textAlign:"center"},render:a=>a.TrangThai?(0,y.jsx)(V.A,{color:"success",children:"\u0110ang ho\u1ea1t \u0111\u1ed9ng"}):(0,y.jsx)(V.A,{color:"danger",children:"Kh\xf4ng ho\u1ea1t \u0111\u1ed9ng"})},{title:"M\u1eb7c \u0111\u1ecbnh",field:"MacDinh",type:"boolean",cellStyle:{textAlign:"center"},render:a=>a.MacDinh&&(0,y.jsx)(V.A,{color:"success",children:"\u0110ang s\u1eed d\u1ee5ng"})},{title:"B\u1ea3ng gi\xe1 chung",field:"IsChung",type:"boolean",hidden:!0,cellStyle:{textAlign:"center"},render:a=>a.IsChung&&(0,y.jsx)(V.A,{color:"success",children:"\u0110ang ho\u1ea1t \u0111\u1ed9ng"})},{title:"\u0110i\u1ec3m kinh doanh",field:"DiemKinhDoanh_Id",type:"numeric",hidden:!0,cellStyle:{textAlign:"left"}},{title:"\u0110i\u1ec3m kinh doanh",field:"DM_DiemKinhDoanh.Ten",type:"string",hidden:!1,searchable:!0,cellStyle:{textAlign:"left"}}],$=i.createRef(),w=()=>$.current&&$.current.onQueryChange();class F extends i.Component{constructor(a){super(a),this.deleteBangGia=a=>{(0,m.Pq)(`BangGia/XoaBangGia?bangGiaId=${a}`,"DELETE",null,!1).then((a=>(0,G.nw)(a).then((()=>{this.props.getDataBangGia(),this.props.addCallback(),w()})))).catch((a=>(0,G.a3)(a.Message)))},this.state={openCreate:!1}}render(){const{open:a,onClose:e,addCallback:t,updateCallback:n,deleteCallback:s,getDataBangGia:l}=this.props,{openCreate:h,IdBangGia:o}=this.state;return(0,y.jsxs)(i.Fragment,{children:[(0,y.jsx)(S.A,{className:"dialog-bang-gia",open:a,maxWidth:"md",handleClose:e,children:(0,y.jsx)(L.A,{tableRef:$,deleteCallback:()=>s(),updateCallback:()=>n(),addCallback:()=>t(),title:"Danh s\xe1ch b\u1ea3ng gi\xe1",url:"Sale_BangGia",columns:k,selectType:"withColumns",onAdd:{onClick:a=>this.setState({openCreate:!0,IdBangGia:null})},onEdit:{onClick:(a,e)=>this.setState({openCreate:!0,IdBangGia:e.Id})},onDelete:{onClick:(a,e)=>(0,G.A1)(`B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n x\xf3a ${e.Ten} kh\xf4ng?`,"C\u1ea3nh b\xe1o").then((()=>this.deleteBangGia(e.Id)))}})}),h&&(0,y.jsx)(A,{getDataBangGia:()=>l(),IdBangGia:o,openCreate:h,closeCreate:()=>this.setState({openCreate:!1}),title:"T\u1ea1o m\u1edbi b\u1ea3ng gi\xe1",addCallback:()=>t(),reloadTable:w})]})}}var R=t(65907),M=t(25602);const K=[{label:"VN\u0110",value:"1"},{label:"Ph\u1ea7n tr\u0103m (%)",value:"2"}];class X extends i.Component{constructor(a){super(a),this.getNhomDonviTinh=()=>{(0,m.Pq)("DM_NhomDonViTinh").then((a=>this.setState({dataNhomDVT:a.value.map((a=>({label:a.TenNhom,value:a.MaNhom})))}))).catch((a=>(0,G.a3)(a.Message)))},this.setDefaultValueSelect=a=>{let e=a.find((a=>!0===a.MacDinh));if(e)this.setState({defaultValueSelect:e.Id},(()=>this.getDataThietLapGia(this.state.defaultValueSelect)));else{let e=a.find((a=>!0===a.IsChung));var t;if(e)this.setState({defaultValueSelect:e.Id},(()=>this.getDataThietLapGia(this.state.defaultValueSelect)));else this.setState({defaultValueSelect:null===(t=a[0])||void 0===t?void 0:t.Id},(()=>this.getDataThietLapGia(this.state.defaultValueSelect)))}},this.tinhGiaBan=(a,e,t,i,n)=>(0,f.EP)()?t||"2"===n?(parseInt(e||0)+parseFloat(t||0)/100*parseInt(e||0)).toFixed(0):parseInt(e||0)+parseInt(i||0):t||"2"===n?(parseInt(a||0)+parseFloat(t||0)/100*parseInt(a||0)).toFixed(0):parseInt(a||0)+parseInt(i||0),this.tinhGiaDeXuat=(a,e,t,i,n)=>(0,f.EP)()?t||"2"===n?(parseInt(e||0)+parseFloat(t||0)/100*parseInt(e||0)).toFixed(0):parseInt(e||0)+parseInt(i||0):t||"2"===n?(parseInt(a||0)+parseFloat(t||0)/100*parseInt(a||0)).toFixed(0):parseInt(a||0)+parseInt(i||0),this.tinhPhanTramLoiNhuan=(a,e,t)=>(0,f.EP)()?parseFloat(((parseInt(a)-parseInt(t))/parseInt(t)*100).toFixed(2)):parseFloat(((parseInt(a)-parseInt(e))/parseInt(e)*100).toFixed(2)),this.tinhLoiNhuan=(a,e,t)=>(0,f.EP)()?parseInt(a)-parseInt(t):parseInt(a)-parseInt(e),this.getDataThietLapGia=a=>{const{loai:e,textSeachSanPham:t,IdLoiNhuan:i,maNhomDVT:n,NCC_Id:s}=this.state;(0,m.Pq)(`QuanLyKho/SanPhams?bangGiaId=${a}&diemKinhDoanhId=${C.b9.DiemKinhDoanhId}&loai=${e}&key=${t}&nhomDonViTinh=${n}&ncc=${s}`,"GET",null,!1).then((a=>{let e=[];a.map(((a,t)=>{let n=[];n=a.BangGias?[{...a.BangGias,PTLoiNhuan:parseFloat(a.BangGias.PTLoiNhuan)||0,LoiNhuan:parseFloat(a.BangGias.LoiNhuan)||0,GiaBan:a.BangGias.GiaBan||this.tinhGiaBan(a.BangGias.GiaVon,a.BangGias.GiaNhapCuoi,a.BangGias.PTLoiNhuan,a.BangGias.LoiNhuan,i),GiaDeXuat:a.BangGias.GiaDeXuat||this.tinhGiaDeXuat(a.BangGias.GiaVon,a.BangGias.GiaNhapCuoi,a.BangGias.PTLoiNhuan,a.BangGias.LoiNhuan,i),SanPhamDichVuId:a.Id,IdLoiNhuan:a.BangGias.PTLoiNhuan?"2":"1"}]:[{GiaVon:0,GiaBan:0,PTLoiNhuan:0,LoiNhuan:0,GiaDeXuat:0,SanPhamDichVuId:a.Id,IdLoiNhuan:i}],e.push({...a,BangGias:n})})),this.setState({dataThietLapGia:e})})).catch((a=>(0,G.AB)("Ch\u01b0a c\xf3 b\u1ea3ng gi\xe1, Vui l\xf2ng t\u1ea1o b\u1ea3ng gi\xe1","TH\xd4NG B\xc1O")))},this.handleChangeSelect=a=>{a&&this.setState({defaultValueSelect:a},(()=>{this.getDataThietLapGia(a),this.updateBangGiaMacDinh(a)}))},this.updateBangGiaMacDinh=async a=>{let e=await(0,m.ID)(`Sale_BangGia(${a})`),t={Id:e.Id,Ten:e.Ten,TrangThai:e.TrangThai,MacDinh:!0,IsChung:e.IsChung,DiemKinhDoanhId:e.DiemKinhDoanh_Id};(0,m.Pq)("BangGia/CapNhatBangGia","POST",JSON.stringify(t),!1).then((a=>console.log(a))).catch((a=>(0,G.a3)(a.Message)))},this.onChangeLoai=a=>{const{defaultValueSelect:e}=this.state;this.setState({loai:a},(()=>this.getDataThietLapGia(e)))},this.handleChangeGiaBanDeXuat=(a,e,t)=>{let{dataThietLapGia:i}=this.state,n=i.find((e=>e.Id===a.Id)),s=n.BangGias.map(((a,t)=>({...a,GiaBan:parseInt(e)||0,GiaDeXuat:a.GiaDeXuat,statusGiaBan:!0,PTLoiNhuan:"2"===a.IdLoiNhuan?this.tinhPhanTramLoiNhuan(e,a.GiaVon,a.GiaNhapCuoi):0,LoiNhuan:"1"===a.IdLoiNhuan?this.tinhLoiNhuan(e,a.GiaVon,a.GiaNhapCuoi):0})));n={...n,BangGias:s},i[t]=n,this.setState({dataThietLapGia:i})},this.handleChangeGiaVon=(a,e,t)=>{let{dataThietLapGia:i}=this.state,n=i.find((e=>e.Id===a.Id)),s=n.BangGias.map(((t,i)=>({...t,GiaVon:parseInt(e),SanPhamDichVuId:a.Id,GiaDeXuat:this.tinhGiaDeXuat(e,t.PTLoiNhuan,t.LoiNhuan),GiaBan:this.tinhGiaBan(e,t.PTLoiNhuan,t.LoiNhuan)})));n={...n,BangGias:s},i[t]=n,this.setState({dataThietLapGia:i})},this.handlePTLoiNhuanChange=(a,e,t)=>{let{dataThietLapGia:i}=this.state,n=i.find((e=>e.Id===a.Id)),s=n.BangGias.map(((a,e)=>({...a,PTLoiNhuan:parseFloat(t),LoiNhuan:0,GiaDeXuat:this.tinhGiaDeXuat(a.GiaVon,a.GiaNhapCuoi,t,null,a.IdLoiNhuan),GiaBan:this.tinhGiaBan(a.GiaVon,a.GiaNhapCuoi,t,null,a.IdLoiNhuan)})));n={...n,BangGias:s},i[e]=n,this.setState({dataThietLapGia:i})},this.handleLoiNhuanChange=(a,e,t)=>{let{dataThietLapGia:i}=this.state,n=i.find((e=>e.Id===a.Id)),s=n.BangGias.map(((a,e)=>({...a,PTLoiNhuan:0,LoiNhuan:parseFloat(t),GiaDeXuat:this.tinhGiaDeXuat(a.GiaVon,a.GiaNhapCuoi,null,t,a.IdLoiNhuan),GiaBan:this.tinhGiaBan(a.GiaVon,a.GiaNhapCuoi,null,t,a.IdLoiNhuan)})));n={...n,BangGias:s},i[e]=n,this.setState({dataThietLapGia:i})},this.onChangeInputPhanTram=(a,e)=>{let{dataThietLapGia:t}=this.state,i=a.target.value;if(13===a.charCode||e){let a=[];t.map(((e,t)=>{let n=e.BangGias.map(((a,t)=>({...a,SanPhamDichVuId:e.Id,LoiNhuan:0,PTLoiNhuan:parseFloat(i)||0,GiaBan:this.tinhGiaBan(a.GiaVon,a.GiaNhapCuoi,i,null,a.IdLoiNhuan),GiaDeXuat:this.tinhGiaDeXuat(a.GiaVon,a.GiaNhapCuoi,i,null,a.IdLoiNhuan)})));a.push({...e,BangGias:n})})),this.setState({dataThietLapGia:a,PTLoiNhuan:i})}},this.onChangeInputVND=(a,e)=>{let{dataThietLapGia:t}=this.state;if(13===e||"eventBlur"===e){let e=[];t.map(((t,i)=>{let n=t.BangGias.map(((e,i)=>({...e,SanPhamDichVuId:t.Id,LoiNhuan:parseFloat(a)||0,PTLoiNhuan:0,GiaBan:this.tinhGiaBan(e.GiaVon,e.GiaNhapCuoi,null,a),GiaDeXuat:this.tinhGiaDeXuat(e.GiaVon,e.GiaNhapCuoi,null,a)})));e.push({...t,BangGias:n})})),this.setState({dataThietLapGia:e,LoiNhuan:a})}},this.save=()=>{const{dataThietLapGia:a,defaultValueSelect:e}=this.state;let t=[];a.map((a=>{a.BangGias.map((a=>{t.push({SanPhamDichVuId:a.SanPhamDichVuId,PTLoiNhuan:parseFloat(a.PTLoiNhuan),LoiNhuan:parseFloat(a.LoiNhuan),GiaVon:a.GiaVon||0,GiaBan:a.GiaBan})}))}));let i={GiaBanSanPhamDichVus:t,DiemKinhDoanhId:C.b9.DiemKinhDoanhId,BangGiaId:e};(0,m.Pq)("QuanLyKho/NhapGiaBanSanPham","POST",JSON.stringify(i),!1).then((a=>(0,G.nw)(a).then((()=>{this.getDataThietLapGia(e)})))).catch((a=>(0,G.a3)(a)))},this.openDialogBangGia=()=>{this.setState({openDialogBangGia:!0})},this.resetGiaBanDau=()=>{const{defaultValueSelect:a}=this.state;this.getDataThietLapGia(a)},this.onKeyPressSearch=a=>{const{defaultValueSelect:e}=this.state;13===a.charCode&&this.setState({textSeachSanPham:a.target.value},(()=>this.getDataThietLapGia(e)))},this.handleChangeRadioLoiNhuan=a=>{let{dataThietLapGia:e}=this.state,t=[];e.map(((e,i)=>{let n=e.BangGias.map(((t,i)=>({...t,SanPhamDichVuId:e.Id,IdLoiNhuan:a,LoiNhuan:0,PTLoiNhuan:0,GiaBan:t.GiaBan,GiaDeXuat:t.GiaDeXuat})));t.push({...e,BangGias:n})})),this.setState({dataThietLapGia:t,LoiNhuan:0,PTLoiNhuan:0,IdLoiNhuan:a})},this.handleChangeNhomDVT=a=>{const{defaultValueSelect:e}=this.state;this.setState({maNhomDVT:a},(()=>this.getDataThietLapGia(e)))},this.handleChangeNCC=a=>{const{defaultValueSelect:e}=this.state;this.setState({NCC_Id:a},(()=>this.getDataThietLapGia(e)))},this.state={loai:"SanPham",optionsBangGia:[],defaultValueSelect:null,dataThietLapGia:[],openDialogBangGia:!1,dataSeach:[],textSeachSanPham:"",IdLoiNhuan:"1",PTLoiNhuan:"",LoiNhuan:"",dataNhomDVT:[],maNhomDVT:M.D.DongGoi,NCC_Id:null},this.FilterCard=i.createRef(),this.resetGiaTungSP=this.resetGiaTungSP.bind(this)}componentDidMount(){this.getDataBangGia(),this.getNhomDonviTinh()}getDataBangGia(){(0,m.Pq)("Sale_BangGia?$orderby=NgayTao desc","GET",null).then((a=>this.setState({optionsBangGia:a.value},(()=>this.setDefaultValueSelect(this.state.optionsBangGia))))).catch((a=>(0,G.a3)(a)))}async resetGiaTungSP(a,e){const{defaultValueSelect:t,loai:i,dataThietLapGia:n,IdLoiNhuan:s,maNhomDVT:l,NCC_Id:h}=this.state;let o=(await(0,m.Pq)(`QuanLyKho/SanPhams?bangGiaId=${t}&diemKinhDoanhId=${C.b9.DiemKinhDoanhId}&loai=${i}&key=&nhomDonViTinh=${l}&ncc=${h}`,"GET",null,!1)).find((e=>e.Id===a.Id)),d=[];d=o.BangGias?o.BangGias.map(((a,e)=>({...a,PTLoiNhuan:parseFloat(a.PTLoiNhuan)||0,LoiNhuan:parseFloat(a.LoiNhuan)||0,IdLoiNhuan:a.PTLoiNhuan?"2":"1",GiaDeXuat:this.tinhGiaDeXuat(a.GiaVon,a.GiaNhapCuoi,a.PTLoiNhuan,a.LoiNhuan),GiaBan:a.GiaBan||0}))):[{GiaVon:0,GiaBan:0,PTLoiNhuan:0,GiaDeXuat:0,SanPhamDichVuId:a.Id}],o={...o,BangGias:d},n[e]=o,this.setState({dataThietLapGia:n})}render(){const{loai:a,defaultValueSelect:e,dataThietLapGia:t,openDialogBangGia:i,IdLoiNhuan:m,PTLoiNhuan:G,LoiNhuan:x,dataNhomDVT:S,maNhomDVT:L,NCC_Id:b}=this.state;return(0,y.jsxs)(n.A,{children:[(0,y.jsxs)(s.A,{NoTabs:!0,children:[(0,y.jsx)(l.A,{md:"12",className:"p-0 mb-2",children:(0,y.jsx)(g.A,{ref:this.FilterCard,renderButton:(0,y.jsx)("span",{onClick:this.openDialogBangGia,children:(0,y.jsx)(B.A,{fa:"list"})}),type:"dropdown-list",title:"B\u1ea3ng gi\xe1",url:"Sale_BangGia",onChange:a=>this.handleChangeSelect(a),valueField:"Id",textField:"Ten",value:e})}),(0,y.jsx)(l.A,{md:"12",className:"p-0 mb-2",children:(0,y.jsx)(g.A,{type:"radio-list",title:"Nh\xf3m \u0111\u01a1n v\u1ecb t\xednh",data:S,value:L,onChange:(a,e)=>this.handleChangeNhomDVT(e)})}),(0,y.jsx)(l.A,{md:"12",className:"p-0 mb-2",children:(0,y.jsx)(g.A,{type:"dropdown-list",title:"Nh\xe0 cung c\u1ea5p",placeholder:"Ch\u1ecdn nh\xe0 cung c\u1ea5p",url:"DM_LienHe",where:"NhomLienHe_Id eq 'nhacungcap'",valueField:"Id",textField:"Ten",value:b,onChange:a=>this.handleChangeNCC(a)})}),(0,y.jsx)(l.A,{md:"12",className:"p-0 mb-2",children:(0,y.jsx)(g.A,{type:"textbox",title:"T\xecm ki\u1ebfm s\u1ea3n ph\u1ea9m",placeholder:"T\xecm ki\u1ebfm theo m\xe3 ho\u1eb7c t\xean s\u1ea3n ph\u1ea9m",onKeyPress:a=>this.onKeyPressSearch(a)})}),(0,f.EP)()?null:(0,y.jsx)(l.A,{md:"12",className:"p-0 mb-2",children:e&&(0,y.jsx)(g.A,{type:"radio-list",title:"Lo\u1ea1i",dataCountExt:{urlExt:`SanPham/ListSanPhamTheoBangGia?bangGiaId=${e}&nhomSanPham=null&diemKinhDoanhId=${C.b9.DiemKinhDoanhId}`,filterBy:"Loai",filterBy2:"TrangThaiTonKho"},data:[{label:"H\xe0ng h\xf3a ",value:"SanPham"},{label:"Th\xe0nh ph\u1ea9m ",value:"ThanhPham"},{label:"D\u1ecbch v\u1ee5 ",value:"DichVu"}],value:a,onChange:(a,e)=>this.onChangeLoai(e)})})]}),(0,y.jsxs)(T.A,{children:[(0,y.jsxs)("div",{className:"tieu-de",children:[(0,y.jsx)("span",{className:"tieu-de-thiet-lap-gia",children:(0,y.jsx)("b",{children:"Thi\u1ebft l\u1eadp gi\xe1"})}),t&&0!==t.length&&(0,y.jsx)("span",{className:"input-all-ptln",children:(0,y.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,y.jsxs)(h.A,{children:[(0,y.jsx)(o.A,{style:{padding:0,border:0,backgroundColor:"#fff"},children:(0,y.jsx)("div",{className:"form-control form-control-sm",style:{width:190,textAlign:"right"},children:(0,f.vv)(G||x||0)})}),(0,y.jsx)(d.A,{children:(0,y.jsxs)("div",{style:{width:240,padding:10},children:[(0,y.jsx)(R.A,{data:K,value:m,onChange:a=>this.handleChangeRadioLoiNhuan(a)}),(0,y.jsx)("div",{style:{marginTop:10},children:"1"===m?(0,y.jsx)(N(),{ref:this.inputChietKhauPTGiamGia,className:"form-control form-control-sm",autoFocus:!0,placeholder:"0",min:"0",onFocus:a=>a.target.select(),value:x||0,thousandSeparator:".",decimalSeparator:",",onValueChange:a=>{const{value:e}=a;this.onChangeInputVND(e)},onKeyDown:a=>this.onChangeInputVND(a.target.value.split(".").join(""),a.keyCode),onBlur:a=>this.onChangeInputVND(a.target.value.split(".").join(""),"eventBlur")}):(0,y.jsx)(I.YI,{onBlur:a=>this.onChangeInputPhanTram(a,"eventBlur"),onFocus:a=>a.target.select(),onKeyPress:a=>this.onChangeInputPhanTram(a),placeholder:"Nh\u1eadp m\u1ee9c (%) l\u1ee3i nhu\u1eadn",defaultValue:G,autoFocus:!0})})]})})]})," ",(0,y.jsx)("span",{style:{fontSize:10,paddingLeft:5},children:(0,y.jsxs)("b",{children:["1"===m?"(VN\u0110)":"(%)"," "]})})]})}),(0,y.jsxs)(r.A,{color:"link",size:"sm",onClick:this.resetGiaBanDau,children:[(0,y.jsx)(B.A,{fa:"repeat"})," ","\u0110\u1eb7t l\u1ea1i"]})]}),(0,y.jsxs)(D.A,{className:"card-thiet-lap-gia",children:[(0,y.jsx)(c.A,{style:{padding:0},children:(0,y.jsx)("div",{className:"table-thiet-lap-gia",children:(0,y.jsxs)(u.A,{size:"sm",bordered:!0,children:[(0,y.jsx)("thead",{children:(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{className:"th-hinh-anh",children:"H\xccNH \u1ea2NH"}),(0,y.jsx)("th",{className:"th-ma-sp",children:"M\xc3 SP"}),(0,y.jsx)("th",{className:"th-ten-sp",children:"T\xcaN SP"}),(0,y.jsx)("th",{className:"th-gia-von",children:(0,f.EP)()?"GI\xc1 NH\u1eacP CU\u1ed0I":"GI\xc1 V\u1ed0N"}),(0,y.jsx)("th",{className:"th-loi-nhuan",children:"L\u1ee2I NHU\u1eacN"}),(0,y.jsx)("th",{className:"th-gia-ban",children:"GI\xc1 B\xc1N"}),(0,y.jsx)("th",{className:"th-dvt",children:"\u0110VT"}),(0,y.jsx)("th",{})]})}),(0,y.jsx)("tbody",{children:t&&0!==t.length?t.map(((e,t)=>(0,y.jsxs)("tr",{children:[(0,y.jsx)("td",{className:"text-center",children:(0,y.jsx)("img",{width:"50",height:"50",src:e.HinhAnh?`${C.Eh+e.HinhAnh}`:"assets/default.jpg",alt:""})}),(0,y.jsx)("td",{children:e.MaSanPham}),(0,y.jsx)("td",{children:e.TenSanPham}),(0,y.jsx)("td",{className:"text-right",children:"SanPham"!==a?e.BangGias.map(((a,i)=>(0,y.jsx)(N(),{className:"form-control form-control-sm",placeholder:"0",min:"0",onFocus:a=>a.target.select(),value:a.GiaVon||0,thousandSeparator:".",decimalSeparator:",",onValueChange:a=>{const{value:i}=a;this.handleChangeGiaVon(e,i,t)}},i))):e.BangGias.map((a=>(0,f.vv)((0,f.EP)()?a.GiaNhapCuoi:a.GiaVon)))}),(0,y.jsx)("td",{children:e.BangGias.map(((a,i)=>(0,y.jsxs)(y.Fragment,{children:["2"===a.IdLoiNhuan?(0,y.jsx)(I.YI,{style:{width:"80%",display:"inline-block"},placeholder:"0",min:"0",value:a.PTLoiNhuan,onFocus:a=>a.target.select(),onChange:a=>this.handlePTLoiNhuanChange(e,t,a.target.value)},i):(0,y.jsx)(N(),{style:{width:"80%",display:"inline-block"},className:"form-control form-control-sm",placeholder:"0",min:"0",onFocus:a=>a.target.select(),value:a.LoiNhuan||0,thousandSeparator:".",decimalSeparator:",",onValueChange:a=>{const{value:i}=a;this.handleLoiNhuanChange(e,t,i)}},i),(0,y.jsx)("span",{style:{fontSize:11,fontWeight:500},children:a.PTLoiNhuan?"(%)":"(VN\u0110)"})]})))}),(0,y.jsx)("td",{children:e.BangGias.map(((a,i)=>(0,y.jsxs)("div",{children:[(0,y.jsx)(N(),{className:"form-control form-control-sm",placeholder:"0",min:"0",onFocus:a=>a.target.select(),value:a.statusGiaBan||a.GiaBan?a.GiaBan:a.GiaDeXuat,thousandSeparator:".",decimalSeparator:",",onValueChange:a=>{const{value:i}=a;this.handleChangeGiaBanDeXuat(e,i,t)}}),(0,y.jsx)("span",{style:{color:"blue",display:"block",fontSize:"12px"},children:(0,y.jsxs)("i",{children:["Gi\xe1 \u0111\u1ec1 xu\u1ea5t: ",(0,f.vv)(a.GiaDeXuat)]})})]},i)))}),(0,y.jsx)("td",{children:e.DonViTinh}),(0,y.jsx)("td",{children:(0,y.jsx)(r.A,{color:"link",onClick:()=>this.resetGiaTungSP(e,t),children:(0,y.jsx)(B.A,{fa:"repeat"})})})]},t))):(0,y.jsx)("tr",{children:(0,y.jsx)("td",{style:{padding:0,border:"none"},children:(0,y.jsxs)("div",{className:"td-no-product",children:[(0,y.jsx)("img",{style:{width:"35%"},src:"assets/default-product.png",alt:""}),(0,y.jsx)("span",{children:"Kh\xf4ng c\xf3 h\xe0ng h\xf3a"})]})})})})]})})}),(0,y.jsx)(p.A,{style:{textAlign:"right",padding:"5px 13px"},children:(0,y.jsxs)(r.A,{disabled:0===t.length,style:{width:"10%",fontSize:15,fontWeight:"bold",cursor:0!==t.length?"pointer":"no-drop"},size:"sm",color:"success",onClick:this.save,children:[(0,y.jsx)(B.A,{fa:"save"})," ","L\u01b0u"]})})]})]}),i&&(0,y.jsx)(F,{getDataBangGia:()=>this.getDataBangGia(),updateCallback:()=>this.FilterCard.current.reLoadDataDropDownList(),deleteCallback:()=>this.FilterCard.current.reLoadDataDropDownList(),addCallback:()=>this.FilterCard.current.reLoadDataDropDownList(),open:i,onClose:()=>this.setState({openDialogBangGia:!1})})]})}}class E extends i.Component{render(){return(0,y.jsx)(X,{})}}}}]);