qymljy 2 年之前
父節點
當前提交
4b13c3ab12

+ 3 - 3
src/HDrpManagement/projectChange/index.vue

@@ -199,7 +199,7 @@ export default {
     }
   },
   created () {
-    this.getProjectPanl()
+    /*this.getProjectPanl()*/
     this.getEnterprise()
     this.getSysetms()
   },
@@ -243,7 +243,7 @@ export default {
       this.enterpriseList = res.data
     },
     /* 获取项目模板 */
-    async getProjectPanl () {
+    /*async getProjectPanl () {
       let res = await this.$api.requested({
         "id": "20221019085604",
         "content": {
@@ -255,7 +255,7 @@ export default {
         }
       })
       this.projectPanl = res.data
-    },
+    },*/
     handleCommand(command){
       console.log("输出command")
       console.log(command)

+ 13 - 5
src/SDrpManagement/QuotedPrice/detail/modules/projectChange/index.vue

@@ -21,16 +21,24 @@ export default {
   mounted() {
     console.log(this.data,"项目商机")
    if (this.data.quotedpricetype === '项目报价') {
-     this.list[0] = this.data
-     console.log(this.list)
+     this.projectData()
    }else {
      this.list = []
    }
-
-
+  },
+  methods:{
+    async projectData(){
+      const res = await this.$api.requested({
+        "id": 20221021103902,
+        "content": {
+          "sa_projectid": this.data.sa_projectid
+        },
+      })
+      console.log(res,"项目商机数据")
+    }
   },
   created() {
-    this.tablecols = this.tool.tabelCol(this.$route.name).projectTable.tablecols
+    this.tablecols = this.tool.tabelCol(this.$route.name).ProjectOpportunitiesTable.tablecols
   }
 }
 </script>