This commit is contained in:
sajjad
2023-09-25 02:23:32 -07:00
parent eb9a033de9
commit b5d82b6543
6 changed files with 63 additions and 98 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
<v-layout class="px-5 mb-3">
<v-flex xs12 md4 sm4 class="WM-FlexCenter">
<v-icon class="fa fa-align-left mr-2 WM-Margin-B-8"></v-icon>
<v-text-field name="UID" label="UID" color="black" v-model="formData.uid" :rules="[rules.required]"
<v-text-field name="UDI" label="UDI" color="black" v-model="formData.udi" :rules="[rules.required]"
class="py-3 pr-3"></v-text-field>
</v-flex>
<v-flex xs12 md8 sm8 class="WM-FlexCenter" v-if="galleryDataLoaded">
+10 -4
View File
@@ -51,9 +51,10 @@
<td class="title font-weight-light">{{ item.id }}</td>
<!-- <td class="title font-weight-light">{{ item.unique_id }}</td> -->
<td class="title font-weight-light">{{ item.name }}</td>
<td class="title font-weight-light">{{ item.user ? item.user.name : '' }}</td>
<td class="title font-weight-light">{{ (item.user && item.user.medical_center) ?
item.user.medical_center.name : '' }}</td>
<td class="title font-weight-light">{{ item.uid }}</td>
<td class="title font-weight-light">{{ item.udi }}</td>
<td class="title font-weight-light">{{ item.size }}</td>
<td class="text-xs-right FlexBtn Height-MD-60">
<v-tooltip bottom open-on-hover v-if="$hasRole('Supervisor|Admin')">
@@ -155,6 +156,11 @@ export default {
text: "Name",
value: "name"
},
{
sortable: true,
text: "User",
value: "User"
},
{
sortable: true,
text: "Hospital",
@@ -162,8 +168,8 @@ export default {
},
{
sortable: false,
text: "UID",
value: "uid"
text: "UDI",
value: "udi"
},
{
sortable: false,
@@ -213,7 +219,7 @@ export default {
this.loadMedicalCenters();
},
async generateBarcode(item, type = null) {
let code = item.uid ? item.uid : item.id;
let code = item.udi ? item.udi : item.id;
const result = await ApiService.post(urls.Barcode(code, type));
if (result && result.status == 200) {
this.changeCurrentModal({