Browse Source

no message

USER-20230908AJ\Administrator 1 year ago
parent
commit
1155158957
2 changed files with 54 additions and 26 deletions
  1. 40 0
      page_task/task_details/task_details.vue
  2. 14 26
      pages.json

+ 40 - 0
page_task/task_details/task_details.vue

@@ -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
 			},

+ 14 - 26
pages.json

@@ -157,40 +157,28 @@
 		"navigationStyle": "custom",
 		"backgroundColorBottom": "#EEF1F7"
 	},
-	"condition": {
-		"current": 0,
-		"list": [{
-				"name": "注册",
-				"path": "pages/login/register",
-				"query": ""
-			},
-			{
-				"name": "审核",
-				"path": "pages/login/await-audit",
-				"query": ""
-			},
-			{
-				"name": "测试页面",
-				"path": "pages/test/index",
-				"query": ""
-			}
-		]
-	},
 	"tabBar": {
 		"custom": true,
 		"list": [{
-				"pagePath": "pages/index/index"
-			},
+			"pagePath": "pages/index/index",
+			"text": ""
+		},
 			{
-				"pagePath": "pages/task/task"
+				"pagePath": "pages/task/task",
+				"text": ""
 			},
 			{
-				"pagePath": "pages/loan/loan"
+				"pagePath": "pages/loan/loan",
+				"text": ""
 			},
 			{
-				"pagePath": "pages/statistics/statistics"
+				"pagePath": "pages/statistics/statistics",
+				"text": ""
 			}
-		]
+		],
+		"color": "",
+		"selectedColor": "",
+		"backgroundColor": ""
 	},
 	"condition": {
 		"current": 0,
@@ -198,7 +186,7 @@
 
 			{
 				"name": "任务详情",
-				"path": "/pages/add-client/new-add",
+				"path": "/page_task/task_details/task_details",
 				"query": "taskId=4273"
 			}