guhongwei 3 gadi atpakaļ
vecāks
revīzija
5cb95237fa

+ 0 - 1
src/store/mission.js

@@ -10,7 +10,6 @@ const mutations = {};
 
 const actions = {
   async query({ commit }, { skip = 0, limit = 10, ...info } = {}) {
-    console.log(info);
     const res = await this.$axios.$get(api.interface, { skip, limit, ...info, project: 'market' });
     return res;
   },

+ 21 - 1
src/store/patent/patentinfo.js

@@ -10,7 +10,11 @@ const mutations = {};
 
 const actions = {
   async query({ commit }, { skip = 0, limit = 10, ...info } = {}) {
-    const res = await this.$axios.$get(api.patentinfo, { skip, limit, ...info });
+    const res = await this.$axios.$get(api.patentinfo, {
+      skip,
+      limit,
+      ...info,
+    });
     return res;
   },
   async create({ commit }, payload) {
@@ -31,6 +35,22 @@ const actions = {
     const res = await this.$axios.$delete(`${api.patentinfo}/${payload}`);
     return res;
   },
+  async toImport({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.patentinfo}/toImport`, payload);
+    return res;
+  },
+  async toExport({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.patentinfo}/toExport`, payload);
+    return res;
+  },
+  async queryByOrg({ commit }, { skip = 0, limit = 10, ...info } = {}) {
+    const res = await this.$axios.$get(`${api.patentinfo}/queryByOrg`, {
+      skip,
+      limit,
+      ...info,
+    });
+    return res;
+  },
 };
 export default {
   namespaced: true,

+ 10 - 1
src/store/patent/patenttrans.js

@@ -10,7 +10,11 @@ const mutations = {};
 
 const actions = {
   async query({ commit }, { skip = 0, limit = 10, ...info } = {}) {
-    const res = await this.$axios.$get(api.patenttrans, { skip, limit, ...info });
+    const res = await this.$axios.$get(api.patenttrans, {
+      skip,
+      limit,
+      ...info,
+    });
     return res;
   },
   async create({ commit }, payload) {
@@ -31,6 +35,11 @@ const actions = {
     const res = await this.$axios.$delete(`${api.patenttrans}/${payload}`);
     return res;
   },
+  // 审核
+  async check({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.patenttrans}/check`, payload);
+    return res;
+  },
 };
 export default {
   namespaced: true,