Browse Source

YT-448库区管理和物料库区配置管理,隔离区管理精度没有按数量

intex_online20241111
zhang_li 1 month ago
parent
commit
c5119de9d9
  1. 11
      src/mycomponents/scan/winScanPackAndLocation.vue
  2. 18
      src/pages/inventoryMove/job/inventoryMoveDetail.vue
  3. 10
      src/pages/productReceipt/job/scrapReceiptDetail.vue

11
src/mycomponents/scan/winScanPackAndLocation.vue

@ -446,7 +446,12 @@
fromLocationCode: this.fromLocationCode,
}
// this.packGetFocus();
this.$emit("getResult", data);
//
if (this.managementPrecision == 'BY_BATCH'||this.managementPrecision == 'BY_QUANTITY') {
this.$emit("getResult", data, this.managementPrecision);
} else {
this.$emit("getResult", data);
}
this.$emit("getCountScanResult", data);
},
@ -462,8 +467,8 @@
fromLocationCode: this.fromLocationCode,
}
this.packGetFocus();
//
if (this.managementPrecision == 'BY_BATCH') {
//
if (this.managementPrecision == 'BY_BATCH'||this.managementPrecision == 'BY_QUANTITY') {
this.$emit("getResult", data, this.managementPrecision);
} else {
this.$emit("getResult", data);

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

@ -315,7 +315,7 @@
},
getScanResult(result) {
getScanResult(result,managementPrecision) {
try {
var packingNumber = result.label.packingNumber;
var batch = result.label.batch;
@ -325,10 +325,18 @@
if (detail == undefined) {
this.showMessage("物料号【" + itemCode + "】不在列表中")
} else {
var itemDetail = detail.subList.find(r => {
return r.batch == batch
})
if (itemDetail == undefined) {
var itemDetail = ''
if(managementPrecision == 'BY_QUANTITY'){
itemDetail = detail.subList.find(r => {
return r.itemCode == result.label.itemCode
})
}else{
itemDetail = detail.subList.find(r => {
return r.batch == batch
})
}
if (itemDetail == undefined && managementPrecision != 'BY_QUANTITY') {
this.showErrorMessage( "批次[" + batch + "]不在列表中")
} else {
if (itemDetail.scaned) {

10
src/pages/productReceipt/job/scrapReceiptDetail.vue

@ -226,8 +226,13 @@
if (detail == undefined) {
this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
} else {
var itemDetail = detail.subList.find(r =>
r.batch == batch);
var itemDetail = ''
if(this.managementPrecision == 'BY_QUANTITY'){
itemDetail = detail.subList.find(r => r.itemCode == result.label.itemCode);
}else{
itemDetail = detail.subList.find(r => r.batch == batch);
}
if (itemDetail == undefined) {
this.showErrorMessage("批次[" + batch + "]不在任务列表中")
} else {
@ -368,6 +373,7 @@
getManagementPrecisions(itemCodes, this.toLocationCode, res => {
if (res.success) {
this.managementList = res.list;
this.managementPrecision = this.managementList[0].ManagementPrecision
var params = this.setParams();
console.log("提交参数", JSON.stringify(params));
productReceiptJobsubmit(params).then(res => {

Loading…
Cancel
Save