Browse Source

修改任务允许修改库存状态

wms3.0_pda
lijuncheng 12 months ago
parent
commit
9cc783ee47
  1. 42
      pages/customerReturn/job/returnDetail.vue
  2. 28
      pages/inspect/job/inspectDetail.vue
  3. 28
      pages/inspect/job/inspectFullDetail.vue
  4. 2
      pages/inventoryMove/job/HoldToScrapMoveJob.vue
  5. 2
      pages/inventoryMove/job/OktoScrapMoveJob.vue
  6. 2
      pages/inventoryMove/job/holdToOkMoveJob.vue
  7. 64
      pages/inventoryMove/job/inventoryMoveDetail.vue
  8. 2
      pages/inventoryMove/job/okToHoldMoveJob.vue
  9. 2
      pages/inventoryMove/job/scrapToHoldMoveJob.vue
  10. 30
      pages/productDismantle/job/productDismantleDetail.vue
  11. 48
      pages/productPutaway/job/productPutawayDetail.vue
  12. 46
      pages/productionReceipt/job/productionReceiptDetail.vue
  13. 42
      pages/purchaseReturn/job/returnDetail.vue
  14. 42
      pages/putaway/job/putawayDetail.vue
  15. 43
      pages/scrap/job/scrapJobDetail.vue
  16. 42
      pages/transfer/job/issueDetail.vue
  17. 43
      pages/transfer/job/receiptDetail.vue
  18. 26
      pages/transfer/job/transferDetail.vue
  19. 42
      pages/unPlanned/job/issueJobDetail.vue

42
pages/customerReturn/job/returnDetail.vue

@ -270,27 +270,39 @@
} else { } else {
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
']不一致,是否继续上架?', res => { this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
if (res) { ']不一致,是否继续上架?', res => {
itemDetail.scaned = true; if (res) {
itemDetail.handleQty = Number(result.balance.qty) itemDetail.scaned = true;
itemDetail.balance = result.balance; itemDetail.handleQty = Number(result.balance.qty)
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.toInventoryStatus = result.balance.inventoryStatus;
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance = result.balance;
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.balanceQty = Number(result.balance.qty)
this.calcHandleQty(); itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
} else { itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty();
} else {
this.scanPopupGetFocus();
}
});
}else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} });
}); }
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.handleQty = Number(result.balance.qty) itemDetail.handleQty = Number(result.balance.qty)
itemDetail.toInventoryStatus = result.balance.inventoryStatus;
itemDetail.balance = result.balance; itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance.balanceQty = Number(result.balance.qty)
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty(); this.calcHandleQty();
} }

28
pages/inspect/job/inspectDetail.vue

@ -309,17 +309,25 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
']不一致,是否继续检验?', res => { this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
if (res) { ']不一致,是否继续检验?', res => {
itemDetail.scaned = true; if (res) {
itemDetail.handleQty = Number(result.balance.qty) itemDetail.scaned = true;
itemDetail.balance = result.balance; itemDetail.handleQty = Number(result.balance.qty)
this.calcHandleQty(); itemDetail.balance = result.balance;
} else { this.calcHandleQty();
} else {
this.scanPopupGetFocus();
}
});
}else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} });
}); }
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.balance = result.balance; itemDetail.balance = result.balance;

28
pages/inspect/job/inspectFullDetail.vue

@ -325,17 +325,25 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
']不一致,是否继续检验?', res => { this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
if (res) { ']不一致,是否继续检验?', res => {
itemDetail.scaned = true; if (res) {
itemDetail.handleQty = Number(result.balance.qty) itemDetail.scaned = true;
itemDetail.balance = result.balance; itemDetail.handleQty = Number(result.balance.qty)
this.calcHandleQty(); itemDetail.balance = result.balance;
} else { this.calcHandleQty();
} else {
this.scanPopupGetFocus();
}
});
}else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} });
}); }
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.balance = result.balance; itemDetail.balance = result.balance;

