diff --git a/src/components/core/Toolbar.vue b/src/components/core/Toolbar.vue index c2096ec..3e71866 100644 --- a/src/components/core/Toolbar.vue +++ b/src/components/core/Toolbar.vue @@ -148,7 +148,15 @@ export default { text-transform: uppercase; letter-spacing: 1.5rem; } - +@media screen and (max-width: 1440px) { + .title-home { + font-family: "Montserrat-Regular"; + font-weight: 400; + font-size: 25px !important; + text-transform: uppercase; + letter-spacing: 12px; + } +} .Pointer { cursor: pointer; } diff --git a/src/components/modal/item/show.vue b/src/components/modal/item/show.vue index d32a862..e1c208f 100644 --- a/src/components/modal/item/show.vue +++ b/src/components/modal/item/show.vue @@ -10,25 +10,33 @@
Item ID : - {{ - data.id - }} + + {{ data.id }} +
Name : - {{ - data.name - }} + + {{ data.name }} +
Size : - {{ - data.size - }} + + {{ data.size }} + +
+
+ +
+ UDI : + + {{ data.udi }} +
@@ -55,6 +63,26 @@ + +

Image

+ +
+
+ + + + + + + + +

Barcode And QRCode Image

@@ -101,6 +129,7 @@ import {mapGetters, mapMutations} from "vuex"; import {ApiService} from "@/services"; import {urls} from "@/config/urls"; +import toast from "@/services/global/toast.service"; export default { data: () => ({ @@ -110,11 +139,16 @@ export default { }), methods: { ...mapMutations("modal", ["closeModal", "setResultModal", "changeCurrentModal"]), - async generateBarcode(itemId) { - const result = await ApiService.post(urls.Barcode(itemId, 'Item')); - if (result && result.status == 200) { - this.QRCodeimg = result.data.data.QRCode ? result.data.data.QRCode : null; - this.barcodeimg = result.data.data.Barcode ? result.data.data.Barcode : null; + async generateBarcode(item) { + let code = item.udi; + if (code) { + const result = await ApiService.post(urls.Barcode(code, 'Item')); + if (result && result.status == 200) { + this.QRCodeimg = result.data.data.QRCode ? result.data.data.QRCode : null; + this.barcodeimg = result.data.data.Barcode ? result.data.data.Barcode : null; + } + } else { + toast.error('An error occurred while generating the barcode . please first set UDI'); } }, print() { @@ -158,7 +192,7 @@ export default { ...mapGetters("modal", ["getModalProperties"]) }, mounted() { - this.generateBarcode(this.data.id); + this.generateBarcode(this.data); } }; diff --git a/src/styles/css/Assets/Main.scss b/src/styles/css/Assets/Main.scss index 5ebe30a..11205c0 100644 --- a/src/styles/css/Assets/Main.scss +++ b/src/styles/css/Assets/Main.scss @@ -26,25 +26,11 @@ src: url('../../fonts/Montserrat-Light.ttf') format('truetype'); } -body, -h1, -h2, -h3, -h4, -h5, -h6, -.h1, -.h2, -.h3, -.h4, -.title, -.display-1 { +body, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .title, .display-1 { font-family: 'Montserrat-Regular' !important; } -.CSSD-font, -.headline.CSSD-font, -h3.CSSD-font { +.CSSD-font, .headline.CSSD-font, h3.CSSD-font { font-family: 'Montserrat-Regular' !important; } @@ -86,8 +72,7 @@ h3.CSSD-font { vertical-align: sub !important; } -.fa, -.fas { +.fa, .fas { font-size: 20px; } @@ -107,6 +92,15 @@ h3.CSSD-font { border-left: 3px solid; } +.cyan{ + background-color: #32c5d2 !important; + border-color: #32c5d2 !important; +} + +.light-gray { + background-color: #eeeeee !important; + border-color: #eeeeee !important; +} .WM-LightGray-BG { background-color: #eee !important; } diff --git a/src/styles/css/Assets/WM-ModernTheme.scss b/src/styles/css/Assets/WM-ModernTheme.scss index c235f4e..b7a97fd 100644 --- a/src/styles/css/Assets/WM-ModernTheme.scss +++ b/src/styles/css/Assets/WM-ModernTheme.scss @@ -3,392 +3,496 @@ -------------------------------------------------------- */ .En-Raleway { - font-family: 'Raleway', sans-serif; + font-family: 'Raleway', sans-serif; } + .WM-SubText { - display: inline-block; - padding: 10px 25px 10px 25px; - color: #fff; - border-radius: 5px; - margin: 3px 0px 10px 0px; + display: inline-block; + padding: 10px 25px 10px 25px; + color: #fff; + border-radius: 5px; + margin: 3px 0px 10px 0px; } + .WM-SubText.SmallPad { - padding: 5px 15px 5px 15px; + padding: 5px 15px 5px 15px; } + .WM-SubText.XS { - padding: 3px 15px 1px 15px; + padding: 3px 15px 1px 15px; } .WM-LetterSpacing-5 { - letter-spacing: 5px; + letter-spacing: 5px; } + .WM-LetterSpacing-10 { - letter-spacing: 10px; + letter-spacing: 10px; } + .WM-LetterSpacing-15 { - letter-spacing: 15px; + letter-spacing: 15px; } + .wow { - visibility: hidden; + visibility: hidden; } + .RotateX { - transform: rotate(180deg); - webkit-transform: rotate(180deg); + transform: rotate(180deg); + webkit-transform: rotate(180deg); } + .Material-Shoadow-SM { - box-shadow: 0 8px 10px rgba(0,0,0,0.30), 0 4px 3px rgba(0,0,0,0.22); + box-shadow: 0 8px 10px rgba(0, 0, 0, 0.30), 0 4px 3px rgba(0, 0, 0, 0.22); } + .InlineBlock { - display: inline-block; + display: inline-block; } + .CubeTransition { - transition-property: all; - transition-duration: .5s; - transition-timing-function: cubic-bezier(0, 1, 0.5, 1); + transition-property: all; + transition-duration: .5s; + transition-timing-function: cubic-bezier(0, 1, 0.5, 1); } + .WhiteTheme .WM-SubText { - background-color: #fff !important; - color: #000; + background-color: #fff !important; + color: #000; } + .WhiteTheme .Notification { - background-color: transparent !important; + background-color: transparent !important; } + .WM-Height-90 { - height: 90px; + height: 90px; } + .WM-Height-110 { - height: 110px; + height: 110px; } + .WM-Height-130 { - height: 130px; + height: 130px; } + .WM-Width-220 { - width: 220px; + width: 220px; } + .WM-Width-Full { - width: 100%; + width: 100%; } + .WM-Height-Full { - height: 100%; + height: 100%; } + .WM-Absolute { - position: absolute; + position: absolute; } + .WM-Relative { - position: relative; + position: relative; } + .WM-Block { - display: block; + display: block; } + .WM-InlineBlock { - display: inline-block; + display: inline-block; } [class^='WM-Hover'], [class*='WM-Hover'] { - transition: 0.2s; + transition: 0.2s; } + /* -------------------------------------------------------- Align & Floats :: Begin -------------------------------------------------------- */ .WM-Align-C { - text-align: center; + text-align: center; } + .WM-Align-R { - text-align: right; + text-align: right; } + .WM-Align-L { - text-align: left; + text-align: left; } + .WM-Float-R { - float: right; + float: right; } + .WM-Float-L { - float: left; + float: left; } + /* -------------------------------------------------------- Direction :: Begin -------------------------------------------------------- */ .WM-RTL { - direction: rtl; + direction: rtl; } + /* -------------------------------------------------------- Fonts :: Begin -------------------------------------------------------- */ .WM-Font-12 { font-size: 12px; } + .WM-Font-14 { font-size: 14px; } + .WM-Font-16 { font-size: 16px; } + .WM-Font-18 { font-size: 18px; } + .WM-Font-20 { font-size: 20px; } + .WM-Font-22 { font-size: 22px; } + .WM-Font-24 { font-size: 24px; } + .WM-Font-30 { font-size: 30px; } + .WM-Font-36 { font-size: 36px; } + .WM-Font-48 { font-size: 48px; } + .WM-Font-52 { font-size: 52px; } - /* -------------------------------------------------------- Inputs :: Begin -------------------------------------------------------- */ .WM-Input { - outline: none; - border: none; + outline: none; + border: none; } .WM-TextArea { - outline: none; - border: none; + outline: none; + border: none; } .WM-TextArea:focus, .WM-Input:focus { - border-color: transparent !important; + border-color: transparent !important; } .WM-Input:focus::-webkit-input-placeholder { - color:transparent; + color: transparent; } -.WM-Input:focus::-webkit-input-placeholder { color:transparent; } -.WM-Input:focus:-moz-placeholder { color:transparent; } -.WM-Input:focus::-moz-placeholder { color:transparent; } -.WM-Input:focus:-ms-input-placeholder { color:transparent; } +.WM-Input:focus::-webkit-input-placeholder { + color: transparent; +} -.WM-TextArea:focus::-webkit-input-placeholder { color:transparent; } -.WM-TextArea:focus:-moz-placeholder { color:transparent; } -.WM-TextArea:focus::-moz-placeholder { color:transparent; } -.WM-TextArea:focus:-ms-input-placeholder { color:transparent; } +.WM-Input:focus:-moz-placeholder { + color: transparent; +} + +.WM-Input:focus::-moz-placeholder { + color: transparent; +} + +.WM-Input:focus:-ms-input-placeholder { + color: transparent; +} + +.WM-TextArea:focus::-webkit-input-placeholder { + color: transparent; +} + +.WM-TextArea:focus:-moz-placeholder { + color: transparent; +} + +.WM-TextArea:focus::-moz-placeholder { + color: transparent; +} + +.WM-TextArea:focus:-ms-input-placeholder { + color: transparent; +} .WM-Input::-webkit-input-placeholder { - color: #555555; + color: #555555; } + .WM-Input:-moz-placeholder { - color: #555555; + color: #555555; } + .WM-Input::-moz-placeholder { - color: #555555; + color: #555555; } + .WM-Input:-ms-input-placeholder { - color: #555555; + color: #555555; } .WM-TextArea::-webkit-input-placeholder { - color: #555555; + color: #555555; } + .WM-TextArea:-moz-placeholder { - color: #555555; + color: #555555; } + .WM-TextArea::-moz-placeholder { - color: #555555; + color: #555555; } + .WM-TextArea:-ms-input-placeholder { - color: #555555; + color: #555555; } .WM-InputWrapper { - width: 100%; - position: relative; - border-bottom: 2px solid #d9d9d9; - padding-bottom: 0px; - margin-bottom: 35px; + width: 100%; + position: relative; + border-bottom: 2px solid #d9d9d9; + padding-bottom: 0px; + margin-bottom: 35px; } .WM-InputLabel { - font-size: 15px; - color: #999999; - line-height: 1.5; - padding-left: 5px; + font-size: 15px; + color: #999999; + line-height: 1.5; + padding-left: 5px; } .WM-Input100 { - display: block; - width: 100%; - background: transparent; - font-size: 18px; - color: #555555; - line-height: 1.2; + display: block; + width: 100%; + background: transparent; + font-size: 18px; + color: #555555; + line-height: 1.2; } .WM-Input100-Focus { - position: absolute; - display: block; - width: 100%; - height: 100%; - top: 0; - left: 0; - pointer-events: none; + position: absolute; + display: block; + width: 100%; + height: 100%; + top: 0; + left: 0; + pointer-events: none; } .WM-Input100-Focus::before { - content: ""; - display: block; - position: absolute; - bottom: -2px; - left: 0; - width: 0; - height: 2px; - -webkit-transition: all 0.4s; - -o-transition: all 0.4s; - -moz-transition: all 0.4s; - transition: all 0.4s; - background: #ff4b5a; -} -.WM-Input.WM-Red + .WM-Input100-Focus::before { - background: #ee3552; -} -.WM-Input.WM-Orange + .WM-Input100-Focus::before { - background: #FF6B57; -} -.WM-Input.WM-Purple + .WM-Input100-Focus::before { - background: #ac3773; -} -.WM-Input.WM-Cyan + .WM-Input100-Focus::before { - background: #32c5d2; -} -.WM-Input.WM-Green + .WM-Input100-Focus::before { - background: #0d7e00; -} -.WM-Input.WM-Blue + .WM-Input100-Focus::before { - background: #3498DB; -} -.WM-Input.WM-Black + .WM-Input100-Focus::before { - background: #000; + content: ""; + display: block; + position: absolute; + bottom: -2px; + left: 0; + width: 0; + height: 2px; + -webkit-transition: all 0.4s; + -o-transition: all 0.4s; + -moz-transition: all 0.4s; + transition: all 0.4s; + background: #ff4b5a; } +.WM-Input.WM-Red + .WM-Input100-Focus::before { + background: #ee3552; +} + +.WM-Input.WM-Orange + .WM-Input100-Focus::before { + background: #FF6B57; +} + +.WM-Input.WM-Purple + .WM-Input100-Focus::before { + background: #ac3773; +} + +.WM-Input.WM-Cyan + .WM-Input100-Focus::before { + background: #32c5d2; +} + +.WM-Input.WM-Green + .WM-Input100-Focus::before { + background: #0d7e00; +} + +.WM-Input.WM-Blue + .WM-Input100-Focus::before { + background: #3498DB; +} + +.WM-Input.WM-Black + .WM-Input100-Focus::before { + background: #000; +} .WM-Input.WM-Input100 { - height: 40px; + height: 40px; } + .WM-InputWrapper input:disabled { - cursor: not-allowed; + cursor: not-allowed; } .WM-TextArea.WM-Input100 { - min-height: 110px; - padding-top: 9px; - padding-bottom: 13px; + min-height: 110px; + padding-top: 9px; + padding-bottom: 13px; } .WM-Input100:focus + .WM-Input100-Focus::before { - width: 100%; + width: 100%; } .WM-Select { - background-color: transparent !important; - -webkit-appearance: none; + background-color: transparent !important; + -webkit-appearance: none; } /* -------------------------------------------------------- Margins :: Begin -------------------------------------------------------- */ .WM-Margin-T-5 { - margin-top: 5px; + margin-top: 5px; } + .WM-Margin-T-15 { - margin-top: 15px; + margin-top: 15px; } + .WM-Margin-T-20 { - margin-top: 20px; + margin-top: 20px; } + .WM-Margin-T-45 { - margin-top: 45px; + margin-top: 45px; } + .WM-Margin-T-55 { - margin-top: 55px; + margin-top: 55px; } + .WM-Margin-T-100 { - margin-top: 100px; + margin-top: 100px; } + .WM-Margin-L-10 { - margin-left: 10px; + margin-left: 10px; } + .WM-Margin-L-0 { - margin-left: 0 !important; + margin-left: 0 !important; } + .WM-Margin-R-10 { - margin-right: 10px; + margin-right: 10px; } + .WM-Margin-R-40 { - margin-right: 40px; + margin-right: 40px; } + .WM-Margin-BT-20 { - margin-top: 20px; - margin-bottom: 20px; + margin-top: 20px; + margin-bottom: 20px; } + .WM-Margin-BT-5 { - margin-top: 5px; - margin-bottom: 5px; + margin-top: 5px; + margin-bottom: 5px; } + +.WM-Margin-BT-0 { + margin-top: 0; + margin-bottom: 0; +} + .WM-Margin-B-10 { - margin-bottom: 10px; + margin-bottom: 10px; } + .WM-Margin-B-30 { - margin-bottom: 30px; + margin-bottom: 30px; } + .WM-Margin-RL-15 { - margin-left: 15px; - margin-right: 15px; + margin-left: 15px; + margin-right: 15px; +} + +.WM-Margin-RL-0 { + margin-left: 0; + margin-right: 0; } /* -------------------------------------------------------- Paddings :: Begin -------------------------------------------------------- */ .WM-Padding-10 { - padding: 10px; + padding: 10px; } + .WM-Padding-5 { - padding: 5px; + padding: 5px; } + .WM-Padding-T-10 { - padding-top: 10px; + padding-top: 10px; } /* -------------------------------------------------------- Borders :: Begin -------------------------------------------------------- */ .WM-Border { - border: 1px solid; + border: 1px solid; } + .WM-Border-2x { - border: 2px solid; + border: 2px solid; } + .WM-Border-R { - border-right: 1px solid; + border-right: 1px solid; } + .WM-Border-L { - border-left: 1px solid; + border-left: 1px solid; } + .WM-Border-T { - border-top: 1px solid; + border-top: 1px solid; } + .WM-Border-B { - border-bottom: 1px solid; + border-bottom: 1px solid; } @@ -397,171 +501,177 @@ -------------------------------------------------------- */ .WM-Btn { - outline: none !important; - border: none; - background: transparent; - display: -webkit-box; - display: -webkit-flex; - display: -moz-box; - display: -ms-flexbox; - display: flex; - justify-content: center; - align-items: center; - padding: 0 20px; - min-width: 160px; - height: 50px; - border-radius: 25px; - font-size: 16px; - color: #fff; - /* line-height: 1.2; */ - line-height: 0; - -webkit-transition: all 0.4s; - -o-transition: all 0.4s; - -moz-transition: all 0.4s; - transition: all 0.4s; + outline: none !important; + border: none; + background: transparent; + display: -webkit-box; + display: -webkit-flex; + display: -moz-box; + display: -ms-flexbox; + display: flex; + justify-content: center; + align-items: center; + padding: 0 20px; + min-width: 160px; + height: 50px; + border-radius: 25px; + font-size: 16px; + color: #fff; + /* line-height: 1.2; */ + line-height: 0; + -webkit-transition: all 0.4s; + -o-transition: all 0.4s; + -moz-transition: all 0.4s; + transition: all 0.4s; } .WM-Btn-Red { - background-color: #ee3552; - box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); - -moz-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); - -webkit-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); - -o-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); - -ms-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); + background-color: #ee3552; + box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); + -moz-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); + -webkit-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); + -o-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); + -ms-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); } .WM-Btn-Orange { - background-color: #FF6B57; - box-shadow: 0 10px 30px 0px rgba(255, 107, 87, 0.5); - -moz-box-shadow: 0 10px 30px 0px rgba(255, 107, 87, 0.5); - -webkit-box-shadow: 0 10px 30px 0px rgba(255, 107, 87, 0.5); - -o-box-shadow: 0 10px 30px 0px rgba(255, 107, 87, 0.5); - -ms-box-shadow: 0 10px 30px 0px rgba(255, 107, 87, 0.5); + background-color: #FF6B57; + box-shadow: 0 10px 30px 0px rgba(255, 107, 87, 0.5); + -moz-box-shadow: 0 10px 30px 0px rgba(255, 107, 87, 0.5); + -webkit-box-shadow: 0 10px 30px 0px rgba(255, 107, 87, 0.5); + -o-box-shadow: 0 10px 30px 0px rgba(255, 107, 87, 0.5); + -ms-box-shadow: 0 10px 30px 0px rgba(255, 107, 87, 0.5); } .WM-Btn-Cyan { - background-color: #32c5d2; - box-shadow: 0 10px 30px 0px rgba(250, 197, 210, 0.5); - -moz-box-shadow: 0 10px 30px 0px rgba(50, 197, 210, 0.5); - -webkit-box-shadow: 0 10px 30px 0px rgba(50, 197, 210, 0.5); - -o-box-shadow: 0 10px 30px 0px rgba(50, 197, 210, 0.5); - -ms-box-shadow: 0 10px 30px 0px rgba(50, 197, 210, 0.5); + background-color: #32c5d2; + box-shadow: 0 10px 30px 0px rgba(250, 197, 210, 0.5); + -moz-box-shadow: 0 10px 30px 0px rgba(50, 197, 210, 0.5); + -webkit-box-shadow: 0 10px 30px 0px rgba(50, 197, 210, 0.5); + -o-box-shadow: 0 10px 30px 0px rgba(50, 197, 210, 0.5); + -ms-box-shadow: 0 10px 30px 0px rgba(50, 197, 210, 0.5); } .WM-Btn-Yellow { - background-color: #ffd63a; - color: #000; - box-shadow: 0 10px 30px 0px rgba(234, 223, 131, 0.5); - -moz-box-shadow: 0 10px 30px 0px rgba(234, 223, 131, 0.5); - -webkit-box-shadow: 0 10px 30px 0px rgba(234, 223, 131, 0.5); - -o-box-shadow: 0 10px 30px 0px rgba(234, 223, 131, 0.5); - -ms-box-shadow: 0 10px 30px 0px rgba(234, 223, 131, 0.5); + background-color: #ffd63a; + color: #000; + box-shadow: 0 10px 30px 0px rgba(234, 223, 131, 0.5); + -moz-box-shadow: 0 10px 30px 0px rgba(234, 223, 131, 0.5); + -webkit-box-shadow: 0 10px 30px 0px rgba(234, 223, 131, 0.5); + -o-box-shadow: 0 10px 30px 0px rgba(234, 223, 131, 0.5); + -ms-box-shadow: 0 10px 30px 0px rgba(234, 223, 131, 0.5); } .WM-Btn-Purple { - background-color: #ac3773; - color: #fff; - box-shadow: 0 10px 30px 0px rgba(172, 55, 115, 0.5); - -moz-box-shadow: 0 10px 30px 0px rgba(172, 55, 115, 0.5); - -webkit-box-shadow: 0 10px 30px 0px rgba(172, 55, 115, 0.5); - -o-box-shadow: 0 10px 30px 0px rgba(172, 55, 115, 0.5); - -ms-box-shadow: 0 10px 30px 0px rgba(172, 55, 115, 0.5); + background-color: #ac3773; + color: #fff; + box-shadow: 0 10px 30px 0px rgba(172, 55, 115, 0.5); + -moz-box-shadow: 0 10px 30px 0px rgba(172, 55, 115, 0.5); + -webkit-box-shadow: 0 10px 30px 0px rgba(172, 55, 115, 0.5); + -o-box-shadow: 0 10px 30px 0px rgba(172, 55, 115, 0.5); + -ms-box-shadow: 0 10px 30px 0px rgba(172, 55, 115, 0.5); } .WM-Btn-Black { - background-color: #000; - box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.5); - -moz-box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.5); - -webkit-box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.5); - -o-box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.5); - -ms-box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.5); + background-color: #000; + box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.5); + -moz-box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.5); + -webkit-box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.5); + -o-box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.5); + -ms-box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.5); } .WM-Btn-White { - background-color: #fff; - color: #000; - box-shadow: 0 10px 30px 0px rgba(255, 255, 255, 0.2); - -moz-box-shadow: 0 10px 30px 0px rgba(255, 255, 255, 0.2); - -webkit-box-shadow: 0 10px 30px 0px rgba(255, 255, 255, 0.2); - -o-box-shadow: 0 10px 30px 0px rgba(255, 255, 255, 0.2); - -ms-box-shadow: 0 10px 30px 0px rgba(255, 255, 255, 0.2); + background-color: #fff; + color: #000; + box-shadow: 0 10px 30px 0px rgba(255, 255, 255, 0.2); + -moz-box-shadow: 0 10px 30px 0px rgba(255, 255, 255, 0.2); + -webkit-box-shadow: 0 10px 30px 0px rgba(255, 255, 255, 0.2); + -o-box-shadow: 0 10px 30px 0px rgba(255, 255, 255, 0.2); + -ms-box-shadow: 0 10px 30px 0px rgba(255, 255, 255, 0.2); } .WM-Btn-Green { - background-color: #0d7e00; - box-shadow: 0 10px 30px 0px rgba(13, 126, 0, 0.5); - -moz-box-shadow: 0 10px 30px 0px rgba(13, 126, 0, 0.5); - -webkit-box-shadow: 0 10px 30px 0px rgba(13, 126, 0, 0.5); - -o-box-shadow: 0 10px 30px 0px rgba(13, 126, 0, 0.5); - -ms-box-shadow: 0 10px 30px 0px rgba(13, 126, 0, 0.5); + background-color: #0d7e00; + box-shadow: 0 10px 30px 0px rgba(13, 126, 0, 0.5); + -moz-box-shadow: 0 10px 30px 0px rgba(13, 126, 0, 0.5); + -webkit-box-shadow: 0 10px 30px 0px rgba(13, 126, 0, 0.5); + -o-box-shadow: 0 10px 30px 0px rgba(13, 126, 0, 0.5); + -ms-box-shadow: 0 10px 30px 0px rgba(13, 126, 0, 0.5); } .WM-Btn-Blue { - background-color: #3498DB; - box-shadow: 0 10px 30px 0px rgba(52, 152, 219, 0.5); - -moz-box-shadow: 0 10px 30px 0px rgba(52, 152, 219, 0.5); - -webkit-box-shadow: 0 10px 30px 0px rgba(52, 152, 219, 0.5); - -o-box-shadow: 0 10px 30px 0px rgba(52, 152, 219, 0.5); - -ms-box-shadow: 0 10px 30px 0px rgba(52, 152, 219, 0.5); + background-color: #3498DB; + box-shadow: 0 10px 30px 0px rgba(52, 152, 219, 0.5); + -moz-box-shadow: 0 10px 30px 0px rgba(52, 152, 219, 0.5); + -webkit-box-shadow: 0 10px 30px 0px rgba(52, 152, 219, 0.5); + -o-box-shadow: 0 10px 30px 0px rgba(52, 152, 219, 0.5); + -ms-box-shadow: 0 10px 30px 0px rgba(52, 152, 219, 0.5); } + .WM-Btn-Gray { - background-color: #797979; - box-shadow: 0 10px 30px 0px rgba(82, 104, 119, 0.5); - -moz-box-shadow: 0 10px 30px 0px rgba(82, 104, 119, 0.5); - -webkit-box-shadow: 0 10px 30px 0px rgba(82, 104, 119, 0.5); - -o-box-shadow: 0 10px 30px 0px rgba(82, 104, 119, 0.5); - -ms-box-shadow: 0 10px 30px 0px rgba(82, 104, 119, 0.5); + background-color: #797979; + box-shadow: 0 10px 30px 0px rgba(82, 104, 119, 0.5); + -moz-box-shadow: 0 10px 30px 0px rgba(82, 104, 119, 0.5); + -webkit-box-shadow: 0 10px 30px 0px rgba(82, 104, 119, 0.5); + -o-box-shadow: 0 10px 30px 0px rgba(82, 104, 119, 0.5); + -ms-box-shadow: 0 10px 30px 0px rgba(82, 104, 119, 0.5); } .WM-Btn i { - margin-left: 5px; - -webkit-transition: all 0.4s; - -o-transition: all 0.4s; - -moz-transition: all 0.4s; - transition: all 0.4s; + margin-left: 5px; + -webkit-transition: all 0.4s; + -o-transition: all 0.4s; + -moz-transition: all 0.4s; + transition: all 0.4s; } .WM-Btn:hover { - background-color: #333333; - cursor: pointer; - color: #fff; - box-shadow: 0 10px 30px 0px rgba(51, 51, 51, 0.5); - -moz-box-shadow: 0 10px 30px 0px rgba(51, 51, 51, 0.5); - -webkit-box-shadow: 0 10px 30px 0px rgba(51, 51, 51, 0.5); - -o-box-shadow: 0 10px 30px 0px rgba(51, 51, 51, 0.5); - -ms-box-shadow: 0 10px 30px 0px rgba(51, 51, 51, 0.5); + background-color: #333333; + cursor: pointer; + color: #fff; + box-shadow: 0 10px 30px 0px rgba(51, 51, 51, 0.5); + -moz-box-shadow: 0 10px 30px 0px rgba(51, 51, 51, 0.5); + -webkit-box-shadow: 0 10px 30px 0px rgba(51, 51, 51, 0.5); + -o-box-shadow: 0 10px 30px 0px rgba(51, 51, 51, 0.5); + -ms-box-shadow: 0 10px 30px 0px rgba(51, 51, 51, 0.5); } + .WM-Btn-RedHover:hover { - background-color: #ee3552; - cursor: pointer; - color: #fff; - box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); - -moz-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); - -webkit-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); - -o-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); - -ms-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); + background-color: #ee3552; + cursor: pointer; + color: #fff; + box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); + -moz-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); + -webkit-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); + -o-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); + -ms-box-shadow: 0 10px 30px 0px rgba(255, 75, 90, 0.5); } .WM-Btn-SM { - min-width: 50px; - padding: 0 10px; + min-width: 50px; + padding: 0 10px; } + .WM-Btn-SM i { - margin-left: 0px; + margin-left: 0px; } + .WM-Btn-XS { - min-width: 40px; - padding: 0 10px; - line-height: 1 !important; - height: 40px !important; + min-width: 40px; + padding: 0 10px; + line-height: 1 !important; + height: 40px !important; } + .WM-Btn-XS i { - margin-left: 0px; + margin-left: 0px; } + /* .WM-Btn:hover i { -webkit-transform: translateX(10px); -moz-transform: translateX(10px); @@ -571,110 +681,119 @@ } */ - /* -------------------------------------------------------- Headers :: Begin -------------------------------------------------------- */ - .WM-SH-Container { - width: 100%; - position: relative; - text-align: right; - } - .WM-SH-TextFa { - margin-bottom: 15px; - font-size: 25px; - color: #000; - } - .WM-SH-Line { - width: 100%; - height: 1px; - background-color: #000; - overflow: hidden; - } - .WM-SH-TextEn-Container { - top: -12px; - position: relative; - display: inline-block; - z-index: 14; - overflow: visible; - padding: 0 0px; - background-color: #fff; - } - .WM-SH-TextEn { - background-color: #000; - padding: 5px 20px 5px 20px; - color: #fff; - z-index: 9; - overflow: visible; - font-size: 14px; - margin: 0px 0px 0px 20px; - border-radius: 3px; - } - .WM-SH-Description { - margin-top: -7px; - font-size: 14px; - } +.WM-SH-Container { + width: 100%; + position: relative; + text-align: right; +} +.WM-SH-TextFa { + margin-bottom: 15px; + font-size: 25px; + color: #000; +} + +.WM-SH-Line { + width: 100%; + height: 1px; + background-color: #000; + overflow: hidden; +} + +.WM-SH-TextEn-Container { + top: -12px; + position: relative; + display: inline-block; + z-index: 14; + overflow: visible; + padding: 0 0px; + background-color: #fff; +} + +.WM-SH-TextEn { + background-color: #000; + padding: 5px 20px 5px 20px; + color: #fff; + z-index: 9; + overflow: visible; + font-size: 14px; + margin: 0px 0px 0px 20px; + border-radius: 3px; +} + +.WM-SH-Description { + margin-top: -7px; + font-size: 14px; +} /* -------------------------------------------------------- Links :: Begin -------------------------------------------------------- */ .WM-Link { - display: inline-block; - color: #000; - direction: rtl; - text-decoration: none; + display: inline-block; + color: #000; + direction: rtl; + text-decoration: none; } + .WM-Link::after { - content: ''; - display: block; - width: 0; - height: 2px; - background: #000; - transition: width .3s; - margin-top: 2px; + content: ''; + display: block; + width: 0; + height: 2px; + background: #000; + transition: width .3s; + margin-top: 2px; } + .WM-Link:hover::after, .WM-Link.WM-Selected::after { - width: 100%; + width: 100%; } .WM-Link-Red:hover, .WM-Link-Red.WM-Selected { - color: #ee3552 !important; + color: #ee3552 !important; } + .WM-Link-Red::after { - background: #ee3552; + background: #ee3552; } .WM-Link-Green:hover, .WM-Link-Green.WM-Selected { - color: #32c5d2 !important; + color: #32c5d2 !important; } + .WM-Link-Green::after { - background: #32c5d2; + background: #32c5d2; } .WM-Link-Dark:hover, .WM-Link-Dark.WM-Selected { - color: #000 !important; + color: #000 !important; } + .WM-Link-Dark::after { - background: #000; + background: #000; } .WM-Link-Purple:hover, .WM-Link-Purple.WM-Selected { - color: #ac3773 !important; + color: #ac3773 !important; } + .WM-Link-Purple::after { - background: #ac3773; + background: #ac3773; } .WM-Link-Orange:hover, .WM-Link-Orange.WM-Selected { - color: #FF6B57 !important; -} -.WM-Link-Orange::after { - background: #FF6B57; + color: #FF6B57 !important; } +.WM-Link-Orange::after { + background: #FF6B57; +} /* -------------------------------------------------------- @@ -840,7 +959,7 @@ .WM-BG-White, .WM-Link-White::after, .WM-Input.WM-White + .WM-Input100-Focus::before { //background-color: #fff; color: #000; - background: linear-gradient(90deg, #fff 20.5625%, #fff 20.5625%, #fff 80.5625%); + background: linear-gradient(90deg, #fff 20.5625%, #fff 20.5625%, #fff 80.5625%); } .WM-Color-White, .WM-Link-White:hover, .WM-Link-White.WM-Selected, .WM-Link-White.WM-Active { @@ -854,7 +973,7 @@ /* ---------------------------AutoMatic Generate--------------------------- */ .WM-BG-LightGray, .WM-BG-Gold { - color: #000 !important; + color: #000 !important; } @@ -862,37 +981,54 @@ Hover :: Grayscale -------------------------------------------------------- */ .WM-CategoryItem { - display:block; - overflow:hidden; - position:relative; -} -.WM-Hover-Grayscale { - cursor: pointer; - -webkit-transition: all 1s ease !important; - -moz-transition: all 1s ease !important; - -o-transition: all 1s ease !important; - -ms-transition: all 1s ease !important; - transition: all 1s ease !important; -} -.WM-Hover-Grayscale:hover { - -webkit-filter: grayscale(100%) !important; + display: block; + overflow: hidden; + position: relative; } -.WM-Width-120{ - width:120px; +.WM-Hover-Grayscale { + cursor: pointer; + -webkit-transition: all 1s ease !important; + -moz-transition: all 1s ease !important; + -o-transition: all 1s ease !important; + -ms-transition: all 1s ease !important; + transition: all 1s ease !important; } -.WM-Width-150{ - width:150px; + +.WM-Hover-Grayscale:hover { + -webkit-filter: grayscale(100%) !important; } -.WM-Width-300{ - width:300px; + +.WM-Width-120 { + width: 120px; } -.WM-Width-350{ - width:350px; + +.WM-Width-150 { + width: 150px; } -.WM-Width-500{ - width:500px; + +.WM-Width-300 { + width: 300px; } -.WM-Width-400{ - width:400px; + +.WM-Width-350 { + width: 350px; } + +.WM-Width-500 { + width: 500px; +} + +.WM-Width-400 { + width: 400px; +} + +.WM-Tooltip-Btn { + min-width: 40px; + padding: 0; + line-height: 40px; + height: 40px; + text-align: center; + justify-content: center; + align-items: center; +} \ No newline at end of file diff --git a/src/views/Cycle/List.vue b/src/views/Cycle/List.vue index 9f9ec73..33f639a 100644 --- a/src/views/Cycle/List.vue +++ b/src/views/Cycle/List.vue @@ -2,32 +2,32 @@
- - + + - - + - - + - - + - - + - + @@ -36,17 +36,25 @@ - - - fas fa-search - Filter + + + + Filter + + + + fas fa-share-square + EXPORT - - + - - fas fa-plus - Add + + fas fa-plus + Add @@ -77,20 +85,32 @@ Show + + + + Generate Barcode + + Edit + Remove - - - Generate Barcode - @@ -163,7 +174,7 @@ export default { {sortable: false, text: "Label IDs", value: "Label IDs"}, {sortable: false, text: "Cycle Number", value: "Cycle Number"}, {sortable: false, text: "Date", value: "date"}, - {sortable: false, text: "Action", value: "action", align: "center",width:'10%'} + {sortable: false, text: "Action", value: "action", align: "center", width: '10%'} ], filter: {}, Menu: false, diff --git a/src/views/Item/List.vue b/src/views/Item/List.vue index 9c4f921..bdb9210 100644 --- a/src/views/Item/List.vue +++ b/src/views/Item/List.vue @@ -2,43 +2,53 @@
- - + + - - + - - + - + - + - + - - - fas fa-search - Filter + + + + Filter + + + + fas fa-share-square + EXPORT - - + - - fas fa-plus - Add + + fas fa-plus + Add @@ -74,7 +84,7 @@ - + fas {{ status.icon }} {{ status.label }} @@ -85,20 +95,30 @@ Show + + + Generate Barcode + @@ -209,12 +219,17 @@ export default { this.loadMedicalCenters(); }, async generateBarcode(item, type = null) { - const result = await ApiService.post(urls.Barcode(item.id, type)); - if (result && result.status == 200) { - this.changeCurrentModal({ - modal: "modal-barcode-barcode", - properties: {result, item}, - }); + let code = item.udi; + if (code) { + const result = await ApiService.post(urls.Barcode(item.id, type)); + if (result && result.status == 200) { + this.changeCurrentModal({ + modal: "modal-barcode-barcode", + properties: {result, item}, + }); + } + } else { + toast.error('An error occurred while generating the barcode . please first set UDI'); } }, async show(id) { @@ -252,8 +267,8 @@ export default { getStatus(item) { if (item.status === 'pending') { return [ - {status: 'rejected', label: 'reject', color: 'red', icon: 'fa-close'}, - {status: 'approved', label: 'approve', color: 'green', icon: 'fa-check'} + {status: 'approved', label: 'approve', color: 'cyan', font_color : 'white', icon: 'fa-check'}, + {status: 'rejected', label: 'reject', color: 'light-gray',font_color : 'black', icon: 'fa-close'}, ] } else { const nextStatus = item.status === 'rejected' ? 'approved' : 'rejected' @@ -261,7 +276,8 @@ export default { { status: nextStatus, label: nextStatus === 'approved' ? 'approve' : 'reject', - color: nextStatus === 'approved' ? 'green' : 'red', + color: nextStatus === 'approved' ? 'cyan' : 'light-gray', + font_color: nextStatus === 'approved' ? 'white' : 'black', icon: nextStatus === 'approved' ? 'fa-check' : 'fa-close' } ] @@ -284,17 +300,3 @@ export default { } }; - diff --git a/src/views/Label/List.vue b/src/views/Label/List.vue index f645327..061718a 100644 --- a/src/views/Label/List.vue +++ b/src/views/Label/List.vue @@ -2,17 +2,26 @@
- - + + - - - + + + + + + + + + - - - - - - - - - - - fas fa-search - Filter + + + + Filter + + + + fas fa-share-square + EXPORT - - - - - fas fa-plus - Add + + + + fas fa-plus + Add @@ -71,21 +78,33 @@ Show + + + + Generate Barcode + + Edit + Remove - - - Generate Barcode - @@ -161,7 +171,7 @@ export default { {sortable: false, text: "Cycle Number", value: "Cycle Number"}, {sortable: false, text: "Sterilizer ID", value: "Sterilizer ID"}, {sortable: false, text: "Package ID", value: "Package ID"}, - {sortable: false, text: "Action", value: "action", align: "center",width:'10%'} + {sortable: false, text: "Action", value: "action", align: "center", width: '10%'} ], filter: {}, items: [], diff --git a/src/views/MedicalCenter/List.vue b/src/views/MedicalCenter/List.vue index 4bd4ed5..b57a89c 100644 --- a/src/views/MedicalCenter/List.vue +++ b/src/views/MedicalCenter/List.vue @@ -1,31 +1,34 @@