????

Your IP : 3.15.158.138


Current Path : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/
Upload File :
Current File : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/8905.2d79a2bf.chunk.js

"use strict";(self.webpackChunkgdt=self.webpackChunkgdt||[]).push([[8905],{64469:(e,n,t)=>{t.r(n),t.d(n,{default:()=>b});var o=t(9950),i=t(18649),r=t(16328),a=t(33151),l=t(68879),s=t(53744),h=t(93047),c=t(3291),d=t(97159),u=t(4370),g=t(67116),f=t(36841),p=t(44414);const m=o.lazy((()=>t.e(2660).then(t.bind(t,72660))));class b extends o.Component{constructor(e){super(e),this.state={diemKinhDoanhIdCurrent:null,dataDiemKinhDoanh:null}}componentDidMount(){s.b9&&this.setState({diemKinhDoanhIdCurrent:s.b9.DiemKinhDoanhId}),this.getDataDiemKinhDoanh()}getCauHinhBanHang(){return new Promise(((e,n)=>{let t=!1;s.rz?e(t):(0,u.px)("CauHinh_BanHangs?$select=XuatHangTuDong, MoHinhKinhDoanh_Id","GET",null).then((e=>{t=!0,localStorage.setItem(s.tY,JSON.stringify({XuatHangTuDong:e.value[0].XuatHangTuDong,MoHinhKinhDoanh_Id:e.value[0].MoHinhKinhDoanh_Id}))})).catch((e=>(0,g.a3)("Kh\xf4ng th\u1ec3 l\u1ea5y d\u1eef li\u1ec7u C\u1ea5u h\xecnh b\xe1n h\xe0ng","Th\xf4ng b\xe1o"))).finally((()=>e(t)))}))}getCauHinhKhac(){return new Promise(((e,n)=>{let t=!1;s.Tq?e(t):(0,u.Pq)("DonVi_CauHinhs/LayCauHinhTheoDonVi?donViId=".concat(s.lg.IDDonVi),"GET",null,!1).then((e=>{t=!0;let n={};e.result.length?(e.result.forEach(((e,t)=>{n={...n,[e.MaCauHinh]:e.GiaTri}})),localStorage.setItem(s.td,JSON.stringify(n))):t=!1})).catch((e=>(0,g.a3)("Kh\xf4ng th\u1ec3 l\u1ea5y d\u1eef li\u1ec7u C\u1ea5u h\xecnh kh\xe1c","Th\xf4ng b\xe1o"))).finally((()=>e(t)))}))}getDataDiemKinhDoanh(){return new Promise(((e,n)=>{let t=!1;"dieuhanh"===s.lg.MaVaiTro?(0,u.Pq)("DiemKinhDoanhs?$expand=DM_Kho&$select=Id,Ten,DM_Kho/Id,DM_Kho/Ten,DM_Kho/IsKhoTong","GET",null).then((n=>{this.setState({dataDiemKinhDoanh:n.value}),s.b9||(t=!0,localStorage.setItem(s.Rs,JSON.stringify({DiemKinhDoanhId:n.value[0].Id,TenDiemKinhDoanh:n.value[0].Ten,Kho_Id:n.value[0].DM_Kho[0].Id,IsKhoTong:n.value[0].DM_Kho[0].IsKhoTong})),e(t),window.location.reload())})).catch((e=>(0,g.a3)("Kh\xf4ng th\u1ec3 l\u1ea5y d\u1eef li\u1ec7u \u0110i\u1ec3m kinh doanh","Th\xf4ng b\xe1o"))).finally((()=>e(t))):(s.b9||(t=!0,localStorage.setItem(s.Rs,JSON.stringify({DiemKinhDoanhId:s.lg.DiemKinhDoanhId,TenDiemKinhDoanh:s.lg.TenDiemKinhDoanh,Kho_Id:s.lg.KhoId,IsKhoTong:s.lg.IsKhoTong}))),e(t))}))}setDiemKinhDoanh(e){e&&this.setState({diemKinhDoanhIdCurrent:e},(()=>{(0,u.Pq)("DiemKinhDoanhs?$expand=DM_Kho&$select=Id,Ten,DM_Kho/Id,DM_Kho/Ten,DM_Kho/IsKhoTong&$filter=Id eq ".concat(e),"GET",null).then((e=>{try{this.setLocalStorage({DiemKinhDoanhId:e.value[0].Id,TenDiemKinhDoanh:e.value[0].Ten||null,Kho_Id:e.value[0].DM_Kho.length>0?e.value[0].DM_Kho[0].Id:null,IsKhoTong:e.value[0].DM_Kho.length>0&&e.value[0].DM_Kho[0].IsKhoTong})}catch(n){}})).catch((e=>(0,g.a3)("Kh\xf4ng th\u1ec3 l\u1ea5y d\u1eef li\u1ec7u \u0111i\u1ec3m kinh doanh","Th\xf4ng b\xe1o")))}))}setLocalStorage(e){localStorage.setItem(s.Rs,JSON.stringify(e)),"dieuhanh"===s.lg.MaVaiTro&&window.location.reload()}render(){const{dataDiemKinhDoanh:e,diemKinhDoanhIdCurrent:n}=this.state;return(0,p.jsxs)("div",{className:"container header-top d-flex bd-highlight",children:[(0,p.jsx)(m,{}),(0,p.jsx)("div",{className:"flex-grow-1 bd-highlight",children:(0,p.jsx)("a",{className:"logo",href:s.lg.TrangChu||"/",children:(0,f.EP)()?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("img",{src:"/assets/Logo/qfoody21.png",width:"auto",height:"35",alt:"Qu\u1ea3n l\xfd b\xe1n h\xe0ng"}),(0,p.jsx)("div",{className:"logo-r",children:(0,p.jsx)("div",{className:"logo-text",children:"GDT-WAD"})})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("img",{src:"/assets/Logo/qfoody21.png",width:"auto",height:"35",alt:"Qu\u1ea3n l\xfd b\xe1n h\xe0ng"}),(0,p.jsx)("div",{className:"logo-r",style:{display:"flex",alignItems:"center"},children:(0,p.jsx)("div",{className:"logo-text",children:"Target POS"})})]})})}),"admin_he_thong"!==s.lg.Code&&(0,p.jsxs)(i.A,{direction:"down",className:"select-chi-nhanh button-drop-right bd-highlight",children:[e?(0,p.jsx)(d.A,{options:e,valueField:"Id",textField:"Ten",placeholder:"Ch\u1ecdn \u0111i\u1ec3m kinh doanh",value:n,onChange:e=>this.setDiemKinhDoanh(e)}):(0,p.jsx)("input",{type:"text",className:"form-control-sm form-control",readOnly:!0,defaultValue:s.lg.TenDiemKinhDoanh}),(0,p.jsx)("i",{className:"fa fa-map-marker"})]}),(0,p.jsxs)(i.A,{direction:"down",className:"button-drop-right bd-highlight",children:[(0,p.jsxs)(r.A,{children:[(0,p.jsx)("div",{className:"mr-2",style:{fontSize:11,fontWeight:"500",textAlign:"right"},children:s.lg.TenHienThi}),(0,p.jsx)("img",{src:s.lg.Thumbnail50?"".concat(s.Eh).concat(s.lg.Thumbnail50):"assets/profile-w.jpg",className:"img-avatar",width:30,height:30,alt:"gdtvietnam"})]}),(0,p.jsxs)(a.A,{right:!0,children:[(0,p.jsxs)(l.A,{tag:h.N_,to:"/thong-tin-tai-khoan",children:[(0,p.jsx)("i",{className:"fa fa-user-circle-o"})," Th\xf4ng tin ng\u01b0\u1eddi d\xf9ng"]}),(0,p.jsxs)(l.A,{onClick:e=>(0,c.Mw)(),children:[(0,p.jsx)("i",{className:"fa fa-sign-out"})," \u0110\u0103ng xu\u1ea5t"]})]})]})]})}}},5338:(e,n,t)=>{t.d(n,{A:()=>g});var o=t(58168),i=t(77387),r=t(9417),a=t(64467),l=t(9950),s=t(2241),h=t.n(s),c=t(71832),d=t(32602),u=function(e){function n(){for(var n,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return n=e.call.apply(e,[this].concat(o))||this,(0,a.A)((0,r.A)((0,r.A)(n)),"refHandler",(function(e){(0,d.cZ)(n.props.innerRef,e),(0,d.oV)(n.props.setReferenceNode,e)})),n}(0,i.A)(n,e);var t=n.prototype;return t.componentWillUnmount=function(){(0,d.cZ)(this.props.innerRef,null)},t.render=function(){return h()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),(0,d.vq)(this.props.children)({ref:this.refHandler})},n}(l.Component);function g(e){return l.createElement(c.$$.Consumer,null,(function(n){return l.createElement(u,(0,o.A)({setReferenceNode:n},e))}))}},18849:(e,n,t)=>{t.d(n,{A:()=>m});var o=t(58168),i=t(98587),r=t(9417),a=t(77387),l=t(9950),s=t(11942),h=t.n(s),c=t(48738),d=t.n(c),u=t(44208),g=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],f={active:h().bool,"aria-label":h().string,block:h().bool,color:h().string,disabled:h().bool,outline:h().bool,tag:u.Wx,innerRef:h().oneOfType([h().object,h().func,h().string]),onClick:h().func,size:h().string,children:h().node,className:h().string,cssModule:h().object,close:h().bool},p=function(e){function n(n){var t;return(t=e.call(this,n)||this).onClick=t.onClick.bind((0,r.A)(t)),t}(0,a.A)(n,e);var t=n.prototype;return t.onClick=function(e){if(!this.props.disabled)return this.props.onClick?this.props.onClick(e):void 0;e.preventDefault()},t.render=function(){var e=this.props,n=e.active,t=e["aria-label"],r=e.block,a=e.className,s=e.close,h=e.cssModule,c=e.color,f=e.outline,p=e.size,m=e.tag,b=e.innerRef,v=(0,i.A)(e,g);s&&"undefined"===typeof v.children&&(v.children=l.createElement("span",{"aria-hidden":!0},"\xd7"));var D="btn"+(f?"-outline":"")+"-"+c,y=(0,u.qO)(d()(a,{close:s},s||"btn",s||D,!!p&&"btn-"+p,!!r&&"btn-block",{active:n,disabled:this.props.disabled}),h);v.href&&"button"===m&&(m="a");var x=s?"Close":null;return l.createElement(m,(0,o.A)({type:"button"===m&&v.onClick?"button":void 0},v,{className:y,ref:b,onClick:this.onClick,"aria-label":t||x}))},n}(l.Component);p.propTypes=f,p.defaultProps={color:"secondary",tag:"button"};const m=p},68879:(e,n,t)=>{t.d(n,{A:()=>b});var o=t(58168),i=t(98587),r=t(9417),a=t(77387),l=t(9950),s=t(11942),h=t.n(s),c=t(48738),d=t.n(c),u=t(66609),g=t(44208),f=["className","cssModule","divider","tag","header","active","text"],p={children:h().node,active:h().bool,disabled:h().bool,divider:h().bool,tag:g.Wx,header:h().bool,onClick:h().func,className:h().string,cssModule:h().object,toggle:h().bool,text:h().bool},m=function(e){function n(n){var t;return(t=e.call(this,n)||this).onClick=t.onClick.bind((0,r.A)(t)),t.getTabIndex=t.getTabIndex.bind((0,r.A)(t)),t}(0,a.A)(n,e);var t=n.prototype;return t.getRole=function(){return"listbox"===this.context.menuRole?"option":"menuitem"},t.onClick=function(e){var n=this.props,t=n.disabled,o=n.header,i=n.divider,r=n.text;t||o||i||r?e.preventDefault():(this.props.onClick&&this.props.onClick(e),this.props.toggle&&this.context.toggle(e))},t.getTabIndex=function(){var e=this.props,n=e.disabled,t=e.header,o=e.divider,i=e.text;return n||t||o||i?"-1":"0"},t.render=function(){var e=this.getTabIndex(),n=e>-1?this.getRole():void 0,t=(0,g.cJ)(this.props,["toggle"]),r=t.className,a=t.cssModule,s=t.divider,h=t.tag,c=t.header,u=t.active,p=t.text,m=(0,i.A)(t,f),b=(0,g.qO)(d()(r,{disabled:m.disabled,"dropdown-item":!s&&!c&&!p,active:u,"dropdown-header":c,"dropdown-divider":s,"dropdown-item-text":p}),a);return"button"===h&&(c?h="h6":s?h="div":m.href?h="a":p&&(h="span")),l.createElement(h,(0,o.A)({type:"button"===h&&(m.onClick||this.props.toggle)?"button":void 0},m,{tabIndex:e,role:n,className:b,onClick:this.onClick}))},n}(l.Component);m.propTypes=p,m.defaultProps={tag:"button",toggle:!0},m.contextType=u.r;const b=m},43145:(e,n,t)=>{function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}t.d(n,{A:()=>o})},92901:(e,n,t)=>{t.d(n,{A:()=>r});var o=t(20816);function i(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,o.A)(i.key),i)}}function r(e,n,t){return n&&i(e.prototype,n),t&&i(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}},80045:(e,n,t)=>{t.d(n,{A:()=>i});var o=t(98587);function i(e,n){if(null==e)return{};var t,i,r=(0,o.A)(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)t=a[i],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}},80296:(e,n,t)=>{t.d(n,{A:()=>i});var o=t(27800);function i(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,i,r,a,l=[],s=!0,h=!1;try{if(r=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(o=r.call(t)).done)&&(l.push(o.value),l.length!==n);s=!0);}catch(e){h=!0,i=e}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(h)throw i}}return l}}(e,n)||(0,o.A)(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},45458:(e,n,t)=>{t.d(n,{A:()=>r});var o=t(43145);var i=t(27800);function r(e){return function(e){if(Array.isArray(e))return(0,o.A)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},27800:(e,n,t)=>{t.d(n,{A:()=>i});var o=t(43145);function i(e,n){if(e){if("string"===typeof e)return(0,o.A)(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?(0,o.A)(e,n):void 0}}}}]);