diff --git a/src/components/05_quotation/ProductItem.vue b/src/components/05_quotation/ProductItem.vue index aa48269a..aae67bfa 100644 --- a/src/components/05_quotation/ProductItem.vue +++ b/src/components/05_quotation/ProductItem.vue @@ -196,9 +196,11 @@ function handleCheck( ) { const target = data.workerIndex.indexOf(index); if (target > -1) { + data.amount -= 1; data.workerIndex.splice(target, 1); } else { data.workerIndex.push(index); + data.amount += 1; } }