guhongwei 3 سال پیش
والد
کامیت
49fa66fe47

+ 19 - 19
java代码/ruoyi-ui/src/store/index.js

@@ -1,18 +1,17 @@
-import Vue from 'vue'
-import Vuex from 'vuex'
-import app from './modules/app'
-import user from './modules/user'
-import tagsView from './modules/tagsView'
-import permission from './modules/permission'
-import settings from './modules/settings'
-import getters from './getters'
-import role_relation from './role_relation'
-import merits_user from './merits_user'
-import template from './template'
-import merits_apply from "./merits_apply"
-
-;
-Vue.use(Vuex)
+import Vue from "vue";
+import Vuex from "vuex";
+import app from "./modules/app";
+import user from "./modules/user";
+import tagsView from "./modules/tagsView";
+import permission from "./modules/permission";
+import settings from "./modules/settings";
+import getters from "./getters";
+import role_relation from "./role_relation";
+import merits_user from "./merits_user";
+import template from "./template";
+import merits_apply from "./merits_apply";
+import updateapply from "./updateapply";
+Vue.use(Vuex);
 
 const store = new Vuex.Store({
   modules: {
@@ -24,11 +23,12 @@ const store = new Vuex.Store({
     role_relation,
     merits_user,
     template,
-    merits_apply
+    merits_apply,
+    updateapply,
   },
   getters,
-  name: false
+  name: false,
   // this.store.name =
-})
+});
 
-export default store
+export default store;

+ 40 - 0
java代码/ruoyi-ui/src/store/updateapply.js

@@ -0,0 +1,40 @@
+import Vue from "vue";
+import Vuex from "vuex";
+import _ from "lodash";
+Vue.use(Vuex);
+const api = {
+  interface: `/labelAchievement/api/updateapply`,
+};
+const state = () => ({});
+const mutations = {};
+
+const actions = {
+  async query({ commit }, { skip = 0, limit = null, ...info } = {}) {
+    const res = await this.$axios.$get(api.interface, { skip, limit, ...info });
+    return res;
+  },
+  async create({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.interface}`, payload);
+    return res;
+  },
+  async fetch({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.interface}/${payload}`);
+    return res;
+  },
+  async update({ commit }, { id, ...info } = {}) {
+    const res = await this.$axios.$post(`${api.interface}/${id}`, {
+      ...info,
+    });
+    return res;
+  },
+  async delete({ commit }, payload) {
+    const res = await this.$axios.$delete(`${api.interface}/${payload}`);
+    return res;
+  },
+};
+export default {
+  namespaced: true,
+  state,
+  mutations,
+  actions,
+};

+ 81 - 63
java代码/ruoyi-ui/src/views/merits/apply/form-frame.vue

@@ -3,18 +3,30 @@
     <el-row>
       <el-col :span="24" class="formMain">
         <el-col :span="24" class="one">
-          <el-button type="primary" plain icon="el-icon-back" size="mini" @click="toBack">返回</el-button>
+          <el-button
+            type="primary"
+            plain
+            icon="el-icon-back"
+            size="mini"
+            @click="toBack"
+            >返回</el-button
+          >
         </el-col>
         <el-col :span="24" class="two">
           <el-form ref="form" :model="form" :rules="rules" label-width="100px">
-            <el-form-item label="申请年度" prop="apply_year">
-              <el-input v-model="form.apply_year" placeholder="请输入申请年度" />
-            </el-form-item>
-            <excel-view v-if="!excelLoading" ref="excelView" v-model="form.excel" :read="true" :view="viewStyle" />
+            <excel-view
+              v-if="!excelLoading"
+              ref="excelView"
+              v-model="form.excel"
+              :read="true"
+              :view="viewStyle"
+            />
             <el-col v-if="!view" :span="24" class="btn">
-              <el-button type="primary" @click="onSubmit('form')">提交保存</el-button>
+              <el-button type="primary" @click="onSubmit('form')"
+                >提交保存</el-button
+              >
               <el-button type="warning" @click="onDraft()">保存草稿</el-button>
-              <el-button @click="onReset('form')">重置信息</el-button>
+              <!-- <el-button @click="onReset('form')">重置信息</el-button> -->
             </el-col>
           </el-form>
         </el-col>
@@ -24,116 +36,122 @@
 </template>
 
 <script>
-import excelView from '@/components/free/excel-view.vue'
-import { mapState, mapGetters, createNamespacedHelpers } from 'vuex'
-const { mapActions: merits_apply } = createNamespacedHelpers('merits_apply')
-const { mapActions: template } = createNamespacedHelpers('template')
+import excelView from "@/components/free/excel-view.vue";
+import { mapState, mapGetters, createNamespacedHelpers } from "vuex";
+const { mapActions: merits_apply } = createNamespacedHelpers("merits_apply");
+const { mapActions: template } = createNamespacedHelpers("template");
 export default {
-  name: 'FormFrame',
+  name: "FormFrame",
   components: { excelView },
   props: {
     id: { type: String },
-    view: { type: Boolean, default: false }
+    view: { type: Boolean, default: false },
   },
-  data: function() {
+  data: function () {
     return {
-      form: { excel: {}},
+      form: { excel: {} },
       viewStyle: {
         height: () => document.documentElement.clientHeight - 250,
-        width: () => 800
+        width: () => 800,
       },
       rules: {
-        apply_year: [
-          { required: true, message: '请输入申请年度', trigger: 'blur' }
-        ]
+        // apply_year: [
+        //   { required: true, message: '请输入申请年度', trigger: 'blur' }
+        // ]
       },
       excel: {},
-      excelLoading: true
-    }
+      excelLoading: true,
+    };
   },
   async created() {
-    await this.getTemplate()
+    await this.getTemplate();
     if (this.id) {
-      this.searchInfo(this.id)
-    } else { this.init() }
+      await this.searchInfo(this.id);
+    } else {
+      this.init();
+    }
   },
   methods: {
-    ...merits_apply(['fetch', 'create', 'update']),
-    ...template(['query']),
+    ...merits_apply(["fetch", "create", "update"]),
+    ...template(["query"]),
     async init() {
-      this.$set(this, `form`, { user_id: this.user_id, user_name: this.name, excel: this.excel })
-      this.excelLoading = false
+      this.$set(this, `form`, {
+        user_id: this.user_id,
+        user_name: this.name,
+        excel: this.excel,
+      });
+      this.excelLoading = false;
     },
     async getTemplate() {
-      if (this.id) return
-      const res = await this.query()
+      if (this.id) return;
+      const res = await this.query();
       if (this.$checkRes(res)) {
-        const template = res.data.find(f => f.is_use)
+        const template = res.data.find((f) => f.is_use);
         if (template) {
-          const { excel = {}} = template
-          this.$set(this, 'excel', excel)
+          const { excel = {} } = template;
+          this.$set(this, "excel", excel);
         }
       }
     },
     // 返回
     toBack() {
-      this.$emit('toBack')
+      this.$emit("toBack");
     },
     // 提交保存
     onSubmit(formName) {
-      this.$refs[formName].validate(async(valid) => {
+      this.$refs[formName].validate(async (valid) => {
         if (valid) {
-          const data = this.form
-          data.status = '1'
-          let res
-          if (data.id) res = await this.update(data)
-          else res = await this.create(data)
+          const data = this.form;
+          data.status = "1";
+          let res;
+          if (data.id) res = await this.update(data);
+          else res = await this.create(data);
           if (res.code === 200) {
-            this.$message({ type: `success`, message: res.msg })
-            this.toBack()
+            this.$message({ type: `success`, message: res.msg });
+            this.toBack();
           } else {
-            this.$message({ type: `error`, message: res.msg })
+            this.$message({ type: `error`, message: res.msg });
           }
         } else {
-          console.log('error submit!!')
-          return false
+          console.log("error submit!!");
+          return false;
         }
-      })
+      });
     },
     // 保存草稿
     async onDraft() {
-      const data = this.form
-      let res
-      if (data.id) res = await this.update(data)
-      else res = await this.create(data)
+      const data = this.form;
+      let res;
+      if (data.id) res = await this.update(data);
+      else res = await this.create(data);
       if (res.code === 200) {
-        this.$message({ type: `success`, message: res.msg })
-        this.toBack()
+        this.$message({ type: `success`, message: res.msg });
+        this.toBack();
       } else {
-        this.$message({ type: `error`, message: res.msg })
+        this.$message({ type: `error`, message: res.msg });
       }
     },
     // 查看详情
     async searchInfo(id) {
-      const res = await this.fetch(id)
+      const res = await this.fetch(id);
       if (res.code === 200) {
-        this.$set(this, `form`, res.data)
-        this.excelLoading = false
+        this.$set(this, `form`, res.data);
+        this.excelLoading = false;
       } else {
-        this.$message({ type: `error`, message: res.msg })
+        this.$message({ type: `error`, message: res.msg });
       }
     },
     // 重置信息
     onReset(formName) {
-      this.$refs[formName].resetFields()
-    }
+      this.$refs[formName].resetFields();
+    },
   },
   computed: {
-    ...mapGetters(['user_id', 'name'])
+    ...mapGetters(["user_id", "name"]),
   },
   metaInfo() {
-    return { title: this.$route.meta.title }
-  }
+    return { title: this.$route.meta.title };
+  },
   // watch: {
   //   id: {
   //     deep: true,
