feat: 订单商品明细显示颜色长度宽高度数量总面面积
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-04-01 16:25:41 +00:00
parent 10b421d682
commit b62c62c6e0

View File

@@ -47,7 +47,8 @@
<view v-for="(item, index) in orderItems" :key="index" class="order-item">
<view class="item-info">
<text class="item-name">{{ item.productName }}</text>
<text class="item-spec">{{ item.spec || '-' }}</text>
<text class="item-spec" v-if="item.length && item.width">{{ item.spec || '-' }} {{ item.length }} x {{ item.width }} x {{ item.quantity }} = {{ (item.length * item.width * item.quantity / 1000000).toFixed(4) }} m²</text>
<text class="item-spec" v-else>{{ item.spec || '-' }}</text>
</view>
<view class="item-edit">
<view class="quantity-edit">
@@ -335,6 +336,9 @@ export default {
spec: product.spec,
unit: product.unit,
price: product.price,
length: product.length || '',
width: product.width || '',
area: product.area || '',
quantity: 1
})
this.calcAmount()