2
pages/inventoryMove/job/HoldToScrapMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob ref="comMoveJob" businessTypeCode='HoldToScrap'> </comMoveJob> <comMoveJob ref="comMoveJob" businessTypeCode='HoldToScrapJob'> </comMoveJob>
</view> </view>
</template> </template>

2
pages/inventoryMove/job/OktoScrapMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob ref="comMoveJob" businessTypeCode='OktoScrap'> </comMoveJob> <comMoveJob ref="comMoveJob" businessTypeCode='OktoScrapJob'> </comMoveJob>
</view> </view>
</template> </template>

2
pages/inventoryMove/job/holdToOkMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob ref="comMoveJob" businessTypeCode='HoldToOk'> </comMoveJob> <comMoveJob ref="comMoveJob" businessTypeCode='HoldToOkJob'> </comMoveJob>
</view> </view>
</template> </template>

64
pages/inventoryMove/job/inventoryMoveDetail.vue

@ -264,32 +264,60 @@
} else { } else {
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if (itemDetail.inventoryStatus != result.balance.inventoryStatus){
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
']不一致,是否继续转移?', res => { this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
if (res) { ']不一致,是否继续转移?', res => {
itemDetail.scaned = true; if (res) {
itemDetail.handleQty = Number(result.balance.qty) ; itemDetail.scaned = true;
itemDetail.toInventoryStatus = result.balance.inventoryStatus; itemDetail.handleQty = Number(result.balance.qty) ;
itemDetail.balance = result.balance; itemDetail.toInventoryStatus = result.balance.inventoryStatus;
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance = result.balance;
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.balanceQty =Number(result.balance.qty) ;
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
this.calcHandleQty(); itemDetail.balance.stdPackUnit = result.package.stdPackUnit
} else { this.calcHandleQty();
} else {
this.scanPopupGetFocus();
}
});
}else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} });
}); }
} else { }else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.handleQty = Number(result.balance.qty) ; itemDetail.handleQty = Number(result.balance.qty) ;
itemDetail.toInventoryStatus = result.balance.inventoryStatus; itemDetail.toInventoryStatus = result.balance.inventoryStatus;
itemDetail.balance = result.balance; itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance.balanceQty = Number(result.balance.qty);
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty(); this.calcHandleQty();
} }
// if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
// this.showQuestionMessage('[' + balanceStatus + '][' + itemStatus +
// '],?', res => {
// if (res) {
// itemDetail.scaned = true;
// itemDetail.handleQty = Number(result.balance.qty) ;
// itemDetail.toInventoryStatus = result.balance.inventoryStatus;
// itemDetail.balance = result.balance;
// itemDetail.balance.balanceQty = result.balance.qty;
// itemDetail.balance.stdPackQty = result.package.stdPackQty
// itemDetail.balance.stdPackUnit = result.package.stdPackUnit
// this.calcHandleQty();
// } else {
// this.scanPopupGetFocus();
// }
// });
// } else {
// }
} }
} }
} }

2
pages/inventoryMove/job/okToHoldMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob ref="comMoveJob" businessTypeCode='OkToHold'> </comMoveJob> <comMoveJob ref="comMoveJob" businessTypeCode='OkToHoldJob'> </comMoveJob>
</view> </view>
</template> </template>

2
pages/inventoryMove/job/scrapToHoldMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob ref="comMoveJob" businessTypeCode='ScrapToHold'> </comMoveJob> <comMoveJob ref="comMoveJob" businessTypeCode='ScrapToHoldJob'> </comMoveJob>
</view> </view>
</template> </template>

30
pages/productDismantle/job/productDismantleDetail.vue