@@ -143,7 +161,7 @@ export default {
   //     }
   //   }
   // }
-}
+};
 </script>
 
 <style lang="less" scoped>

+ 147 - 56
java代码/ruoyi-ui/src/views/merits/apply/list-frame.vue

@@ -12,122 +12,213 @@
             @toView="toView"
             @toEdit="toEdit"
             @toCheck="toCheck"
+            @upapply="toUpapply"
           >
             <template #selfbtn>
-              <el-button
-                type="primary"
-                size="mini"
-                @click="toAdd"
-              >添加</el-button>
+              <el-button type="primary" size="mini" @click="toAdd"
+                >添加</el-button
+              >
             </template>
           </data-table>
         </el-col>
       </el-col>
     </el-row>
+    <el-dialog
+      :title="dialog.title"
+      :visible.sync="dialog.show"
+      width="40%"
+      :before-close="toClose"
+      :close-on-click-modal="false"
+      custom-class="dialog"
+    >
+      <div class="info">
+        <el-col :span="24" class="info_1">
+          <el-form :model="form" :rules="rules" ref="form" label-width="100px">
+            <el-col :span="24">
+              <el-form-item label="修改内容" prop="update_content">
+                <el-input
+                  v-model="form.update_content"
+                  type="textarea"
+                  placeholder="请输入修改内容"
+                ></el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="24" class="btn">
+              <el-button type="primary" size="mini" @click="onSubmit('form')"
+                >保存</el-button
+              >
+            </el-col>
+          </el-form>
+        </el-col>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
 <script>
-import dataTable from '@/components/free/filter-page-table.vue'
-import { mapState, mapGetters, createNamespacedHelpers } from 'vuex'
-const { mapActions: merits_apply } = createNamespacedHelpers('merits_apply')
+import dataTable from "@/components/free/filter-page-table.vue";
+import { mapState, mapGetters, createNamespacedHelpers } from "vuex";
+const { mapActions: merits_apply } = createNamespacedHelpers("merits_apply");
+const { mapActions: updateapply } = createNamespacedHelpers("updateapply");
 export default {
-  name: 'ListFrame',
+  name: "ListFrame",
   components: { dataTable },
   props: {},
-  data: function() {
+  data: function () {
     return {
       list: [],
       total: 0,
       fields: [
-        { label: '用户名称', prop: 'user_name', filter: true },
-        { label: '申请年度', prop: 'apply_year' },
+        { label: "用户名称", prop: "user_name", filter: true },
         {
-          label: '申报状态',
-          prop: 'status',
+          label: "申报状态",
+          prop: "status",
           format: (i) =>
-            i == '0'
-              ? '草稿'
-              : i == '1'
-                ? '待审中'
-                : i == '2'
-                  ? '审核通过'
-                  : i == '3'
-                    ? '审核拒绝'
-                    : ''
-        }
+            i == "0"
+              ? "草稿"
+              : i == "1"
+              ? "待审中"
+              : i == "2"
+              ? "审核通过"
+              : i == "3"
+              ? "审核拒绝"
+              : "",
+        },
       ],
       opera: [
         {
-          label: '查看',
-          method: 'toView'
+          label: "查看",
+          method: "toView",
         },
         {
-          label: '修改',
-          method: 'toEdit',
-          display: (i) => i.status === '0'
+          label: "修改",
+          method: "toEdit",
+          display: (i) => i.status === "0",
         },
         {
-          label: '提交',
-          method: 'toCheck',
-          display: (i) => i.status === '0'
-        }
-      ]
-    }
+          label: "提交",
+          method: "toCheck",
+          display: (i) => i.status === "0",
+        },
+        {
+          label: "申请修改",
+          method: "upapply",
+          display: (i) => i.status === "2",
+        },
+      ],
+      dialog: { title: "添加修改申请", show: false },
+      form: {},
+      info: {},
+      rules: {
+        update_content: [
+          { required: true, message: "请输入修改内容", trigger: "blur" },
+        ],
+      },
+    };
   },
   async created() {
-    await this.search()
+    await this.search();
   },
   methods: {
-    ...merits_apply(['query', 'update']),
+    ...merits_apply(["query", "update"]),
+    ...updateapply({ updateCreate: "create" }),
     async search({ skip = 0, limit = 10, ...info } = {}) {
-      info.user_id = this.user_id
-      const res = await this.query({ skip, limit, ...info })
+      info.user_id = this.user_id;
+      const res = await this.query({ skip, limit, ...info });
       if (this.$checkRes(res)) {
-        this.$set(this, `list`, res.data)
-        this.$set(this, `total`, res.total)
+        this.$set(this, `list`, res.data);
+        this.$set(this, `total`, res.total);
       }
     },
     // 新增
     toAdd() {
-      this.$emit('toAdd')
+      this.$emit("toAdd");
     },
     // 查看信息
     toView({ data }) {
-      this.$emit('toView', data)
+      this.$emit("toView", data);
     },
     // 修改信息
     toEdit({ data }) {
-      this.$emit('toEdit', data)
+      this.$emit("toEdit", data);
     },
     // 提交审核
     async toCheck({ data }) {
-      const res = await this.update({ id: data._id, status: '1' })
+      const res = await this.update({ id: data._id, status: "1" });
       if (res.code === 200) {
-        this.$message({ type: `success`, message: res.msg })
+        this.$message({ type: `success`, message: res.msg });
       } else {
         this.$message({
           type: `error`,
-          message: res.msg || res.errmsg + ':' + res.details
-        })
+          message: res.msg || res.errmsg + ":" + res.details,
+        });
       }
