From c366149c2fe1695623680b3efabe19cd4b1c5d29 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 11 Mar 2025 17:25:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../picking/apply/component/AddPicking1.vue | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue b/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue index a8bde99..ca352c0 100644 --- a/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue +++ b/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue @@ -736,6 +736,7 @@ export default { deviceType: e.typeModelName, deviceNum: e.preNum, isStorage: e.isStorage, + deviceTypeId: e.typeId, } }) @@ -922,6 +923,7 @@ export default { this.queryParams.agreementCode = data.agreementCode this.queryParams.agreementId = data.agreementId this.queryParams.estimateLeaseTime = data.estimateLeaseTime + this.queryParams.wholeTypeName = data.wholeTypeName // this.queryParams.leaseType = data.leaseType this.$set(this.queryParams, 'leaseType', data.leaseType) @@ -930,6 +932,33 @@ export default { this.leaseApplyDetails = data.leaseApplyDetails.map((item) => { return this.handelEchoData(item) }) + + if (data.ctLeaseApplyDetails) { + for (let key in data.ctLeaseApplyDetails) { + const childrenList = data.ctLeaseApplyDetails[key].map((e) => { + return { + typeName: e.typeModelName, + typeId: e.typeId, + preNum: e.preNum, + num: e.num, + ctParentId: e.ctParentId, + deviceType: e.typeModelName, + deviceNum: e.preNum, + isStorage: e.isStorage, + deviceTypeId: e.typeId, + } + }) + + console.log('childrenList', childrenList) + this.leaseApplyDetails.push({ + wholeTypeName: key, + childrenList, + ctParentId: data.ctLeaseApplyDetails[key][0].ctParentId, + }) + } + + console.log(' this.leaseApplyDetails', this.leaseApplyDetails) + } }, // 驳回提交 任务详情数据 async GetTaskDetail2(taskId) {