refactor: show peview
This commit is contained in:
parent
1a6e28d17a
commit
0d07cacfc0
5 changed files with 86 additions and 42 deletions
|
|
@ -5,7 +5,7 @@ import { computed, onMounted, ref, watch } from 'vue';
|
|||
import { getUserId } from 'src/services/keycloak';
|
||||
|
||||
// NOTE: Import Components
|
||||
import { SaveButton } from 'src/components/button';
|
||||
import { SaveButton, MainButton } from 'src/components/button';
|
||||
import { StateButton } from 'components/button';
|
||||
import InfoMessengerExpansion from '../expansion/receive/InfoMessengerExpansion.vue';
|
||||
import InfoProductExpansion from '../expansion/receive/InfoProductExpansion.vue';
|
||||
|
|
@ -337,6 +337,10 @@ onMounted(async () => {
|
|||
}
|
||||
});
|
||||
|
||||
function viewDocument(id: string) {
|
||||
window.open(`/task-order/${id}/doc-prouct-receive`, '_blank');
|
||||
}
|
||||
|
||||
watch([currentFormData.value.taskStatus], () => {
|
||||
fetchStatus();
|
||||
});
|
||||
|
|
@ -693,6 +697,17 @@ watch([currentFormData.value.taskStatus], () => {
|
|||
class="surface-1 q-pa-md full-width"
|
||||
>
|
||||
<nav class="row justify-end">
|
||||
<MainButton
|
||||
class="q-mr-auto"
|
||||
v-if="currentFormData.id"
|
||||
outlined
|
||||
icon="mdi-play-box-outline"
|
||||
color="207 96% 32%"
|
||||
@click="viewDocument(currentFormData.id)"
|
||||
>
|
||||
{{ $t('general.view', { msg: $t('general.example') }) }}
|
||||
</MainButton>
|
||||
|
||||
<SaveButton
|
||||
:disabled="
|
||||
!fullTaskOrder.taskList.every(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue