|
@@ -12,17 +12,21 @@
|
|
|
<t-th>类型</t-th>
|
|
<t-th>类型</t-th>
|
|
|
<t-th>金额</t-th>
|
|
<t-th>金额</t-th>
|
|
|
</t-tr>
|
|
</t-tr>
|
|
|
- <t-tr v-for="(item, inIndex) in profit.income" :key="inIndex">
|
|
|
|
|
- <t-td><view style="color:black;font-size:30upx;">{{item.name}}</view></t-td>
|
|
|
|
|
- <t-td><view style="color:black;font-size:30upx;">{{item.amount}}</view></t-td>
|
|
|
|
|
- </t-tr>
|
|
|
|
|
- <!--同个节点v-for key重复会报错,所以再包一层-->
|
|
|
|
|
- <view>
|
|
|
|
|
- <t-tr v-for="(item, exIndex) in profit.expend" :key="exIndex">
|
|
|
|
|
|
|
+ <block v-for="(item, inIndex) in profit.income" :key="inIndex">
|
|
|
|
|
+ <t-tr v-if="Number(item.amount)>0">
|
|
|
<t-td><view style="color:black;font-size:30upx;">{{item.name}}</view></t-td>
|
|
<t-td><view style="color:black;font-size:30upx;">{{item.name}}</view></t-td>
|
|
|
- <t-td v-if="item.amount==0"><view style="color:black;font-size:30upx;">0</view></t-td>
|
|
|
|
|
- <t-td v-else><view style="color:black;font-size:30upx;">-{{item.amount}}</view></t-td>
|
|
|
|
|
|
|
+ <t-td><view style="color:black;font-size:30upx;">{{item.amount}}</view></t-td>
|
|
|
</t-tr>
|
|
</t-tr>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <!--同个节点v-for key重复会报错,所以再包一层-->
|
|
|
|
|
+ <view>
|
|
|
|
|
+ <block v-for="(item, exIndex) in profit.expend" :key="exIndex">
|
|
|
|
|
+ <t-tr v-if="Number(item.amount)>0">
|
|
|
|
|
+ <t-td><view style="color:black;font-size:30upx;">{{item.name}}</view></t-td>
|
|
|
|
|
+ <t-td v-if="item.amount==0"><view style="color:black;font-size:30upx;">0</view></t-td>
|
|
|
|
|
+ <t-td v-else><view style="color:black;font-size:30upx;">-{{item.amount}}</view></t-td>
|
|
|
|
|
+ </t-tr>
|
|
|
|
|
+ </block>
|
|
|
</view>
|
|
</view>
|
|
|
<t-tr>
|
|
<t-tr>
|
|
|
<t-td align="center">
|
|
<t-td align="center">
|
|
@@ -33,7 +37,7 @@
|
|
|
<t-tr>
|
|
<t-tr>
|
|
|
<t-td align="center">
|
|
<t-td align="center">
|
|
|
<view style="font-weight:bold;font-size:30upx;">
|
|
<view style="font-weight:bold;font-size:30upx;">
|
|
|
- 花材损耗损失 ¥{{profit.wastagePrice||0}}
|
|
|
|
|
|
|
+ 花材损耗 ¥{{profit.wastagePrice||0}}
|
|
|
</view>
|
|
</view>
|
|
|
</t-td>
|
|
</t-td>
|
|
|
</t-tr>
|
|
</t-tr>
|