fix: correct form submission handler and update step status attributes

This commit is contained in:
puriphatt 2024-12-26 13:02:15 +07:00
parent 594a416e3d
commit e445d0e7d2
2 changed files with 7 additions and 6 deletions

View file

@ -119,7 +119,7 @@ function assignToForm() {
id="btn-info-basic-save"
icon-only
type="submit"
@click.stop="refForm?.submit()"
@click.stop="refForm?.submit"
/>
<EditButton
v-if="!state.isEdit"

View file

@ -782,11 +782,12 @@ function goToQuotation(
"
@update-attributes="
(opt) => {
value.stepStatus[pageState.currentStep - 1] = {
...opt,
requestWorkId: value.id || '',
step: pageState.currentStep,
};
value.stepStatus[
pageState.currentStep - 1
].responsibleUserId = opt.responsibleUserId;
value.stepStatus[
pageState.currentStep - 1
].responsibleUserLocal = opt.responsibleUserLocal;
}
"
/>