fix: refs #8388 update file attachment logic and redirect after invoice creation
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
14ccfc18a9
commit
df3bbfe5e4
|
@ -46,9 +46,11 @@ const dms = ref({});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
defaultData();
|
defaultData();
|
||||||
if (!$props.formInitialData)
|
if (!$props.formInitialData) {
|
||||||
dms.value.description =
|
dms.value.description =
|
||||||
$props.description ?? t($props.model + 'Description', dms.value);
|
$props.description ?? t($props.model + 'Description', dms.value);
|
||||||
|
dms.value.hasFile = false;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
function onFileChange(files) {
|
function onFileChange(files) {
|
||||||
dms.value.hasFileAttached = !!files;
|
dms.value.hasFileAttached = !!files;
|
||||||
|
|
|
@ -156,7 +156,7 @@ const cols = computed(() => [
|
||||||
:create="{
|
:create="{
|
||||||
urlCreate: 'InvoiceIns',
|
urlCreate: 'InvoiceIns',
|
||||||
title: t('globals.createInvoiceIn'),
|
title: t('globals.createInvoiceIn'),
|
||||||
onDataSaved: ({ id }) => tableRef.redirect(id),
|
onDataSaved: ({ id }) => tableRef.redirect(`${id}/basic-data`),
|
||||||
formInitialData: { companyFk: user.companyFk, issued: Date.vnNew() },
|
formInitialData: { companyFk: user.companyFk, issued: Date.vnNew() },
|
||||||
}"
|
}"
|
||||||
redirect="invoice-in"
|
redirect="invoice-in"
|
||||||
|
|
Loading…
Reference in New Issue