From 16be3ee0238ebdff802047526f6de8a3d674267e Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Mon, 2 Sep 2024 08:47:37 +0800 Subject: [PATCH] =?UTF-8?q?HL-5168=20=E4=BF=AE=E6=94=B9=E7=BF=BB=E5=8C=85?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=98=BE=E7=A4=BA=E7=AE=B1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/item/itemCompareQty.vue | 10 +++++++++- src/mycomponents/job/jobComMainDetailCard.vue | 9 +++++++-- src/pages/package/coms/comOverPackJobCard.vue | 10 +++++++--- src/pages/package/job/overPackageJob.vue | 7 +++++++ 4 files changed, 30 insertions(+), 6 deletions(-) diff --git a/src/mycomponents/item/itemCompareQty.vue b/src/mycomponents/item/itemCompareQty.vue index b735a0df..d2f8922b 100644 --- a/src/mycomponents/item/itemCompareQty.vue +++ b/src/mycomponents/item/itemCompareQty.vue @@ -3,13 +3,17 @@ - + + + {{dataContent.fromPackCount}}/{{dataContent.toPackCount}} + + @@ -53,6 +57,10 @@ objTextStyle: { type: Object, default: null + }, + isShowPackCount: { + type: Boolean, + default: false } }, watch: { diff --git a/src/mycomponents/job/jobComMainDetailCard.vue b/src/mycomponents/job/jobComMainDetailCard.vue index b9e768db..29de7bb7 100644 --- a/src/mycomponents/job/jobComMainDetailCard.vue +++ b/src/mycomponents/job/jobComMainDetailCard.vue @@ -2,7 +2,9 @@ -
@@ -15,7 +17,6 @@ - @@ -74,6 +75,10 @@ type: Boolean, default: false }, + isShowPackCount: { + type: Boolean, + default: false + } }, diff --git a/src/pages/package/coms/comOverPackJobCard.vue b/src/pages/package/coms/comOverPackJobCard.vue index 5f8658fa..97217fae 100644 --- a/src/pages/package/coms/comOverPackJobCard.vue +++ b/src/pages/package/coms/comOverPackJobCard.vue @@ -1,9 +1,12 @@ diff --git a/src/pages/package/job/overPackageJob.vue b/src/pages/package/job/overPackageJob.vue index f6a74d88..4dc05588 100644 --- a/src/pages/package/job/overPackageJob.vue +++ b/src/pages/package/job/overPackageJob.vue @@ -243,9 +243,16 @@ this.loadingType = "nomore"; return; } + if(list&&list.length>0){ + list.forEach(item=>{ + item.fromPackCount=Math.ceil(item.qty/item.fromPackQty) + item.toPackCount= Math.ceil(item.qty/item.toPackQty) + }) + } this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.pageNo++; updateTitle(this.title+"(" + this.totalCount + ")"); + }).catch(error => { if (type === "refresh") {