guhongwei %!s(int64=2) %!d(string=hai) anos
pai
achega
d93377b225

+ 5 - 0
src/router/index.js

@@ -376,6 +376,11 @@ const patent = [
     meta: { title: '分发消息' },
     component: () => import('../views/patent/admin/examine/hairmess.vue'),
   },
+  {
+    path: '/patent/admin/examine/hairmesserror',
+    meta: { title: '分发消息(错误)' },
+    component: () => import('../views/patent/admin/examine/hairmesserror.vue'),
+  },
   {
     path: '/patent/admin/examine/hairmess_create',
     meta: { title: '分发消息-添加消息' },

+ 3 - 0
src/store/index.js

@@ -49,6 +49,8 @@ import patentnotice from '@common/src/store/patent/patentnotice';
 import patentapply from '@common/src/store/patent/patentapply';
 // 专利申请预警表
 import patentwarning from '@common/src/store/patent/patentwarning';
+// 专利申请预警表(错误)
+import cpcimporterror from '@common/src/store/patent/cpcimporterror';
 // 查新检索
 import patentanalysis from '@common/src/store/patent/patentanalysis';
 // 价值评估
@@ -128,6 +130,7 @@ export default new Vuex.Store({
     patentnotice,
     patentapply,
     patentwarning,
+    cpcimporterror,
     patentanalysis,
     patentassess,
     patentinfo,

+ 1 - 0
src/views/patent/admin/adminBtn.vue

@@ -17,6 +17,7 @@
           <van-col span="24" class="one_1">
             <van-cell title="专利申请" @click="pathBtn('admin/examine', 'patent')" is-link />
             <van-cell title="国知局反馈消息" @click="pathBtn('admin/examine', 'hairmess')" is-link />
+            <van-cell title="国知局反馈消息(错误)" @click="pathBtn('admin/examine', 'hairmesserror')" is-link />
             <van-cell title="查新检索" @click="pathBtn('admin/examine', 'analysis')" is-link />
           </van-col>
         </van-col>

+ 96 - 0
src/views/patent/admin/examine/hairmess/list-2.vue

@@ -0,0 +1,96 @@
+<template>
+  <div id="list-2">
+    <van-row>
+      <van-col span="24" class="main">
+        <van-col span="24" class="list" v-for="(item, index) in list" :key="index">
+          <van-col span="24" class="title textOver">
+            {{ item.time }}
+          </van-col>
+          <van-col span="24" class="other">
+            <van-col span="24" class="otherInfo">
+              标题:<span>{{ item.key || '暂无' }}</span>
+            </van-col>
+            <van-col span="24" class="otherInfo">
+              错误内容:<span>{{ item.word || '暂无' }}</span>
+            </van-col>
+            <van-col span="24" class="btn">
+              <van-button size="small" type="info" @click="download(item)">文件下载</van-button>
+            </van-col>
+          </van-col>
+        </van-col>
+      </van-col>
+    </van-row>
+  </div>
+</template>
+
+<script>
+import { mapState, createNamespacedHelpers } from 'vuex';
+export default {
+  name: 'list-2',
+  props: {
+    list: { type: Array },
+  },
+  components: {},
+  data: function () {
+    return {};
+  },
+  created() {},
+  methods: {
+    download(data) {
+      if (data) {
+        window.location.href = `${process.env.VUE_APP_HOST}/${data}`;
+      } else {
+        this.$toast({ type: `fail`, message: `未上传文件` });
+      }
+    },
+  },
+  computed: {
+    ...mapState(['user']),
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+  watch: {
+    test: {
+      deep: true,
+      immediate: true,
+      handler(val) {},
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.main {
+  padding: 8px 8px 0 8px;
+  .list {
+    background-color: #fff;
+    margin: 0 0 8px 0;
+    padding: 8px;
+    border-radius: 5px;
+    .title {
+      font-size: 16px;
+      font-weight: bold;
+      margin: 0 0 5px 0;
+    }
+    .other {
+      margin: 0 0 5px 0;
+      .otherInfo {
+        font-size: 14px;
+        color: #666;
+        margin: 0 0 5px 0;
+        word-break: break-all;
+        span {
+          color: #000;
+        }
+      }
+    }
+    .btn {
+      text-align: center;
+      .van-button {
+        margin: 5px;
+      }
+    }
+  }
+}
+</style>

+ 73 - 0
src/views/patent/admin/examine/hairmesserror.vue

@@ -0,0 +1,73 @@
+<template>
+  <div id="hairmess">
+    <admin-frame @search="search" :limit="limit" :total="total" topType="2" @back="back" :rightArrow="false" :useNav="false">
+      <template v-slot:info>
+        <van-col span="24">
+          <list-2 :list="list"></list-2>
+        </van-col>
+      </template>
+    </admin-frame>
+  </div>
+</template>
+
+<script>
+import list2 from './hairmess/list-2.vue';
+import adminFrame from '@frame/src/components/mobile-frame/mobile-main.vue';
+import { mapState, createNamespacedHelpers } from 'vuex';
+const { mapActions: cpcimporterror } = createNamespacedHelpers('cpcimporterror');
+export default {
+  name: 'hairmess',
+  props: {},
+  components: {
+    adminFrame,
+    list2,
+  },
+  data: function () {
+    return {
+      limit: 5,
+      total: 0,
+      list: [],
+    };
+  },
+  async created() {
+    this.search();
+  },
+  methods: {
+    ...cpcimporterror(['query']),
+    async search({ skip = 0, limit = this.limit, searchName, ...info } = {}) {
+      let res = await this.query({ skip, limit, ...info });
+      if (this.$checkRes(res)) {
+        this.$set(this, `list`, res.data);
+        this.$set(this, `total`, res.total);
+      }
+    },
+    // 返回
+    back() {
+      this.$router.push({ path: '/patent/index' });
+    },
+  },
+  computed: {
+    ...mapState(['user']),
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+  watch: {
+    test: {
+      deep: true,
+      immediate: true,
+      handler(val) {},
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.btn {
+  margin: 10px 0;
+  text-align: center;
+  .van-button {
+    margin: 0 10px;
+  }
+}
+</style>