@ -286,19 +286,27 @@
this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]库位[" + locationCode + this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]库位[" + locationCode +
"]已经扫描") "]已经扫描")
} else { } else {
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + ']不一致,是否继续拆解?', res => {
']不一致,是否继续上架?', res => { if (res) {
if (res) { itemDetail.scaned = true;
itemDetail.scaned = true; itemDetail.handleQty = Number(result.label.qty);
itemDetail.handleQty = Number(result.label.qty); this.calcHandleQty();
this.calcHandleQty(); } else {
} else { this.scanPopupGetFocus();
}
});
}else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} });
}); }
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty); itemDetail.handleQty = Number(result.label.qty);

48
pages/productPutaway/job/productPutawayDetail.vue

@ -287,31 +287,39 @@
this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]库位[" + locationCode + this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]库位[" + locationCode +
"]已经扫描") "]已经扫描")
} else { } else {
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); if (itemDetail.inventoryStatus != result.balance.inventoryStatus){
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + ']不一致,是否继续上架?', res => {
']不一致,是否继续上架?', res => { if (res) {
if (res) { itemDetail.scaned = true;
itemDetail.scaned = true; itemDetail.handleQty = Number(result.balance.qty)
itemDetail.handleQty = Number(result.label.qty) > Number(result.balance itemDetail.toInventoryStatus = result.balance.inventoryStatus;
.qty) ? Number(result.balance.qty) : Number(result.label.qty); itemDetail.balance = result.balance;
itemDetail.balance = result.balance; itemDetail.balance.balanceQty = Number(result.balance.qty)
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.stdPackUnit = result.package.stdPackUnit
itemDetail.balance.stdPackUnit = result.package.stdPackUnit this.calcHandleQty();
this.calcHandleQty(); } else {
} else { this.scanPopupGetFocus();
}
});
}else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} });
}); }
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty) > Number(result.balance.qty) ? Number( itemDetail.handleQty =Number(result.balance.qty)
result.balance.qty) : Number(result.label.qty); itemDetail.toInventoryStatus = result.balance.inventoryStatus;
itemDetail.balance = result.balance; itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance.balanceQty = Number(result.balance.qty)
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty(); this.calcHandleQty();
} }

46
pages/productionReceipt/job/productionReceiptDetail.vue

@ -275,32 +275,38 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
']不一致,是否继续上架?', res => { this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
if (res) { ']不一致,是否继续上架?', res => {
itemDetail.scaned = true; if (res) {
itemDetail.supplierCode = supplierCode itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty) > Number(result.balance itemDetail.supplierCode = supplierCode
.qty) ? Number(result.balance.qty) : Number(result.label.qty); itemDetail.handleQty = Number(result.balance.qty)
itemDetail.toInventoryStatus = result.balance.inventoryStatus; itemDetail.toInventoryStatus = result.balance.inventoryStatus;
itemDetail.balance = result.balance; itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance.balanceQty = Number(result.balance.qty)
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty(); this.calcHandleQty();
} else { } else {
this.scanPopupGetFocus();
}
});
}else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} });
}); }
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.supplierCode = supplierCode itemDetail.supplierCode = supplierCode
itemDetail.handleQty = Number(result.label.qty) > Number(result.balance itemDetail.handleQty = Number(result.balance.qty)
.qty) ? Number(result.balance.qty) : Number(result.label.qty);
itemDetail.toInventoryStatus = result.balance.inventoryStatus; itemDetail.toInventoryStatus = result.balance.inventoryStatus;
itemDetail.balance = result.balance; itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance.balanceQty = Number(result.balance.qty)
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty(); this.calcHandleQty();
} }

42
pages/purchaseReturn/job/returnDetail.vue