-      this.search()
-    }
+      this.search();
+    },
+    // 修改申请
+    toUpapply({ data }) {
+      this.$set(this, `form`, {
+        user_id: this.user_id,
+        user_name: this.name,
+        project_id: data._id,
+      });
+      this.dialog = { title: "添加修改申请", show: true };
+    },
+    // 提交
+    onSubmit(formName) {
+      this.$refs[formName].validate(async (valid) => {
+        if (valid) {
+          const data = this.form;
+          let res;
+          res = await this.updateCreate(data);
+          if (res.code === 200) {
+            this.$message({ type: `success`, message: res.msg });
+            this.toClose();
+          } else {
+            this.$message({ type: `error`, message: res.msg });
+          }
+        } else {
+          console.log("error submit!!");
+          return false;
+        }
+      });
+    },
+    // 关闭
+    toClose() {
+      this.search();
+      this.dialog = { title: "添加修改申请", show: false };
+    },
   },
   computed: {
-    ...mapGetters(['user_id'])
+    ...mapGetters(["user_id", "name"]),
   },
   metaInfo() {
-    return { title: this.$route.meta.title }
+    return { title: this.$route.meta.title };
   },
   watch: {
     test: {
       deep: true,
       immediate: true,
-      handler(val) {}
+      handler(val) {},
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.dialog {
+  .info {
+    min-height: 150px;
+    max-height: 430px;
+    overflow-y: auto;
+    .info_1 {
+      .btn {
+        text-align: center;
+      }
     }
   }
 }
-</script>
-
-<style lang="less" scoped></style>
+/deep/.el-dialog__body {
+  padding: 10px;
+}
+</style>

+ 234 - 0
java代码/ruoyi-ui/src/views/merits/checkUpdateApply/index.vue

@@ -0,0 +1,234 @@
+<template>
+  <div id="index">
+    <el-row>
+      <el-col :span="24" class="main">
+        <el-col :span="24" class="one">
+          <data-table
+            :fields="fields"
+            :opera="opera"
+            :total="total"
+            :data="list"
+            @query="search"
+            @check="toCheck"
+          >
+            <template #options="{ item }">
+              <template v-if="item.prop === 'status'">
+                <el-option
+                  v-for="(i, index) in statusList"
+                  :label="i.label"
+                  :value="i.value"
+                  :key="index"
+                ></el-option>
+              </template>
+            </template>
+          </data-table>
+        </el-col>
+      </el-col>
+    </el-row>
+    <el-dialog
+      :title="dialog.title"
+      :visible.sync="dialog.show"
+      width="40%"
+      :before-close="toClose"
+      :close-on-click-modal="false"
+      custom-class="dialog"
+    >
+      <div class="info">
+        <el-col :span="24" class="info_1">
+          <el-form :model="form" :rules="rules" ref="form" label-width="100px">
+            <el-col :span="12">
+              <el-form-item label="用户名称" prop="user_name">
+                <el-input v-model="form.user_name" disabled></el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="12">
+              <el-form-item label="审核状态" prop="status">
+                <el-radio-group v-model="form.status">
+                  <el-radio label="1">审核通过</el-radio>
+                  <el-radio label="2">审核拒绝</el-radio>
+                </el-radio-group>
+              </el-form-item>
+            </el-col>
+            <el-col :span="24">
+              <el-form-item label="修改内容" prop="update_content">
+                <el-input
+                  v-model="form.update_content"
+                  type="textarea"
+                  disabled
+                ></el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="24">
+              <el-form-item label="审核意见" prop="desc">
+                <el-input
+                  v-model="form.desc"
+                  type="textarea"
+                  placeholder="请输入审核意见"
+                ></el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="24" class="btn">
+              <el-button type="primary" size="mini" @click="onSubmit('form')"
+                >保存</el-button
+              >
+            </el-col>
+          </el-form>
+        </el-col>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import dataTable from "@/components/free/filter-page-table.vue";
+import { mapState, mapGetters, createNamespacedHelpers } from "vuex";
+const { mapActions: updateapply } = createNamespacedHelpers("updateapply");
+const moment = require("moment");
+export default {
+  name: "index",
+  components: { dataTable },
+  props: {},
+  data: function () {
+    return {
+      list: [],
+      total: 0,
+      fields: [
+        { label: "用户名称", prop: "user_name", filter: true },
+        { label: "修改内容", prop: "update_content" },
+        {
+          label: "审核状态",
+          prop: "status",
+          format: (i) =>
+            i == "0"
+              ? "待审中"
+              : i == "1"
+              ? "机构审核通过,基础处待审中"
+              : i == "2"
+              ? "机构审核拒绝"
+              : i == "3"
+              ? "基础处待审通过"
+              : i == "4"
+              ? "基础处待审拒绝"
+              : "",
+          filter: "select",
+        },
+      ],
+      opera: [
+        {
+          label: "审核",
+          method: "check",
+          display: (i) => i.status == "0",
+        },
+      ],
+      // 审核状态
+      statusList: [
+        { label: "待审中", value: "0" },
+        { label: "机构审核通过,基础处待审中", value: "1" },
+        { label: "机构审核拒绝", value: "2" },
+        { label: "基础处待审通过", value: "3" },
+        { label: "基础处待审拒绝", value: "4" },
+      ],
+      dialog: { title: "修改申请审核", show: false },
+      form: {},
+      info: {},
+      rules: {
+        desc: [{ required: true, message: "请输入审核意见", trigger: "blur" }],
+        status: [
+          { required: true, message: "请选择审核状态", trigger: "change" },
+        ],
+      },
+    };
+  },
+  async created() {
+    await this.search();
+  },
+  methods: {
+    ...updateapply(["query", "update"]),
+    async search({ skip = 0, limit = 10, ...info } = {}) {
+      info.superior_id = this.user_id;
+      const res = await this.query({ skip, limit, ...info });
+      if (this.$checkRes(res)) {
+        this.$set(this, `list`, res.data);
+        this.$set(this, `total`, res.total);
+      }
+    },
+    // 查看结果
+    toCheck({ data }) {
+      this.$set(this, `info`, data);
+      this.$set(this, `form`, {
+        user_name: data.user_name,
+        update_content: data.update_content,
+      });
+      this.dialog = { title: "修改申请审核", show: true };
+    },
+    // 保存
+    async onSubmit(formName) {
+      this.$refs[formName].validate(async (valid) => {
+        if (valid) {
+          let arr = { id: this.info._id, status: this.form.status };
+          let data = {
+            examine_user: this.name,
+            examine_date: moment().format("YYYY-MM-DD HH:mm:ss"),
+            desc: this.form.desc,
+            status: this.form.status,
+          };
+          let record = [...this.info.record, data];
+          arr.record = record;
+          let res = await this.update(arr);
+          if (res.code === 200) {
+            this.$message({ type: `success`, message: res.msg });
+            this.toClose();
+          } else {
+            this.$message({
+              type: `error`,
+              message: res.msg || res.errmsg + ":" + res.details,
+            });
+          }
+        } else {
+          console.log("error submit!!");
+          return false;
+        }
+      });
+    },
+    // 关闭
+    toClose() {
+      this.search();
+      this.dialog = { title: "修改申请审核", show: false };
+    },
+  },
+  computed: {
+    ...mapGetters(["user_id", "name"]),
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+  watch: {
+    test: {
+      deep: true,
+      immediate: true,
+      handler(val) {},
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.main {
+  padding: 25px 30px 30px;
+}
+.dialog {
+  .info {
+    min-height: 150px;
+    max-height: 430px;
+    overflow-y: auto;
+    .info_1 {
+      .btn {
+        text-align: center;
+      }
+    }
+  }
+}
+/deep/.el-dialog__body {
+  padding: 10px;
+}
+</style>

+ 153 - 0
java代码/ruoyi-ui/src/views/merits/updateApply/index.vue

@@ -0,0 +1,153 @@
+<template>
+  <div id="index">
+    <el-row>
+      <el-col :span="24" class="main">
+        <el-col :span="24" class="one">
+          <data-table
+            :fields="fields"
+            :opera="opera"
+            :total="total"
+            :data="list"
+            @query="search"
+            @result="toResult"
+          >
+            <template #options="{ item }">
+              <template v-if="item.prop === 'status'">
+                <el-option
+                  v-for="(i, index) in statusList"
+                  :label="i.label"
+                  :value="i.value"
+                  :key="index"
+                ></el-option>
+              </template>
+            </template>
+          </data-table>
+        </el-col>
+      </el-col>
+    </el-row>
+    <el-dialog
+      :title="dialog.title"
+      :visible.sync="dialog.show"
+      width="40%"
+      :before-close="toClose"
+      :close-on-click-modal="false"
+      custom-class="dialog"
+    >
+      <div class="info">
+        <result-1></result-1>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import dataTable from "@/components/free/filter-page-table.vue";
+import { mapState, mapGetters, createNamespacedHelpers } from "vuex";
+const { mapActions: updateapply } = createNamespacedHelpers("updateapply");
+export default {
+  name: "index",
+  components: { dataTable },
+  props: {},
+  data: function () {
+    return {
+      list: [],
+      total: 0,
+      fields: [
+        { label: "用户名称", prop: "user_name", filter: true },
+        {
+          label: "审核状态",
+          prop: "status",
+          format: (i) =>
+            i == "0"
+              ? "待审中"
+              : i == "1"
+              ? "机构审核通过,基础处待审中"
+              : i == "2"
+              ? "机构审核拒绝"
+              : i == "3"
+              ? "基础处待审通过"
+              : i == "4"
+              ? "基础处待审拒绝"
+              : "",
+          filter: "select",
+        },
+      ],
+      opera: [
+        {
+          label: "查看结果",
+          method: "result",
+          display: (i) => i.status != "0",
+        },
+      ],
+      // 审核状态
+      statusList: [
+        { label: "待审中", value: "0" },
+        { label: "机构审核通过,基础处待审中", value: "1" },
+        { label: "机构审核拒绝", value: "2" },
+        { label: "基础处待审通过", value: "3" },
+        { label: "基础处待审拒绝", value: "4" },
+      ],
+      dialog: { title: "审核结果", show: false },
+      info: {},
+    };
+  },
+  async created() {
+    await this.search();
+  },
+  methods: {
+    ...updateapply(["query", "update"]),
+    async search({ skip = 0, limit = 10, ...info } = {}) {
+      info.user_id = this.user_id;
+      const res = await this.query({ skip, limit, ...info });
+      if (this.$checkRes(res)) {
+        this.$set(this, `list`, res.data);
+        this.$set(this, `total`, res.total);
+      }
+    },
+    // 查看结果
+    toResult({ data }) {
+      this.$set(this, `info`, data);
+      this.dialog = { title: "审核结果", show: true };
+    },
+    // 关闭
+    toClose() {
+      this.search();
+      this.dialog = { title: "审核结果", show: false };
+    },
+  },
+  computed: {
+    ...mapGetters(["user_id", "name"]),
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+  watch: {
+    test: {
+      deep: true,
+      immediate: true,
+      handler(val) {},
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.main {
+  padding: 25px 30px 30px;
+}
+.dialog {
+  .info {
+    min-height: 150px;
+    max-height: 430px;
+    overflow-y: auto;
+    .info_1 {
+      .btn {
+        text-align: center;
+      }
+    }
+  }
+}
+/deep/.el-dialog__body {
+  padding: 10px;
+}
+</style>