From 29bf5936bf1da2eea81f3abe07dc738f5267c42c Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 02 Jan 2023 16:34:16 +0800
Subject: [PATCH] 修改顶部栏
---
src/views/work/process/carChangeAudit/handle.vue | 23 ++++++++++++++++++++---
1 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/src/views/work/process/carChangeAudit/handle.vue b/src/views/work/process/carChangeAudit/handle.vue
index 0a2bd08..39e20ee 100644
--- a/src/views/work/process/carChangeAudit/handle.vue
+++ b/src/views/work/process/carChangeAudit/handle.vue
@@ -49,8 +49,8 @@
<script>
import {historyFlowList} from "@/api/work/process";
-import {completeTask,delayDetail} from "@/api/applicationDelay/applicationDelay";
-import {detailOption} from "@/const/applicationDelay/applicationDelay";
+import {detailOption} from "@/const/applicationCarChange/applicationCarChange";
+import {carChangeDetail,completeTask} from "@/api/applicationCarChange/applicationCarChange";
export default {
name: "handle",
@@ -114,10 +114,11 @@
this.flowList = data.data;
}
})
- delayDetail(this.businessId).then(res => {
+ carChangeDetail(this.businessId).then(res => {
const data = res.data;
if (data.success) {
this.form = data.data;
+ this.initForm();
}
})
},
@@ -166,6 +167,22 @@
}else if(arg =='close'){
this.option.detail = true
}
+ },
+ initForm(){
+ let form = this.form;
+
+ let car= this.form.carEntity
+ let carId = car.id
+
+ //保留原form中的字段
+ let common = Object.assign({},form)
+
+ form = Object.assign(form,car)
+
+ //覆盖回原form
+ form = Object.assign(form,common)
+
+ this.form.carEntity.id =carId
}
}
}
--
Gitblit v1.9.3