????
Current Path : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/ |
Current File : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/2523.ab170d27.chunk.js |
"use strict";(self.webpackChunkgdt=self.webpackChunkgdt||[]).push([[2523],{68315:(e,n,t)=>{t.d(n,{Ay:()=>o,RB:()=>d});t(9950);var r=t(36841),i=t(73613),l=(t(14944),t(44414));const o=e=>{let{list:n,choose:t,hiddenDonGia:r}=e;return(0,l.jsx)(l.Fragment,{children:n.length?(0,l.jsx)("div",{className:"form-list-pro-qr",children:n.map(((e,n)=>(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(a,{onClick:e=>t&&t(e),item:e,index:n,hiddenDonGia:r})})))}):(0,l.jsx)(s,{style:{marginTop:"4rem"}})})},a=e=>{let{item:n,index:t,onClick:i,hiddenDonGia:o}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{onClick:()=>i(n,t),className:"item-pro-qr",children:[(0,l.jsx)(d,{url:n.HinhAnh150}),(0,l.jsx)("p",{className:"mb-1 mt-2",children:(0,r.yv)(n.TenSanPham,2,"...","","hover",t)}),(0,l.jsx)("i",{style:{color:"#b1b1b1",fontSize:"12px"},children:n.MaSanPham}),(0,l.jsxs)("p",{className:"font-weight-light d-flex mb-3",children:["\u0110\u01a1n v\u1ecb t\xednh :"," ",(0,l.jsx)("p",{className:"font-weight-bold ml-1 mb-0",children:n.DonViTinh})]}),!o&&(0,l.jsxs)("h6",{className:"mb-0",style:{fontWeight:"bolder",color:"#4680fe"},children:[(0,r.vv)(n.GiaBan)," VN\u0110"]})]},t)})},d=e=>{let{url:n,style:t}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("img",{style:t,src:n?"/api"+n:"assets/default.jpg",className:"img-item-pro-qr",alt:""})})},s=e=>{let{style:n}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{style:n,className:"bg-no-product text-secondary",children:[(0,l.jsx)(i.A,{style:{fontSize:"90px"},fa:"dropbox"}),(0,l.jsx)("p",{children:"Kh\xf4ng c\xf3 h\xe0ng h\xf3a"})]})})}},11214:(e,n,t)=>{t.d(n,{A:()=>c});var r=t(9950),i=t(58195),l=t(73613),o=t(71911),a=t(85560),d=t(36841),s=t(44414);const c=e=>{let{data:n,close:t,Id:d}=e;const[c,h]=(0,r.useState)(null);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.A,{size:"xl",isOpen:!!n,toggle:t,children:(0,s.jsxs)("div",{className:"p-5",children:[(0,s.jsxs)("div",{className:"d-flex",children:[(0,s.jsx)("h2",{style:{borderBottom:"solid 2px rgb(0, 140, 255)"},className:"mb-4 pb-1 pr-1",children:"Danh s\xe1ch nguy\xean v\u1eadt li\u1ec7u"}),(0,s.jsx)("div",{onClick:t,className:"btn-close-detail-spdd ml-auto",children:(0,s.jsx)(l.A,{fa:"close"})})]}),(0,s.jsx)("div",{style:{gap:"1.5rem"},className:"d-flex mt-2",children:(0,s.jsxs)("div",{className:"d-block outline-form-quantity-pro",children:[(0,s.jsxs)("div",{style:{color:"#0075d5"},className:"form-quantity-pro text-uppercase",children:[(0,s.jsx)("div",{className:"icon-quanlity-pro",children:(0,s.jsx)(l.A,{fa:"cutlery"})}),(0,s.jsx)("p",{className:"mb-1 mt-1 h5",children:(0,s.jsx)("strong",{children:(null===n||void 0===n?void 0:n.Name)||(null===n||void 0===n?void 0:n.TenSanPham)})})]}),(0,s.jsx)("p",{className:"mb-0",children:"S\u1ea3n ph\u1ea9m \u0111\u1ea1i di\u1ec7n."})]})}),(0,s.jsx)("div",{className:"mt-3",children:(0,s.jsx)(a.A,{title:"Danh s\xe1ch s\u1ea3n ph\u1ea9m theo Nh\xe0 cung c\u1ea5p",url:"DM_SanPhamDichVu",where:"SanPhamDaiDien_Id eq ".concat(d),columns:o.Yn})}),(0,s.jsx)("div",{className:"mt-3",children:(0,s.jsx)(a.A,{title:"Gi\xe1 v\u1ed1n",url:"DM_NVL_DiemKinhDoanh",where:"NguyenVatLieu_Id eq ".concat(d),columns:o.Z9,onRowClick:(e,n)=>h(n.DM_DiemKinhDoanh)})})]})}),(0,s.jsx)(u,{Id:d,dataDkd:c,close:()=>h(null)})]})},u=e=>{let{Id:n,dataDkd:t,close:r}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(i.A,{isOpen:null===t||void 0===t?void 0:t.Id,toggle:r,children:(0,s.jsx)("div",{className:"p-3",children:(0,s.jsx)(a.A,{url:"Sale_TonKho",title:null===t||void 0===t?void 0:t.Ten,columns:[{title:"T\xean nguy\xean v\u1eadt li\u1ec7u",field:"DM_SanPhamDichVu.TenSanPham"},{title:"Gi\xe1 v\u1ed1n",field:"GiaVon",render:e=>"".concat((0,d.vv)(null===e||void 0===e?void 0:e.GiaVon)," VN\u0110")},{title:"T\u1ed3n kho",field:"SoLuongTon",render:e=>"".concat((0,d.vv)(null===e||void 0===e?void 0:e.SoLuongTon))}],where:"DM_SanPhamDichVu/SanPhamDaiDien_Id eq ".concat(n," and DM_Kho/DiemKinhDoanh_Id eq ").concat(null===t||void 0===t?void 0:t.Id)})})})})}},71911:(e,n,t)=>{t.d(n,{Yn:()=>d,Z9:()=>s,ne:()=>a});t(9950);var r=t(97159),i=t(68315),l=t(36841),o=t(44414);const a=e=>[{title:"Id",field:"Id",type:"numeric",dataID:!0,hidden:!0,editable:"never",cellStyle:{textAlign:"center"}},{title:"T\xean",field:"Name",type:"string",searchable:!0},{title:"\u0110\u01a1n v\u1ecb t\xednh",field:"DM_DonViTinh.Ten",type:"string",dataRef:["DonViTinh_Id"],dataCheck:!0,editComponent:e=>(0,o.jsx)(r.A,{url:"DM_DonViTinh",valueField:"Id",textField:"Ten",value:e.value,onChange:n=>n?e.onChange(n):e.onChange(null),placeholder:"Ch\u1ecdn \u0111\u01a1n v\u1ecb t\xednh"})}],d=[{title:"H\xecnh \u1ea3nh",field:"HinhAnh",type:"img",width:1,render:e=>(0,o.jsx)(i.RB,{style:{width:"2rem",height:"2rem",borderRadius:"50%"},url:e.HinhAnh})},{title:"M\xe3 s\u1ea3n ph\u1ea9m",field:"MaSanPham",width:2,searchable:!0,styleFormMenu:{position:"absolute",right:"1rem",color:"#464646",top:"1rem",background:"white",padding:"0.2rem 1rem",borderRadius:"5px",boxShadow:"rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px inset"}},{title:"T\xean nguy\xean v\u1eadt li\u1ec7u",field:"TenSanPham",width:3,searchable:!0},{title:"Lo\u1ea1i nguy\xean v\u1eadt li\u1ec7u",subTitle:"Lo\u1ea1i NVL",field:"DM_NhomSanPhamDichVu.Ten",width:2},{title:"Nh\xe0 cung c\u1ea5p",subTitle:"NCC",field:"DM_LienHe.Ten",width:2}],s=[{title:"Kho",field:"DM_DiemKinhDoanh.Ten"},{title:"Kho",field:"DM_DiemKinhDoanh.Id",hidden:!0},{title:"Gi\xe1 v\u1ed1n",field:"GiaVon_NVL",render:e=>"".concat((0,l.vv)(null===e||void 0===e?void 0:e.GiaVon_NVL)," VN\u0110")},{title:"S\u1ed1 l\u01b0\u1ee3ng t\u1ed3n",field:"SoLuongTon",render:e=>"".concat((0,l.vv)(null===e||void 0===e?void 0:e.SoLuongTon))}]},70760:(e,n,t)=>{t.r(n),t.d(n,{default:()=>s});var r=t(9950),i=t(85560),l=t(71911),o=t(4370),a=t(11214),d=t(44414);const s=()=>{const[e,n]=(0,r.useState)([]),[t,s]=(0,r.useState)(null);let c=(0,l.ne)(e);return(0,r.useEffect)((()=>{(0,o.Pq)("DM_SanPhamDichVu?$select=SanPhamDaiDien_Id").then((e=>n(e.value)))}),[]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.A,{title:"Danh m\u1ee5c S\u1ea3n ph\u1ea9m \u0111\u1ea1i di\u1ec7n",url:"DM_NguyenVatLieu",columns:c,selectType:"withColumns",onAdd:{disabled:!1},onEdit:{},onDelete:{},onRowClick:(e,n)=>s(n)}),t&&(0,d.jsx)(a.A,{data:t,Id:null===t||void 0===t?void 0:t.Id,close:()=>s(null)})]})}},15255:(e,n,t)=>{var r;t.d(n,{A:()=>u});var i=new Uint8Array(16);function l(){if(!r&&!(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}const o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const a=function(e){return"string"===typeof e&&o.test(e)};for(var d=[],s=0;s<256;++s)d.push((s+256).toString(16).substr(1));const c=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(d[e[n+0]]+d[e[n+1]]+d[e[n+2]]+d[e[n+3]]+"-"+d[e[n+4]]+d[e[n+5]]+"-"+d[e[n+6]]+d[e[n+7]]+"-"+d[e[n+8]]+d[e[n+9]]+"-"+d[e[n+10]]+d[e[n+11]]+d[e[n+12]]+d[e[n+13]]+d[e[n+14]]+d[e[n+15]]).toLowerCase();if(!a(t))throw TypeError("Stringified UUID is invalid");return t};const u=function(e,n,t){var r=(e=e||{}).random||(e.rng||l)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){t=t||0;for(var i=0;i<16;++i)n[t+i]=r[i];return n}return c(r)}},14944:()=>{},43145:(e,n,t)=>{function r(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}t.d(n,{A:()=>r})},92901:(e,n,t)=>{t.d(n,{A:()=>l});var r=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,r.A)(i.key),i)}}function l(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 r=t(98587);function i(e,n){if(null==e)return{};var t,i,l=(0,r.A)(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}},80296:(e,n,t)=>{t.d(n,{A:()=>i});var r=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 r,i,l,o,a=[],d=!0,s=!1;try{if(l=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;d=!1}else for(;!(d=(r=l.call(t)).done)&&(a.push(r.value),a.length!==n);d=!0);}catch(e){s=!0,i=e}finally{try{if(!d&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(s)throw i}}return a}}(e,n)||(0,r.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:()=>l});var r=t(43145);var i=t(27800);function l(e){return function(e){if(Array.isArray(e))return(0,r.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 r=t(43145);function i(e,n){if(e){if("string"===typeof e)return(0,r.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,r.A)(e,n):void 0}}}}]);