盘点确认

master
Mr.sun 2 years ago
parent 6a55d4b23f
commit 2cdf8ebf19
  1. 2
      pages/inventory/index.scss
  2. 27
      pages/inventory/index.vue

@ -150,7 +150,7 @@
align-items: center;
.item-title {
// width: 120rpx;
width: 120rpx;
font-size: 24rpx;
color: #555555;
}

@ -47,11 +47,11 @@
<view class="card-content">
<view class="card-content-item">
<text class="item-title" style="width: 55px;">库存数量:</text>
<text class="item-title" style="width: 58px;">库存数量:</text>
<text class="item-value">{{item.quantity}}</text>
</view>
<view class="card-content-item">
<text class="item-title" style="width: 55px;">盘点数量:</text>
<text class="item-title" style="width: 58px;">盘点数量:</text>
<text class="item-value">{{item.invQty}}</text>
</view>
@ -62,16 +62,7 @@
</view>
<view style="width: 100%;display: flex;align-items: baseline;">
<text style="margin: 0px 20px 0px;">商品编码:</text> <input v-model="form.goodNo" placeholder="请扫描商品编码" style="border:1px solid #000;padding-right: 20px;"></u-input>
</view>
<!-- <view style="width: 100%;display: flex;align-items: baseline;">
<text style="margin: 10px 20px 10px;">批次日期:</text>
<u-input v-model="form.batch" style="margin-right: 30px;" type="select" placeholder="请选择批次日期" prop="batch" class="u-input"
placeholder-style="color:#000000" @click="selShow = true" />
<u-select :mask-close-able="false" :safe-area-inset-bottom="true" v-model="selShow"
mode="single-column" :list="lockstockBatch" @confirm="confirm" />
</view> -->
<view style="width: 100%;display: flex;align-items: baseline;">
<text style="margin: 0px 20px 0px;">缴库数量:</text> <input v-model="form.invQty" style="border:1px solid #000;padding-right: 20px;"></u-input>
</view>
@ -137,7 +128,8 @@
form:{
goodNo:'',
batch:'',
invQty:''
invQty:'',
id:''
},
isActive:0,
loadStatus: 'loadmore',
@ -215,13 +207,14 @@
},
qtyEnter(item){
this.show=true
this.form.id=item.id
this.form.goodNo=item.goodNo
this.form.containerCode=item.containerCode
this.form.quantity=item.quantity
this.form.goodName=item.goodName
// this.form.containerCode=item.containerCode
// this.form.quantity=item.quantity
// this.form.goodName=item.goodName
this.form.invQty=item.invQty
// this.invQty=item.qty
this.invid=item.id
// this.invid=item.id
},
noEnter(){
this.show=false
@ -271,7 +264,7 @@
if(!res.rows || res.rows.length == 0){
this.$u.toast("当前托盘内商品不存在");
}else if(res.code == '200'){
res.row.forEach(item=>{
res.rows.forEach(item=>{
item.invQty=item.quantity
})
this.dataList=res.rows

Loading…
Cancel
Save