From 1204be42714b4408360f7b1680dd1e590be58945 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Mon, 23 Oct 2023 11:47:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=98=E7=82=B9=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=87=8F=E5=A4=A7=E5=8A=A0=E8=BD=BD=E5=8D=A1=E9=A1=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PDA/common/new_style.css | 11 ++ .../mycomponents/common/comEasyInputCount.vue | 105 ++++++++++++++++++ fe/PDA/pages/task/count_detail.vue | 67 ++++++++--- 3 files changed, 169 insertions(+), 14 deletions(-) create mode 100644 fe/PDA/mycomponents/common/comEasyInputCount.vue diff --git a/fe/PDA/common/new_style.css b/fe/PDA/common/new_style.css index cd2035b91..f6e9ec526 100644 --- a/fe/PDA/common/new_style.css +++ b/fe/PDA/common/new_style.css @@ -665,6 +665,17 @@ uni-page-head .uni-page-head__title { z-index: 2; } +.choose_marked_count { + position: absolute; + width: 100%; + /* height: 100%; */ + top: 0; + left: 0; + border-top: 6rpx solid #5FCB94; + border-top-left-radius: 16rpx; + border-top-right-radius: 16rpx; +} + .choose_marked { position: absolute; width: 100%; diff --git a/fe/PDA/mycomponents/common/comEasyInputCount.vue b/fe/PDA/mycomponents/common/comEasyInputCount.vue new file mode 100644 index 000000000..ec55915b1 --- /dev/null +++ b/fe/PDA/mycomponents/common/comEasyInputCount.vue @@ -0,0 +1,105 @@ + + + + + + diff --git a/fe/PDA/pages/task/count_detail.vue b/fe/PDA/pages/task/count_detail.vue index 65d0301f1..6d1f31503 100644 --- a/fe/PDA/pages/task/count_detail.vue +++ b/fe/PDA/pages/task/count_detail.vue @@ -42,7 +42,7 @@ {{item.inventoryQty}} - @@ -50,9 +50,26 @@ - - {{item.countQty}} + --> + + {{item.countQty}} + + 修改 + + + + {{item.countQty}} + + 修改 + + + + {{item.countQty}} + + {{ item.locationCode }} {{item.lot}} @@ -115,8 +135,11 @@ - - + + + + + @@ -131,6 +154,7 @@ + @@ -176,8 +200,11 @@ import comCountScanDetail from '@/mycomponents/coms/task/comCountScanDetail.vue'; import comNumberBox from '@/mycomponents/common/comNumberBox.vue'; import comEasyInput from '@/mycomponents/common/comEasyInput.vue'; + import comEasyInputCount from '@/mycomponents/common/comEasyInputCount.vue'; + import winInventoryStatus from '@/mycomponents/wincom/winInventoryStatus.vue'; - + + export default { components: { // comCountItems, @@ -187,6 +214,7 @@ comCountScanDetail, comNumberBox, comEasyInput, + comEasyInputCount, winInventoryStatus }, data() { @@ -198,6 +226,7 @@ allDetails: [], //所以的明细 currentItem: {}, editDescItem: {}, + editCountItem:{}, scrollTop: 0, old: { scrollTop: 0 @@ -331,7 +360,7 @@ that.datacontent = res; if (res.details != null) { res.details.forEach(r => { - r.scaned = false + r.scaned = true r.countTime = new Date() // r.countQty = r.inventoryQty; r.countQty = 0; @@ -746,6 +775,16 @@ this.editDescItem.countDescription = content; this.$forceUpdate(); }, + openEditCount(item) { + this.editCountItem = item; + this.$refs.countPopup.openPopup(item.countQty); + }, + + closeEditCount(content) { + this.editCountItem.countQty = content; + this.$forceUpdate(); + }, + showCommitSuccessMessage() { this.$refs.comMessage.showCommitSuccess();