From 2d70008921a7edc61a66955ac85d8ff361474906 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Tue, 2 Jan 2024 11:28:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E4=BA=A7=E9=80=80?= =?UTF-8?q?=E6=96=99=E7=94=B3=E8=AF=B7=E8=AF=A6=E6=83=85=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/detail.js | 2 +- pages/productionReturn/request/requestDetail.vue | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/common/detail.js b/common/detail.js index fdc09bfc..1b566ecf 100644 --- a/common/detail.js +++ b/common/detail.js @@ -9,7 +9,7 @@ export function getDataSource(subList) { item.subList.push(newDetail); items.push(item) } else { - item.qty += detail.qty + item.qty +=Number(detail.qty) let newDetail = createDetailInfo(detail); // item.subList.push(newDetail); } diff --git a/pages/productionReturn/request/requestDetail.vue b/pages/productionReturn/request/requestDetail.vue index 262f5f83..3d693314 100644 --- a/pages/productionReturn/request/requestDetail.vue +++ b/pages/productionReturn/request/requestDetail.vue @@ -27,6 +27,7 @@ import { goHome, + updateTitle } from '@/common/basic.js'; import { @@ -57,7 +58,16 @@ }, onLoad(option) { this.id = option.id; + var businessType = option.businessType; + var title="生产退料申请详情" + if (businessType == 'ReturnToStore') { + title = "生产合格退料申请详情" + } else if (this.businessType == 'ReturnToHold') { + title = "生产隔离退料申请详情" + } this.getDetail(); + updateTitle(title) + }, //返回首页 onNavigationBarButtonTap(e) {