fix(03): view customer card
This commit is contained in:
parent
75a8e43a22
commit
c9f23397e3
3 changed files with 23 additions and 3 deletions
|
|
@ -2290,6 +2290,7 @@ watch(isMainPage, () => {
|
|||
<PersonCard
|
||||
:id="`card-${props.row.customerName}`"
|
||||
:field-selected="fieldSelected"
|
||||
separateEnter
|
||||
history
|
||||
:prefix-id="
|
||||
props.row.customerNameEN ?? props.rowIndex
|
||||
|
|
@ -2360,6 +2361,18 @@ watch(isMainPage, () => {
|
|||
isMainPage = false;
|
||||
}
|
||||
"
|
||||
@view-card="
|
||||
() => {
|
||||
if (!listCustomer) return;
|
||||
customerType = props.row.customerType;
|
||||
const { branch, ...payload } = props.row;
|
||||
currentCustomer = payload;
|
||||
currentCustomerId = props.row.id;
|
||||
assignFormData(props.row.id);
|
||||
infoDrawerEdit = true;
|
||||
openDialogInputForm('INFO', props.row.id);
|
||||
}
|
||||
"
|
||||
@delete-card="deleteCustomerById(props.row.id)"
|
||||
@toggle-status="
|
||||
triggerChangeStatus(props.row.id, props.row.status)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue