From a8874730311df83e17658d270e7f64ba2cc62d0b Mon Sep 17 00:00:00 2001 From: niexiting <85552560@qq.com> Date: Thu, 7 Dec 2023 13:34:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mycomponents/location/requiredLocation.vue | 11 ++- mycomponents/recommend/recommend.vue | 3 +- pages/inspect/coms/inspectComDetailCard.vue | 85 ++++++++++++--------- pages/inspect/job/inspectDetail.vue | 21 +++-- pages/purchaseReceipt/job/receiptDetail.vue | 30 +++++--- 5 files changed, 88 insertions(+), 62 deletions(-) diff --git a/mycomponents/location/requiredLocation.vue b/mycomponents/location/requiredLocation.vue index a875b339..7aa6746a 100644 --- a/mycomponents/location/requiredLocation.vue +++ b/mycomponents/location/requiredLocation.vue @@ -4,12 +4,11 @@ padding-left: 10rpx; padding-right: 10rpx; font-size:32rpx;"> - {{title}} - -   请扫描 -   {{locationCode}} - + + {{title}} +   请扫描 +   {{locationCode}} + diff --git a/mycomponents/recommend/recommend.vue b/mycomponents/recommend/recommend.vue index ffbbedd7..0a0ff98b 100644 --- a/mycomponents/recommend/recommend.vue +++ b/mycomponents/recommend/recommend.vue @@ -11,7 +11,8 @@ - + diff --git a/pages/inspect/coms/inspectComDetailCard.vue b/pages/inspect/coms/inspectComDetailCard.vue index e788e4ff..68018c78 100644 --- a/pages/inspect/coms/inspectComDetailCard.vue +++ b/pages/inspect/coms/inspectComDetailCard.vue @@ -1,13 +1,12 @@ - - - - 不合格数量 :{{item.failedQty}} + + + + + + 不合格 + + + {{item.failedQty}} + - - 报废数量 :{{item.crackQty}} + + + 报废 + + + {{item.crackQty}} + - - 合格数量 :{{item.goodQty}} + + + 合格 + + + {{item.goodQty}} + - + - + - + @@ -90,7 +102,7 @@ getUnitInfo, getInspectType } from '@/common/directory.js'; - + export default { components: { itemCompareQty, @@ -134,9 +146,8 @@ return { option: [], showItem: {}, - editItem: { - }, - editIndex:0, + editItem: {}, + editIndex: 0, detailOptions: [], scanOptions: [] } @@ -157,20 +168,20 @@ }, methods: { - getInspectType(value){ + getInspectType(value) { return getInspectType(value) }, - - swipeClick(e, item,index) { + + swipeClick(e, item, index) { if (e.content.text == "详情") { this.detail(item) } else if (e.content.text == "编辑") { - this.edit(item,index) + this.edit(item, index) } else if (e.content.text == "移除") { this.remove(item) } }, - edit(item,index) { + edit(item, index) { this.editIndex = index; this.editItem = item; this.$refs.inspectEdit.openEditPopup(this.editItem); @@ -189,10 +200,10 @@ item.crackQty = 0; item.sampleQty = 0; item.notPassedQty = 0; - item.inspectResult ="" - item.failedReason ="" - item.handleQty =0; - item.photos ="" + item.inspectResult = "" + item.failedReason = "" + item.handleQty = 0; + item.photos = "" this.$forceUpdate() this.$emit('remove', item) } @@ -201,19 +212,19 @@ confirm(qty) { this.$emit('updateData') }, - getInspectResult(result){ - this.dataContent.subList[this.editIndex]= result; + getInspectResult(result) { + this.dataContent.subList[this.editIndex] = result; if (this.$refs.collapse1 != undefined) { this.$nextTick(res => { this.$refs.collapse1.resize() }) } - this.$emit('updateData',) + this.$emit('updateData', ) }, getUnitInfo(value) { return getUnitInfo(value).label }, - + } } diff --git a/pages/inspect/job/inspectDetail.vue b/pages/inspect/job/inspectDetail.vue index f79f0cb3..79cba6a4 100644 --- a/pages/inspect/job/inspectDetail.vue +++ b/pages/inspect/job/inspectDetail.vue @@ -1,13 +1,17 @@