|
|
@@ -345,18 +345,15 @@
|
|
|
feedbackImages.value = [...(data.siteFeedbackImages || [])]
|
|
|
editableItems.value = (data.items || []).map((it) => {
|
|
|
const brandQtyRows = mapBrandQtyRows(it)
|
|
|
- const actualFromBrand =
|
|
|
- it.brandMode && brandQtyRows.length ? Number(brandQtySum(brandQtyRows).toFixed(3)) : null
|
|
|
return {
|
|
|
...it,
|
|
|
brandOptions: it.brandOptions || [],
|
|
|
brandQtyRows,
|
|
|
- actualQtyText:
|
|
|
- actualFromBrand != null
|
|
|
- ? String(actualFromBrand)
|
|
|
- : it.actualQty != null
|
|
|
- ? String(it.actualQty)
|
|
|
- : ''
|
|
|
+ actualQtyText: it.brandMode
|
|
|
+ ? String(Number(brandQtySum(brandQtyRows).toFixed(3)))
|
|
|
+ : it.actualQty != null
|
|
|
+ ? String(it.actualQty)
|
|
|
+ : ''
|
|
|
}
|
|
|
})
|
|
|
selectedStatus.value = (
|