| | |
| | | |
| | | <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", |
| | |
| | | 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(); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | }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 |
| | | } |
| | | } |
| | | } |