refactor: variable name

This commit is contained in:
Methapon2001 2025-01-06 10:41:33 +07:00
parent 8c80cf036d
commit 9d30aa5f9a

View file

@ -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);
}