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

Loading…
Cancel
Save