From 806b06dd159e16b98ad5cf58248066b16745b0db Mon Sep 17 00:00:00 2001 From: bb_pan Date: Thu, 31 Jul 2025 17:07:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=BA=93=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/lease/outBound/index.vue | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/views/material/lease/outBound/index.vue b/src/views/material/lease/outBound/index.vue index d449f801..9913277d 100644 --- a/src/views/material/lease/outBound/index.vue +++ b/src/views/material/lease/outBound/index.vue @@ -781,7 +781,8 @@ export default { approveSignList: [], currentRowData: null, // 当前查看的行数据 leaseLoading: false, - taskType: '' + taskType: '', + currentRow: {}, } }, created() { @@ -847,7 +848,12 @@ export default { parentId: this.parentIdTemp, outNum: 1, publishTask: this.publishTask, - jiJuType: item.jiJuType + jiJuType: item.jiJuType, + leaseUnit: this.currentRow.leaseUnit, + leaseUnitId: this.currentRow.leaseUnitId, + leaseProject: this.currentRow.leaseProject, + leaseProjectId: this.currentRow.leaseProjectId, + taskId: this.currentRow.taskId }) }) this.single = selection.length != 1 @@ -957,6 +963,8 @@ export default { /** 出库按钮操作 */ handleOut(row) { + this.currentRow = row + // console.log('🚀 ~ handleOut ~ this.currentRow:', this.currentRow) this.getListOutInfo = [] const { id, publishTask } = row this.publishTask = publishTask @@ -983,7 +991,7 @@ export default { // console.log(row) let obj = {} console.log('row', row) - this.$set(obj, 'taskId', row.taskId) + // this.$set(obj, 'taskId', row.taskId) this.$set(obj, 'id', row.id) this.$set(obj, 'manageType', 1) this.$set(obj, 'maId', row.maId) @@ -997,6 +1005,11 @@ export default { this.$set(obj, 'num', row.num) //库存 this.$set(obj, 'unitValue', row.unitValue) this.$set(obj, 'unitName', row.unitName) + this.$set(obj, 'leaseUnit', this.currentRow.leaseUnit) + this.$set(obj, 'leaseUnitId', this.currentRow.leaseUnitId) + this.$set(obj, 'leaseProject', this.currentRow.leaseProject) + this.$set(obj, 'leaseProjectId', this.currentRow.leaseProjectId) + this.$set(obj, 'taskId', this.currentRow.taskId) console.log('[obj]', [obj]) this.outNumList = [obj] },