@ -247,29 +247,37 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
']不一致,是否继续退货?', res => { this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
if (res) { ']不一致,是否继续退货?', res => {
itemDetail.scaned = true; if (res) {
itemDetail.handleQty = Number(result.balance.qty) ; itemDetail.scaned = true;
itemDetail.toInventoryStatus = result.balance.inventoryStatus; itemDetail.handleQty = Number(result.balance.qty) ;
itemDetail.balance = result.balance; itemDetail.toInventoryStatus = result.balance.inventoryStatus;
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance = result.balance;
itemDetail.balance.stdPackQty =result.package.stdPackQty itemDetail.balance.balanceQty = result.balance.qty;
itemDetail.balance.stdPackUnit =result.package.stdPackUnit itemDetail.balance.stdPackQty =result.package.stdPackQty
itemDetail.balance.stdPackUnit =result.package.stdPackUnit
this.calcHandleQty();
} else { this.calcHandleQty();
} else {
this.scanPopupGetFocus();
}
});
}else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} });
}); }
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.handleQty = Number(result.balance.qty) ; itemDetail.handleQty = Number(result.balance.qty) ;
itemDetail.toInventoryStatus = result.balance.inventoryStatus; itemDetail.toInventoryStatus = result.balance.inventoryStatus;
itemDetail.balance = result.balance; itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance.balanceQty = Number(result.balance.qty) ;
itemDetail.balance.stdPackQty =result.package.stdPackQty itemDetail.balance.stdPackQty =Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit =result.package.stdPackUnit itemDetail.balance.stdPackUnit =result.package.stdPackUnit
this.calcHandleQty(); this.calcHandleQty();
} }

42
pages/putaway/job/putawayDetail.vue

@ -295,28 +295,36 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
']不一致,是否继续上架?', res => { this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
if (res) { ']不一致,是否继续上架?', res => {
itemDetail.scaned = true; if (res) {
itemDetail.handleQty = Number(result.balance.qty) ; itemDetail.scaned = true;
itemDetail.toInventoryStatus =result.balance.inventoryStatus itemDetail.handleQty = Number(result.balance.qty) ;
itemDetail.balance = result.balance; itemDetail.toInventoryStatus =result.balance.inventoryStatus
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance = result.balance;
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.balanceQty = Number(result.balance.qty) ;
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
this.calcHandleQty(); itemDetail.balance.stdPackUnit = result.package.stdPackUnit
} else { this.calcHandleQty();
} else {
this.scanPopupGetFocus();
}
});
}else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} });
}); }
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.handleQty = Number(result.balance.qty) ; itemDetail.handleQty = Number(result.balance.qty) ;
itemDetail.toInventoryStatus =itemDetail.inventoryStatus itemDetail.toInventoryStatus = itemDetail.inventoryStatus
itemDetail.balance = result.balance; itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance.balanceQty = Number(result.balance.qty) ;
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty(); this.calcHandleQty();
} }

43
pages/scrap/job/scrapJobDetail.vue

@ -211,27 +211,36 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
']不一致,是否继续出库?', res => { this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
if (res) { ']不一致,是否继续出库?', res => {
itemDetail.scaned = true; if (res) {
itemDetail.handleQty = Number(result.label.qty); itemDetail.scaned = true;
itemDetail.inventoryStatus = result.balance.inventoryStatus; itemDetail.handleQty = Number(result.balance.qty);
itemDetail.balance = result.balance; itemDetail.toInventoryStatus = result.balance.inventoryStatus;
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance = result.balance;
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.balanceQty = Number(result.balance.qty);
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
this.calcHandleQty(); itemDetail.balance.stdPackUnit = result.package.stdPackUnit
} else { this.calcHandleQty();
} else {
this.scanPopupGetFocus();
}
});
}else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} });
}); }
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty); itemDetail.handleQty = Number(result.balance.qty);
itemDetail.toInventoryStatus = result.balance.inventoryStatus;
itemDetail.balance = result.balance; itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance.balanceQty = Number(result.balance.qty);
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty(); this.calcHandleQty();
} }

42
pages/transfer/job/issueDetail.vue

