master
Mr.sun 2 years ago
parent 05443e182a
commit 6a55d4b23f
  1. 50
      pages/inventory/index.vue
  2. 3
      pages/payInto/index.vue

@ -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(){

@ -148,7 +148,8 @@
// pageSize: 10,
ptPart: ''
},
dataList: [{
dataList: [
{
rerpPart: '222222',
ptName: 'ptName',
containerCode: '11111',

Loading…
Cancel
Save