From 03d58da87b2bff725a0d961c6f9811bab0e92960 Mon Sep 17 00:00:00 2001 From: niexiting <85552560@qq.com> Date: Fri, 19 Jul 2024 20:11:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=8E=E7=BB=86=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/count/job/fuzzyCountDetail.vue | 59 +++++++++++++++--------- 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/src/pages/count/job/fuzzyCountDetail.vue b/src/pages/count/job/fuzzyCountDetail.vue index c9f847c6..9550cbd8 100644 --- a/src/pages/count/job/fuzzyCountDetail.vue +++ b/src/pages/count/job/fuzzyCountDetail.vue @@ -12,30 +12,17 @@ - + + {{editRemoveOption}} - - - - - - - @@ -77,6 +64,10 @@ Decimal } from 'decimal.js'; //引入 + import { + getEditRemoveOption + } from '@/common/array.js'; + import { goHome, navigateBack, @@ -125,7 +116,7 @@ jobStatus: "", fromLocation: {}, fromLocationCode: '', - + editRemoveOption: [] }; }, onLoad(option) { @@ -141,6 +132,7 @@ } } this.showFromLocationPopup(); + this.editRemoveOption=getEditRemoveOption(); }, //返回首页 onNavigationBarButtonTap(e) { @@ -233,8 +225,6 @@ } }, - - closeScanPopup() { if (this.$refs.scanPopup != undefined) { this.$refs.scanPopup.closeScanPopup(); @@ -275,6 +265,7 @@ itemDesc2: packInfo.itemDesc2, projectCode: "", qty: packInfo.qty, + countQty: packInfo.qty, uom: packInfo.uom, remark: "", locationCode: this.fromLocationCode, @@ -286,8 +277,6 @@ return detail; }, - - //编辑盘点结果 editCountResult(item, subItem) { let that = this; @@ -311,7 +300,35 @@ this.scanPopupGetFocus(); }, + swipeClick(e, item) { + if (e.content.text == "详情") { + this.detail(item) + } else if (e.content.text == "编辑") { + this.edit(item) + } else if (e.content.text == "移除") { + this.remove(item) + } + }, + + edit(detail) { + this.$emit("editItem", detail) + }, + detail(item) { + this.showItem = item; + this.$refs.detailInfoPopup.openPopup(item); + }, + remove(item, index) { + this.$refs.comMessage.showQuestionMessage("确定移除扫描信息?", + res => { + if (res) { + // this.dataContent.subList.splice(index, 1) + item.scaned = false; + item.handleQty = 0; + this.$emit('removePack') + } + }); + }, commit() { // if(this.detailSource.length==0)