fix: paysplit assign & info display

This commit is contained in:
puriphatt 2024-10-17 14:51:42 +07:00
parent b55437fa7e
commit 3a192c0d77
3 changed files with 17 additions and 3 deletions

View file

@ -275,6 +275,12 @@ async function convertDataToFormSubmit() {
),
);
quotationFormData.value.paySplit = JSON.parse(
JSON.stringify(
quotationFormData.value.paySplit.map((p) => ({ ...p, no: undefined })),
),
);
quotationFormData.value = {
id: quotationFormData.value.id,
productServiceList: quotationFormData.value.productServiceList,
@ -828,6 +834,7 @@ async function searchEmployee(text: string) {
:class="{ 'full-height': $q.screen.gt.xs }"
>
<QuotationFormInfo
:mode="quotationFormState.mode"
:quotation-no="(quotationFull && quotationFull.code) || ''"
v-model:urgent="quotationFormData.urgent"
:actor="quotationFormState.createdBy?.($i18n.locale) || ''"
@ -993,7 +1000,6 @@ async function searchEmployee(text: string) {
"
@search="
(id, text, mode) => {
console.log(mode);
if (mode === 'service') {
getAllService(id, { force: true, query: text, pageSize: 50 });
}