zhuliu 7 mesi fa
parent
commit
1217e15faa

+ 3 - 1
src/api/index.js

@@ -23,6 +23,7 @@ import translate from "./newApi/translate";
 import noveltySearch from "./newApi/noveltySearch";
 import IPREmail from "./newApi/IPREmail";
 import litigation from "./newApi/litigation";
+import reportAffair from "./newApi/reportAffair";
 
 export default {
   ...client,
@@ -46,5 +47,6 @@ export default {
   ...translate,
   ...noveltySearch,
   ...IPREmail,
-  ...litigation
+  ...litigation,
+  ...reportAffair
 }

+ 12 - 0
src/api/newApi/reportAffair.js

@@ -0,0 +1,12 @@
+import axios from "@/utils/axios";
+// 官方无效报告案件流程
+export default {
+    /**
+     * 获取可以添加的文档类型
+     * @param {*} data 
+     * @return {*} 
+     */
+    queryAssoCasePhaseList(data){
+        return axios.post('/xiaoshi/reportAffair/queryAssoCasePhaseList', data)
+    },
+};

+ 29 - 54
src/views/report/InvalidResponse/components/flowPath/flowPath.vue

@@ -118,68 +118,43 @@ export default {
         '7':  '补充证据和理由时间',
         '8':'文档时间'
       },
-      menuList:[
-        {
-          title:'无效',
-          children:[
-            {
-              title:'添加无效请求书',
-              id:1,
-              stage:'无效',
-              childStage:'无效受理'
-            },
-            {
-              title:'添加权要修改记录',
-              id:2,
-              stage:'无效',
-              childStage:'专利权人提交权要修改'
-            }
-          ]
-        },
-        {
-          title:'行诉一审',
-          children:[
-            {
-              title:'添加行政诉讼起诉状',
-              id:3,
-              stage:'行诉一审',
-              childStage:'行诉一审立案'
-            },
-            {
-              title:'添加行政诉讼判决书',
-              id:4,
-              stage:'行诉一审',
-              childStage:'已出一审判决'
-            }
-          ]
-        },
-        {
-          title:'行诉二审',
-          children:[
-            {
-              title:'添加行政诉讼起诉状',
-              id:5,
-              stage:'行诉一审',
-              childStage:'行诉一审立案'
-            },
-            {
-              title:'添加行政诉讼判决书',
-              id:6,
-              stage:'行诉一审',
-              childStage:'已出一审判决'
-            }
-          ]
-        },
-      ]
+      menuList:[],
+      currentMenuList:[]
     }
   },
   computed: {},
   watch: {},
+  created() {
+    this.getMenuList()
+  },
   mounted() {
     this.getList()
   },
   methods: {
-
+    getMenuList(){
+      this.$api.queryAssoCasePhaseList().then(response=>{
+        if(response.code == 200){
+          var data = response.data
+          this.currentMenuList = data
+          let arr = []
+          for(let i = 0;i<data.length;i++){
+            let item = data[i]
+            let obj = arr.find(a=>{
+              return a.title == item.casePhase
+            })
+            if(!obj){
+              obj = {
+                title : item.casePhase,
+                children:[]
+              }
+              arr.push(obj)
+            }
+            obj.children.push(item)
+          }
+          this.menuList = arr
+        }
+      })
+    },
     getList() {
       this.queryParams.projectId = this.projectId
       // 1正序