|
|
|
|
@ -15,7 +15,7 @@ |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
<view class='recommend'> |
|
|
|
|
<text class='recommend-title global-font'>待商品物料信息</text> |
|
|
|
|
<text class='recommend-title global-font'>待盘点商品信息</text> |
|
|
|
|
</view> |
|
|
|
|
<!-- {{dataList}} --> |
|
|
|
|
<view class="all-card"> |
|
|
|
|
@ -245,9 +245,7 @@ |
|
|
|
|
undefined) { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
// this.queryFlag = setTimeout(() => { |
|
|
|
|
this.loadList() |
|
|
|
|
// }, 500) |
|
|
|
|
}, |
|
|
|
|
onNavigationBarButtonTap(e){ |
|
|
|
|
}, |
|
|
|
|
@ -258,7 +256,6 @@ |
|
|
|
|
this.pickUpObj.moldBarcodeList.splice(index,1) |
|
|
|
|
}, |
|
|
|
|
loadList() { |
|
|
|
|
|
|
|
|
|
//防抖 |
|
|
|
|
// clearInterval(this.timer) |
|
|
|
|
this.timer =setTimeout(()=>{ |
|
|
|
|
@ -269,30 +266,14 @@ |
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
flag = true |
|
|
|
|
this.firstFocus=false |
|
|
|
|
// this.$u.api.inv.pdaInvByContainerCode(this.dataForm).then(res=>{ |
|
|
|
|
// console.log(res); |
|
|
|
|
// if(!res.rows || res.rows.length == 0){ |
|
|
|
|
// // console.log(res); |
|
|
|
|
// // this.$u.toast("当前商品不存在"); |
|
|
|
|
// }else if(res.code == '200'){ |
|
|
|
|
// console.log(res); |
|
|
|
|
// this.dataList=res.rows |
|
|
|
|
// setTimeout(()=>{ |
|
|
|
|
// this.dataForm.containerCode='' |
|
|
|
|
// },0) |
|
|
|
|
// this.$nextTick(()=>{ |
|
|
|
|
// this.firstFocus = true |
|
|
|
|
// }) |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// }) |
|
|
|
|
this.$u.api.invPlan.pdaInvByContainerCode(this.dataForm).then(res=>{ |
|
|
|
|
if(!res.rows || res.rows.length == 0){ |
|
|
|
|
// console.log(res); |
|
|
|
|
this.$u.toast("当前台车内物料不存在"); |
|
|
|
|
this.$u.toast("当前托盘内商品不存在"); |
|
|
|
|
}else if(res.code == '200'){ |
|
|
|
|
// console.log(res); |
|
|
|
|
res.row.forEach(item=>{ |
|
|
|
|
item.invQty=item.quantity |
|
|
|
|
}) |
|
|
|
|
this.dataList=res.rows |
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
this.dataForm.containerCode='' |
|
|
|
|
@ -319,14 +300,14 @@ |
|
|
|
|
// this.$u.toast("请扫描物料编码"); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
if(this.form.batch === null |
|
|
|
|
|| this.form.batch === '' |
|
|
|
|
|| this.form.batch === 0 |
|
|
|
|
|| this.form.batch === undefined |
|
|
|
|
|| this.form.batch ==='undefined'){ |
|
|
|
|
this.$u.toast("请选择批次"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// if(this.form.batch === null |
|
|
|
|
// || this.form.batch === '' |
|
|
|
|
// || this.form.batch === 0 |
|
|
|
|
// || this.form.batch === undefined |
|
|
|
|
// || this.form.batch ==='undefined'){ |
|
|
|
|
// this.$u.toast("请选择批次"); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
if(this.form.invQty === null |
|
|
|
|
|| this.form.invQty === '' |
|
|
|
|
|| this.form.invQty === 0 |
|
|
|
|
@ -336,17 +317,13 @@ |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
this.$u.api.invPlan.entrySave(this.form).then(res=>{ |
|
|
|
|
// console.log(res); |
|
|
|
|
if(res.code==200){ |
|
|
|
|
this.$u.toast("修改完成"); |
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
// this.$router.go(0) |
|
|
|
|
this.$u.api.invPlan.pdaInvByContainerCode({containerCode:this.form.containerCode}).then(res=>{ |
|
|
|
|
if(!res.rows || res.rows.length == 0){ |
|
|
|
|
// console.log(res); |
|
|
|
|
this.$u.toast("当前台车内物料不存在"); |
|
|
|
|
}else if(res.code == '200'){ |
|
|
|
|
// console.log(res); |
|
|
|
|
this.dataList=res.rows |
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
this.dataForm.containerCode='' |
|
|
|
|
@ -365,7 +342,6 @@ |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
confirm(e){ |
|
|
|
|
// console.log(val); |
|
|
|
|
this.form.batch=e[0].label; |
|
|
|
|
}, |
|
|
|
|
pickUp(){ |
|
|
|
|
|