From da792b67bd51d2d711cc97714ef765821ff260fa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E5=BF=97=E5=9B=BD?= <854933521@qq.com>
Date: Mon, 4 Nov 2024 16:02:22 +0800
Subject: [PATCH] =?UTF-8?q?page/unPlanned=20=E6=96=87=E4=BB=B6=E8=BF=81?=
=?UTF-8?q?=E7=A7=BB=208/8-10/25?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/unPlanned/coms/comIssueJobCard.vue | 10 +-
.../coms/comReceiptDetailCardBatch.vue | 185 ++++++++++++++++++
src/pages/unPlanned/record/issueRecord.vue | 9 +-
src/pages/unPlanned/record/receiptRecord.vue | 12 +-
.../unPlanned/request/issueRequestCreate.vue | 13 +-
.../request/receiptRequestCreate.vue | 2 +-
6 files changed, 219 insertions(+), 12 deletions(-)
create mode 100644 src/pages/unPlanned/coms/comReceiptDetailCardBatch.vue
diff --git a/src/pages/unPlanned/coms/comIssueJobCard.vue b/src/pages/unPlanned/coms/comIssueJobCard.vue
index 109c7daa..4879ef63 100644
--- a/src/pages/unPlanned/coms/comIssueJobCard.vue
+++ b/src/pages/unPlanned/coms/comIssueJobCard.vue
@@ -1,6 +1,14 @@
-
+
+
+
+
+ 目的地
+ {{dataContent.destination}}
+
+
+
diff --git a/src/pages/unPlanned/coms/comReceiptDetailCardBatch.vue b/src/pages/unPlanned/coms/comReceiptDetailCardBatch.vue
new file mode 100644
index 00000000..950f0d60
--- /dev/null
+++ b/src/pages/unPlanned/coms/comReceiptDetailCardBatch.vue
@@ -0,0 +1,185 @@
+
+
+
+
+
+
+ swipeClick(event,item)">
+
+
+
+
+
+
+
+
+ 复制
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/unPlanned/record/issueRecord.vue b/src/pages/unPlanned/record/issueRecord.vue
index 3587ec80..0ff6cf37 100644
--- a/src/pages/unPlanned/record/issueRecord.vue
+++ b/src/pages/unPlanned/record/issueRecord.vue
@@ -121,9 +121,10 @@ const getDataSource = (result) => {
// newDetail.inventoryStatus = 'OK'
itemp.subList.push(newDetail)
detailSource.value.push(itemp)
+ packGetFocus()
} else {
const detail = item.subList.find((r) => {
- if (r.packingNumber == result.packingNumber && r.batch == result.batch && r.locationCode == result.locationCode && r.inventoryStatus == result.inventoryStatus && r.scaned == true) {
+ if (r.packingNumber == balance.packingNumber && r.batch == balance.batch && r.locationCode == balance.locationCode && r.inventoryStatus == balance.inventoryStatus && r.scaned == true) {
return r
}
})
@@ -131,12 +132,16 @@ const getDataSource = (result) => {
if (detail == undefined) {
const newDetail = createDetailInfo(balance, pack)
item.subList.push(newDetail)
+ packGetFocus()
} else {
- showErrorMessage(`${result.packingNumber}已经在列表中`)
+ showErrorMessage(`箱码[${balance.packingNumber}]批次[${balance.batch}]已经扫描`)
}
}
handleCalcHandleQty()
}
+const packGetFocus = ()=>{
+ scanPopup.value?.packGetFocus()
+}
const handleCalcHandleQty = () => {
calcHandleQty(detailSource.value)
}
diff --git a/src/pages/unPlanned/record/receiptRecord.vue b/src/pages/unPlanned/record/receiptRecord.vue
index dd956c79..ac38ad86 100644
--- a/src/pages/unPlanned/record/receiptRecord.vue
+++ b/src/pages/unPlanned/record/receiptRecord.vue
@@ -111,9 +111,10 @@ const getScanResult = (result) => {
const newDetail = createDetailInfo(label, pack)
itemp.subList.push(newDetail)
detailSource.value.push(itemp)
+ getfocus()
} else {
const 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
}
})
@@ -121,13 +122,16 @@ const getScanResult = (result) => {
if (detail == undefined) {
const newDetail = createDetailInfo(label, pack)
item.subList.push(newDetail)
+ getfocus()
} else if (detail.scaned) {
- showErrorMessage(`箱码[${result.Number}]批次[${result.batch}]已经扫描`)
+ showErrorMessage(`箱码[${pack.Number}]批次[${pack.batch}]已经扫描`)
}
}
calcHandleQty()
}
-
+const getfocus = ()=>{
+ scanPopup.value?.getfocus()
+}
const createItemInfo = (label, pack) => {
const item = {
itemCode: pack.itemCode,
@@ -217,7 +221,7 @@ const commit = () => {
.then((res) => {
uni.hideLoading()
if (res.data) {
- showCommitSuccessMessage(`提交成功
生成计划外入库记录
${res.data}`)
+ showCommitSuccessMessage(`提交成功\n生成计划外入库记录\n${res.data}`)
} else {
showErrorMessage(`提交失败[${res.msg}]`)
}
diff --git a/src/pages/unPlanned/request/issueRequestCreate.vue b/src/pages/unPlanned/request/issueRequestCreate.vue
index 786ece1b..648fa7c7 100644
--- a/src/pages/unPlanned/request/issueRequestCreate.vue
+++ b/src/pages/unPlanned/request/issueRequestCreate.vue
@@ -122,9 +122,10 @@ const getDataSource = (result) => {
const newDetail = createDetailInfo(balance, pack) //
itemp.subList.push(newDetail)
detailSource.value.push(itemp)
+ packGetFocus()
} else {
const detail = item.subList.find((r) => {
- if (r.packingNumber == result.packingNumber && r.batch == result.batch && r.locationCode == result.locationCode && r.inventoryStatus == result.inventoryStatus && r.scaned == true) {
+ if (r.packingNumber == balance.packingNumber && r.batch == balance.batch && r.locationCode == balance.locationCode && r.inventoryStatus == balance.inventoryStatus && r.scaned == true) {
return r
}
})
@@ -132,13 +133,16 @@ const getDataSource = (result) => {
if (detail == undefined) {
const newDetail = createDetailInfo(balance, pack)
item.subList.push(newDetail)
+ packGetFocus()
} else {
- showErrorMessage(`${result.packingNumber}已经在列表中`)
+ showErrorMessage(`包装[${balance.packingNumber}]批次[balance.batch${balance.batch}]重复扫描`)
}
}
handleCalcHandleQty()
}
-
+const packGetFocus = ()=>{
+ scanPopup.value?.packGetFocus()
+}
const handleCalcHandleQty = () => {
calcHandleQty(detailSource.value)
}
@@ -146,6 +150,7 @@ const handleCalcHandleQty = () => {
const showErrorMessage = (message) => {
comMessageRef.value.showErrorMessage(message, (res) => {
if (res) {
+ packGetFocus()
}
})
}
@@ -181,7 +186,7 @@ const commit = () => {
.then((res) => {
uni.hideLoading()
if (res.data) {
- showCommitSuccessMessage(`提交成功
生成计划外出库申请
${res.data}`)
+ showCommitSuccessMessage(`提交成功\n生成计划外出库申请\n${res.data}`)
} else {
showErrorMessage(`提交失败[${res.msg}]`)
}
diff --git a/src/pages/unPlanned/request/receiptRequestCreate.vue b/src/pages/unPlanned/request/receiptRequestCreate.vue
index 9cac256d..60426118 100644
--- a/src/pages/unPlanned/request/receiptRequestCreate.vue
+++ b/src/pages/unPlanned/request/receiptRequestCreate.vue
@@ -147,7 +147,7 @@ const submit = () => {
.then((res) => {
uni.hideLoading()
if (res.data) {
- showCommitSuccessMessage(`提交成功
生成计划外入库申请
${res.data}`)
+ showCommitSuccessMessage(`提交成功\n生成计划外入库申请\n${res.data}`)
} else {
showErrorMessage(`提交失败[${res.msg}]`)
}