|
|
@@ -81,6 +81,8 @@
|
|
|
import Steps from "./module/steps.vue"
|
|
|
// 跟进记录
|
|
|
import Record from "./module/record.vue"
|
|
|
+ import tools from "@/service/tools";
|
|
|
+ import {getStageList, getTaskDetail} from "@/api/task";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -101,9 +103,47 @@
|
|
|
},
|
|
|
list: [1, 2, 3],
|
|
|
lists: [1, 2],
|
|
|
+ businessId:''
|
|
|
}
|
|
|
},
|
|
|
+ onLoad(data) {
|
|
|
+ if(data.taskId!==undefined){
|
|
|
+ this.businessId=data.taskId
|
|
|
+ this.getTaskDetail()
|
|
|
+ this.getStageList()
|
|
|
+ }else {
|
|
|
+ tools.leftClick()
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ async getTaskDetail() {
|
|
|
+ const res = await getTaskDetail({
|
|
|
+ id: this.businessId
|
|
|
+ })
|
|
|
+ if (res.code === 1) {
|
|
|
+ this.product = res.data.product
|
|
|
+ this.title = this.product.product_name
|
|
|
+ this.business = res.data.business
|
|
|
+ this.propertyList = res.data.propertyList
|
|
|
+ this.applyFor = res.data.applyFor
|
|
|
+ this.tripartite = res.data.tripartite
|
|
|
+ this.linkman = res.data.linkman
|
|
|
+ this.credit = res.data.credit
|
|
|
+ this.postLoan = res.data.postLoan
|
|
|
+ this.stageData = res.data.stageData
|
|
|
+ this.isExecute = res.data.isExecute
|
|
|
+ this.businessFile = res.data.businessFile
|
|
|
+ } else {
|
|
|
+ tools.leftClick()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getStageList() {
|
|
|
+ getStageList({'id': this.businessId}).then((res) => {
|
|
|
+ if (res.code === 1) {
|
|
|
+ this.stageList = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
onChange(current) {
|
|
|
this.current = current
|
|
|
},
|