From a148be3127b93483c594b1acdd5096bb022c4c0e Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Thu, 5 Sep 2024 17:23:20 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=98=E7=82=B9=202024/7/8?=
=?UTF-8?q?=2016:58:41?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mycomponents/balance/location.vue | 32 ++++++------
.../scan/winScanPackAndLocation.vue | 4 +-
src/pages/count/coms/comCountDetailcards.vue | 6 ++-
src/pages/count/coms/comCountJobCard.vue | 2 +-
src/pages/count/job/countBlindDetail.vue | 49 +++++++++++--------
src/pages/count/job/countJob.vue | 24 +++++++--
src/pages/count/job/countLightDetail.vue | 6 +--
.../components/uni-combox/uni-combox.vue | 4 +-
8 files changed, 78 insertions(+), 49 deletions(-)
diff --git a/src/mycomponents/balance/location.vue b/src/mycomponents/balance/location.vue
index 9e552662..27f275b9 100644
--- a/src/mycomponents/balance/location.vue
+++ b/src/mycomponents/balance/location.vue
@@ -1,23 +1,21 @@
-
- {{title}}
- {{locationCode}}
-
+
+ {{ title }}
+ {{ locationCode }}
+
-
+
diff --git a/src/mycomponents/scan/winScanPackAndLocation.vue b/src/mycomponents/scan/winScanPackAndLocation.vue
index e1c0d657..30bf08ec 100644
--- a/src/mycomponents/scan/winScanPackAndLocation.vue
+++ b/src/mycomponents/scan/winScanPackAndLocation.vue
@@ -10,7 +10,7 @@
- 来源库位
+ 来源库位
-
+
阶段 : {{ handleGetCountStageName(dataContent.stage) }}
策略 : {{ isOpenCount(dataContent.isOpenCount) }}
diff --git a/src/pages/count/job/countBlindDetail.vue b/src/pages/count/job/countBlindDetail.vue
index 3de457b8..2bcb8a86 100644
--- a/src/pages/count/job/countBlindDetail.vue
+++ b/src/pages/count/job/countBlindDetail.vue
@@ -34,7 +34,7 @@
{{ index + 1 }}.
-
+
@@ -54,7 +54,7 @@
-
+
@@ -207,15 +207,15 @@ export default {
} else {
that.jobContent = res.data
that.jobStatus = res.data.status
- that.fromLocationCode = that.jobContent.locationCode
- // res.data.subList.forEach(item => {
- // item.recommendQty = item.qty
- // item.handleQty = 0
- // item.countTime = new Date()
- // item.fromLocationCode =that.fromLocationCode;
- // })
- // that.allDetails = res.data.subList;
- // that.allCount = res.data.subList.length;
+ that.fromLocationCode = that.jobContent.countSplitCode
+ res.data.subList.forEach((item) => {
+ item.recommendQty = item.qty
+ item.handleQty = 0
+ item.countTime = new Date()
+ item.fromLocationCode = that.fromLocationCode
+ })
+ that.allDetails = res.data.subList
+ that.allCount = res.data.subList.length
that.initList()
}
})
@@ -297,18 +297,25 @@ export default {
const { packingNumber } = result.label
const pack = result.package
const { batch } = result.label
- const inventoryStatus = 'OK'
- const qty = result.label.qty ? result.label.qty : 0
+ const inventoryStatus = result.balance ? result.balance.inventoryStatus : 'OK'
+ const qty = result.balance ? result.balance.qty : 0
// 按物料、箱码、批次、状态匹配
const items = this.allDetails.filter((r) => r.itemCode === itemCode && r.packingNumber === packingNumber && r.batch === batch && r.inventoryStatus === inventoryStatus)
// 不在任务列表中,是否添加库存
if (items.length == 0) {
- const detail = this.createAddDetailInfo(pack, qty)
- detail.countTime = new Date()
- this.allDetails.push(detail)
- this.updateList()
- this.$refs.countQtyEdit.openEditPopupShowSeconds(detail, null)
+ this.$refs.comMessage.showQuestionMessage(`包装【${result.label.packingNumber}】不在任务列表中,是否要添加到列表中?`, (res) => {
+ // 创建盘点信息,标记为已经扫描
+ if (res) {
+ const detail = this.createAddDetailInfo(pack, qty)
+ detail.countTime = new Date()
+ this.allDetails.push(detail)
+ this.updateList()
+ this.$refs.countQtyEdit.openEditPopupShowSeconds(detail, null)
+ } else {
+ this.scanPopupGetFocus()
+ }
+ })
} else {
const selectItem = items[0]
// 已经扫描
@@ -324,7 +331,7 @@ export default {
} else {
// 未扫描,赋值
selectItem.scaned = true
- selectItem.recommendQty = Number(qty)
+ selectItem.balanceQty = Number(qty)
selectItem.handleQty = Number(qty)
selectItem.packQty = pack.packQty
selectItem.packUnit = pack.packUnit
@@ -372,7 +379,7 @@ export default {
// 创建盘盈的明细
createAddDetailInfo(pack, qty) {
const detail = {
- id: this.jobContent.masterId, // 新增的明细
+ masterId: this.jobContent.id, // 新增的明细
scaned: true,
countDetailNumber: '',
ownerCode: '',
@@ -396,6 +403,7 @@ export default {
countQty: 0,
balanceQty: 0,
fromLocationCode: this.fromLocationCode,
+ locationCode: this.fromLocationCode,
creator: this.$store.state.user.id,
countTime: new Date()
}
@@ -538,6 +546,7 @@ page {
/* #ifdef H5 */
top: 88rpx;
/* #endif */
+
left: 0;
width: 100%;
background-color: #fff;
diff --git a/src/pages/count/job/countJob.vue b/src/pages/count/job/countJob.vue
index 29d8d734..7d0e7bbb 100644
--- a/src/pages/count/job/countJob.vue
+++ b/src/pages/count/job/countJob.vue
@@ -126,6 +126,11 @@ const getList = (type) => {
action: 'in',
value: status.value
})
+ filters.push({
+ column: 'countSplitType',
+ action: '==',
+ value: 'locationCode'
+ })
// filters.push({
// column: 'accept_user_id',
// action: '==',
@@ -167,9 +172,17 @@ const getList = (type) => {
})
}
const openJobDetail = (item) => {
- uni.navigateTo({
- url: `./countDetail?id=${item.id}&status=${item.status}`
- })
+ // 明盘
+ if (item.isOpenCount == 'TRUE') {
+ uni.navigateTo({
+ url: `./countLightDetail?id=${item.id}&status=${item.status}`
+ })
+ } else {
+ // 盲盘
+ uni.navigateTo({
+ url: `./countBlindDetail?id=${item.id}&status=${item.status}`
+ })
+ }
}
const selectedItem = (item) => {
openJobDetail(item)
@@ -249,6 +262,11 @@ const getDataListByType = (code) => {
action: '==',
value: code
})
+ filters.push({
+ column: 'countSplitType',
+ action: '==',
+ value: 'locationCode'
+ })
const params = {
filters,
pageNo: 1,
diff --git a/src/pages/count/job/countLightDetail.vue b/src/pages/count/job/countLightDetail.vue
index bc2ca030..afe44967 100644
--- a/src/pages/count/job/countLightDetail.vue
+++ b/src/pages/count/job/countLightDetail.vue
@@ -58,7 +58,7 @@
-
+
@@ -196,7 +196,7 @@ const getDetail = () => {
} else {
jobContent.value = res.data
jobStatus.value = res.data.status
- fromLocationCode.value = jobContent.value.locationCode
+ fromLocationCode.value = jobContent.value.countSplitCode
res.data.subList.forEach((item) => {
item.recommendQty = item.qty
item.handleQty = 0
@@ -365,7 +365,7 @@ const editClose = () => {
// 创建盘盈的明细
const createAddDetailInfo = (pack, qty) => {
const detail = {
- id: jobContent.value.masterId, // 新增的明细
+ id: jobContent.value.id, // 新增的明细
scaned: true,
countDetailNumber: '',
ownerCode: '',
diff --git a/src/uni_modules/uni-combox/components/uni-combox/uni-combox.vue b/src/uni_modules/uni-combox/components/uni-combox/uni-combox.vue
index 01a61335..1d2ba10c 100644
--- a/src/uni_modules/uni-combox/components/uni-combox/uni-combox.vue
+++ b/src/uni_modules/uni-combox/components/uni-combox/uni-combox.vue
@@ -240,7 +240,7 @@ export default {
cursor: pointer;
/* #endif */
line-height: 36px;
- font-size: 60rpx;
+ font-size: 45rpx;
text-align: center;
// border-bottom: solid 1px #DDDDDD;
padding: 0px 10px;
@@ -290,6 +290,6 @@ export default {
border: none;
}
.uni-input-input {
- font-size: 60rpx;
+ font-size: 40rpx;
}