Browse Source

修改判断 数量为0 不能修改

master
邓宏 2 years ago
parent
commit
838895faf5
  1. 2
      pages/massif/mana/plantPlan.vue
  2. 2
      pages/massif/mana/recovery.vue

2
pages/massif/mana/plantPlan.vue

@ -129,7 +129,7 @@
<view class="plant_plan"> <view class="plant_plan">
<scroll-view scroll-y @scrolltolower="search"> <scroll-view scroll-y @scrolltolower="search">
<view class="card" v-for="(v,k) in list" :key="k"> <view class="card" v-for="(v,k) in list" :key="k">
<view class="info" @click="reDetail(v.id)"> <view class="info" @click="v.farmNum>0 && reDetail(v.id)">
<u-image :data-type="v.plantType" radius="20rpx" width="170rpx" height="140rpx" mode="aspectFill" :src="`${host}/${v.images}`"> <u-image :data-type="v.plantType" radius="20rpx" width="170rpx" height="140rpx" mode="aspectFill" :src="`${host}/${v.images}`">
<text slot="error" style="font-size:45rpx;" class="plant-xiaopangchetupianjiazaishibai"/> <text slot="error" style="font-size:45rpx;" class="plant-xiaopangchetupianjiazaishibai"/>
</u-image> </u-image>

2
pages/massif/mana/recovery.vue

@ -124,7 +124,7 @@
<view class="info"> <view class="info">
<text class="people">负责人:{{v.principal}}</text> <text class="people">负责人:{{v.principal}}</text>
<text class="date">采收日期:{{v.harvestTime}}</text> <text class="date">采收日期:{{v.harvestTime}}</text>
<text class="plant-jinrongjiaoyi" @click="toAddTransaction(v)">交易</text> <text class="plant-jinrongjiaoyi" v-if="v.harvestNum>0" @click="toAddTransaction(v)">交易</text>
</view> </view>
</view> </view>
</view> </view>

Loading…
Cancel
Save