@ -269,28 +269,36 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
']不一致,是否继续出库?', res => { this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
if (res) { ']不一致,是否继续出库?', res => {
itemDetail.scaned = true; if (res) {
itemDetail.handleQty = result.label.qty; itemDetail.scaned = true;
itemDetail.toInventoryStatus = result.balance.inventoryStatus itemDetail.handleQty =Number(result.balance.qty) ;
itemDetail.balance = result.balance; itemDetail.toInventoryStatus = result.balance.inventoryStatus
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance = result.balance;
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.balanceQty = Number(result.balance.qty) ;
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
this.calcHandleQty(); itemDetail.balance.stdPackUnit = result.package.stdPackUnit
} else { this.calcHandleQty();
} else {
this.scanPopupGetFocus();
}
});
}else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} });
}); }
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.handleQty = result.label.qty; itemDetail.handleQty = Number(result.balance.qty) ;
itemDetail.toInventoryStatus = result.balance.inventoryStatus itemDetail.toInventoryStatus = result.balance.inventoryStatus
itemDetail.balance = result.balance; itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance.balanceQty = Number(result.balance.qty) ;
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty(); this.calcHandleQty();
} }

43
pages/transfer/job/receiptDetail.vue

@ -272,28 +272,37 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
']不一致,是否继续入库?', res => { this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
if (res) { ']不一致,是否继续入库?', res => {
itemDetail.scaned = true; if (res) {
itemDetail.handleQty = result.label.qty; itemDetail.scaned = true;
itemDetail.toInventoryStatus = result.balance.inventoryStatus itemDetail.handleQty = Number(result.balance.qty) ;
itemDetail.balance = result.balance; itemDetail.toInventoryStatus = result.balance.inventoryStatus
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance = result.balance;
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.balanceQty = Number(result.balance.qty) ;
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
this.calcHandleQty(); itemDetail.balance.stdPackUnit = result.package.stdPackUnit
} else { this.calcHandleQty();
} else {
this.scanPopupGetFocus();
}
});
}else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} });
}); }
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.handleQty = result.label.qty; itemDetail.handleQty = Number(result.balance.qty) ;
itemDetail.toInventoryStatus = result.balance.inventoryStatus itemDetail.toInventoryStatus = result.balance.inventoryStatus
itemDetail.balance = result.balance; itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance.balanceQty = Number(result.balance.qty) ;
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty(); this.calcHandleQty();
} }

26
pages/transfer/job/transferDetail.vue

@ -320,16 +320,24 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
']不一致,是否继续上架?', res => { this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
if (res) { ']不一致,是否继续上架?', res => {
itemDetail.scaned = true; if (res) {
itemDetail.record = this.createRecordInfo(itemDetail, result.balance); itemDetail.scaned = true;
this.calcHandleQty(); itemDetail.record = this.createRecordInfo(itemDetail, result.balance);
} else { this.calcHandleQty();
} else {
this.scanPopupGetFocus();
}
});
}else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} });
}); }
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.record = this.createRecordInfo(itemDetail, result.balance); itemDetail.record = this.createRecordInfo(itemDetail, result.balance);

42
pages/unPlanned/job/issueJobDetail.vue

@ -229,26 +229,36 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
']不一致,是否继续出库?', res => { this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
if (res) { ']不一致,是否继续出库?', res => {
itemDetail.scaned = true; if (res) {
itemDetail.handleQty = result.label.qty itemDetail.scaned = true;
itemDetail.balance = result.balance; itemDetail.handleQty = Number(result.balance.qty) ;
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.toInventoryStatus = result.balance.inventoryStatus;
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance = result.balance;
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.balanceQty = Number(result.balance.qty);
this.calcHandleQty(); itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
} else { itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty();
} else {
this.scanPopupGetFocus();
}
});
}else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} });
}); }
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.handleQty = result.label.qty itemDetail.handleQty = Number(result.balance.qty) ;
itemDetail.toInventoryStatus = result.balance.inventoryStatus;
itemDetail.balance = result.balance; itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty; itemDetail.balance.balanceQty = Number(result.balance.qty) ;
itemDetail.balance.stdPackQty = result.package.stdPackQty itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty(); this.calcHandleQty();
} }

Loading…
Cancel
Save