diff --git a/src/pages/11_credit-note/document-view/MainPage.vue b/src/pages/11_credit-note/document-view/MainPage.vue index 5c2aae4d..f26c1c42 100644 --- a/src/pages/11_credit-note/document-view/MainPage.vue +++ b/src/pages/11_credit-note/document-view/MainPage.vue @@ -51,7 +51,7 @@ const bankList = ref([]); const worker = ref([]); const taskListGroup = ref< { - product: RequestWork['productService']['product']; + product: RequestWork['productService']; list: RequestWork[]; }[] >([]); @@ -59,7 +59,7 @@ const taskListGroup = ref< const elements = ref([]); const chunks = ref< { - product: RequestWork['productService']['product']; + product: RequestWork['productService']; list: RequestWork[]; }[][] >([[]]); @@ -112,6 +112,7 @@ async function getAttachment(quotationId: string) { } async function assignData() { + console.log(taskListGroup.value); for (let i = 0; i < taskListGroup.value.length; i++) { let el = elements.value.at(-1); @@ -269,7 +270,7 @@ function print() {
-
+
{{ $t('preview.pricePerUnit') }} {{ $t('preview.value') }} - + {{ console.log(chunks) }} + {{ console.log(chunk) }} + {{ i + 1 }} - {{ v.product.code }} - {{ v.product.name }} + {{ v.product.product.code }} + {{ v.product.product.name }} {{ formatNumberDecimal( - calcPricePerUnit(v.product) + - (v.product.calcVat - ? calcPricePerUnit(v.product) * (config?.vat || 0.07) + calcPricePerUnit(v.product.product) + + (v.product.product.calcVat + ? calcPricePerUnit(v.product.product) * + (config?.vat || 0.07) : 0), 2, ) }} - {{ formatNumberDecimal(calcPrice(v.product, v.list.length), 2) }} + {{ + formatNumberDecimal( + calcPrice(v.product.product, v.list.length), + 2, + ) + }} @@ -513,14 +522,16 @@ function print() {