| | |
| | | request.get(`/order/printOrderProductDetail/${props.orderId}/${selectedValues.value}`).then(res => { |
| | | data.value= res.data |
| | | productIdData.value=data.value.orderProductDetail |
| | | console.log(data.value.orderProductDetail) |
| | | data.value.orderProductDetail.forEach(item => { |
| | | |
| | | grossNum.value.quantity += getQuantity(item.productDetail) |
| | |
| | | const getArea = (productList) => { |
| | | let area = 0 |
| | | productList.forEach(item => { |
| | | area += item.grossArea |
| | | area += item.computeGrossArea |
| | | }) |
| | | return parseFloat(area.toFixed(2)) |
| | | |
| | |
| | | <td colspan="2" style="font-size: 15px;font-weight: bold;" v-if="items.otherColumns?.S02">{{items.otherColumns?.S02}}</td> |
| | | <td colspan="2" style="font-size: 15px;font-weight: bold;" v-else>{{items.width}}x{{items.height}}</td> |
| | | <td>{{items.quantity}}</td> |
| | | <td>{{items.grossArea}}</td> |
| | | <td>{{items.grossArea.toFixed(2)}}</td> |
| | | <td colspan="2">{{items.processingNote}}</td> |
| | | </tr> |
| | | <tr class="day-in" > |