fix : item transfer conditions

This commit is contained in:
zeinab.ashrafi
2025-05-15 12:53:38 +03:30
parent be15f1352c
commit 5b232823e3
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -121,7 +121,7 @@
<v-tooltip bottom open-on-hover> <v-tooltip bottom open-on-hover>
<template v-slot:activator="{ on, attrs }"> <template v-slot:activator="{ on, attrs }">
<v-btn class="mr-2" v-bind="attrs" v-on="on" color="light-gray" <v-btn class="mr-2" v-bind="attrs" v-on="on" color="light-gray"
v-if="$hasRole('Admin|Supervisor') || item.user_id == $store.state.user.id" v-if="($hasRole('Admin|Supervisor') || item.user_id == $store.state.user.id) && !(item.package_id) && item.status ==='approved'"
@click="transfer(item)"> @click="transfer(item)">
<v-icon class="black--text mr-2 caption">fas fa-exchange-alt</v-icon> <v-icon class="black--text mr-2 caption">fas fa-exchange-alt</v-icon>
<span class="CSSD-font">Transfer</span> <span class="CSSD-font">Transfer</span>
+2 -1
View File
@@ -73,6 +73,7 @@
<td class="title font-weight-light">{{ item.udi }}</td> <td class="title font-weight-light">{{ item.udi }}</td>
<td class="title font-weight-light">{{ item.size }}</td> <td class="title font-weight-light">{{ item.size }}</td>
<td class="title font-weight-light">{{ item.status }}</td> <td class="title font-weight-light">{{ item.status }}</td>
<td class="title font-weight-light">{{ item.package_id }}</td>
<td class="text-xs-right FlexBtn Height-MD-60 justify-self-end"> <td class="text-xs-right FlexBtn Height-MD-60 justify-self-end">
<template v-if="$hasRole('Admin|Supervisor')"> <template v-if="$hasRole('Admin|Supervisor')">
<v-tooltip v-for="status in getStatus(item)" :key="status.label" bottom <v-tooltip v-for="status in getStatus(item)" :key="status.label" bottom
@@ -111,7 +112,7 @@
<span>Generate Barcode</span> <span>Generate Barcode</span>
</v-tooltip> </v-tooltip>
<v-tooltip bottom open-on-hover> <v-tooltip bottom open-on-hover>
<template v-slot:activator="{ on, attrs }"> <template v-slot:activator="{ on, attrs }" v-if="!(item.package_id) && item.status ==='approved'">
<v-btn class="mr-2" v-bind="attrs" v-on="on" color="light-gray" <v-btn class="mr-2" v-bind="attrs" v-on="on" color="light-gray"
@click="transfer(item)"> @click="transfer(item)">
<v-icon class="black--text mr-2 caption">fas fa-exchange-alt</v-icon> <v-icon class="black--text mr-2 caption">fas fa-exchange-alt</v-icon>