This commit is contained in:
Viet An
2026-05-14 09:11:18 +07:00
parent 336c8c9036
commit 4d37397ee4
25 changed files with 450 additions and 209 deletions

View File

@@ -176,11 +176,9 @@ async function handleFileUpload(uploadedFiles) {
@click.prevent="openModal"
>Hợp đồng</a
>
<!-- <span v-if="!store.dealer" class="mx-1 has-text-grey-light"></span> -->
<FileUpload
v-if="
txndetail.phase === 7 &&
!store.dealer &&
$getEditRights('edit', {
code: 'transaction',
category: 'topmenu',

View File

@@ -5,8 +5,7 @@ const props = defineProps({
transaction__code: String,
});
const { $exportpdf, $getdata, $snackbar, $store } = useNuxtApp();
const { dealer } = $store;
const { $exportpdf, $getdata, $snackbar } = useNuxtApp();
const txn = ref(null);
const txndetails = ref(null);
const showModal = ref(null);
@@ -83,7 +82,7 @@ onMounted(async () => {
class="column is-narrow is-flex is-align-items-center is-gap-2"
>
<button
v-if="txn?.phase === 4 && !dealer && $getEditRights('edit', { code: 'transaction', category: 'topmenu' })"
v-if="txn?.phase === 4 && $getEditRights('edit', { code: 'transaction', category: 'topmenu' })"
@click="openChangeCustomerModal"
class="button is-link"
>