<!--packageI/newRetailInventoryDetails/newRetailInventoryDetails.wxml-->
<view class="list-row" wx:for="{{list}}" wx:key="item.id">
  <view class="list-col text-left">{{ item.state_name }}</view>
  <!-- <view class="list-col text-right" :class="{ 'red-color': Number(item.change_num) > 0 }">{{ Number(item.change_num) > 0
    ? `+${item.change_num}` : item.change_num }}</view> -->
  <view class="list-col text-right {{item.change_num > 0?'red-color':''}}">{{item.change_num > 0 ? '+'+item.change_num:item.change_num}}</view>
  <view class="list-col text-left text-time font-color">{{ item.created_at }}</view>
  <view class="list-col text-right text-time ">剩余: {{ item.stock_new }}</view>
</view>
<yz-blank datas="{{list}}" wx:if="{{list.length == 0}}"></yz-blank>