| | |
| | | </ul> |
| | | <div v-else class="no-product">{{ "--" }}</div> |
| | | </div> |
| | | <div v-else-if="item.isProductCommon" class="product-view"> |
| | | <div v-else-if="item.isProductPrice" class="product-view"> |
| | | <ul v-if="scope.row.products && scope.row.products.length > 0"> |
| | | <li v-for="(item, index) in scope.row.products" :key="index"> |
| | | <div :class="scope.row.products.length === 1 ? 'name-view no-bottom' : 'name-view'"> |
| | | {{ item.prop === "price" ? item.price : item.total }} |
| | | {{ item.price }} |
| | | </div> |
| | | </li> |
| | | </ul> |
| | | <div v-else class="no-product">{{ "--" }}</div> |
| | | </div> |
| | | <div v-else-if="item.isProductTotal" class="product-view"> |
| | | <ul v-if="scope.row.products && scope.row.products.length > 0"> |
| | | <li v-for="(item, index) in scope.row.products" :key="index"> |
| | | <div :class="scope.row.products.length === 1 ? 'name-view no-bottom' : 'name-view'"> |
| | | {{ item.total }} |
| | | </div> |
| | | </li> |
| | | </ul> |
| | |
| | | } |
| | | }, 0) |
| | | sums[index + 1] |
| | | if (column.property === "taxUnitPrice") { |
| | | let sumPrice = 0 |
| | | this.tableList.tableInfomation.map((item) => { |
| | | item.products.map((val) => { |
| | | console.log(val.price) |
| | | sumPrice += parseFloat(val.price) |
| | | }) |
| | | }) |
| | | console.log((sums[index + 1] = sumPrice)) |
| | | console.log(sumPrice) |
| | | } |
| | | if (column.property === "priceTax") { |
| | | let sumPrice = 0 |
| | | this.tableList.tableInfomation.map((item) => { |
| | | item.products.map((val) => { |
| | | console.log(val.price) |
| | | sumPrice += parseFloat(val.total) |
| | | }) |
| | | }) |
| | | sums[index + 1] = sumPrice |
| | | } |
| | | if (column.property === "productAmount") { |
| | | let sumPrice = 0 |
| | | this.tableList.tableInfomation.map((item) => { |
| | | item.products.map((val) => { |
| | | console.log(val.price) |
| | | sumPrice += parseFloat(val.amount) |
| | | }) |
| | | }) |
| | | sums[index + 1] = sumPrice |
| | | } |
| | | } |
| | | }) |
| | | // console.log(sums) |