Browse Source

添加到货检验参数

wms3.0_pda
lijuncheng 10 months ago
parent
commit
47867c8eb8
  1. 39
      pages/inspect/job/inspectDetail.vue
  2. 8
      pages/inspect/job/inspectResult.vue
  3. 4
      pages/putaway/record/putawayRecord.vue

39
pages/inspect/job/inspectDetail.vue

@ -31,7 +31,6 @@
</template>
<script>
import {
takeInspectJob,
cancleTakeInspectJob,
@ -181,9 +180,9 @@
res.crackQty = 0;
res.sampleQty = 0;
res.notPassedQty = 0;
res.failedReason ="";
res.failedReason = "";
res.photos = ""
res.inspectResult =""
res.inspectResult = ""
})
that.detailSource = getDataSource(that.subList);
} else {
@ -265,9 +264,8 @@
this.showMessage("物料号【" + itemCode + "】不在列表中")
} else {
var itemDetail = detail.subList.find(r => {
return r.packingNumber == packingNumber
&&
r.batch == batch
return r.packingNumber == packingNumber &&
r.batch == batch
})
if (itemDetail == undefined) {
this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]不在列表中")
@ -282,7 +280,8 @@
']不一致,是否继续上架?', res => {
if (res) {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty)>Number(result.balance.qty)?Number(result.balance.qty):Number(result.label.qty);
itemDetail.handleQty = Number(result.label.qty) > Number(result.balance
.qty) ? Number(result.balance.qty) : Number(result.label.qty);
this.calcHandleQty();
} else {
this.scanPopupGetFocus();
@ -290,7 +289,8 @@
});
} else {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty)>Number(result.balance.qty)?Number(result.balance.qty):Number(result.label.qty);
itemDetail.handleQty = Number(result.label.qty) > Number(result.balance.qty) ? Number(
result.balance.qty) : Number(result.label.qty);
this.calcHandleQty();
}
}
@ -302,12 +302,12 @@
}
},
commit() {
this.scanCount = getScanCount(this.subList);
if( this.scanCount==0){
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
commit() {
this.scanCount = getScanCount(this.subList);
if (this.scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
//
if (this.scanCount == this.subList.length) {
this.submitJob();
@ -342,7 +342,7 @@
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成到货检验记录" + res.data, )
} else {
this.showErrorMessage("提交失败"+res.msg)
this.showErrorMessage("提交失败[" + res.msg + "]")
}
}).catch(error => {
uni.hideLoading();
@ -435,16 +435,15 @@
})
})
this.jobContent.subList = list
this.jobContent.nextAction = "PARTIAL_OK";
return this.jobContent;
},
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
setTimeout(() => {
uni.navigateTo({
url: './inspectJob'
})
}, 3000)
uni.navigateTo({
url: './inspectJob'
})
})
},

8
pages/inspect/job/inspectResult.vue

@ -355,6 +355,8 @@
res.inspectResult =""
res.inspectUser =this.$store.state.user.id
})
this.jobContent.nextAction = this.nextAction;
this.submitJob(this.jobContent)
} else {
@ -379,6 +381,7 @@
res.inspectResult =""
re.inspectUser =this.$store.state.user.id
})
this.jobContent.nextAction = this.nextAction;
this.submitJob(this.jobContent)
//
} else if (this.nextAction == "PARTIAL_OK") {
@ -401,6 +404,7 @@
res.inspectResult =""
res.inspectUser =this.$store.state.user.id
})
this.jobContent.nextAction = this.nextAction;
this.submitJob(this.jobContent)
}
}
@ -415,7 +419,7 @@
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成到货检验记录" + res.data, )
} else {
this.showErrorMessage("提交失败"+res.msg)
this.showErrorMessage("提交失败["+res.msg+"]")
}
}).catch(error=>{
@ -425,11 +429,9 @@
},
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
setTimeout(() => {
uni.navigateTo({
url: './inspectJob'
})
}, 3000)
})
},

4
pages/putaway/record/putawayRecord.vue

@ -254,13 +254,12 @@
this.showMessage("请先选择目标库位")
return;
}
//
uni.showLoading({
title: "提交中....",
mask: true
});
if(this.fromType=="requestType"){
var params = this.setParams(false)
console.log("提交" + JSON.stringify(params))
@ -276,6 +275,7 @@
// this.showErrorMessage(error)
// })
}else {
//
var itemCodes = []
this.detailSource.forEach(item => {
itemCodes.push(item.itemCode)

Loading…
Cancel
Save