Browse Source

YT-1208发料申请,提示多个物料时,应换行或加个分号

intex_online20241205
zhang_li 2 months ago
parent
commit
47a2c45475
  1. 11
      src/pages/issue/job/issueDetailBatch.vue

11
src/pages/issue/job/issueDetailBatch.vue

@ -523,6 +523,7 @@
}
console.log("提交参数", params);
return
issueJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
@ -642,17 +643,17 @@
const isScaned = detail.subList.some(cur=>cur.scaned)
if(isScaned){
if(parseFloat(detail.handleQty)<parseFloat(detail.qty)){
str += `物料号【${detail.itemCode}】提交数量【${detail.handleQty}】不允许小于任务数量【${detail.qty}`
str += `物料号【${detail.itemCode}】提交数量【${detail.handleQty}】不允许小于任务数量【${detail.qty}\n`
}
if(parseFloat(detail.handleQty)>parseFloat(detail.qty)){
str1 += `物料号【${detail.itemCode}】提交数量【${detail.handleQty}】不允许大于任务数量【${detail.qty}`
str1 += `物料号【${detail.itemCode}】提交数量【${detail.handleQty}】不允许大于任务数量【${detail.qty}\n`
}
}
detail.subList.forEach(item => {
if(item.scaned){
if(parseFloat(item.handleQty)>parseFloat(item.balance.qty)){
str2 += `物料号【${detail.itemCode}】批次【${item.batch}】提交数量【${parseFloat(item.handleQty)}】不可以大于库存数量【${item.balance.qty}`
str2 += `物料号【${detail.itemCode}】批次【${item.batch}】提交数量【${parseFloat(item.handleQty)}】不可以大于库存数量【${item.balance.qty}\n`
}
}
if(item.isRecommTaskItem){//
@ -662,7 +663,7 @@
str3 = '推荐的箱码没扫,'
}
if(parseFloat(item.handleQty)!=parseFloat(item.qty)){
str3 += `物料号【${detail.itemCode}】批次【${item.batch}】扫描数量【${parseFloat(item.handleQty)}】和任务数量【${item.qty}】不一致`
str3 += `物料号【${detail.itemCode}】批次【${item.batch}】扫描数量【${parseFloat(item.handleQty)}】和任务数量【${item.qty}】不一致\n`
}
}
@ -690,7 +691,7 @@
}
console.log(str3)
if(str3){
str3 = str3+",是否提交"
str3 = str3+"是否提交"
this.$refs.comMessage.showQuestionMessage1(str3, 'red', res => {
if (res) {
//

Loading…
Cancel
Save