roose 5 years ago
parent
commit
2653ff4b96

+ 99 - 0
src/layout/companyup/detailInfo.vue

@@ -0,0 +1,99 @@
+<template>
+  <div id="detailInfo">
+    <el-row>
+      <el-col :span="24" class="top">
+        <span class="shu"></span><span class="title">{{ formTitle }}</span>
+      </el-col>
+      <el-col :span="24">
+        <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm">
+          <span v-if="ruleForm.status === '1' || ruleForm.status === '2'">
+            <el-form-item label="审核状态:">
+              <span>{{ ruleForm.status === '0' ? '审核中' : ruleForm.status === '1' ? '审核通过' : '审核拒绝' }}</span>
+            </el-form-item>
+          </span>
+          <el-form-item label="企业名称:">
+            <el-input v-model="ruleForm.company_name" disabled></el-input>
+          </el-form-item>
+          <el-form-item label="工商注册地址:">
+            <el-input v-model="ruleForm.registered_addr" disabled></el-input>
+          </el-form-item>
+          <el-form-item label="实际经营地址:">
+            <el-input v-model="ruleForm.business_addr" disabled></el-input>
+          </el-form-item>
+          <el-form-item label="所属行业:">
+            <el-select v-model="ruleForm.profession_one" placeholder="请选择" disabled> </el-select>
+            <el-select v-model="ruleForm.profession_two" placeholder="请选择" disabled> </el-select>
+            <el-select v-model="ruleForm.profession_three" placeholder="请选择" disabled> </el-select>
+            <el-select v-model="ruleForm.profession_four" placeholder="请选择" disabled> </el-select>
+          </el-form-item>
+          <el-form-item label="融资联系人:">
+            <el-input v-model="ruleForm.contacts" disabled></el-input>
+          </el-form-item>
+          <el-form-item label="联系人手机:">
+            <el-input v-model="ruleForm.contact_number" disabled></el-input>
+          </el-form-item>
+          <el-form-item label="联系人职位:">
+            <el-input v-model="ruleForm.contact_position" disabled></el-input>
+          </el-form-item>
+          <el-form-item label="	联系人邮箱:">
+            <el-input v-model="ruleForm.contact_email" disabled></el-input>
+          </el-form-item>
+          <el-form-item label="固定电话:">
+            <el-input v-model="ruleForm.telephone" disabled></el-input>
+          </el-form-item>
+          <span v-if="ruleForm.status === '0'">
+            <el-form-item>
+              <el-button type="primary" @click="submitForm()">审核通过</el-button>
+              <el-button type="danger" @click="resetForm()">审核拒绝</el-button>
+            </el-form-item>
+          </span>
+        </el-form>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'detailInfo',
+  props: {
+    formTitle: null,
+    ruleForm: null,
+    rules: null,
+  },
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {
+    submitForm(ruleForm) {
+      this.$emit('submitForm', { data: this.ruleForm });
+    },
+    resetForm(ruleForm) {
+      this.$emit('resetForm', { data: this.ruleForm });
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.top .shu {
+  float: left;
+  width: 4px;
+  height: 20px;
+  background: rgba(233, 2, 29, 1);
+}
+.top .title {
+  float: left;
+  padding: 0 10px;
+  font-size: 16px;
+  font-family: Source Han Sans SC;
+  font-weight: bold;
+  color: rgba(40, 40, 40, 1);
+}
+/deep/.el-button {
+  color: #fff;
+  background-color: red;
+  border-color: red;
+}
+</style>

+ 198 - 0
src/layout/companyup/newsInfo.vue

@@ -0,0 +1,198 @@
+<template>
+  <div id="newsInfo">
+    <el-row>
+      <el-col :span="24" class="search">
+        <el-col :span="5">
+          <span>筛选条件:</span>
+          <el-select v-model="search.status" placeholder="请选择审核状态">
+            <el-option label="审核中" value="0"></el-option>
+            <el-option label="审核通过" value="1"></el-option>
+            <el-option label="审核拒绝" value="2"></el-option>
+          </el-select>
+        </el-col>
+        <el-col :span="4">
+          <span>输入条件:</span>
+          <el-input v-model="search.company_name" :placeholder="placeholder" class="input"></el-input>
+        </el-col>
+        <!--<el-col :span="7">
+            <span>时间选择:</span>
+            <el-date-picker v-model="search.date" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker>
+          </el-col>-->
+        <el-col :span="8">
+          <el-button class="btnSearch" @click="toQuery">查询</el-button>
+          <el-button class="btnSearch qing" @click="toClear">清空</el-button>
+        </el-col>
+      </el-col>
+      <el-col :span="24">
+        <el-table
+          ref="debtTable"
+          :data="debtTable"
+          tooltip-effect="dark"
+          :default-sort="{ prop: 'date', order: 'descending' }"
+          style="width: 100%"
+          @selection-change="handleSelectionChange"
+        >
+          <el-table-column type="selection" align="center"> </el-table-column>
+          <el-table-column type="index" label="序号" width="50" align="center"> </el-table-column>
+          <el-table-column property="company_name" label="企业名称" align="center"> </el-table-column>
+          <el-table-column label="状态" align="center">
+            <template slot-scope="scope">
+              <span style="margin-left: 10px">{{ scope.row.status === '0' ? '审核中' : scope.row.status === '1' ? '审核通过' : '审核拒绝' }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column property="contacts" label="融资联系人" align="center"> </el-table-column>
+          <el-table-column property="contact_position" label="联系人职位" align="center"> </el-table-column>
+          <el-table-column property="contact_email" label="联系人邮箱" align="center"> </el-table-column>
+          <el-table-column property="telephone" label="固定电话" align="center"> </el-table-column>
+          <el-table-column label="操作" align="center" width="300px">
+            <template slot-scope="scope">
+              <el-button size="mini" type="text" @click="handleClick(scope.row)" class="view" icon="el-icon-view"></el-button>
+            </template>
+          </el-table-column>
+          <!-- 
+                <el-table-column label="操作" align="center" width="300px">
+                  <template slot-scope="scope">
+                    <el-button size="mini" type="text" class="view" icon="el-icon-view"></el-button>
+                  </template>
+                </el-table-column> -->
+        </el-table>
+        <el-col class="page" :span="24">
+          <el-pagination
+            @size-change="handleSizeChange"
+            @current-change="handleCurrentChange"
+            :current-page="currentPage"
+            background
+            layout="total,  prev, pager, next, jumper"
+            :total="total"
+            :page-size="pageSize"
+          >
+          </el-pagination>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'newsInfo',
+  props: {
+    debtTable: null,
+    total: null,
+  },
+  components: {},
+  data: () => ({
+     placeholder: '请输入企业名称',
+    search: {},
+    currentPage: 1,
+    currentPage: 0,
+    pageSize: 10,
+  }),
+  created() {},
+  computed: {
+    status() {
+      return this.$route.params.status;
+    },
+  },
+  methods: {
+    handleSelectionChange(val) {
+      this.multipleSelection = val;
+    },
+    handleSizeChange(val) {
+      console.log(`每页 ${val} 条`);
+    },
+
+    handleCurrentChange(currentPage) {
+      console.log(currentPage);
+      this.$emit('handleCurrentChange', { skip: (currentPage - 1) * this.pageSize, limit: this.pageSize, currentPage });
+    },
+    handleCurrentChanges(currentPage) {
+      console.log(currentPage);
+      this.$emit('handleCurrentChanges', { skip: (currentPage - 1) * this.pageSize, limit: this.pageSize, currentPage });
+    },
+    handleCurrentChangess(currentPage) {
+      console.log(currentPage);
+      this.$emit('handleCurrentChangess', { skip: (currentPage - 1) * this.pageSize, limit: this.pageSize, currentPage });
+    },
+
+    handleClicks(tab, event) {
+      console.log(tab, event);
+    },
+    handleClick(id) {
+      let newid = id.id;
+
+      this.$emit('handleClick', newid);
+    },
+     toQuery() {
+      this.$set(this, `currentPage`, 1);
+      this.$emit('select', { skip: 0, limit: this.limit, ...this.search });
+    },
+    toClear() {
+      let keys = Object.keys(this.search);
+      this.search = {};
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+/deep/.el-checkbox__input.is-checked .el-checkbox__inner {
+  background-color: red;
+  border-color: red;
+}
+/deep/.el-checkbox__input.is-indeterminate .el-checkbox__inner {
+  background-color: red;
+  border-color: red;
+}
+/deep/.el-table th {
+  background-color: #f5f6fa;
+  padding: 8px 0;
+}
+/deep/.el-table td {
+  padding: 11px 0;
+}
+.other {
+  color: #f36302;
+}
+.view {
+  color: #f36302;
+}
+.edit {
+  color: #2ccc02;
+}
+.delete {
+  color: #e9021d;
+}
+/deep/.el-pagination {
+  padding: 26px 20px;
+}
+/deep/.el-pagination.is-background .el-pager li:not(.disabled).active {
+  background-color: red;
+}
+.input {
+  width: 150px;
+}
+
+/deep/ .el-input__inner {
+  height: 35px;
+}
+.search {
+  background: #ffffff;
+  width: 97%;
+  height: 35px;
+  margin: 20px;
+  margin-left: 0px;
+}
+.btnSearch {
+  width: 80px;
+  height: 34px;
+  background: rgba(233, 2, 29, 1);
+  border-radius: 4px;
+  padding: 0;
+  color: #fff;
+}
+
+.qing {
+  background: rgba(185, 185, 185, 1);
+}
+</style>

+ 1 - 0
src/layout/layout-part/menus.vue

@@ -58,6 +58,7 @@
           <el-menu-item index="/financeclaims/insitionIndex">金融机构提交至审核</el-menu-item>
         </el-menu-item-group>
       </el-submenu>
+      <el-menu-item index="/companyup/index"> <i class="el-icon-s-grid"></i>企业修改信息审核管理</el-menu-item>
 
       <!--<el-menu-item index="/tUrgeHandle/seeIndex"> <i class="el-icon-s-grid"></i>企业申请信息催办处理</el-menu-item>-->
 

+ 10 - 0
src/router/index.js

@@ -134,6 +134,16 @@ const routes = [
     path: '/financeclaims/applymmDetail',
     component: () => import('../views/financeclaims/applymmDetail.vue'),
   },
+  // 企业信息管理-列表
+  {
+    path: '/companyup/index',
+    component: () => import('../views/companyup/index.vue'),
+  },
+  // 企业信息管理-详情
+  {
+    path: '/companyup/detail',
+    component: () => import('../views/companyup/detail.vue'),
+  },
   // 企业申请信息催办处理
   {
     path: '/tUrgeHandle/seeIndex',

+ 43 - 0
src/store/companyup.js

@@ -0,0 +1,43 @@
+import Vue from 'vue';
+import Vuex from 'vuex';
+import _ from 'lodash';
+Vue.use(Vuex);
+const api = {
+  otheruserInfo: `/api/financial/companyup`,
+  otheruserStatus: `/api/financial/companyup/status`,
+};
+const state = () => ({});
+const mutations = {};
+
+const actions = {
+  async query({ commit }, { skip = 0, limit, ...info } = {}) {
+    const res = await this.$axios.$get(`${api.otheruserInfo}`, { skip, limit, ...info });
+    return res;
+  },
+  async create({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.otheruserInfo}`, payload);
+    return res;
+  },
+  async fetch({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.otheruserInfo}/${payload}`);
+    return res;
+  },
+  async update({ commit }, { id, ...data }) {
+    const res = await this.$axios.$post(`${api.otheruserInfo}/update/${id}`, data);
+    return res;
+  },
+  async delete({ commit }, payload) {
+    const res = await this.$axios.$delete(`${api.otheruserInfo}/${payload}`);
+    return res;
+  },
+  async updateStatus({ commit }, { id, ...data }) {
+    const res = await this.$axios.$post(`${api.otheruserStatus}/${id}`, data);
+    return res;
+  },
+};
+export default {
+  namespaced: true,
+  state,
+  mutations,
+  actions,
+};

+ 4 - 0
src/store/index.js

@@ -14,6 +14,8 @@ import managemoney from './managemoney';
 import applymmoney from './applymmoney';
 import tUrgeHandle from './tUrgeHandle';
 import tNewAssign from './tNewAssign';
+import companyup from './companyup';
+import profession from './profession';
 
 Vue.use(Vuex);
 
@@ -31,6 +33,8 @@ export default new Vuex.Store({
     applymmoney,
     tUrgeHandle,
     tNewAssign,
+    companyup,
+    profession
   },
   state: { ...states },
   mutations: { ...muta },

+ 38 - 0
src/store/profession.js

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

+ 87 - 0
src/views/companyup/detail.vue

@@ -0,0 +1,87 @@
+<template>
+  <div id="detail">
+    <el-row>
+      <el-col :span="24" class="debt">
+        <el-col :span="24" class="top">
+          <detailTopInfo :topTitle="topTitle" :display="display" @goBack="goBack"></detailTopInfo>
+        </el-col>
+        <el-col :span="24" class="main">
+          <el-col :span="24" class="info">
+            <detailInfo :ruleForm="ruleForm" :rules="rules" @submitForm="submitForm" @resetForm="resetForm" :formTitle="formTitle"></detailInfo>
+          </el-col>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+  import detailTopInfo from '@/layout/custom/detailTopInfo.vue';
+  import detailTop from '@/layout/common/detailTop.vue';
+  import detailInfo from '@/layout/companyup/detailInfo.vue';
+  import { createNamespacedHelpers } from 'vuex';
+  const { mapActions: companyup } = createNamespacedHelpers('companyup');
+  const { mapActions: profession } = createNamespacedHelpers('profession');
+  export default {
+    name: 'detail',
+    props: {},
+    components: {
+      detailTopInfo, //头部导航
+      detailInfo, //提交
+    },
+    data: () => ({
+      rules: {},
+      display: 'block',
+      topTitle: '企业修改信息审核',
+      formTitle: '企业修改信息',
+      ruleForm: {},
+    }),
+    created() {
+      this.search();
+    },
+    computed: {
+      id() {
+        return this.$route.query.id;
+      },
+    },
+    methods: {
+      ...companyup({ companyupStatus: 'updateStatus', companyupFetch: 'fetch' }),
+      async search() {
+        const res = await this.companyupFetch(this.id);
+        if (res.errcode === 0) {
+          this.$set(this, `ruleForm`, res.data);
+        }
+      },
+      // 审核企业修改信息+通过
+      submitForm({ data }) {
+        data.status = '1';
+        let res = this.companyupStatus(data);
+        this.$checkRes(res, '审核通过成功', '审核通过失败');
+        this.goBack();
+      },
+      // 审核企业修改信息+拒绝
+      resetForm({ data }) {
+        data.status = '2';
+        let res = this.companyupStatus(data);
+        this.$checkRes(res, '审核拒绝通过', '审核拒绝失败');
+        this.goBack();
+      },
+      // 返回
+      goBack() {
+        this.$router.go(-1);
+      },
+    },
+  };
+</script>
+
+<style lang="less" scoped>
+  .top {
+    height: 50px;
+    margin: 0 0 10px 0;
+  }
+  .main {
+    min-height: 765px;
+    background: #ffffff;
+    padding: 20px;
+  }
+</style>

+ 80 - 0
src/views/companyup/index.vue

@@ -0,0 +1,80 @@
+<template>
+  <div id="index">
+    <el-col :span="24" class="debt">
+      <el-col :span="24" class="top">
+        <topInfo :topTitle="topTitle" :display="display"></topInfo>
+      </el-col>
+      <!-- <el-col :span="24" class="search">
+        <searchInfo></searchInfo>
+      </el-col> -->
+      <el-col :span="24" class="main">
+        <newsInfo :debtTable="debtTable" :total="total" @select="select" @handleClick="handleClick" @handleCurrentChange="handleCurrentChange"></newsInfo>
+      </el-col>
+    </el-col>
+  </div>
+</template>
+
+<script>
+  import topInfo from '@/layout/common/topInfo.vue';
+  import newsInfo from '@/layout/companyup/newsInfo.vue';
+  import { createNamespacedHelpers } from 'vuex';
+  const { mapActions: companyup } = createNamespacedHelpers('companyup');
+
+  export default {
+    name: 'index',
+    props: {},
+    components: {
+      topInfo, //头部导航
+      // searchInfo, //搜素
+      newsInfo, //其他用户列表
+    },
+    data: () => ({
+      topTitle: '企业修改信息审核',
+      display: 'block',
+      debtTable: [],
+      total: 0,
+    }),
+    created() {
+      this.select();
+    },
+    computed: {},
+    methods: {
+      ...companyup({ companyupQuery: 'query' }),
+      async select({ skip = 0, limit = 10, ...info } = {}) {
+        const res = await this.companyupQuery({ skip, limit, ...info });
+        if (this.$checkRes(res)) {
+          this.$set(this, `debtTable`, res.data);
+          this.$set(this, `total`, res.total);
+        }
+      },
+      async handleCurrentChange({ skip, limit, currentPage }) {
+        this.$set(this, `skip`, skip);
+        this.select({ skip, limit, ...info });
+      },
+      // 修改
+      handleClick(newid) {
+        this.$router.push({ path: '/companyup/detail', query: { id: newid } });
+      },
+    },
+  };
+</script>
+
+<style lang="less" scoped>
+  .top {
+    height: 50px;
+    margin: 0 0 10px 0;
+  }
+  .main {
+    height: 765px;
+    background: #ffffff;
+    padding: 0 30px 0 30px;
+  }
+  .search {
+    width: 97%;
+    height: 35px;
+    margin: 20px;
+  }
+  .list {
+    padding: 0 20px;
+  }
+</style>

+ 46 - 41
vue.config.js

@@ -1,48 +1,53 @@
 const path = require('path');
 
 module.exports = {
-  publicPath: process.env.NODE_ENV === 'development' ? '/' : process.env.VUE_APP_ROOT_URL,
+    publicPath: process.env.NODE_ENV === 'development' ? '/' : process.env.VUE_APP_ROOT_URL,
 
-  configureWebpack: config => {
-    Object.assign(config, {
-      // 开发生产共同配置
-      resolve: {
-        alias: {
-          '@': path.resolve(__dirname, './src'),
-          '@c': path.resolve(__dirname, './src/components'),
-          '@a': path.resolve(__dirname, './src/assets'),
-        },
-      },
-    });
-  },
-  devServer: {
-    port: '8001',
-    //api地址前缀
-    proxy: {
-      '/files': {
-        target: 'http://smart.cc-lotus.info',
-        changeOrigin: true,
-        ws: true,
-      },
-      '/ws': {
-        target: 'http://smart.cc-lotus.info',
-        ws: true,
-      },
-      '/weixin': {
-        target: 'http://smart.cc-lotus.info',
-        changeOrigin: true,
-        ws: true,
-      },
-      // '/api': {
-      //   target: 'http://127.0.0.1:7004',
-      //   changeOrigin: true,
-      //   ws: true,
-      // },
-      '/api': {
-         target: 'http://free.liaoningdoupo.com',
-        changeOrigin: true,
-        ws: true,
+    configureWebpack: config => {
+        Object.assign(config, {
+            // 开发生产共同配置
+            resolve: {
+                alias: {
+                    '@': path.resolve(__dirname, './src'),
+                    '@c': path.resolve(__dirname, './src/components'),
+                    '@a': path.resolve(__dirname, './src/assets'),
+                },
+            },
+        });
     },
+    devServer: {
+        port: '8001',
+        //api地址前缀
+        proxy: {
+            '/files': {
+                target: 'http://smart.cc-lotus.info',
+                changeOrigin: true,
+                ws: true,
+            },
+            '/ws': {
+                target: 'http://smart.cc-lotus.info',
+                ws: true,
+            },
+            '/weixin': {
+                target: 'http://smart.cc-lotus.info',
+                changeOrigin: true,
+                ws: true,
+            },
+            // '/api': {
+            //   target: 'http://127.0.0.1:7004',
+            //   changeOrigin: true,
+            //   ws: true,
+            // },
+            //   '/api': {
+            //      target: 'http://free.liaoningdoupo.com',
+            //     changeOrigin: true,
+            //     ws: true,
+            // },
+            '/api': {
+                target: 'http://124.235.209.122:88',
+                changeOrigin: true,
+                ws: true,
+            },
+        },
     },
-  },
 };