Browse Source

库存管理 修改库存为0 隐藏出库按钮

master
邓宏 2 years ago
parent
commit
95ee5c272a
  1. 10
      pages/stock/mana.vue

10
pages/stock/mana.vue

@ -100,11 +100,11 @@
height:48rpx;
width: 96rpx;
font-size:24rpx;
&:first-child{
&.out{
color:#10C176;
background:rgba(16, 193, 119, 0.1);
}
&:nth-child(2){
&.in{
margin-left:20rpx;
color:#fff;
background:#10C176;
@ -153,8 +153,8 @@
<view class="num">
<text>库存量{{v.equivalentInventory||0}}{{v.packgeUnit}}</text>
<view class="btns">
<button class="cu-btn" @click="toList('out',v)">出库</button>
<button class="cu-btn" @click="toList('in',v)">入库</button>
<button v-if="v.equivalentInventory>0" class="cu-btn out" @click="toList('out',v)">出库</button>
<button class="cu-btn in" @click="toList('in',v)">入库</button>
</view>
</view>
</template>
@ -168,7 +168,7 @@
<text class="detailType">{{v.detailType}}</text>
<text class="warehouse over">{{v.wareHouseName}}</text>
<view class="btns">
<button class="cu-btn" @click="toList('out',v)">出库</button>
<button v-if="v.equivalentInventory>0" class="cu-btn out" @click="toList('out',v)">出库</button>
<!-- <button class="cu-btn" @click="toList('in',v)">入库</button> -->
</view>
</view>

Loading…
Cancel
Save