diff --git a/.rnd b/.rnd index 6a9ba040..d2fab28b 100644 Binary files a/.rnd and b/.rnd differ diff --git a/package.json b/package.json index 0e447544..9923a097 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,10 @@ "vuelidate": "^0.7.4", "vuetify": "^1.2.5", "vuex": "^3.0.1", - "vuex-router-sync": "^5.0.0" + "vuex-router-sync": "^5.0.0", + "vue2-dropzone": "^3.6.0", + "vue-image-lightbox": "^7.1.0", + "vue-lazyload": "^1.3.3" }, "dependencies": { "vue-html-to-paper": "^1.1.0", diff --git a/resources/js/show/views/TestResult/ShowTestResult.vue b/resources/js/show/views/TestResult/ShowTestResult.vue index 31c6fa02..8cc97bf6 100644 --- a/resources/js/show/views/TestResult/ShowTestResult.vue +++ b/resources/js/show/views/TestResult/ShowTestResult.vue @@ -8,7 +8,7 @@
- +
{{ data.device_label || 'AutoclaveID' }} : {{ data.device_id }}
- +
Result : fas fa-check @@ -27,7 +27,7 @@ >{{ data.result }}
- +
verify : fas fa-times @@ -37,7 +37,7 @@ >{{ data.verified }}
- +
Register User : {{ User }}
- +
Date : {{ data.created_at }}
- +
Medical Center : - + - - - + + - -
+ + +
Cycle ID : {{ data.id }}
- - - +
Sterilizer ID : {{ data.sterilizer_id }}
- +
{{ data.user ? data.user.name : '' }}
- -
+ +
Cycle Number : {{ data.cycle_number }}
- +
{{ data.date }}
- +
{{ data.note }} diff --git a/resources/js/vue/components/modal/package/Show.vue b/resources/js/vue/components/modal/package/Show.vue index f131575d..40f58f7c 100644 --- a/resources/js/vue/components/modal/package/Show.vue +++ b/resources/js/vue/components/modal/package/Show.vue @@ -8,25 +8,25 @@
- +
{{ data.name }}
- +
{{ data.created_at }}
- +
{{ data.user ? data.user.name : '' }}
- +
{{ data.note }} diff --git a/resources/js/vue/components/modal/testresult/Show.vue b/resources/js/vue/components/modal/testresult/Show.vue index 6670b052..b479aa57 100644 --- a/resources/js/vue/components/modal/testresult/Show.vue +++ b/resources/js/vue/components/modal/testresult/Show.vue @@ -17,7 +17,7 @@ >{{ data.device_id }}
--> - +
Result : fas fa-check @@ -27,7 +27,7 @@ >{{ data.result }}
- +
verify : fas fa-times @@ -37,7 +37,7 @@ >{{ data.verified }}
- +
Register User : {{ data.user.name }}
- +
Date : {{ data.created_at }}
- +
Medical Center : @@ -139,7 +147,8 @@
- + + @@ -148,10 +157,10 @@ --> @@ -160,7 +169,7 @@ Verify - + + + + + fas fa-print + Go to Print Page + + + - + @@ -196,8 +215,13 @@ export default { import { mapGetters, mapMutations } from "vuex"; import { ApiService } from "@/services"; import { urls } from "@/config/urls"; +import LightBox from 'vue-image-lightbox'; +import 'vue-image-lightbox/dist/vue-image-lightbox.min.css' export default { data: () => ({}), + components:{ + LightBox + }, methods: { ...mapMutations("modal", ["closeModal", "setResultModal"]), async verify(id) { @@ -243,7 +267,7 @@ export default { }, created() { this.data = this.getModalProperties.result.data.data; - console.log(this.data); + console.log(this.data.images.map(img => img.path)); }, computed: { diff --git a/resources/js/vue/main.js b/resources/js/vue/main.js index a6382f03..2a96f718 100644 --- a/resources/js/vue/main.js +++ b/resources/js/vue/main.js @@ -1,5 +1,6 @@ import 'font-awesome/css/font-awesome.min.css' import Vue from 'vue' + // Components import './components' @@ -17,8 +18,8 @@ import App from './App.vue' import i18n from '@/i18n' import router from '@/router' import store from '@/store' - - +import VueLazyLoad from 'vue-lazyload'; +Vue.use(VueLazyLoad) import { ApiService, TokenService } from '@/services' // Sync store with router sync(store, router) diff --git a/resources/js/vue/styles/css/Assets/Main.scss b/resources/js/vue/styles/css/Assets/Main.scss index faa1446d..496ca139 100644 --- a/resources/js/vue/styles/css/Assets/Main.scss +++ b/resources/js/vue/styles/css/Assets/Main.scss @@ -124,12 +124,154 @@ .theme--light.v-pagination .v-pagination__item:focus { outline: 0 !important; } -@media screen and(max-width : 1536px) { - .WM-WidthScreen-SM { - flex-basis:35% !important; - max-width: 35% !important; +table.v-table tbody td.Height-MD-60 { + height: 60px; +} +table.v-table tbody td.Height-MD-80 { + height: 80px; +} +.FlexBtn { + display: flex; + flex-wrap: nowrap; + padding: 10px 8px !important; + justify-content: flex-start; +} +td.FlexBtn .theme--light.v-btn { + padding: 21px 20px; +} +td.FlexBtn a.LinkBtn .theme--light.v-btn { + padding: 12px 10px; +} +.ResultMsg { + font-size: 10px; + color: #fff; + padding: 3px 10px; + border-radius: 5px; +} +.ResultMsg.Reject{ + background: #ee3552; +} +.ResultMsg.Accept{ + background: #1DE6B8;; +} +.theme--light.v-icon.Verified { + font-size: 15px !important; + color: #1DE6B8; +} +.theme--light.v-icon.NotVerified { + font-size: 15px !important; + color: #ee3552; +} + + +table.v-table tbody td.FlexBtn:not(:first-child) { + padding: 12px 8px; +} +td.FlexBtn .v-btn { + margin-top: 5px; +} +.WM-WidthScreen-SM { + flex-basis:35% !important; + max-width: 35% !important; +} +table.v-table tbody td.Height-SM-48 { + height: 48px; +} +.v-card .title { + font-size: .9rem !important; +} +.headline { + font-size: .9rem !important; +} +.FlexBtn { + padding: 10px 8px !important; +} +td.FlexBtn span { + display: none; +} +td.FlexBtn .theme--light.v-btn { + min-width: 30px; + padding: 15px 10px; + margin-right: 1 !important; + +} +td.FlexBtn a.LinkBtn .theme--light.v-btn { + padding: 9px 10px; +} +td.FlexBtn .theme--light.v-icon { + margin-right: 0 !important; +} + +@media screen and (min-width : 1900px) { + .WM-XL-Align-L { + text-align: left !important; } } +@media screen and(max-width : 1536px) { + // table.v-table tbody td.FlexBtn:not(:first-child) { + // padding: 12px 8px; + // } + // td.FlexBtn .v-btn { + // margin-top: 5px; + // } + // .WM-WidthScreen-SM { + // flex-basis:35% !important; + // max-width: 35% !important; + // } + + + +// .theme--light.v-btn.WM-ActBtn:not(.v-btn--icon):not(.v-btn--flat) { +// margin: 5px; +// padding: 10px; +// min-width: 30px; +// display: inline-block; +// } +// .theme--light.v-btn.WM-ActBtn:not(.v-btn--icon):not(.v-btn--flat) span { +// display: none; +// } +// .v-btn.WM-ActBtn__content .v-icon.mr-2 { +// margin-right: 0 !important; +// } +table.v-table tbody td.Height-SM-48 { + height: 48px; +} +.v-card .title { + font-size: .9rem !important; +} +.headline { + font-size: .9rem !important; +} +.FlexBtn { + padding: 10px 8px !important; +} +td.FlexBtn span { + display: none; +} +td.FlexBtn .theme--light.v-btn { + min-width: 30px; + padding: 15px 10px; + margin-right: 1 !important; + +} +td.FlexBtn a.LinkBtn .theme--light.v-btn { + padding: 9px 10px; +} +td.FlexBtn .theme--light.v-icon { + margin-right: 0 !important; +} + +} +@media screen and(max-width : 1366px) { + .FlexBtn { + // padding: 10px 8px !important; + padding: 20px 8px !important; + } + td.FlexBtn .v-btn { + margin-top: -5px; + } +} + @media screen and(max-width : 1024px) { .WM-WidthScreen-XS { flex-basis:60% !important; diff --git a/resources/js/vue/views/Cycle/List.vue b/resources/js/vue/views/Cycle/List.vue index 18235ce2..5b06058f 100644 --- a/resources/js/vue/views/Cycle/List.vue +++ b/resources/js/vue/views/Cycle/List.vue @@ -98,33 +98,58 @@ {{ item.sterilizer_id }} {{ item.cycle_number }} {{ item.date }} - - + + + + Show + + + + Edit + + + + Remove + + + + Generate Barcode + diff --git a/resources/js/vue/views/Item/List.vue b/resources/js/vue/views/Item/List.vue index e99b4481..a0e304f4 100644 --- a/resources/js/vue/views/Item/List.vue +++ b/resources/js/vue/views/Item/List.vue @@ -73,33 +73,54 @@ {{ item.name }} {{ item.size }} - - + + + diff --git a/resources/js/vue/views/Label/List.vue b/resources/js/vue/views/Label/List.vue index 416326c9..f3894bab 100644 --- a/resources/js/vue/views/Label/List.vue +++ b/resources/js/vue/views/Label/List.vue @@ -38,7 +38,7 @@ - + fas fa-search Filter @@ -69,33 +69,55 @@ {{ item.user ? item.user.name : '' }} {{ item.cycle_number }} {{ item.sterilizer_id }} - - + + + + Show + + + + Edit + + + + Remove + + + + Generate Barcode + diff --git a/resources/js/vue/views/MedicalCenter/List.vue b/resources/js/vue/views/MedicalCenter/List.vue index 25a8216d..052cce7c 100644 --- a/resources/js/vue/views/MedicalCenter/List.vue +++ b/resources/js/vue/views/MedicalCenter/List.vue @@ -37,23 +37,38 @@ {{ item.name }} {{ item.created_at }} {{ item.users_count }} Operator - - - + + + + Edit + + + + Operator + + + + Remove + diff --git a/resources/js/vue/views/Package/List.vue b/resources/js/vue/views/Package/List.vue index def989e8..314853f0 100644 --- a/resources/js/vue/views/Package/List.vue +++ b/resources/js/vue/views/Package/List.vue @@ -33,7 +33,6 @@ :items="medicalCenters" > - fas fa-search @@ -41,7 +40,7 @@ - + fas fa-plus @@ -49,6 +48,7 @@ + @@ -66,33 +66,55 @@ {{ item.name }} {{ item.user ? item.user.name : '' }} {{ item.description }} - - + + + + Show + + + diff --git a/resources/js/vue/views/TestResult/List.vue b/resources/js/vue/views/TestResult/List.vue index 598b4253..7caf8c43 100644 --- a/resources/js/vue/views/TestResult/List.vue +++ b/resources/js/vue/views/TestResult/List.vue @@ -48,7 +48,7 @@ item-value="id" > - + - - + + fas fa-search Filter - + fas fa-plus @@ -127,6 +127,17 @@ + @@ -145,36 +156,76 @@ class="title font-weight-light" >{{ item.user.medical_center.name }} {{ item.user.name }} - {{ item.result }} + + + {{ item.result }} + + + {{ item.result }} + + {{ item.created_at }} - {{ item.verified }} - - + + + + + + + + + + + + + Show + + + @@ -380,4 +431,36 @@ export default { .v-btn--floating, .v-btn--icon:before { border-radius: 50%!important; } +/* .FlexBtn { + display: flex; + flex-wrap: nowrap; + padding: 10px 8px !important; +} +td.FlexBtn .theme--light.v-btn { + padding: 21px 20px; +} +td.FlexBtn a.LinkBtn .theme--light.v-btn { + padding: 12px 10px; +} +@media screen and (max-width:1536px) { +.FlexBtn { + padding: 30px 8px !important; +} +td.FlexBtn span { + display: none; +} +td.FlexBtn .theme--light.v-btn { + min-width: 30px; + padding: 15px 10px; + margin-right: 1 !important; + +} +td.FlexBtn a.LinkBtn .theme--light.v-btn { + padding: 9px 10px; +} +td.FlexBtn .theme--light.v-icon { + margin-right: 0 !important; +} +} */ + diff --git a/resources/js/vue/views/TestResult/Show.vue b/resources/js/vue/views/TestResult/Show.vue index c28cbb18..6cbc4f12 100644 --- a/resources/js/vue/views/TestResult/Show.vue +++ b/resources/js/vue/views/TestResult/Show.vue @@ -102,9 +102,10 @@
- - - + +
@@ -121,13 +122,6 @@ -