From fdbce5a162196b9a237ff9756d2f805f3f499353 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期一, 15 四月 2024 18:18:30 +0800
Subject: [PATCH] 出入库明细模块 查看,编辑2个模块主管,会计,保管员不回显的问题修改
---
src/views/operate/outEnterLibrary/index.vue | 35 +++++++++++++++++++++++++----------
1 files changed, 25 insertions(+), 10 deletions(-)
diff --git a/src/views/operate/outEnterLibrary/index.vue b/src/views/operate/outEnterLibrary/index.vue
index 6514f51..eed029d 100644
--- a/src/views/operate/outEnterLibrary/index.vue
+++ b/src/views/operate/outEnterLibrary/index.vue
@@ -275,22 +275,37 @@
this.workType=row.baseOperationType
this.editConfig.title = val
getOperationInfo(row.operationId).then((res)=>{
- res.data.details.map((item) => {
+ let params=JSON.parse(
+ JSON.stringify(res.data)
+ );
+ params.details.map((item) => {
item.fromLocationId = item.fromLocation.jointName
item.toLocationId = item.toLocation.jointName
})
- res.data.location = {
- value: res.data.location.id || res.data.location.value,
- label: res.data.location.jointName || res.data.location.label
+ params.location = {
+ value:params.location.id || params.location.value,
+ label: params.location.jointName || params.location.label
}
- res.data.toLocation = {
- value: res.data.toLocation.id || res.data.toLocation.value,
- label: res.data.toLocation.jointName || res.data.toLocation.label
+ params.toLocation = {
+ value: params.toLocation.id || params.toLocation.value,
+ label: params.toLocation.jointName || params.toLocation.label
}
- res.data.locationID = res.data.location.jointName
- res.data.locationId = res.data.location.value
+ params.locationID = params.location.jointName
+ params.locationId =params.location.value
+ params.managerObj={
+ label:params.manager,
+ value:params.managerId
+ }
+ params.accountantObj={
+ label:params.accountant,
+ value:params.accountantId
+ }
+ params.custodianObj={
+ label:params.custodian,
+ value:params.custodianId
+ }
this.editConfig.infomation = {
- ...res.data
+ ...params
}
this.editConfig.visible = true
})
--
Gitblit v1.8.0