Browse Source

YT-1131 物料隔离任务,提交校验多个物料部分提交

intex
lijuncheng 2 days ago
parent
commit
c1ac5ee906
  1. 24
      src/pages/inventoryMove/job/inventoryMoveDetail.vue

24
src/pages/inventoryMove/job/inventoryMoveDetail.vue

@ -14,8 +14,7 @@
<view class="">
<comInventoryDetailCard :dataContent="item" :settingParam="jobContent" @remove="updateData"
@updateData='updateData' :locationAreaTypeList="toLocationAreaTypeList"
:allowEditQty ="jobContent.allowModifyQty=='TRUE'?true:false"
@openDetail="openDetail">
:allowEditQty="jobContent.allowModifyQty=='TRUE'?true:false" @openDetail="openDetail">
</comInventoryDetailCard>
</view>
</view>
@ -250,7 +249,8 @@
getManagementPrecisions(itemCodes, this.toLocationCode, res => {
if (res.success) {
this.managementList = res.list;
this.managementType = this.managementList.some(item => item.ManagementPrecision ==
this.managementType = this.managementList.some(item => item
.ManagementPrecision ==
'BY_BATCH') ? 'BY_BATCH' : ''
}
})
@ -483,7 +483,9 @@
await getPrecisionStrategyList(precisionStrategParams, res => {
if (res.success) {
this.managementList = res.list;
this.managementType = this.managementList&& this.managementList[0]&& this.managementList[0].ManagementPrecision ? this.managementList[0].ManagementPrecision : 'BY_PACKAGING'
this.managementType = this.managementList && this.managementList[0] && this
.managementList[0].ManagementPrecision ? this.managementList[0]
.ManagementPrecision : 'BY_PACKAGING'
console.log(11, this.managementType)
} else {
uni.hideLoading();
@ -560,13 +562,18 @@
} else {
tempHandleQty = 0
}
str +=
`物料号【${item.itemCode}】批次【${cur.batch}】提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致\n`
var batchHint = cur.batch ? `批次【${cur.batch}` : ``
str += `物料号【${item.itemCode}` + `${batchHint}` +
`提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致\n`
if (cur.handleQty > cur.balance.balanceQty) {
str1 +=
`物料号【${item.itemCode}】批次【${cur.batch}提交数量【${ cur.handleQty}】不可以大于库存数量【${cur.balance.balanceQty}`
str1 += `物料号【${item.itemCode}` + `${batchHint}` +
`提交数量【${ cur.handleQty}】不可以大于库存数量【${cur.balance.balanceQty}`
}
}
} else {
var batchHint = cur.batch ? `批次【${cur.batch}` : ``
str += `物料号【${item.itemCode}` + `${batchHint}` +
`提交数量【0】与任务物料数量【${cur.qty}】不一致\n`
}
})
})
@ -592,6 +599,7 @@
});
var params = this.setParams()
console.log("提交" + JSON.stringify(params))
return;
inventoryMoveSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {

Loading…
Cancel
Save