diff --git a/src/components/modal/barcode/Barcode.vue b/src/components/modal/barcode/Barcode.vue index 9f80a12..1120dcd 100644 --- a/src/components/modal/barcode/Barcode.vue +++ b/src/components/modal/barcode/Barcode.vue @@ -13,8 +13,9 @@ {{ Type + ':' + ID }} - + + + diff --git a/src/components/modal/item/show.vue b/src/components/modal/item/show.vue index 5e0113e..4df92a7 100644 --- a/src/components/modal/item/show.vue +++ b/src/components/modal/item/show.vue @@ -90,7 +90,7 @@
- Item ID : {{ data.id }} + Item UDI : {{ data.udi }}
diff --git a/src/views/MyItem/List.vue b/src/views/MyItem/List.vue index 199edd8..bda7f0d 100644 --- a/src/views/MyItem/List.vue +++ b/src/views/MyItem/List.vue @@ -31,17 +31,19 @@ Filter - + @@ -207,16 +209,22 @@ export default { items() { return this.getMyItems; }, - currentPage() { - return this.getCurrentPage; + currentPage: { + get() { + return this.getCurrentPage; + }, + set(val) { + this.$store.commit('myItems/SET_MY_ITEMS_CURRENT_PAGE', val); + this.$store.dispatch('myItems/loadMyItem', val); + } }, lastPage() { return this.getLastPage; - }, + } }, methods: { ...mapMutations('myItems', ["SET_FILTER"]), - ...mapMutations("modal", ["changeCurrentModal",'closeModal']), + ...mapMutations("modal", ["changeCurrentModal", 'closeModal']), ...mapActions('myItems', ['loadMyItem', 'removeItem', 'showItem', 'generateBarcode']), onFilterClick() { this.loadMyItem(); @@ -281,8 +289,8 @@ export default { getStatus(item) { if (item.status === 'pending') { return [ - {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'}, + {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' @@ -307,10 +315,12 @@ export default { } } }, + watch: { currentPage(page) { - this.loadMyItem(page); - }, + this.$store.dispatch('myItems/loadMyItem', page); + } } + }; \ No newline at end of file diff --git a/src/views/MyPackage/List.vue b/src/views/MyPackage/List.vue index 93bf5fa..beb6800 100644 --- a/src/views/MyPackage/List.vue +++ b/src/views/MyPackage/List.vue @@ -62,7 +62,7 @@ {{ item.description }} - {{ i.id }} , + {{ i.udi }} , {{ item.status }} @@ -186,7 +186,7 @@ export default { {sortable: false, text: "Name", value: "name"}, {sortable: false, text: "Hospital", value: "Hospital"}, {sortable: false, text: "Description", value: "description"}, - {sortable: false, text: "Items", value: "item"}, + {sortable: false, text: "Items UDI", value: "item"}, {sortable: false, text: "Status", value: "status"}, {sortable: false, text: "Action", value: "action", align: "center", width: '20%'} ], diff --git a/src/views/Package/List.vue b/src/views/Package/List.vue index 70ef85b..125e93d 100644 --- a/src/views/Package/List.vue +++ b/src/views/Package/List.vue @@ -65,7 +65,7 @@ {{ item.description }} - {{ i.id }} , + {{ i.udi }} , {{ item.status }} @@ -190,7 +190,7 @@ export default { {sortable: false, text: "Hospital", value: "Hospital"}, {sortable: false, text: "Owner", value: "User"}, {sortable: false, text: "Description", value: "description"}, - {sortable: false, text: "Items", value: "items"}, + {sortable: false, text: "Items UDI", value: "items"}, {sortable: false, text: "Status", value: "status"}, {sortable: false, text: "Action", value: "action", align: "center", width: '20%'} ],