From 9d30aa5f9a38aaf6529d41dbe65e9e49029e893e Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Mon, 6 Jan 2025 10:41:33 +0700 Subject: [PATCH] refactor: variable name --- src/pages/05_quotation/QuotationForm.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index 34f0e61e..629f6590 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -829,9 +829,9 @@ function convertToTable(nodes: Node[]) { tempPaySplitCount.value = quotationFormData.value.paySplitCount; list.forEach((v) => { - v.amount = Math.max(selectedWorker.value.length, 1); + v.amount = Math.max(selectedWorkerItem.value.length, 1); if (!v.workerIndex) v.workerIndex = []; - for (let i = 0; i < selectedWorker.value.length; i++) { + for (let i = 0; i < selectedWorkerItem.value.length; i++) { v.workerIndex.push(i); }