refactor: Continue function
This commit is contained in:
parent
a31fd5f40e
commit
577d4a64ea
1 changed files with 15 additions and 3 deletions
|
|
@ -1027,7 +1027,7 @@ const emptyCreateDialog = ref(false);
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td v-if="fieldSelected.includes('businessTypePure')">
|
<q-td v-if="fieldSelected.includes('businessTypePure')">
|
||||||
{{ props.row.businessTypePure || '-' }}
|
{{ props.row.branch?.[0].businessType || '-' }}
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
<q-td v-if="fieldSelected.includes('address')">
|
<q-td v-if="fieldSelected.includes('address')">
|
||||||
|
|
@ -1299,13 +1299,25 @@ const emptyCreateDialog = ref(false);
|
||||||
]"
|
]"
|
||||||
:disabled="props.row.status === 'INACTIVE'"
|
:disabled="props.row.status === 'INACTIVE'"
|
||||||
@history="openHistory(props.row.id)"
|
@history="openHistory(props.row.id)"
|
||||||
@update-card="() => {}"
|
@update-card="
|
||||||
|
async () => {
|
||||||
|
await editCustomerForm(props.row.id);
|
||||||
|
customerFormState.dialogType = 'edit';
|
||||||
|
customerFormState.readonly = false;
|
||||||
|
}
|
||||||
|
"
|
||||||
@enter-card="
|
@enter-card="
|
||||||
$router.push(
|
$router.push(
|
||||||
`/customer-management/${props.row.id}/branch`,
|
`/customer-management/${props.row.id}/branch`,
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
@view-card="console.log('view customer')"
|
@view-card="
|
||||||
|
() => {
|
||||||
|
const { branch, ...payload } = props.row;
|
||||||
|
currentCustomer = payload;
|
||||||
|
editCustomerForm(props.row.id);
|
||||||
|
}
|
||||||
|
"
|
||||||
@delete-card="deleteCustomerById(props.row.id)"
|
@delete-card="deleteCustomerById(props.row.id)"
|
||||||
@toggle-status="
|
@toggle-status="
|
||||||
triggerChangeStatus(props.row.id, props.row.status)
|
triggerChangeStatus(props.row.id, props.row.status)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue