????
Current Path : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/ |
Current File : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/6552.38757aa6.chunk.js |
"use strict";(self.webpackChunkgdt=self.webpackChunkgdt||[]).push([[6552],{40232:(e,n,t)=>{t.d(n,{A:()=>c});var i=t(9950),l=t(4370),a=t(43126),s=(t(14944),t(73613)),r=t(44414);const c=e=>{let{list:n,choose:t,onChangGroup:i,hiddenDonGia:l,urlGroup:s,optionGroup:c,hiddenGroupAll:h,hiddenInputSearch:d,dataGroup:u,valueGroup:m,hiddenGrouping:f,renderChild:x,isSearchQR:g}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"form-search-list-qr",children:[x,(0,r.jsx)(o,{hidden:f,onChange:e=>i(e),url:s,option:c,hiddenAll:h,data:u,value:m}),!d&&(0,r.jsx)(a.y,{hiddenDonGia:l,list:n,choose:t,isSearchQR:g})]})})},o=e=>{let{onChange:n,url:t,option:a,hiddenAll:c,data:o,value:h,hidden:d}=e;const[u,m]=(0,i.useState)(null!==o&&void 0!==o&&o.length?o:[]),[f,x]=(0,i.useState)(null);return(0,i.useEffect)((()=>{(null===o||void 0===o||!o.length)&&(0,l.Pq)(t||"DM_NhomSanPhamDichVu?$filter=Display eq true").then((e=>m(e.value)))}),[null===o||void 0===o?void 0:o.length,t]),(0,i.useEffect)((()=>{h&&x(h),h&&n(h),o&&m(o)}),[o,n,h]),(0,i.useEffect)((()=>{c&&u.length&&null===f&&x(u[0][(null===a||void 0===a?void 0:a.field)||"Id"])}),[f,c,u,n,null===a||void 0===a?void 0:a.field]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{style:{gap:"0.1rem"},className:"form-groping-spdv ".concat(d?"d-none":"d-flex"),children:[!c&&(0,r.jsx)("div",{onClick:()=>{n(null),x(null)},className:"item-groping-spdv ".concat(null===f?"active":""," "),children:"T\u1ea5t c\u1ea3"}),u.map((e=>(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{onClick:()=>{n(e[(null===a||void 0===a?void 0:a.field)||"Id"]),x(e[(null===a||void 0===a?void 0:a.field)||"Id"])},className:"item-groping-spdv ".concat(f===e[(null===a||void 0===a?void 0:a.field)||"Id"]?"active":""," "),children:[e.icon&&(0,r.jsx)(s.A,{style:{marginRight:"0.5rem"},fa:e.icon}),e[(null===a||void 0===a?void 0:a.name)||"Ten"]]},e[(null===a||void 0===a?void 0:a.field)||"Id"])}))),u.length>1&&(0,r.jsx)("div",{className:"text-xem-them-groping-spdv item-groping-spdv font-weight-normal",children:"Xem th\xeam..."})]})})}},94975:(e,n,t)=>{t.r(n),t.d(n,{OutlineChoosePro:()=>j,default:()=>p});var i=t(9950),l=(t(14944),t(67116)),a=t(4370),s=t(53744),r=t(68315),c=t(17750),o=t(40232),h=t(17062),d=t(65476),u=t(73613),m=t(3291),f=t(44414);const x=()=>{const[e,n]=(0,i.useState)(!1),t=(0,i.useRef)();let l=(0,h.W6)();return(0,d.W)(t,(()=>n(!1))),(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)("div",{ref:t,className:"outline-menu-header-left-list-qr",children:[(0,f.jsx)("div",{onClick:()=>n((e=>!e)),className:"btn-menu-header-left-list-qr",children:(0,f.jsx)(u.A,{style:{fontSize:"17px"},fa:"bars"})}),e&&(0,f.jsxs)("div",{className:"list-menu-header-left-list-qr",children:[(0,f.jsxs)("div",{onClick:()=>l.push("/tong-quan"),className:"item-menu-header-left-list-qr",children:[(0,f.jsx)(u.A,{fa:"list-alt"})," T\u1ed5ng quan"]}),(0,f.jsxs)("div",{onClick:()=>l.push("/thong-tin-tai-khoan"),className:"item-menu-header-left-list-qr",children:[(0,f.jsx)(u.A,{fa:"user-circle-o"})," Th\xf4ng tin ng\u01b0\u1eddi d\xf9ng"]}),(0,f.jsxs)("div",{className:"item-menu-header-left-list-qr",onClick:m.Mw,children:[(0,f.jsx)(u.A,{fa:"sign-out"})," \u0110\u0103ng xu\u1ea5t"]})]})]})})};var g=t(18849);const p=()=>{const[e,n]=(0,i.useState)([]),[t,h]=(0,i.useState)([]),[d,u]=(0,i.useState)(null);(0,i.useEffect)((()=>{(0,a.Pq)("SanPham/DanhSachSanPhamByBangGia?nhomSanPham=".concat(d||"null","&diemKinhDoanhId=").concat(null===s.b9||void 0===s.b9?void 0:s.b9.DiemKinhDoanhId,"&nhomDonviTinh="),"GET",null,!1).then((e=>{n(e)})).catch((e=>(0,l.a3)(e)))}),[d]);const m=e=>{h((n=>[...n,e]))};return(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(j,{children:[(0,f.jsx)(o.A,{list:e,choose:m,onChangGroup:u}),(0,f.jsx)(r.Ay,{list:e,choose:m}),(0,f.jsx)(c.Ay,{list:t,remove:e=>{h((n=>n.filter((n=>n.Id!==e.Id))))}})]})})},j=e=>{let{children:n,numberLayout:t,style:l,hiddenMenu:a,close:s}=e;const[r,c]=(0,i.useState)("");return(0,i.useEffect)((()=>{let e=[];for(let n=1;n<=t;n++)e.push("1fr");c(t?e.join(" "):null)}),[t]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{style:{...l,gridTemplateColumns:r||""},className:"form-in-ma-vach-qr",children:n}),!a&&(0,f.jsx)(x,{}),s&&(0,f.jsx)("div",{className:"outline-menu-header-left-list-qr",children:(0,f.jsx)(g.A,{onClick:s,className:"btn-menu-header-left-list-qr border-0",children:(0,f.jsx)(u.A,{style:{fontSize:"17px"},fa:"angle-double-right"})})})]})}},43981:(e,n,t)=>{t.d(n,{A:()=>p});var i=t(9950),l=t(37746),a=t(73613),s=t(17750),r=t(68315),c=t(4485),o=t(44414);const h=e=>{let{listMonAn:n,dataDSCB:t,reset:i}=e;return(0,o.jsx)(o.Fragment,{children:t&&(0,o.jsx)("div",{className:"form-body-nlcb-left",children:(0,o.jsx)(c.A,{data:t,reset:i})})})},d=e=>{let{listNL:n,layout:t,listMonAn:i}=e;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"form-body-nlcb-right",children:[(0,o.jsxs)("div",{style:{marginTop:"2rem"},children:[(0,o.jsx)("h4",{className:"font-weight-bold",children:"Danh s\xe1ch m\xf3n \u0103n"}),(0,o.jsx)("p",{className:"text-secondary",children:"H\u1ec7 th\u1ed1ng s\u1ebd t\u1ef1 \u0111\u1ed9ng t\xednh to\xe1n c\xe1c Nguy\xean li\u1ec7u c\u1ea7n, v\xe0 s\u1ed1 l\u01b0\u1ee3ng \u0111\u1ec3 t\u1ea1o ra c\xe1c m\xf3n \u0103n \u0111\xe3 \u0111\u01b0\u1ee3c ch\u1ecdn."}),(0,o.jsx)("div",{className:"outline-form-body-list-nlcb-right",children:(0,o.jsx)("div",{className:"table-nlcb-body-right",children:i.map(((e,n)=>{var t;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"item-mon-an-nlcb-custom",children:[(0,o.jsx)("h6",{className:"text-muted",children:n+1}),(0,o.jsx)(r.RB,{url:e.HinhAnh150,style:{width:"3rem",borderRadius:"50%"}}),(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{style:{fontSize:"9px"},className:"text-muted mb-1",children:"T\xean m\xf3n \u0103n"}),(0,o.jsx)("h6",{className:"font-weight-bold",style:{color:"#0092db"},children:null===e||void 0===e?void 0:e.TenSanPham})]}),(0,o.jsxs)("div",{children:[(0,o.jsxs)("p",{style:{fontSize:"9px"},className:"text-muted mb-1",children:[(0,o.jsx)(a.A,{fa:"filter"}),"S\u1ed1 l\u01b0\u1ee3ng"]}),(0,o.jsx)("h6",{children:null===e||void 0===e?void 0:e.SoLuong})]}),(0,o.jsxs)("div",{children:[(0,o.jsxs)("p",{style:{fontSize:"9px"},className:"text-muted mb-1",children:[(0,o.jsx)(a.A,{fa:"filter"}),"\u0110\u01a1n v\u1ecb t\xednh"]}),(0,o.jsx)("h6",{children:(null===e||void 0===e||null===(t=e.DM_DonViTinh)||void 0===t?void 0:t.Ten)||e.DonViTinh})]})]},n)})}))})})]}),null!==n&&void 0!==n&&n.length?(0,o.jsx)("div",{className:"outline-form-body-list-nlcb-right",children:2===t?(0,o.jsx)("div",{className:"form-body-list-nlcb-right",children:n.map((e=>(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(m,{data:e})})))}):(0,o.jsx)(u,{list:n})}):(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(s.ul,{style:{height:"20rem"},textTitle:"Kh\xf4ng t\xecm th\u1ea5y!",textSecond:"C\xe1c m\xf3n \u0103n ch\u01b0a \u0111\u01b0\u1ee3c \u0111\u1ecbnh l\u01b0\u1ee3ng ho\u1eb7c kh\xf4ng kh\u1edbp v\u1edbi k\u1ebft qu\u1ea3 l\u1ecdc."})})]})})},u=e=>{let{list:n}=e;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"form-table-nlcb-body-right",children:[(0,o.jsx)("h4",{className:"font-weight-bold",children:"Danh s\xe1ch Nguy\xean li\u1ec7u"}),(0,o.jsx)("p",{style:{fontSize:"12.5px"},className:"text-secondary mb-4",children:"B\u1ea1n ch\u1ec9 c\xf3 th\u1ec3 T\u1ea1o l\u1ec7nh ch\u1ebf bi\u1ebfn khi c\xf3 \u0111\u1ee7 s\u1ed1 l\u01b0\u1ee3ng Nguy\xean li\u1ec7u trong kho, H\xe3y ch\u1eafc ch\u1eafn r\u1eb1ng c\xe1c M\xf3n \u0103n \u0111\u1ec1u \u0111\xe3 \u0111\u01b0\u1ee3c \u0111\u1ecbnh l\u01b0\u1ee3ng nh\xe9!"}),(0,o.jsx)("div",{className:"table-nlcb-body-right",children:n.map(((e,n)=>(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"item-table-nlcb-body-right",children:[(0,o.jsx)("p",{className:"mb-0 text-muted d-flex h-100 align-items-center",children:n+1}),(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{style:{fontSize:"9px"},className:"text-muted mb-1",children:"T\xean nguy\xean li\u1ec7u"}),(0,o.jsx)("h6",{className:"font-weight-bold",style:{color:"#0092db"},children:e.TenNguyenVatLieu})]}),(0,o.jsxs)("div",{children:[(0,o.jsxs)("p",{style:{fontSize:"9px"},className:"text-muted mb-1",children:[(0,o.jsx)(a.A,{fa:"balance-scale"})," \u0110VT"]}),(0,o.jsx)("h6",{children:e.DonViTinh})]}),(0,o.jsxs)("div",{children:[(0,o.jsxs)("p",{style:{fontSize:"9px"},className:"text-muted mb-1",children:[(0,o.jsx)(a.A,{fa:"filter"})," S\u1ed1 l\u01b0\u1ee3ng"]}),(0,o.jsxs)("h6",{children:[e.SoLuongCan," ",(0,o.jsx)("span",{className:"text-lowercase",children:e.DonViTinh})]})]}),(0,o.jsx)("div",{children:(0===e.TonKho||e.TonKho)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("p",{style:{fontSize:"9px"},className:"text-muted mb-1",children:[(0,o.jsx)(a.A,{fa:"server"})," T\u1ed3n kho"]}),(0,o.jsx)("h6",{children:e.TonKho})]})}),(0,o.jsxs)("div",{className:"pl-3",children:[(0,o.jsxs)("p",{style:{fontSize:"9px"},className:"text-muted mb-1",children:[(0,o.jsx)(a.A,{fa:"edit"})," Ghi Ch\xfa"]}),(0,o.jsxs)("h6",{className:"mt-2",children:[" ",e.GhiChu?(0,o.jsx)("span",{className:"text-ghi-chu-nlcb text-ghi-chu-nlcb-error",children:e.GhiChu}):(0,o.jsx)("span",{className:"text-ghi-chu-nlcb text-ghi-chu-nlcb-success",children:"\u0110\u1ee7 s\u1ed1 l\u01b0\u1ee3ng!"})]})]})]})})))})]})})},m=e=>{let{data:n}=e;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"item-list-nlcb-right",children:[(0,o.jsx)("h5",{className:"font-weight-bold",style:{color:"#3599cb"},children:n.TenNguyenVatLieu}),(0,o.jsxs)("p",{className:"text-secondary mb-3 h6",children:["B\u1ea1n c\u1ea7n ",n.SoLuongCan," ",(0,o.jsx)("span",{className:"text-lowercase",children:n.DonViTinh})," ",(0,o.jsx)("span",{className:"text-uppercase",children:n.TenNguyenVatLieu})]}),(0,o.jsxs)("div",{className:"form-calculate-quanlity-nlcb ".concat(n.GhiChu?"error":"success"),children:[(0,o.jsx)("div",{className:"icon-calculate-quanlity-nlcb",children:(0,o.jsx)(a.A,{fa:n.GhiChu?"times":"check"})}),(0,o.jsx)("span",{style:{fontSize:"12.5px"},children:n.GhiChu?n.GhiChu:"\u0110\u1ee7 s\u1ed1 l\u01b0\u1ee3ng!"})]}),(0,o.jsxs)("div",{style:{gap:"0.5rem"},className:"d-flex mt-3",children:[(0,o.jsxs)("div",{className:"item-info-list-nlcb-right",children:[(0,o.jsx)("p",{className:"mb-1 h5 d-flex w-100 justify-content-center",children:(0,o.jsx)("strong",{children:n.SoLuongCan})}),(0,o.jsxs)("div",{style:{gap:"0.1rem"},className:"d-flex align-items-center w-100 justify-content-center",children:[(0,o.jsx)(a.A,{fa:"filter"}),"S\u1ed1 l\u01b0\u1ee3ng"]})]}),(0,o.jsxs)("div",{className:"item-info-list-nlcb-right",children:[(0,o.jsx)("p",{className:"mb-1 h5 d-flex w-100 justify-content-center",children:(0,o.jsx)("strong",{children:n.DonViTinh})}),(0,o.jsxs)("div",{style:{gap:"0.1rem"},className:"d-flex align-items-center w-100 justify-content-center",children:[(0,o.jsx)(a.A,{fa:"balance-scale"}),"\u0110VT"]})]}),(0===n.TonKho||n.TonKho)&&(0,o.jsxs)("div",{className:"item-info-list-nlcb-right",children:[(0,o.jsx)("p",{className:"mb-1 h5 d-flex w-100 justify-content-center",children:(0,o.jsx)("strong",{children:n.TonKho})}),(0,o.jsxs)("div",{style:{gap:"0.1rem"},className:"d-flex align-items-center w-100 justify-content-center",children:[(0,o.jsx)(a.A,{fa:"server"}),"T\u1ed3n kho"]})]})]})]})})},f=e=>{let{listMonAn:n,listNL:t,layout:i,dataDSCB:l,reset:a}=e;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"form-body-list-nlcb",children:[(0,o.jsx)(h,{reset:a,listMonAn:n,dataDSCB:l}),(0,o.jsx)(d,{layout:i,listNL:t,listMonAn:n})]})})};t(25987);var x=t(18849);const g=e=>{let{close:n,save:t,setLayout:i,layout:l,title:s,isHoanThanh:r,idLuuTam:c,hiddenCheBien:h}=e;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{style:{marginBottom:"1rem",paddingRight:"4rem"},className:"d-flex justify-content-between align-items-center",children:[(0,o.jsxs)("div",{style:{gap:"0.7rem"},className:"d-flex align-items-center text-dark font-weight-bold pr-5",children:[(0,o.jsxs)("h5",{className:"mb-0",children:[" ",null!==s&&void 0!==s&&s.titleMain?null===s||void 0===s?void 0:s.titleMain:"T\u1ea1o l\u1ec7nh ch\u1ebf bi\u1ebfn m\u1edbi"]})," ",(0,o.jsx)("h4",{className:"text-secondary mb-0",children:"|"})," ",(0,o.jsx)("h3",{className:"font-weight-bold mb-0",style:{color:"#008ec7"},children:s.loai})]}),!r&&(0,o.jsxs)("div",{style:{gap:"0.5rem"},className:"d-flex align-items-center",children:[(0,o.jsxs)(x.A,{onClick:()=>t("luutam"),className:"btn-create-processing-orders luu-tam",children:[(0,o.jsx)(a.A,{style:{fontSize:"20px",marginTop:"0.1rem"},fa:"soundcloud"}),c?"C\u1eadp nh\u1eadt phi\u1ebfu l\u01b0u t\u1ea1m":"L\u01b0u t\u1ea1m"]}),!h&&(0,o.jsxs)(x.A,{onClick:()=>t("hoanthanh"),className:"btn-create-processing-orders",children:[(0,o.jsx)(a.A,{style:{fontSize:"20px",marginTop:"0.1rem"},fa:"gg-circle"}),"T\u1ea1o l\u1ec7nh ch\u1ebf bi\u1ebfn"]})]}),(0,o.jsx)("div",{onClick:n,className:"ml-5 btn-close-form-nlcb",children:(0,o.jsx)(a.A,{fa:"times"})})]})})},p=e=>{let{open:n,close:t,listMonAn:a,listNL:s,save:r,dataDSCB:c,title:h,reset:d}=e;const[u,m]=(0,i.useState)(1),[x,p]=(0,i.useState)(s);return(0,i.useEffect)((()=>{null!==s&&void 0!==s&&s.length&&p(s)}),[s]),(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(l.A,{open:n,children:(0,o.jsxs)("div",{className:"form-list-nlcb",children:[(0,o.jsx)(g,{layout:u,setLayout:m,save:r,close:t,idLuuTam:"luutam"===(null===c||void 0===c?void 0:c.TrangThai)?null===c||void 0===c?void 0:c.Id:null,title:h,isHoanThanh:(null===c||void 0===c?void 0:c.PhieuXuatNVL_Id)||(null===c||void 0===c?void 0:c.PhieuNhapThanhPham_Id),hiddenCheBien:s.filter((e=>e.IsThieu_NVL)).length||!s.length}),(0,o.jsx)(f,{layout:u,listMonAn:a,listNL:x,dataDSCB:c,reset:d})]})})})}},81317:(e,n,t)=>{t.d(n,{A:()=>f,H:()=>m});var i=t(9950),l=t(53744),a=t(36841),s=t(85560),r=t(4370),c=t(78873),o=t(67116),h=t(44414);const d=[{field:"Id",hidden:!0},{title:"M\xe3 l\u1ec7nh",field:"Id"},{title:"Ng\xe0y t\u1ea1o",field:"NgayTao",type:"datetime",searchable:!0},{title:"Ng\u01b0\u1eddi t\u1ea1o",field:"NguoiTao",hidden:!0},{title:"Ng\u01b0\u1eddi t\u1ea1o",field:"SYS_TaiKhoan.TenHienThi"},{title:"T\xean chi nh\xe1nh",field:"DM_DiemKinhDoanh.Ten",render:e=>(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("b",{children:e.DM_DiemKinhDoanh.Ten})})},{title:"Lo\u1ea1i",field:"LoaiCheBien",render:e=>"ThanhPham"===e.LoaiCheBien?"Th\xe0nh ph\u1ea9m":"Combo"===e.LoaiCheBien?"Combo":""},{title:"Tr\u1ea1ng th\xe1i",field:"TrangThai",render:e=>(0,h.jsx)(h.Fragment,{children:"luutam"===e.TrangThai?(0,h.jsx)(c.A,{color:"warning",style:{fontSize:"11px"},children:"L\u01b0u t\u1ea1m"}):"hoanthanh"===e.TrangThai?(0,h.jsx)(c.A,{color:"success",style:{fontSize:"11px"},children:"Ho\xe0n th\xe0nh"}):""})},{field:"CheBien_DMTrangThai.Name",hidden:!0},{field:"DM_LoaiSanPham.TenLoai",hidden:!0},{field:"SYS_TaiKhoan.TenHienThi",hidden:!0},{field:"Sale_NhapHang.NgayTao",hidden:!0},{field:"Sale_XuatHang.NgayTao",hidden:!0},{field:"PhieuXuatNVL_Id",hidden:!0},{field:"PhieuNhapThanhPham_Id",hidden:!0},{field:"Sale_XuatHang.MaXuatHang",hidden:!0},{field:"Sale_NhapHang.MaNhapHang",hidden:!0},{field:"Sale_XuatHang.Id",hidden:!0},{field:"Sale_NhapHang.Id",hidden:!0}],u=i.createRef(),m=()=>u.current&&u.current.onQueryChange(),f=e=>{let{setNhomSP:n,setListChoose:t,hidden:i,getListNL:c,onRowClick:f,reset:g}=e;const p=e=>{var i,l,s;i=e.Id,l=e.LoaiCheBien,!(s="hoanthanh"===e.TrangThai)&&n(l),(0,r.Pq)("CheBien_DanhSachThanhPham?$filter=CheBien_Id eq ".concat(i,"&$expand=DM_SanPhamDichVu,DM_SanPhamDichVu/DM_DonViTinh")).then((e=>{let n=[];e.value.length&&e.value.forEach((e=>{n.push({...e.DM_SanPhamDichVu,nhomSP:s?"LuuTam":l,SoLuong:+(0,a.vv)(e.SoLuongCheBien),HinhAnh150:e.DM_SanPhamDichVu.Thumbnail150,DonViTinh:e.DM_SanPhamDichVu.DM_DonViTinh.Ten})})),t(n),s&&(0,r.Pq)("CheBien_DanhSachThanhPhan?$filter=CheBien_Id eq ".concat(i,"&$expand=").concat("ThanhPham"===l?"DM_NguyenVatLieu":"DM_SanPhamDichVu",",DM_DonViTinh")).then((e=>{let n=[];e.value.forEach((e=>{n.push({TenNguyenVatLieu:"ThanhPham"===l?e.DM_NguyenVatLieu.Name:e.DM_SanPhamDichVu.TenSanPham,DonViTinh:e.DM_DonViTinh.Ten,SoLuongCan:(0,a.vv)(e.SoLuongCan)})})),c(n)}))})),f(e)};return(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)("div",{className:"form-list-temporary form-list-choose-pro-qr ".concat(i?"d-none":""),children:[(0,h.jsx)(x,{onClick:e=>g(!1,e)}),(0,h.jsx)(s.A,{url:"CheBiens",where:"DiemKinhDoanh_Id eq ".concat(l.lg.DiemKinhDoanhId),tableRef:u,title:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h4",{children:"Danh s\xe1ch l\u1ec7nh ch\u1ebf bi\u1ebfn"}),(0,h.jsx)("p",{className:"text-secondary",children:"L\u01b0u l\u1ea1i l\u1ecbch s\u1eed c\xe1c l\u1ea7n b\u1ea1n th\u1ef1c hi\u1ec7n c\xe1c thao t\xe1c v\u1ec1 Ch\u1ebf bi\u1ebfn. B\u1ea1n c\xf3 th\u1ec3 t\xecm l\u1ea1i danh s\xe1ch c\xe1c Combo v\xe0 Th\xe0nh ph\u1ea9m \u0111\xe3 l\u01b0u t\u1ea1m tr\u01b0\u1edbc \u0111\xf3."})]}),columns:d,onRowClick:(e,n)=>{p(n)},onEdit:{onClick:(e,n)=>{"luutam"===n.TrangThai?p(n):(0,o.AB)("B\u1ea1n kh\xf4ng th\u1ec3 ch\u1ec9nh s\u1eeda phi\u1ebfu \u0111\xe3 ho\xe0n th\xe0nh!","Th\xf4ng b\xe1o")}},onDelete:{onClick:(e,n)=>{"luutam"===n.TrangThai?(e=>{(0,o.A1)("B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n x\xf3a!","Th\xf4ng b\xe1o").then((()=>{(0,r.Pq)("CheBien/XoaCheBien?cheBienId=".concat(e.Id,"&DiemKinhDoanh_Id=").concat(l.lg.DiemKinhDoanhId),"POST",null,!1).then((e=>{(0,o.nw)("X\xf3a th\xe0nh c\xf4ng!"),m()}))}))})(n):(0,o.AB)("B\u1ea1n kh\xf4ng th\u1ec3 x\xf3a phi\u1ebfu \u0111\xe3 ho\xe0n th\xe0nh!","Th\xf4ng b\xe1o")}},onAdd:{onClick:()=>g(!1,"ThanhPham")}})]})})},x=e=>{let{onClick:n}=e;return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{className:"form-option-them-moi-temporary",children:(0,h.jsxs)("div",{className:"list-option-them-moi-temporary",children:[(0,h.jsx)("div",{onClick:e=>{n("ThanhPham")},className:"item-option-them-moi-temporary",children:"Th\xe0nh ph\u1ea9m"}),(0,h.jsx)("div",{onClick:e=>{n("Combo")},className:"item-option-them-moi-temporary",children:"Combo"})]})})})}},17062:(e,n,t)=>{function i(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var l=t(16673),a=i(t(9950)),s=t(90125);t(11942),t(14783);var r=i(t(67022));function c(){return(c=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)}function o(e,n){e.prototype=Object.create(n.prototype),h(e.prototype.constructor=e,n)}function h(e,n){return(h=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function d(e,n){if(null==e)return{};var t,i,l={},a=Object.keys(e);for(i=0;i<a.length;i++)t=a[i],0<=n.indexOf(t)||(l[t]=e[t]);return l}var u=function(e){function n(){for(var n,t=arguments.length,i=new Array(t),l=0;l<t;l++)i[l]=arguments[l];return(n=e.call.apply(e,[this].concat(i))||this).history=s.createBrowserHistory(n.props),n}return o(n,e),n.prototype.render=function(){return a.createElement(l.Router,{history:this.history,children:this.props.children})},n}(a.Component),m=function(e){function n(){for(var n,t=arguments.length,i=new Array(t),l=0;l<t;l++)i[l]=arguments[l];return(n=e.call.apply(e,[this].concat(i))||this).history=s.createHashHistory(n.props),n}return o(n,e),n.prototype.render=function(){return a.createElement(l.Router,{history:this.history,children:this.props.children})},n}(a.Component),f=function(e,n){return"function"==typeof e?e(n):e},x=function(e,n){return"string"==typeof e?s.createLocation(e,null,null,n):e},g=function(e){return e},p=a.forwardRef;void 0===p&&(p=g);var j=p((function(e,n){var t=e.innerRef,i=e.navigate,l=e.onClick,s=d(e,["innerRef","navigate","onClick"]),r=s.target,o=c({},s,{onClick:function(n){try{l&&l(n)}catch(e){throw n.preventDefault(),e}n.defaultPrevented||0!==n.button||r&&"_self"!==r||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(n)||(n.preventDefault(),i())}});return o.ref=g!==p&&n||t,a.createElement("a",o)})),v=p((function(e,n){var t=e.component,i=void 0===t?j:t,o=e.replace,h=e.to,u=e.innerRef,m=d(e,["component","replace","to","innerRef"]);return a.createElement(l.__RouterContext.Consumer,null,(function(e){e||r(!1);var t=e.history,l=x(f(h,e.location),e.location),d=l?t.createHref(l):"",j=c({},m,{href:d,navigate:function(){var n=f(h,e.location),i=s.createPath(e.location)===s.createPath(x(n));(o||i?t.replace:t.push)(n)}});return g!==p?j.ref=n||u:j.innerRef=u,a.createElement(i,j)}))})),y=function(e){return e},b=a.forwardRef;void 0===b&&(b=y);var N=b((function(e,n){var t=e["aria-current"],i=void 0===t?"page":t,s=e.activeClassName,o=void 0===s?"active":s,h=e.activeStyle,u=e.className,m=e.exact,g=e.isActive,p=e.location,j=e.sensitive,N=e.strict,T=e.style,C=e.to,S=e.innerRef,D=d(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.createElement(l.__RouterContext.Consumer,null,(function(e){e||r(!1);var t=p||e.location,s=x(f(C,t),t),d=s.pathname,A=d&&d.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),P=A?l.matchPath(t.pathname,{path:A,exact:m,sensitive:j,strict:N}):null,_=!!(g?g(P,t):P),L="function"==typeof u?u(_):u,w="function"==typeof T?T(_):T;_&&(L=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.filter((function(e){return e})).join(" ")}(L,o),w=c({},w,h));var k=c({"aria-current":_&&i||null,className:L,style:w,to:s},D);return y!==b?k.ref=n||S:k.innerRef=S,a.createElement(v,k)}))}));Object.defineProperty(n,"W6",{enumerable:!0,get:function(){return l.useHistory}})},76115:(e,n,t)=>{t.d(n,{A:()=>v});var i=t(58168),l=t(98587),a=t(64467),s=t(9950),r=t(11942),c=t.n(r),o=t(48738),h=t.n(o),d=t(44208),u=t(58367),m=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,a.A)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g={children:c().node,className:c().string,closeClassName:c().string,closeAriaLabel:c().string,cssModule:c().object,color:c().string,fade:c().bool,isOpen:c().bool,toggle:c().func,tag:d.Wx,transition:c().shape(u.A.propTypes),innerRef:c().oneOfType([c().object,c().string,c().func])},p={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:x(x({},u.A.defaultProps),{},{unmountOnExit:!0})};function j(e){var n=e.className,t=e.closeClassName,a=e.closeAriaLabel,r=e.cssModule,c=e.tag,o=e.color,f=e.isOpen,g=e.toggle,p=e.children,j=e.transition,v=e.fade,y=e.innerRef,b=(0,l.A)(e,m),N=(0,d.qO)(h()(n,"alert","alert-"+o,{"alert-dismissible":g}),r),T=(0,d.qO)(h()("close",t),r),C=x(x(x({},u.A.defaultProps),j),{},{baseClass:v?j.baseClass:"",timeout:v?j.timeout:0});return s.createElement(u.A,(0,i.A)({},b,C,{tag:c,className:N,in:f,role:"alert",innerRef:y}),g?s.createElement("button",{type:"button",className:T,"aria-label":a,onClick:g},s.createElement("span",{"aria-hidden":"true"},"\xd7")):null,p)}j.propTypes=g,j.defaultProps=p;const v=j},27220:(e,n,t)=>{t.d(n,{A:()=>f});var i=t(58168),l=t(98587),a=t(9950),s=t(11942),r=t.n(s),c=t(48738),o=t.n(c),h=t(44208),d=["className","cssModule","tag"],u={tag:h.Wx,className:r().string,cssModule:r().object},m=function(e){var n=e.className,t=e.cssModule,s=e.tag,r=(0,l.A)(e,d),c=(0,h.qO)(o()(n,"card-footer"),t);return a.createElement(s,(0,i.A)({},r,{className:c}))};m.propTypes=u,m.defaultProps={tag:"div"};const f=m},67022:e=>{var n="Invariant failed";e.exports=function(e,t){if(!e)throw new Error(n)}},14783:(e,n,t)=>{t.r(n),t.d(n,{default:()=>i});const i=function(e,n){}}}]);