refactor: add deleteAttachment
This commit is contained in:
parent
3529f81352
commit
d839f41b24
1 changed files with 10 additions and 1 deletions
|
|
@ -206,7 +206,16 @@ defineProps<{
|
||||||
statusOcr = false;
|
statusOcr = false;
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
@save="(group: any, file: any) => {}"
|
@delete-file="
|
||||||
|
(filename) => {
|
||||||
|
if (!item.id) return;
|
||||||
|
|
||||||
|
customerFormStore.deleteAttachment(
|
||||||
|
{ branchId: item.id, customerId: item.customerId },
|
||||||
|
filename,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<template #form="{ mode }">
|
<template #form="{ mode }">
|
||||||
<FormCitizen
|
<FormCitizen
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue