From f45b159864ad79f326884ab3644269ef9eb7ee9d Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期四, 04 一月 2024 11:49:16 +0800 Subject: [PATCH] 出入库bug修复,调整仓库位置字段绑定,编辑时列表绑定源位置 --- src/views/overview/OverviewListView.vue | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/views/overview/OverviewListView.vue b/src/views/overview/OverviewListView.vue index 777378c..ed00252 100644 --- a/src/views/overview/OverviewListView.vue +++ b/src/views/overview/OverviewListView.vue @@ -247,8 +247,8 @@ const list = res.data.map((item) => { return { ...item, - from: item.fromLocation.name, - to: item.toLocation.name + from: item.location.jointName, + to: item.location.jointName } }) this.tableList.tableInfomation = list || [] @@ -268,6 +268,17 @@ this.editConfig.visible = true this.editConfig.title = val this.editConfig.operationTypeId = this.params.id + this.editConfig.code = this.params.code + row.details.map((item)=>{ + item.fromLocationId=item.fromLocation.jointName + item.toLocationId=item.toLocation.jointName + }) + row.location={ + value:row.location.id||row.location.value, + label:row.location.jointName||row.location.label + } + row.locationID=row.location.jointName + row.locationId=row.location.value this.editConfig.infomation = { ...row } }, // 鏂板缓 @@ -276,7 +287,9 @@ this.addName = this.params.name this.editConfig.operationTypeId = this.params.id this.editConfig.code = this.params.code - this.editConfig.infomation = {} + this.editConfig.infomation = { + location:{jointName:""} + } this.editConfig.visible = true }, // 鐘舵�� -- Gitblit v1.8.0