托包装号:
${item.packingNumber}
@@ -184,44 +193,48 @@
// 获取采购收货指引单html
getPurchaseReceiptJobHtml() {
this.$nextTick(async () => {
- let str2 = ''
+ let str = ''
this.readFile(htmlFileUrl1, (htmlContent) => {
this.newHtmlContent1 = htmlContent
- str2 = `
-
-
-
-
- 发货单号: |
- ${this.data1.asnNumber} |
-
-
- 物料代码 |
- 供应商批次 |
- 检验数量 |
-
-
-
- strBody
-
-
-
-
- `
- let str1 = ''
this.data1.inspectDTOList.forEach(item => {
- str1 += `
-
- ${item.itemCode} |
- ${item.supplierBatch} |
- ${item.sampleQty} |
-
+ str += `
+
+
+
Q
+
+
+
+ 物料代码: |
+ ${item.itemCode} |
+
+
+
+
+ 物料名称 |
+ ${item.itemName} |
+ 发货单号 |
+ ${this.data1.asnNumber} |
+
+
+ 供应商 |
+ ${item.supplierCode} |
+ 批次 |
+ ${item.supplierBatch} |
+
+
+ 到货数量 |
+ ${item.quantityQty} |
+ 抽检数量 |
+ ${item.sampleQty} |
+
+
+
+
+
`
})
- str2 = str2.replace("strBody", str1)
- console.log(335, str1)
this.newHtmlContent1 = this.newHtmlContent1.replace(
- "mainBody", str2); //替换物品代码
+ "mainBody", str); //替换物品代码
});
})
@@ -308,7 +321,7 @@
},
onReachBottom() {
if (this.tabIndex == 1) {
- if (this.showTableInspectDTOList.length != this.data1.inspectDTOList.length) {
+ if (this.showTableInspectDTOList != this.data1.inspectDTOList.length) {
this.getTableInspectDTOList()
}
} else {
@@ -323,7 +336,7 @@
\ No newline at end of file
diff --git a/src/pages/productDismantle/job/productDismantleDetail.vue b/src/pages/productDismantle/job/productDismantleDetail.vue
index c8a8f7c5..e25735c9 100644
--- a/src/pages/productDismantle/job/productDismantleDetail.vue
+++ b/src/pages/productDismantle/job/productDismantleDetail.vue
@@ -345,7 +345,7 @@
this.submitJob();
} else {
//不允许部分提交,提示
- this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
+ this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
.subList.length + "]箱", res => {
if (res) {
@@ -373,7 +373,7 @@
console.log("提交参数", JSON.stringify(params));
// productDismantleJobSubmit(this.id, params).then(res => {
// if (res.data) {
- // this.showCommitSuccessMessage("提交成功
生成采购收货记录" + res.data.Number, )
+ // this.showCommitSuccessMessage("提交成功\n生成采购收货记录" + res.data.Number, )
// } else {
// this.showErrorMessage("提交失败[" + res.msg + "]")
// }
diff --git a/src/pages/productDismantle/record/productDismantleRecord.vue b/src/pages/productDismantle/record/productDismantleRecord.vue
index 0ff35dbd..3175daf7 100644
--- a/src/pages/productDismantle/record/productDismantleRecord.vue
+++ b/src/pages/productDismantle/record/productDismantleRecord.vue
@@ -243,7 +243,7 @@
// productDismantleRecordSubmit(params).then(res => {
// uni.hideLoading()
// if (res.data) {
- // this.showCommitSuccessMessage("提交成功
生成采购收货记录" + res.data, )
+ // this.showCommitSuccessMessage("提交成功\n生成采购收货记录" + res.data, )
// } else {
// this.showErrorMessage("提交失败[" + res.msg + "]")
// }
diff --git a/src/pages/productPutaway/coms/comProductJobCard.vue b/src/pages/productPutaway/coms/comProductJobCard.vue
index d8a43bf2..54272f7c 100644
--- a/src/pages/productPutaway/coms/comProductJobCard.vue
+++ b/src/pages/productPutaway/coms/comProductJobCard.vue
@@ -1,16 +1,20 @@
-
+
+
+
diff --git a/src/pages/productionReceipt/record/productionReceiptRecord.vue b/src/pages/productionReceipt/record/productionReceiptRecord.vue
index f0b20c4b..93a6d418 100644
--- a/src/pages/productionReceipt/record/productionReceiptRecord.vue
+++ b/src/pages/productionReceipt/record/productionReceiptRecord.vue
@@ -155,7 +155,7 @@
item.subList.push(newDetail);
} else {
if (detail.scaned == true) {
- this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中")
+ this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]重复扫描")
}
}
}
@@ -237,7 +237,7 @@
// productionReceiptRecordSubmit(params).then(res => {
// uni.hideLoading()
// if (res.data) {
- // this.showCommitSuccessMessage("提交成功
生成采购收货记录" + res.data, )
+ // this.showCommitSuccessMessage("提交成功\n生成采购收货记录" + res.data, )
// } else {
// this.showErrorMessage("提交失败[" + res.msg + "]")
// }
diff --git a/src/pages/productionReturn/coms/comReturn.vue b/src/pages/productionReturn/coms/comReturn.vue
index 9b81b788..4f39b93d 100644
--- a/src/pages/productionReturn/coms/comReturn.vue
+++ b/src/pages/productionReturn/coms/comReturn.vue
@@ -199,7 +199,7 @@
item.subList.push(newDetail);
} else {
if (detail.scaned == true) {
- this.showErrorMessage("箱码[" + label.packingNumber + "批次[" + label.batch + "]已经在列表中")
+ this.showErrorMessage("箱码[" + label.packingNumber + "批次[" + label.batch + "]重复扫描")
}
}
}
@@ -297,7 +297,7 @@
productionReturnRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成退料收货记录
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成退料收货记录\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/productionReturn/coms/comScanReturnPack.vue b/src/pages/productionReturn/coms/comScanReturnPack.vue
index 3e3b0115..69862044 100644
--- a/src/pages/productionReturn/coms/comScanReturnPack.vue
+++ b/src/pages/productionReturn/coms/comScanReturnPack.vue
@@ -159,8 +159,6 @@
this.scanOptions = getDetailEditRemoveOption();
},
methods: {
-
-
openScanPopup(content, jobcontent) {
this.issueRecord = [];
this.dataContent = content;
@@ -168,12 +166,14 @@
this.initData();
// this.positionInfo = this.jobContent.workShopCode + "-" + this.jobContent.subList[0].productionLineCode +
// "-" + this.jobContent.subList[0].workStationCode
+ this.$refs.popup.open('bottom')
setTimeout(res => {
- this.$refs.popup.open('bottom')
+ that.getfocus();
}, 500)
},
closeScanPopup() {
+ this.losefocus();
this.$refs.popup.close();
this.$emit("closeScan")
//清除数据,恢复默认值
@@ -467,13 +467,13 @@
},
showMessage(message, callback) {
setTimeout(r => {
- this.packLoseFocus();
+ this.losefocus();
this.$refs.comMessage.showMessage(message, callback);
})
},
showErrorMessage(message, callback) {
setTimeout(r => {
- this.packLoseFocus();
+ this.losefocus();
this.$refs.comMessage.showErrorMessage(message, callback);
})
diff --git a/src/pages/productionReturn/job/returnDetail.vue b/src/pages/productionReturn/job/returnDetail.vue
index 3d5c69c0..8bf54c4a 100644
--- a/src/pages/productionReturn/job/returnDetail.vue
+++ b/src/pages/productionReturn/job/returnDetail.vue
@@ -352,7 +352,7 @@
this.submitJob();
} else {
//不允许部分提交,提示
- this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
+ this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
.subList.length + "]箱", res => {
if (res) {
@@ -387,7 +387,7 @@
productionReturnJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成生产退料记录:" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成生产退料记录:" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/productionReturn/record/returnToHold.vue b/src/pages/productionReturn/record/returnToHold.vue
index c18bb6f3..45648cbc 100644
--- a/src/pages/productionReturn/record/returnToHold.vue
+++ b/src/pages/productionReturn/record/returnToHold.vue
@@ -237,7 +237,7 @@
} else {
if (detail.scaned == true) {
- this.showErrorMessage("箱码[" + label.packingNumber + "批次[" + label.batch + "]已经在列表中")
+ this.showErrorMessage("箱码[" + label.packingNumber + "批次[" + label.batch + "]重复扫描")
}
}
}
@@ -348,7 +348,7 @@
productionReturnRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成退料记录
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成退料记录\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/productionReturn/record/returnToStore.vue b/src/pages/productionReturn/record/returnToStore.vue
index ee5bfaab..1de0719e 100644
--- a/src/pages/productionReturn/record/returnToStore.vue
+++ b/src/pages/productionReturn/record/returnToStore.vue
@@ -250,7 +250,7 @@
} else {
if (detail.scaned == true) {
- this.showErrorMessage("箱码[" + label.packingNumber + "批次[" + label.batch + "]已经在列表中")
+ this.showErrorMessage("箱码[" + label.packingNumber + "批次[" + label.batch + "]重复扫描")
}
}
}
@@ -389,7 +389,7 @@
productionReturnRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成退料记录
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成退料记录\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/productionReturn/request/returnRequestCreate.vue b/src/pages/productionReturn/request/returnRequestCreate.vue
index a204b7d6..15fd8be7 100644
--- a/src/pages/productionReturn/request/returnRequestCreate.vue
+++ b/src/pages/productionReturn/request/returnRequestCreate.vue
@@ -201,7 +201,7 @@
productionReturnRequestCreate(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成发料申请
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成发料申请\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue
index 8fc65ab4..fa506e5a 100644
--- a/src/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/src/pages/purchaseReceipt/job/receiptDetail.vue
@@ -373,7 +373,7 @@
})
if (itemDetail.scaned && scanedLength == itemDetail
.packList.length) {
- isExit.scanDate = new Date();
+ itemDetail.scanDate = new Date();
this.showMessage("箱码【" + packingNumber + "】已经扫描")
} else {
itemDetail.scaned = true;
@@ -461,7 +461,7 @@
});
} else {
//不允许部分提交,提示
- this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
+ this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
.subList.length + "]箱", res => {
if (res) {
@@ -478,7 +478,7 @@
this.showMessage("请输入拒收原因")
return;
}
- this.$refs.comMessage.showQuestionMessage('是否要拒收任务
[' + this.jobContent.asnNumber + ']?', res => {
+ this.$refs.comMessage.showQuestionMessage('是否要拒收任务\n[' + this.jobContent.asnNumber + ']?', res => {
if (res) {
uni.showLoading({
title: "提交中....",
@@ -525,7 +525,7 @@
if (!isCheckPrint) {
uni.hideLoading()
- // this.showCommitSuccessMessage("提交成功
生成采购收货记录
" + res.data.number)
+ // this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data.number)
uni.redirectTo({
url: '/pages/pointPutawayJob/index?number='+that.jobContent.number
})
@@ -712,6 +712,9 @@
showMessage(message) {
+ if(this.$refs.scanPopup){
+ this.$refs.scanPopup.losefocus();
+ }
setTimeout(r => {
this.$refs.comMessage.showMessage(message, res => {
if (res) {
@@ -722,6 +725,9 @@
},
showErrorMessage(message) {
+ if(this.$refs.scanPopup){
+ this.$refs.scanPopup.losefocus();
+ }
setTimeout(r => {
this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {
diff --git a/src/pages/purchaseReceipt/job/receiptJob.vue b/src/pages/purchaseReceipt/job/receiptJob.vue
index d484d78a..3f610ed2 100644
--- a/src/pages/purchaseReceipt/job/receiptJob.vue
+++ b/src/pages/purchaseReceipt/job/receiptJob.vue
@@ -20,7 +20,7 @@
-
+
@@ -78,7 +78,7 @@
status: '1,2', //待处理 、进行中
detailOptions: [],
detailGiveupOptions: [],
- scanMessage:""
+ scanMessage: ""
};
},
@@ -95,7 +95,7 @@
scanTitle: {
type: String,
default: '箱标签'
- },
+ },
title: {
type: String,
default: ''
@@ -185,11 +185,11 @@
column: "status",
action: "in",
value: this.status
- })
- filters.push({
- column: "accept_user_id",
- action: "==",
- value: this.$store.state.user.id
+ })
+ filters.push({
+ column: "accept_user_id",
+ action: "==",
+ value: this.$store.state.user.id
})
var params = {
@@ -205,7 +205,7 @@
var list = res.data.list;
this.totalCount = res.data.total
- updateTitle(this.title+"(" + this.totalCount + ")");
+ updateTitle(this.title + "(" + this.totalCount + ")");
this.loadingType = "loadmore";
if (list == null || list.length == 0) {
this.loadingType = "nomore";
@@ -292,7 +292,7 @@
url: './receiptDetail?id=' + item.masterId + '&status=' + item.status + '&operation=' + this
.operation + '&scanMessage=' + scanMessage
});
- this.scanMessage=""
+ this.scanMessage = ""
},
showItemList(itemList) {
@@ -350,12 +350,14 @@
},
showMessage(message) {
+ if (this.$refs.scanPopup) {
+ this.$refs.scanPopup.packLoseFocus()
+ }
this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {
-
- if(this.$refs.scanPopup){
- this.$refs.scanPopup.packGetFocus()
- }
+ if (this.$refs.scanPopup) {
+ this.$refs.scanPopup.packGetFocus()
+ }
}
});
@@ -363,20 +365,20 @@
openScanPopup() {
this.$refs.scanPopup.openScanPopup();
},
- selectItem(item,isScanedASN=false) {
-
- this.$refs.scanPopup.closeScanPopup();
- if(isScanedASN){
- this.openJobDetail(item)
- }else{
- this.openJobDetail(item, this.scanMessage);
+ selectItem(item, isScanedASN = false) {
+
+ this.$refs.scanPopup.closeScanPopup();
+ if (isScanedASN) {
+ this.openJobDetail(item)
+ } else {
+ this.openJobDetail(item, this.scanMessage);
}
-
+
},
- getScanResult(result) {
+ getScanResult(result) {
try {
- this.scanMessage=""
+ this.scanMessage = ""
let filters = []
if (result.label.barType == "BarCode") {
// ASN单号
@@ -384,17 +386,17 @@
column: "asn_number",
action: "==",
value: result.label.code
- },{
- column: "status",
- action: "in",
- value: '1,2',
+ }, {
+ column: "status",
+ action: "in",
+ value: '1,2',
}]
} else {
filters = [{
- column: "packingNumber",
- action: "in",
- value: result.package.number + "," + result.package.parentNumber
- },
+ column: "packingNumber",
+ action: "in",
+ value: result.package.number + "," + result.package.parentNumber
+ },
{
column: "batch",
action: "==",
@@ -409,11 +411,11 @@
column: "itemCode",
action: "==",
value: result.label.itemCode
- },
- {
- column: "status",
- action: "in",
- value: '1,2',
+ },
+ {
+ column: "status",
+ action: "in",
+ value: '1,2',
},
{
column: "accept_user_id",
@@ -432,7 +434,7 @@
pageNo: 1,
pageSize: 100,
}).then(res => {
- this.scanMessage =result.scanMessage
+ this.scanMessage = result.scanMessage
let resultList = res.data.list;
if (resultList.length > 0) {
resultList.forEach(item => {
@@ -448,15 +450,15 @@
console.log('list', list)
if (list.length > 1) {
- this.$refs.jobList.openList(list,result.scanMessage.indexOf('ASN')>-1)
+ this.$refs.jobList.openList(list, result.scanMessage.indexOf('ASN') > -1)
} else {
- this.selectItem(list[0],result.scanMessage.indexOf('ASN')>-1)
+ this.selectItem(list[0], result.scanMessage.indexOf('ASN') > -1)
}
} else {
- this.showMessage("未查找到任务
"+"扫描["+result.scanMessage+"]")
+ this.showMessage("未查找到任务\n" + "扫描[" + result.scanMessage + "]")
}
}).catch(error => {
- this.showMessage(error+"
扫描["+result.scanMessage+"]")
+ this.showMessage(error + "\n扫描[" + result.scanMessage + "]")
})
} catch (e) {
diff --git a/src/pages/purchaseReturn/job/returnDetail.vue b/src/pages/purchaseReturn/job/returnDetail.vue
index 5ba0eb8a..11708552 100644
--- a/src/pages/purchaseReturn/job/returnDetail.vue
+++ b/src/pages/purchaseReturn/job/returnDetail.vue
@@ -246,12 +246,12 @@
// let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
//不存在提示
if (itemDetail == undefined) {
- this.showErrorMessage("箱码【" + packingNumber + "】
批次【" + batch + "】
库位【" + result
- .fromLocationCode + "】
未找到明细")
+ this.showErrorMessage("箱码【" + packingNumber + "】\n批次【" + batch + "】\n库位【" + result
+ .fromLocationCode + "】\n未找到明细")
return;
} else {
if (itemDetail.scaned) {
- this.showErrorMessage("箱码【" + packingNumber + "】
批次【" + batch + "】
库位【" + result
+ this.showErrorMessage("箱码【" + packingNumber + "】\n批次【" + batch + "】\n库位【" + result
.fromLocationCode + "】已经扫描")
return;
} else {
@@ -286,8 +286,8 @@
// r.fromLocationCode == result.fromLocationCode
// })
// if (itemDetail.scaned) {
- // this.showErrorMessage("箱码【" + packingNumber + "】
批次【" + batch + "】
库位【" + result
- // .fromLocationCode + "】
状态【" + balanceStatus + "】
已经扫描")
+ // this.showErrorMessage("箱码【" + packingNumber + "】\n批次【" + batch + "】\n库位【" + result
+ // .fromLocationCode + "】\n状态【" + balanceStatus + "】\n已经扫描")
// return;
// }
@@ -319,8 +319,8 @@
// } else {
// // 箱码、批次、库位、状态一致
// if (itemDetail.scaned) {
- // this.showErrorMessage("箱码【" + packingNumber + "】
批次【" + batch + "】
库位【" + result
- // .fromLocationCode + "】
状态【" + balanceStatus + "】
已经扫描")
+ // this.showErrorMessage("箱码【" + packingNumber + "】\n批次【" + batch + "】\n库位【" + result
+ // .fromLocationCode + "】\n状态【" + balanceStatus + "】\n已经扫描")
// return;
// } else {
// itemDetail.scaned = true;
@@ -350,26 +350,45 @@
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
+ // 提交的数量和任务数量不一致提示
+ let str = ''
+ this.detailSource.forEach((item) => {
+ item.subList.forEach(cur => {
+ if (cur.qty != cur.handleQty) {
+ str += `包装号【${cur.packingNumber}】提交数量【${cur.handleQty}】与任务物料数量【${cur.qty}】不一致`
+ }
+ })
+ })
+ if (str) {
+ str += ',是否确认提交?'
+ this.$refs.comMessage.showQuestionMessage1(str, 'red', res => {
+ if (res) {
+ this.submitJob()
+ }
+ });
+ } else {
+ this.submitJob()
+ }
//允许部分提交
//扫描数量和任务数量相等,直接提交
- if (this.scanCount == this.subList.length) {
- this.submitJob();
- } else if (this.scanCount < this.subList.length) {
- //扫描数量小于任务数量,判断是否允许部分提交
- if (this.jobContent.allowPartialComplete == "TRUE") {
- //提交
- this.submitJob();
- } else {
- //不允许部分提交,提示
- this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
- "]箱总共[" + this
- .subList.length + "]箱", res => {
- if (res) {
- this.openScanPopup();
- }
- });
- }
- }
+ // if (this.scanCount == this.subList.length) {
+ // this.submitJob();
+ // } else if (this.scanCount < this.subList.length) {
+ // //扫描数量小于任务数量,判断是否允许部分提交
+ // if (this.jobContent.allowPartialComplete == "TRUE") {
+ // //提交
+ // this.submitJob();
+ // } else {
+ // //不允许部分提交,提示
+ // this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount +
+ // "]箱总共[" + this
+ // .subList.length + "]箱", res => {
+ // if (res) {
+ // this.openScanPopup();
+ // }
+ // });
+ // }
+ // }
},
submitJob() {
@@ -439,15 +458,21 @@
},
closeScanPopup() {
- this.$refs.scanPopup.closeScanPopup();
+ if(this.$refs.scanPopup){
+ this.$refs.scanPopup.closeScanPopup();
+ }
},
scanPopupGetFocus() {
- this.$refs.scanPopup.packGetFocus();
+ if(this.$refs.scanPopup){
+ this.$refs.scanPopup.packGetFocus();
+ }
},
scanPopupLoseFocus() {
- this.$refs.scanPopup.packLoseFocus();
+ if(this.$refs.scanPopup){
+ this.$refs.scanPopup.packLoseFocus();
+ }
},
openDetail(item) {
@@ -455,6 +480,7 @@
},
showMessage(message) {
+ this.scanPopupLoseFocus();
this.$refs.comMessage.showMessage(message, res => {
if (res) {
this.scanPopupGetFocus()
@@ -463,6 +489,7 @@
},
showErrorMessage(message) {
+ this.scanPopupLoseFocus();
this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {
this.scanPopupGetFocus()
@@ -482,7 +509,7 @@
},
showCommitSuccessMessage(number) {
- this.$refs.comMessage.showSuccessMessage('提交成功
生成退货记录:' + number, res => {
+ this.$refs.comMessage.showSuccessMessage('提交成功\n生成退货记录:' + number, res => {
navigateBack(1)
})
}
diff --git a/src/pages/purchaseReturn/record/returnRecord.vue b/src/pages/purchaseReturn/record/returnRecord.vue
index 8b5e36d4..06a41339 100644
--- a/src/pages/purchaseReturn/record/returnRecord.vue
+++ b/src/pages/purchaseReturn/record/returnRecord.vue
@@ -207,10 +207,11 @@
let newDetail = createDetailInfo(balance, pack);
item.subList.push(newDetail);
} else {
- this.showErrorMessage('箱码[' + balance.packingNumber + "]已经在列表中")
+ this.showErrorMessage('箱码[' + balance.packingNumber + "]重复扫描")
}
}
calcHandleQty(this.detailSource);
+ this.scanPopupGetFocus()
},
updateData() {
@@ -254,7 +255,7 @@
purchaseReturnRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成采购退货记录
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成采购退货记录\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/purchaseReturn/request/returnRequestCreate.vue b/src/pages/purchaseReturn/request/returnRequestCreate.vue
index ccd0b691..f5b4cb11 100644
--- a/src/pages/purchaseReturn/request/returnRequestCreate.vue
+++ b/src/pages/purchaseReturn/request/returnRequestCreate.vue
@@ -174,7 +174,7 @@
let newDetail = createDetailInfo(balance, pack);
item.subList.push(newDetail);
} else {
- this.showErrorMessage('箱码[' + balance.packingNumber + "]已经在列表中")
+ this.showErrorMessage('箱码[' + balance.packingNumber + "]重复扫描")
}
}
calcHandleQty(this.detailSource);
@@ -215,7 +215,7 @@
purchaseReturnRequestCreate(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成采购退货申请
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成采购退货申请\n" + res.data)
} else {
this.showErrorMessage("提交失败["+res.msg+"]")
}
diff --git a/src/pages/putaway/job/putawayDetail.vue b/src/pages/putaway/job/putawayDetail.vue
index cc18b893..a9d9fbe2 100644
--- a/src/pages/putaway/job/putawayDetail.vue
+++ b/src/pages/putaway/job/putawayDetail.vue
@@ -1,14 +1,14 @@
@@ -364,6 +364,7 @@
}
}
calcTreeHandleQty(this.detailSource);
+ this.continueScan()
this.$forceUpdate()
} else {
var scanedLength = 0;
@@ -454,7 +455,7 @@
this.submitJob();
} else {
//不允许部分提交,提示
- this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
+ this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
.subList.length + "]箱", res => {
if (res) {
@@ -485,7 +486,7 @@
putawayJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成采购上架记录
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成采购上架记录\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/putaway/job/putawayJob.vue b/src/pages/putaway/job/putawayJob.vue
index 389d8ea2..9c903838 100644
--- a/src/pages/putaway/job/putawayJob.vue
+++ b/src/pages/putaway/job/putawayJob.vue
@@ -308,9 +308,14 @@
showMessage(message) {
+ if(this.$refs.scanPopup){
+ this.$refs.scanPopup.packLoseFocus()
+ }
this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {
-
+ if(this.$refs.scanPopup){
+ this.$refs.scanPopup.packGetFocus()
+ }
}
});
},
@@ -395,26 +400,26 @@
if (list[0].acceptUserId == this.$store.state.user.id) {
this.selectItem(list[0])
} else {
- this.showMessage("该任务已经被[" + list[0].acceptUserName + "]承接" + "
任务号[" +
+ this.showMessage("该任务已经被[" + list[0].acceptUserName + "]承接" + "\n任务号[" +
list[0].number + "]扫描[" + result.scanMessage + "]")
}
} else if (list[0].status == 3) {
- this.showMessage("该任务已经完成
承接人[" + list[0].acceptUserName + "]
任务号[" +
+ this.showMessage("该任务已经完成\n承接人[" + list[0].acceptUserName + "]\n任务号[" +
list[0].number + "]扫描[" + result.scanMessage + "]")
}
} else {
- this.showMessage("查询到多条任务
" + "扫描[" + result.scanMessage + "]")
+ this.showMessage("查询到多条任务\n" + "扫描[" + result.scanMessage + "]")
}
} else {
- this.showMessage("未查找到任务
" + "扫描[" + result.scanMessage + "]")
+ this.showMessage("未查找到任务\n" + "扫描[" + result.scanMessage + "]")
}
}).catch(error => {
- this.showMessage(error + "
扫描[" + result.scanMessage + "]")
+ this.showMessage(error + "\n扫描[" + result.scanMessage + "]")
})
} catch (e) {
- this.showMessage(e + "
扫描[" + result.scanMessage + "]")
+ this.showMessage(e + "\n扫描[" + result.scanMessage + "]")
}
},
}
diff --git a/src/pages/putaway/record/putawayRecord.vue b/src/pages/putaway/record/putawayRecord.vue
index a40d2002..9662d144 100644
--- a/src/pages/putaway/record/putawayRecord.vue
+++ b/src/pages/putaway/record/putawayRecord.vue
@@ -205,7 +205,7 @@
});
} else {
if (detail.scaned == true) {
- this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中")
+ this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]重复扫描")
}
}
}
@@ -335,7 +335,7 @@
putawayRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成采购上架记录
" + res.data, )
+ this.showCommitSuccessMessage("提交成功\n生成采购上架记录\n" + res.data, )
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/putaway/record/putawayRecord_bat.vue b/src/pages/putaway/record/putawayRecord_bat.vue
index 9a67134d..b2b10de7 100644
--- a/src/pages/putaway/record/putawayRecord_bat.vue
+++ b/src/pages/putaway/record/putawayRecord_bat.vue
@@ -188,7 +188,7 @@
var itemDetail = item.subList.find(r => r.packingNumber == balance.packingNumber && r.batch ==
balance.batch);
if(itemDetail!=undefined){
- this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中")
+ this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]重复扫描")
}
}
// calcTreeHandleQty(this.detailSource);
@@ -314,7 +314,7 @@
putawayRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成采购上架记录
" + res.data, )
+ this.showCommitSuccessMessage("提交成功\n生成采购上架记录\n" + res.data, )
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/putaway/request/putawayRequestCreate.vue b/src/pages/putaway/request/putawayRequestCreate.vue
index 5f7c3df6..27e1a10e 100644
--- a/src/pages/putaway/request/putawayRequestCreate.vue
+++ b/src/pages/putaway/request/putawayRequestCreate.vue
@@ -201,7 +201,7 @@
// });
} else {
if (detail.scaned == true) {
- this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中")
+ this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]重复扫描")
}
}
}
@@ -288,7 +288,7 @@
putawayRequestSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成采购上架申请
" + res.data, )
+ this.showCommitSuccessMessage("提交成功\n生成采购上架申请\n" + res.data, )
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/query/pack.vue b/src/pages/query/pack.vue
index a1e20917..045dd20b 100644
--- a/src/pages/query/pack.vue
+++ b/src/pages/query/pack.vue
@@ -119,6 +119,7 @@
return;
}
this.packingNumber =result.label.packingNumber ;
+ this.closeScanPopup();
this.tabChange(0)
},
getItemInfo(code) {
@@ -402,6 +403,9 @@
},
showMessage(message) {
+ if (this.$refs.scanPopup ) {
+ this.$refs.scanPopup.losefocus();
+ }
this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {
this.afterCloseMessage()
@@ -409,7 +413,7 @@
});
},
afterCloseMessage() {
- if (this.$refs.scanPopup != undefined) {
+ if (this.$refs.scanPopup ) {
this.$refs.scanPopup.getfocus();
}
},
diff --git a/src/pages/repleinsh/coms/comRepleinshJobCard.vue b/src/pages/repleinsh/coms/comRepleinshJobCard.vue
index 216deb18..92f1c17e 100644
--- a/src/pages/repleinsh/coms/comRepleinshJobCard.vue
+++ b/src/pages/repleinsh/coms/comRepleinshJobCard.vue
@@ -1,16 +1,20 @@
+
+
diff --git a/src/pages/stockUp/coms/comScanStockUpPack.vue b/src/pages/stockUp/coms/comScanStockUpPack.vue
index 5d72bcb0..a084d530 100644
--- a/src/pages/stockUp/coms/comScanStockUpPack.vue
+++ b/src/pages/stockUp/coms/comScanStockUpPack.vue
@@ -182,12 +182,14 @@ import { getDirectoryItemArray } from '../../../common/directory.js';
this.initData();
this.positionInfo = this.jobContent.workShopCode + "-" + this.jobContent.subList[0].productionLineCode +
"-" + this.jobContent.subList[0].workStationCode
+ this.$refs.popup.open('bottom')
setTimeout(res => {
- this.$refs.popup.open('bottom')
+ this.getfocus()
}, 500)
},
closeScanPopup() {
+ this.losefocus();
this.$refs.popup.close();
this.$emit("closeScan")
//清除数据,恢复默认值
@@ -419,17 +421,16 @@ import { getDirectoryItemArray } from '../../../common/directory.js';
batch.Records.push(record);
this.issueRecord.unshift(record)
this.calcBatchHandleQty(batch);
- this.getfocus();
},
getfocus() {
- if (this.$refs.comscan != undefined) {
+ if (this.$refs.comscan ) {
this.$refs.comscan.getfocus();
}
},
losefocus() {
- if (this.$refs.comscan != undefined) {
+ if (this.$refs.comscan) {
this.$refs.comscan.losefocus();
}
},
diff --git a/src/pages/stockUp/job/stockUpJobDetail.vue b/src/pages/stockUp/job/stockUpJobDetail.vue
index d8271d72..0ba4fb25 100644
--- a/src/pages/stockUp/job/stockUpJobDetail.vue
+++ b/src/pages/stockUp/job/stockUpJobDetail.vue
@@ -270,7 +270,7 @@
stockUpJobsubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成备货记录" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成备货记录" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/transfer/coms/comTransferRecord.vue b/src/pages/transfer/coms/comTransferRecord.vue
index 6bc51e4c..2ea1546e 100644
--- a/src/pages/transfer/coms/comTransferRecord.vue
+++ b/src/pages/transfer/coms/comTransferRecord.vue
@@ -170,7 +170,7 @@
item.subList.push(newDetail);
} else {
if (detail.scaned == true) {
- this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中")
+ this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]重复扫描")
}
}
}
@@ -263,7 +263,7 @@
transferIssueRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成调拨出库记录
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成调拨出库记录\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
@@ -275,7 +275,7 @@
transferReceiptRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成调拨入库记录
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成调拨入库记录\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/transfer/job/issueDetail.vue b/src/pages/transfer/job/issueDetail.vue
index aa501ee2..ac03934e 100644
--- a/src/pages/transfer/job/issueDetail.vue
+++ b/src/pages/transfer/job/issueDetail.vue
@@ -336,7 +336,7 @@
this.submitJob();
} else {
//不允许部分提交,提示
- this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
+ this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
.subList.length + "]箱", res => {
if (res) {
@@ -367,7 +367,7 @@
transferIssueJobSubmit(params).then(res => {
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成调拨出库记录" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成调拨出库记录" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/transfer/job/receiptDetail.vue b/src/pages/transfer/job/receiptDetail.vue
index 0ef38304..82369338 100644
--- a/src/pages/transfer/job/receiptDetail.vue
+++ b/src/pages/transfer/job/receiptDetail.vue
@@ -362,7 +362,7 @@
this.submitJob();
} else {
//不允许部分提交,提示
- this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
+ this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
.subList.length + "]箱", res => {
if (res) {
@@ -400,7 +400,7 @@
transferReceiptJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成调拨入库记录
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成调拨入库记录\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/transfer/job/transferDetail.vue b/src/pages/transfer/job/transferDetail.vue
index 806d09d2..d362914a 100644
--- a/src/pages/transfer/job/transferDetail.vue
+++ b/src/pages/transfer/job/transferDetail.vue
@@ -372,7 +372,7 @@
} else {
this.scanCount = this.getScanCount();
if (this.scanCount < this.subList.length) {
- this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
+ this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
.subList.length + "]箱", res => {
if (res) {
diff --git a/src/pages/transfer/record/deliverRecord.vue b/src/pages/transfer/record/deliverRecord.vue
index 0c753757..6fe03d5a 100644
--- a/src/pages/transfer/record/deliverRecord.vue
+++ b/src/pages/transfer/record/deliverRecord.vue
@@ -160,7 +160,7 @@
item.subList.push(newDetail);
} else {
if (detail.scaned == true) {
- this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中")
+ this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]重复扫描")
}
}
}
@@ -252,7 +252,7 @@
transferIssueRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成调拨出库记录
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成调拨出库记录\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/transfer/record/receiptRecord.vue b/src/pages/transfer/record/receiptRecord.vue
index 81a94e90..61b9ee37 100644
--- a/src/pages/transfer/record/receiptRecord.vue
+++ b/src/pages/transfer/record/receiptRecord.vue
@@ -149,7 +149,7 @@
item.subList.push(newDetail);
} else {
if (detail.scaned == true) {
- this.showErrorMessage("箱码[" + label.packingNumber + "批次[" + balance.batch + "]已经在列表中")
+ this.showErrorMessage("箱码[" + label.packingNumber + "批次[" + balance.batch + "]重复扫描")
}
}
}
@@ -232,7 +232,7 @@
transferReceiptRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成调拨入库记录
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成调拨入库记录\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/unPlanned/job/issueJobDetail.vue b/src/pages/unPlanned/job/issueJobDetail.vue
index 0eb1fd1d..60aa60b6 100644
--- a/src/pages/unPlanned/job/issueJobDetail.vue
+++ b/src/pages/unPlanned/job/issueJobDetail.vue
@@ -280,25 +280,44 @@
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
- //扫描数量和任务数量相等,直接提交
- if (this.scanCount == this.subList.length) {
- this.submitJob();
- } else if (this.scanCount < this.subList.length) {
- //扫描数量小于任务数量,判断是否允许部分提交
- if (this.jobContent.allowPartialComplete == "TRUE") {
- //提交
- this.submitJob();
- } else {
- //不允许部分提交,提示
- this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
- "]箱总共[" + this
- .subList.length + "]箱", res => {
- if (res) {
- this.openScanPopup();
- }
- });
- }
+ // 提交的数量和任务数量不一致提示
+ let str = ''
+ this.detailSource.forEach((item) => {
+ item.subList.forEach(cur => {
+ if (cur.qty != cur.handleQty) {
+ str += `包装号【${cur.packingNumber}】提交数量【${cur.handleQty}】与任务物料数量【${cur.qty}】不一致`
+ }
+ })
+ })
+ if (str) {
+ str += ',是否确认提交?'
+ this.$refs.comMessage.showQuestionMessage1(str, 'red', res => {
+ if (res) {
+ this.submitJob()
+ }
+ });
+ } else {
+ this.submitJob()
}
+ // //扫描数量和任务数量相等,直接提交
+ // if (this.scanCount == this.subList.length) {
+ // this.submitJob();
+ // } else if (this.scanCount < this.subList.length) {
+ // //扫描数量小于任务数量,判断是否允许部分提交
+ // if (this.jobContent.allowPartialComplete == "TRUE") {
+ // //提交
+ // this.submitJob();
+ // } else {
+ // //不允许部分提交,提示
+ // this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount +
+ // "]箱总共[" + this
+ // .subList.length + "]箱", res => {
+ // if (res) {
+ // this.openScanPopup();
+ // }
+ // });
+ // }
+ // }
},
@@ -313,7 +332,7 @@
unPlannedIssueJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成计划外出库记录
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成计划外出库记录\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/unPlanned/job/receiptJobDetail.vue b/src/pages/unPlanned/job/receiptJobDetail.vue
index ed688942..d9049d28 100644
--- a/src/pages/unPlanned/job/receiptJobDetail.vue
+++ b/src/pages/unPlanned/job/receiptJobDetail.vue
@@ -264,7 +264,7 @@
this.submitJob();
} else {
//不允许部分提交,提示
- this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
+ this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
.subList.length + "]箱", res => {
if (res) {
@@ -314,7 +314,7 @@
unPlannedReceiptJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成计划外入库记录
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成计划外入库记录\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/unPlanned/record/issueRecord.vue b/src/pages/unPlanned/record/issueRecord.vue
index 89e1fb3a..42ea5f8e 100644
--- a/src/pages/unPlanned/record/issueRecord.vue
+++ b/src/pages/unPlanned/record/issueRecord.vue
@@ -154,12 +154,13 @@
// newDetail.inventoryStatus ="OK";
itemp.subList.push(newDetail);
this.detailSource.push(itemp)
+ this.packGetFocus()
} else {
var detail = item.subList.find(r => {
- if (r.packingNumber == result.packingNumber &&
- r.batch == result.batch &&
- r.locationCode == result.locationCode &&
- r.inventoryStatus == result.inventoryStatus &&
+ if (r.packingNumber == balance.packingNumber &&
+ r.batch == balance.batch &&
+ r.locationCode == balance.locationCode &&
+ r.inventoryStatus == balance.inventoryStatus &&
r.scaned == true) {
return r;
}
@@ -168,13 +169,20 @@
if (detail == undefined) {
let newDetail = createDetailInfo(balance, pack);
item.subList.push(newDetail);
+ this.packGetFocus()
} else {
- this.showErrorMessage(result.packingNumber + "已经在列表中")
+ this.showErrorMessage("箱码[" + balance.packingNumber + "]批次[" + balance.batch + "]已经扫描")
}
}
this.calcHandleQty();
},
+
+ packGetFocus(){
+ if(this.$refs.scanPopup){
+ this.$refs.scanPopup.packGetFocus()
+ }
+ },
calcHandleQty() {
calcHandleQty(this.detailSource);
@@ -184,7 +192,7 @@
showErrorMessage(message) {
this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {
-
+ this.packGetFocus()
}
});
},
@@ -213,7 +221,7 @@
unPlannedIssueRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成采购收货记录
" + res.data )
+ this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data )
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/unPlanned/record/receiptRecord.vue b/src/pages/unPlanned/record/receiptRecord.vue
index ad4c88d6..8529bcd0 100644
--- a/src/pages/unPlanned/record/receiptRecord.vue
+++ b/src/pages/unPlanned/record/receiptRecord.vue
@@ -144,10 +144,12 @@
let newDetail = this.createDetailInfo(label, pack);
itemp.subList.push(newDetail);
this.detailSource.push(itemp)
+ this.getfocus()
+
} else {
var detail = item.subList.find(r => {
- if (r.packingNumber == result.number &&
- r.batch == result.batch) {
+ if (r.packingNumber == pack.number &&
+ r.batch == pack.batch) {
return r;
}
})
@@ -155,9 +157,10 @@
if (detail == undefined) {
let newDetail = this.createDetailInfo(label, pack);
item.subList.push(newDetail);
+ this.getfocus()
} else {
if (detail.scaned) {
- this.showErrorMessage("箱码[" + result.Number + "]批次[" + result.batch + "]已经扫描")
+ this.showErrorMessage("箱码[" + pack.number + "]批次[" + pack.batch + "]已经扫描")
}
}
@@ -165,6 +168,12 @@
this.calcHandleQty();
},
+
+ getfocus(){
+ if(this.$refs.scanPopup){
+ this.$refs.scanPopup.getfocus()
+ }
+ },
createItemInfo(label, pack) {
let item = {
@@ -213,7 +222,7 @@
showErrorMessage(message) {
this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {
-
+ this.getfocus()
}
});
},
@@ -260,7 +269,7 @@
unPlannedReceiptRecordbSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成计划外入库记录
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成计划外入库记录\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/unPlanned/request/issueRequestCreate.vue b/src/pages/unPlanned/request/issueRequestCreate.vue
index 4647037c..7b9c9b7c 100644
--- a/src/pages/unPlanned/request/issueRequestCreate.vue
+++ b/src/pages/unPlanned/request/issueRequestCreate.vue
@@ -166,12 +166,13 @@
let newDetail = createDetailInfo(balance, pack); //
itemp.subList.push(newDetail);
this.detailSource.push(itemp)
+ this.packGetFocus()
} else {
var detail = item.subList.find(r => {
- if (r.packingNumber == result.packingNumber &&
- r.batch == result.batch &&
- r.locationCode == result.locationCode &&
- r.inventoryStatus == result.inventoryStatus &&
+ if (r.packingNumber == balance.packingNumber &&
+ r.batch == balance.batch &&
+ r.locationCode == balance.locationCode &&
+ r.inventoryStatus == balance.inventoryStatus &&
r.scaned == true) {
return r;
}
@@ -180,13 +181,21 @@
if (detail == undefined) {
let newDetail = createDetailInfo(balance, pack);
item.subList.push(newDetail);
+ this.packGetFocus()
} else {
- this.showErrorMessage(result.packingNumber + "已经在列表中")
+ this.showErrorMessage("包装["+balance.packingNumber+"]"+"批次["+balance.batch+"]" + "重复扫描")
}
}
this.calcHandleQty();
},
+ packGetFocus(){
+ if(this.$refs.scanPopup){
+ this.$refs.scanPopup.packGetFocus()
+ }
+
+ },
+
calcHandleQty() {
calcHandleQty(this.detailSource);
@@ -196,7 +205,7 @@
showErrorMessage(message) {
this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {
-
+ this.packGetFocus()
}
});
},
@@ -235,7 +244,7 @@
unPlannedIssueRequestCreate(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成计划外出库申请
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成计划外出库申请\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/src/pages/unPlanned/request/receiptRequestCreate.vue b/src/pages/unPlanned/request/receiptRequestCreate.vue
index 04dacd90..ca594f4d 100644
--- a/src/pages/unPlanned/request/receiptRequestCreate.vue
+++ b/src/pages/unPlanned/request/receiptRequestCreate.vue
@@ -184,7 +184,7 @@
unPlannedReceiptRequestCreate(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成计划外入库申请
" + res.data)
+ this.showCommitSuccessMessage("提交成功\n生成计划外入库申请\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}