guhongwei 4 년 전
부모
커밋
c5f24f7b90

+ 6 - 0
src/router/index.js

@@ -50,6 +50,12 @@ const company = [
     meta: { title: '创新券-信息管理' },
     component: () => import('../views/companyCenter/coupons/detail.vue'),
   },
+  {
+    path: '/companyCenter/declare',
+    name: 'companyCenter_declare',
+    meta: { title: '高企申报管理' },
+    component: () => import('../views/companyCenter/declare/index.vue'),
+  },
 ];
 const web = [
   {

+ 3 - 3
src/views/companyCenter/coupons/index.vue

@@ -64,7 +64,7 @@ export default {
   methods: {
     ...policy(['query']),
     async search({ skip = 0, limit = 4, ...info } = {}) {
-      info.type = '创新券';
+      info.type = '奖励兑现';
       const res = await this.query({ skip, limit, ...info });
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);
@@ -73,11 +73,11 @@ export default {
     },
     // 添加
     add() {
-      this.$router.push({ path: '/companyCenter/coupons/detail', query: { type: '创新券' } });
+      this.$router.push({ path: '/companyCenter/reward/detail', query: { type: '奖励兑现' } });
     },
     // 查看
     toView(data) {
-      this.$router.push({ path: '/companyCenter/coupons/detail', query: { id: data.id, type: data.type } });
+      this.$router.push({ path: '/companyCenter/reward/detail', query: { id: data.id, type: data.type } });
     },
     // 返回
     back() {

+ 36 - 0
src/views/companyCenter/declare/detail.vue

@@ -0,0 +1,36 @@
+<template>
+  <div id="detail">
+    <el-row>
+      <el-col :span="24" class="main"> test </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import { mapState, createNamespacedHelpers } from 'vuex';
+export default {
+  name: 'detail',
+  props: {},
+  components: {},
+  data: function () {
+    return {};
+  },
+  created() {},
+  methods: {},
+  computed: {
+    ...mapState(['user']),
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+  watch: {
+    test: {
+      deep: true,
+      immediate: true,
+      handler(val) {},
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped></style>

+ 107 - 0
src/views/companyCenter/declare/index.vue

@@ -0,0 +1,107 @@
+<template>
+  <div id="index">
+    <el-row>
+      <el-col :span="24" class="main">
+        <el-col :span="24" class="top">
+          <top topType="4" @back="back" @add="add"></top>
+        </el-col>
+        <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }"> 列表 </el-col>
+        <el-col :span="24" class="foot">
+          <page limit="4" :total="total" @search="search"></page>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import top from '@/layout/common/top.vue';
+import page from '@/layout/common/page.vue';
+import { mapState, createNamespacedHelpers } from 'vuex';
+const { mapActions: ticket } = createNamespacedHelpers('ticket');
+export default {
+  name: 'index',
+  props: {},
+  components: {
+    top,
+    page,
+  },
+  data: function () {
+    return {
+      clientHeight: '',
+      list: [],
+      total: 0,
+    };
+  },
+  async created() {
+    await this.search();
+  },
+  mounted() {
+    let clientHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 80;
+    this.$set(this, `clientHeight`, clientHeight);
+  },
+  methods: {
+    ...ticket(['query']),
+    async search({ skip = 0, limit = 4, ...info } = {}) {
+      const res = await this.query({ skip, limit, ...info });
+      if (this.$checkRes(res)) {
+        this.$set(this, `list`, res.data);
+        this.$set(this, `total`, res.total);
+      }
+    },
+    // 添加
+    add() {},
+    // 查看
+    // toView(data) {},
+    // 返回
+    back() {
+      this.$router.push('/userCenter');
+    },
+    // 处理状态
+    getStatus(data) {
+      const r = policyStatus.find((f) => f.value === data);
+      if (r) return r.label;
+    },
+  },
+  // 添加
+  add() {},
+  // 查看
+  // toView(data) {},
+  // 返回
+  back() {
+    this.$router.push('/userCenter');
+  },
+  computed: {
+    ...mapState(['user']),
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+  watch: {
+    test: {
+      deep: true,
+      immediate: true,
+      handler(val) {},
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.main {
+  .top {
+    height: 40px;
+    overflow: hidden;
+    border-bottom: 1px solid #f1f1f1;
+  }
+  .info {
+    overflow-x: hidden;
+    overflow-y: auto;
+  }
+  .foot {
+    height: 50px;
+    overflow: hidden;
+    border-top: 1px solid #f1f1f1;
+  }
+}
+</style>

+ 1 - 1
src/views/userCenter/parts/user_2.vue

@@ -8,7 +8,7 @@
           </el-col>
           <el-col :span="24" class="two">
             <van-cell title="基本信息" @click="btn('basic')" is-link />
-            <!-- <van-cell title="高企申报" @click="btn('')" is-link /> -->
+            <van-cell title="高企申报" @click="btn('declare')" is-link />
             <van-cell title="研发补贴" @click="btn('subsidy')" is-link />
             <van-cell title="奖励兑现" @click="btn('reward')" is-link />
             <van-cell title="创新券申领" @click="btn('coupons')" is-link />