|
|
@@ -13,21 +13,22 @@
|
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
|
<view class="space-view ex-table">
|
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
|
- <t-tr header><t-th>花材</t-th><t-th>库存</t-th><t-th>操作</t-th></t-tr>
|
|
|
+ <t-tr header><t-th><view style="width:240upx;text-align:left;">花材</view></t-th><t-th>库存</t-th><t-th>花店价</t-th><t-th>散客价</t-th></t-tr>
|
|
|
<block v-if="!$util.isEmpty(classItemData)">
|
|
|
<block v-for="(classItem,classIndex) in classItemData" :key="classIndex">
|
|
|
<block v-if="classItem.child && !$util.isEmpty(classItem.child)">
|
|
|
<t-tr>
|
|
|
- <t-td><text style="color:#3385FF;font-weight:bold;">{{ classItem.className }}</text></t-td>
|
|
|
+ <t-td><text style="color:#3385FF;font-weight:bold;width:240upx;text-align:left;">{{ classItem.className }}</text></t-td>
|
|
|
<t-td></t-td>
|
|
|
<t-td></t-td>
|
|
|
</t-tr>
|
|
|
<template v-if="classItem.child && !$util.isEmpty(classItem.child)">
|
|
|
<block v-for="(productItem, productIndex) in classItem.child" :key="productIndex">
|
|
|
<t-tr>
|
|
|
- <t-td><view>{{productItem.name}}</view></t-td>
|
|
|
- <t-td><view>{{productItem.stock?parseFloat(productItem.stock):0}}</view></t-td>
|
|
|
- <t-td></t-td>
|
|
|
+ <t-td><view style="width:240upx;text-align:left;">{{productItem.name}}</view></t-td>
|
|
|
+ <t-td><view style="color:#333333;font-weight:bold;">{{productItem.stock?parseFloat(productItem.stock):0}}</view></t-td>
|
|
|
+ <t-td><view>{{productItem.price?parseFloat(productItem.price):0}}</view></t-td>
|
|
|
+ <t-td><view>{{productItem.skPrice?parseFloat(productItem.skPrice):0}}</view></t-td>
|
|
|
</t-tr>
|
|
|
</block>
|
|
|
</template>
|