feat: 订单商品明细显示颜色长度宽高度数量总面面积
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user