diff --git a/pages/customerReturn/job/returnDetail.vue b/pages/customerReturn/job/returnDetail.vue
index 9ddd64d4..a0e68845 100644
--- a/pages/customerReturn/job/returnDetail.vue
+++ b/pages/customerReturn/job/returnDetail.vue
@@ -270,27 +270,39 @@
} else {
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
+
+
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
- this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
- ']不一致,是否继续上架?', res => {
- if (res) {
- itemDetail.scaned = true;
- itemDetail.handleQty = Number(result.balance.qty)
- 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 {
+ if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
+ 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 = Number(result.balance.qty)
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
+ itemDetail.balance.stdPackUnit = result.package.stdPackUnit
+ this.calcHandleQty();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ });
+ }else {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
- }
- });
+ });
+ }
+
} else {
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.balanceQty = Number(result.balance.qty)
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty();
}
diff --git a/pages/inspect/job/inspectDetail.vue b/pages/inspect/job/inspectDetail.vue
index 4a81481a..db6d8e6b 100644
--- a/pages/inspect/job/inspectDetail.vue
+++ b/pages/inspect/job/inspectDetail.vue
@@ -309,17 +309,25 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
- this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
- ']不一致,是否继续检验?', res => {
- if (res) {
- itemDetail.scaned = true;
- itemDetail.handleQty = Number(result.balance.qty)
- itemDetail.balance = result.balance;
- this.calcHandleQty();
- } else {
+ if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
+ this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,是否继续检验?', res => {
+ if (res) {
+ itemDetail.scaned = true;
+ itemDetail.handleQty = Number(result.balance.qty)
+ itemDetail.balance = result.balance;
+ this.calcHandleQty();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ });
+ }else {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
- }
- });
+ });
+ }
+
} else {
itemDetail.scaned = true;
itemDetail.balance = result.balance;
diff --git a/pages/inspect/job/inspectFullDetail.vue b/pages/inspect/job/inspectFullDetail.vue
index bf7b82cb..df0be900 100644
--- a/pages/inspect/job/inspectFullDetail.vue
+++ b/pages/inspect/job/inspectFullDetail.vue
@@ -325,17 +325,25 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
- this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
- ']不一致,是否继续检验?', res => {
- if (res) {
- itemDetail.scaned = true;
- itemDetail.handleQty = Number(result.balance.qty)
- itemDetail.balance = result.balance;
- this.calcHandleQty();
- } else {
+ if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
+ this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,是否继续检验?', res => {
+ if (res) {
+ itemDetail.scaned = true;
+ itemDetail.handleQty = Number(result.balance.qty)
+ itemDetail.balance = result.balance;
+ this.calcHandleQty();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ });
+ }else {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
- }
- });
+ });
+ }
+
} else {
itemDetail.scaned = true;
itemDetail.balance = result.balance;
diff --git a/pages/inventoryMove/job/HoldToScrapMoveJob.vue b/pages/inventoryMove/job/HoldToScrapMoveJob.vue
index 410b2abf..37260299 100644
--- a/pages/inventoryMove/job/HoldToScrapMoveJob.vue
+++ b/pages/inventoryMove/job/HoldToScrapMoveJob.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/pages/inventoryMove/job/OktoScrapMoveJob.vue b/pages/inventoryMove/job/OktoScrapMoveJob.vue
index c78799e0..758d0224 100644
--- a/pages/inventoryMove/job/OktoScrapMoveJob.vue
+++ b/pages/inventoryMove/job/OktoScrapMoveJob.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/pages/inventoryMove/job/holdToOkMoveJob.vue b/pages/inventoryMove/job/holdToOkMoveJob.vue
index 149213d6..c1adf7c1 100644
--- a/pages/inventoryMove/job/holdToOkMoveJob.vue
+++ b/pages/inventoryMove/job/holdToOkMoveJob.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/pages/inventoryMove/job/inventoryMoveDetail.vue b/pages/inventoryMove/job/inventoryMoveDetail.vue
index ec3bc81b..d181cc1b 100644
--- a/pages/inventoryMove/job/inventoryMoveDetail.vue
+++ b/pages/inventoryMove/job/inventoryMoveDetail.vue
@@ -264,32 +264,60 @@
} else {
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
- 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 {
+ if (itemDetail.inventoryStatus != result.balance.inventoryStatus){
+ if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
+ 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 =Number(result.balance.qty) ;
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
+ itemDetail.balance.stdPackUnit = result.package.stdPackUnit
+ this.calcHandleQty();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ });
+ }else {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
- }
- });
- } else {
+ });
+ }
+ }else {
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.balanceQty = Number(result.balance.qty);
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit
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 {
+
+ // }
}
}
}
diff --git a/pages/inventoryMove/job/okToHoldMoveJob.vue b/pages/inventoryMove/job/okToHoldMoveJob.vue
index 4c2bcca0..57ea603b 100644
--- a/pages/inventoryMove/job/okToHoldMoveJob.vue
+++ b/pages/inventoryMove/job/okToHoldMoveJob.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/pages/inventoryMove/job/scrapToHoldMoveJob.vue b/pages/inventoryMove/job/scrapToHoldMoveJob.vue
index 985e5a58..fa89a21f 100644
--- a/pages/inventoryMove/job/scrapToHoldMoveJob.vue
+++ b/pages/inventoryMove/job/scrapToHoldMoveJob.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/pages/productDismantle/job/productDismantleDetail.vue b/pages/productDismantle/job/productDismantleDetail.vue
index abb7186c..84cce3aa 100644
--- a/pages/productDismantle/job/productDismantleDetail.vue
+++ b/pages/productDismantle/job/productDismantleDetail.vue
@@ -286,19 +286,27 @@
this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]库位[" + locationCode +
"]已经扫描")
} else {
+ let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
+ let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
- let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
- let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
- this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
- ']不一致,是否继续上架?', res => {
- if (res) {
- itemDetail.scaned = true;
- itemDetail.handleQty = Number(result.label.qty);
- this.calcHandleQty();
- } else {
+ if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
+ this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,是否继续拆解?', res => {
+ if (res) {
+ itemDetail.scaned = true;
+ itemDetail.handleQty = Number(result.label.qty);
+ this.calcHandleQty();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ });
+ }else {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
- }
- });
+ });
+ }
+
} else {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty);
diff --git a/pages/productPutaway/job/productPutawayDetail.vue b/pages/productPutaway/job/productPutawayDetail.vue
index cf54c23e..9a2c3073 100644
--- a/pages/productPutaway/job/productPutawayDetail.vue
+++ b/pages/productPutaway/job/productPutawayDetail.vue
@@ -287,31 +287,39 @@
this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]库位[" + locationCode +
"]已经扫描")
} else {
+ let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
+ let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
- let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
- let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
- this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
- ']不一致,是否继续上架?', 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.balance = result.balance;
- itemDetail.balance.balanceQty = result.balance.qty;
- itemDetail.balance.stdPackQty = result.package.stdPackQty
- itemDetail.balance.stdPackUnit = result.package.stdPackUnit
- this.calcHandleQty();
- } else {
+ 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 = Number(result.balance.qty)
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
+ itemDetail.balance.stdPackUnit = result.package.stdPackUnit
+ this.calcHandleQty();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ });
+ }else {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
- }
- });
+ });
+ }
+
} 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.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.balanceQty = Number(result.balance.qty)
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty();
}
diff --git a/pages/productionReceipt/job/productionReceiptDetail.vue b/pages/productionReceipt/job/productionReceiptDetail.vue
index 0d078716..d93fbc3e 100644
--- a/pages/productionReceipt/job/productionReceiptDetail.vue
+++ b/pages/productionReceipt/job/productionReceiptDetail.vue
@@ -275,32 +275,38 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
- this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
- ']不一致,是否继续上架?', res => {
- if (res) {
- itemDetail.scaned = true;
- itemDetail.supplierCode = supplierCode
- itemDetail.handleQty = Number(result.label.qty) > Number(result.balance
- .qty) ? Number(result.balance.qty) : Number(result.label.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 {
+ if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
+ this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,是否继续上架?', res => {
+ if (res) {
+ itemDetail.scaned = true;
+ itemDetail.supplierCode = supplierCode
+ itemDetail.handleQty = Number(result.balance.qty)
+ itemDetail.toInventoryStatus = result.balance.inventoryStatus;
+ itemDetail.balance = result.balance;
+ itemDetail.balance.balanceQty = Number(result.balance.qty)
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
+ itemDetail.balance.stdPackUnit = result.package.stdPackUnit
+ this.calcHandleQty();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ });
+ }else {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
- }
- });
+ });
+ }
+
} else {
itemDetail.scaned = true;
itemDetail.supplierCode = supplierCode
- itemDetail.handleQty = Number(result.label.qty) > Number(result.balance
- .qty) ? Number(result.balance.qty) : Number(result.label.qty);
+ 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.balanceQty = Number(result.balance.qty)
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty();
}
diff --git a/pages/purchaseReturn/job/returnDetail.vue b/pages/purchaseReturn/job/returnDetail.vue
index 82710c38..beb7f379 100644
--- a/pages/purchaseReturn/job/returnDetail.vue
+++ b/pages/purchaseReturn/job/returnDetail.vue
@@ -247,29 +247,37 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
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 {
+ if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
+ 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 {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
- }
- });
+ });
+ }
+
} else {
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.balanceQty = Number(result.balance.qty) ;
+ itemDetail.balance.stdPackQty =Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit =result.package.stdPackUnit
this.calcHandleQty();
}
diff --git a/pages/putaway/job/putawayDetail.vue b/pages/putaway/job/putawayDetail.vue
index ffb98f35..d21fd2bc 100644
--- a/pages/putaway/job/putawayDetail.vue
+++ b/pages/putaway/job/putawayDetail.vue
@@ -295,28 +295,36 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
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 {
+ if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
+ 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 = Number(result.balance.qty) ;
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
+ itemDetail.balance.stdPackUnit = result.package.stdPackUnit
+ this.calcHandleQty();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ });
+ }else {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
- }
- });
+ });
+ }
+
} else {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.balance.qty) ;
- itemDetail.toInventoryStatus =itemDetail.inventoryStatus
+ itemDetail.toInventoryStatus = itemDetail.inventoryStatus
itemDetail.balance = result.balance;
- itemDetail.balance.balanceQty = result.balance.qty;
- itemDetail.balance.stdPackQty = result.package.stdPackQty
+ itemDetail.balance.balanceQty = Number(result.balance.qty) ;
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty();
}
diff --git a/pages/scrap/job/scrapJobDetail.vue b/pages/scrap/job/scrapJobDetail.vue
index c8f504fe..f62413b3 100644
--- a/pages/scrap/job/scrapJobDetail.vue
+++ b/pages/scrap/job/scrapJobDetail.vue
@@ -211,27 +211,36 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
- this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
- ']不一致,是否继续出库?', res => {
- if (res) {
- itemDetail.scaned = true;
- itemDetail.handleQty = Number(result.label.qty);
- itemDetail.inventoryStatus = 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 {
+ if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
+ 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 = Number(result.balance.qty);
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
+ itemDetail.balance.stdPackUnit = result.package.stdPackUnit
+ this.calcHandleQty();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ });
+ }else {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
- }
- });
+ });
+ }
+
} else {
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.balanceQty = result.balance.qty;
- itemDetail.balance.stdPackQty = result.package.stdPackQty
+ itemDetail.balance.balanceQty = Number(result.balance.qty);
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty();
}
diff --git a/pages/transfer/job/issueDetail.vue b/pages/transfer/job/issueDetail.vue
index da4d7c5b..9367f3de 100644
--- a/pages/transfer/job/issueDetail.vue
+++ b/pages/transfer/job/issueDetail.vue
@@ -269,28 +269,36 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
- this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
- ']不一致,是否继续出库?', res => {
- if (res) {
- itemDetail.scaned = true;
- itemDetail.handleQty = result.label.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 {
+ if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
+ 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 = Number(result.balance.qty) ;
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
+ itemDetail.balance.stdPackUnit = result.package.stdPackUnit
+ this.calcHandleQty();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ });
+ }else {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
- }
- });
+ });
+ }
+
} else {
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.balanceQty = result.balance.qty;
- itemDetail.balance.stdPackQty = result.package.stdPackQty
+ itemDetail.balance.balanceQty = Number(result.balance.qty) ;
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty();
}
diff --git a/pages/transfer/job/receiptDetail.vue b/pages/transfer/job/receiptDetail.vue
index 7288144a..7d0c67f7 100644
--- a/pages/transfer/job/receiptDetail.vue
+++ b/pages/transfer/job/receiptDetail.vue
@@ -272,28 +272,37 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
- this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
- ']不一致,是否继续入库?', res => {
- if (res) {
- itemDetail.scaned = true;
- itemDetail.handleQty = result.label.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 {
+ if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
+ 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 = Number(result.balance.qty) ;
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
+ itemDetail.balance.stdPackUnit = result.package.stdPackUnit
+ this.calcHandleQty();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ });
+ }else {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
- }
- });
+ });
+ }
+
+
} else {
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.balanceQty = result.balance.qty;
- itemDetail.balance.stdPackQty = result.package.stdPackQty
+ itemDetail.balance.balanceQty = Number(result.balance.qty) ;
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty();
}
diff --git a/pages/transfer/job/transferDetail.vue b/pages/transfer/job/transferDetail.vue
index f02ba566..4319f35a 100644
--- a/pages/transfer/job/transferDetail.vue
+++ b/pages/transfer/job/transferDetail.vue
@@ -320,16 +320,24 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
- this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
- ']不一致,是否继续上架?', res => {
- if (res) {
- itemDetail.scaned = true;
- itemDetail.record = this.createRecordInfo(itemDetail, result.balance);
- this.calcHandleQty();
- } else {
+ if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
+ this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,是否继续上架?', res => {
+ if (res) {
+ itemDetail.scaned = true;
+ itemDetail.record = this.createRecordInfo(itemDetail, result.balance);
+ this.calcHandleQty();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ });
+ }else {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
- }
- });
+ });
+ }
+
} else {
itemDetail.scaned = true;
itemDetail.record = this.createRecordInfo(itemDetail, result.balance);
diff --git a/pages/unPlanned/job/issueJobDetail.vue b/pages/unPlanned/job/issueJobDetail.vue
index 7d73b674..ebcd52bb 100644
--- a/pages/unPlanned/job/issueJobDetail.vue
+++ b/pages/unPlanned/job/issueJobDetail.vue
@@ -229,26 +229,36 @@
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
- this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
- ']不一致,是否继续出库?', res => {
- if (res) {
- itemDetail.scaned = true;
- itemDetail.handleQty = result.label.qty
- 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 {
+ if(this.jobContent.allowModifyInventoryStatus=="TRUE"){
+ 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 = Number(result.balance.qty);
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
+ itemDetail.balance.stdPackUnit = result.package.stdPackUnit
+ this.calcHandleQty();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ });
+ }else {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
- }
- });
+ });
+ }
+
} else {
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.balanceQty = result.balance.qty;
- itemDetail.balance.stdPackQty = result.package.stdPackQty
+ itemDetail.balance.balanceQty = Number(result.balance.qty) ;
+ itemDetail.balance.stdPackQty = Number(result.package.stdPackQty)
itemDetail.balance.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty();
}