wuhongyu 4 vuotta sitten
vanhempi
commit
df717d4e8d

+ 16 - 0
src/router/index.js

@@ -175,6 +175,22 @@ const routes = [
     meta: { title: '对接会申请状况列表', isleftarrow: true },
     component: () => import('../views/adminCenter/duijiehui/apply.vue'),
   },
+
+  // 管理员个人中心-对接会申请状况列表
+  {
+    path: '/adminCenter/enterpriseProduct/index',
+    name: 'adminCenter_enterpriseProduct',
+    meta: { title: '产品供求审核管理', isleftarrow: true },
+    component: () => import('../views/adminCenter/enterpriseProduct/index.vue'),
+  },
+  // 管理员个人中心-产品供求交易状态审核管理
+  {
+    path: '/adminCenter/transaction/index',
+    name: 'adminCenter_transaction',
+    meta: { title: '产品供求交易状态审核管理', isleftarrow: true },
+    component: () => import('../views/adminCenter/transaction/index.vue'),
+  },
+  ,
 ];
 
 const router = new VueRouter({

+ 11 - 3
src/views/adminCenter/duijiehui/parts/list.vue

@@ -51,9 +51,17 @@ export default {
     ...user(['query', 'delete', 'update']),
     ...dock({ dockQuery: 'query', dockDteate: 'delete', dockUpdate: 'update' }),
     async search() {
-      let res = await this.dockQuery();
-      if (this.$checkRes(res)) {
-        this.$set(this, `list`, res.data);
+      if (this.user.role == 4) {
+        let user_id = this.user.uid;
+        let res = await this.dockQuery({ user_id });
+        if (this.$checkRes(res)) {
+          this.$set(this, `list`, res.data);
+        }
+      } else {
+        let res = await this.dockQuery();
+        if (this.$checkRes(res)) {
+          this.$set(this, `list`, res.data);
+        }
       }
     },
     async submit(item) {

+ 92 - 0
src/views/adminCenter/enterpriseProduct/index.vue

@@ -0,0 +1,92 @@
+<template>
+  <div id="index">
+    <el-row>
+      <el-col :span="24" class="style">
+        <el-col :span="24" class="top">
+          <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
+        </el-col>
+        <el-col :span="24" class="main">
+          <el-col :span="24" class="main">
+            <el-col :span="24" class="one">
+              <list></list>
+            </el-col>
+          </el-col>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import { mapState, createNamespacedHelpers } from 'vuex';
+import NavBar from '@/layout/common/topInfo.vue';
+import list from './parts/list.vue';
+export default {
+  name: 'index',
+  props: {},
+  components: { NavBar, list },
+  data: () => ({
+    // 头部标题
+    title: '',
+    // meta为true
+    isleftarrow: '',
+    // 返回
+    navShow: true,
+    img_path: require('@/assets/logo.png'),
+    active: 0,
+    show: false,
+    newform: {},
+  }),
+  created() {},
+  computed: {},
+  methods: {},
+  mounted() {
+    this.title = this.$route.meta.title;
+    this.isleftarrow = this.$route.meta.isleftarrow;
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.style {
+  width: 100%;
+  min-height: 667px;
+  position: relative;
+  background-color: #f9fafc;
+}
+.top {
+  height: 46px;
+  overflow: hidden;
+  position: relative;
+  z-index: 999;
+}
+.main {
+  min-height: 570px;
+  .two {
+    position: fixed;
+    top: 80%;
+
+    left: 10px;
+    z-index: 999;
+  }
+}
+/deep/.van-tab {
+  text-align: center;
+}
+/deep/.van-tabs--line .van-tabs__wrap {
+  height: 70px;
+  margin: 0 0 10px 0;
+}
+/deep/.van-tab--active {
+  color: red;
+}
+.van-icon {
+  font-size: 20px;
+}
+/deep/.van-popup--bottom {
+  bottom: 0;
+  left: 0;
+  width: 100%;
+  height: 300px;
+}
+</style>

+ 143 - 0
src/views/adminCenter/enterpriseProduct/parts/list.vue

@@ -0,0 +1,143 @@
+<template>
+  <div id="auditList">
+    <el-row>
+      <el-col :span="24" class="info">
+        <el-col :span="24" class="list" v-for="(item, index) in list" :key="index">
+          <p class="textOver">
+            <span class="titel">{{ item.name }}</span>
+            <span style="float:right;margin:0 0 0  5px;"> <van-button type="info" size="mini" @click="sussess(item)">审核通过</van-button></span>
+            <span style="float:right;margin:0 0 0  5px;"><van-button type="info" size="mini" @click="fail(item)">审核拒绝</van-button> </span>
+          </p>
+          <p class="newptwo">
+            <span class="ptwo"><span>类型:</span>{{ item.status == '0' ? '技术' : item.status == '1' ? '产品' : '服务' }}</span>
+          </p>
+
+          <p class="newptwo">
+            <span class="ptwo"><span>联系人:</span>{{ item.contact_user }}</span>
+          </p>
+          <p class="newptwo">
+            <span>审核状态:</span>{{ item.status == '0' ? '待审核' : item.status == '1' ? '审核成功' : item.status == '2' ? '审核拒绝' : '草稿' }}
+          </p>
+          <p class="newptwo"><span>简介:</span>{{ item.introduction }}</p></el-col
+        >
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import { mapState, createNamespacedHelpers } from 'vuex';
+const { mapActions: product } = createNamespacedHelpers('marketproduct');
+
+export default {
+  name: 'auditList',
+  props: {},
+  components: {},
+  data: function() {
+    return {
+      list: [{ name: '1' }],
+    };
+  },
+  created() {
+    this.searchInfo();
+  },
+  methods: {
+    ...product(['query', 'update']),
+    async searchInfo() {
+      if (this.user.role == '4') {
+        let userid = this.user.uid;
+        let res = await this.query({ userid });
+        this.$set(this, `list`, res.data);
+      } else {
+        let res = await this.query();
+        this.$set(this, `list`, res.data);
+      }
+    },
+    async sussess(item) {
+      item.status = '1';
+      let res = await this.update(item);
+      this.$message({
+        message: '信息审核成功',
+        type: 'success',
+      });
+      this.searchInfo();
+    },
+
+    async fail(item) {
+      item.status = '2';
+      let res = await this.update(item);
+      this.$message({
+        message: '信息审核成功',
+        type: 'success',
+      });
+      this.searchInfo();
+    },
+  },
+  computed: {
+    ...mapState(['user']),
+    pageTitle() {
+      return `${this.$route.meta.title}`;
+    },
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.newuser {
+  float: right;
+  padding: 10px 0 10px 10px;
+}
+.info {
+  border-top: 1px solid #f5f5f5;
+
+  .list {
+    background: #fff;
+    padding: 0 10px;
+    border-bottom: 1px solid #ccc;
+    p {
+      font-size: 14px;
+      color: #000;
+      padding: 5px 0;
+    }
+    p:first-child {
+      font-size: 16px;
+    }
+    p:nth-child(2) .ptwo {
+      display: inline-block;
+      width: 50%;
+    }
+    p:nth-child(2) .ptwo span:first-child {
+      color: #ccc;
+    }
+    p:last-child span {
+      color: #ccc;
+    }
+  }
+}
+.content {
+  padding: 16px 16px 160px;
+  height: 160px;
+  background-color: aqua;
+}
+.newptwo {
+  color: #ccc !important;
+}
+/deep/.van-button--small {
+  min-width: 60px;
+  height: 30px;
+  padding: 0 8px;
+  font-size: 12px;
+  margin: 0 5px 0 0;
+}
+.titel {
+  display: inline-block;
+  width: 41%;
+
+  overflow: hidden;
+  text-overflow: ellipsis;
+  whitewhite-space: nowrap;
+}
+</style>

+ 92 - 0
src/views/adminCenter/transaction/index.vue

@@ -0,0 +1,92 @@
+<template>
+  <div id="index">
+    <el-row>
+      <el-col :span="24" class="style">
+        <el-col :span="24" class="top">
+          <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
+        </el-col>
+        <el-col :span="24" class="main">
+          <el-col :span="24" class="main">
+            <el-col :span="24" class="one">
+              <list></list>
+            </el-col>
+          </el-col>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import { mapState, createNamespacedHelpers } from 'vuex';
+import NavBar from '@/layout/common/topInfo.vue';
+import list from './parts/list.vue';
+export default {
+  name: 'index',
+  props: {},
+  components: { NavBar, list },
+  data: () => ({
+    // 头部标题
+    title: '',
+    // meta为true
+    isleftarrow: '',
+    // 返回
+    navShow: true,
+    img_path: require('@/assets/logo.png'),
+    active: 0,
+    show: false,
+    newform: {},
+  }),
+  created() {},
+  computed: {},
+  methods: {},
+  mounted() {
+    this.title = this.$route.meta.title;
+    this.isleftarrow = this.$route.meta.isleftarrow;
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.style {
+  width: 100%;
+  min-height: 667px;
+  position: relative;
+  background-color: #f9fafc;
+}
+.top {
+  height: 46px;
+  overflow: hidden;
+  position: relative;
+  z-index: 999;
+}
+.main {
+  min-height: 570px;
+  .two {
+    position: fixed;
+    top: 80%;
+
+    left: 10px;
+    z-index: 999;
+  }
+}
+/deep/.van-tab {
+  text-align: center;
+}
+/deep/.van-tabs--line .van-tabs__wrap {
+  height: 70px;
+  margin: 0 0 10px 0;
+}
+/deep/.van-tab--active {
+  color: red;
+}
+.van-icon {
+  font-size: 20px;
+}
+/deep/.van-popup--bottom {
+  bottom: 0;
+  left: 0;
+  width: 100%;
+  height: 300px;
+}
+</style>

+ 19 - 0
src/views/adminCenter/transaction/parts/list.vue

@@ -0,0 +1,19 @@
+<template>
+  <div id="list">
+    <p>list</p>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'list',
+  props: {},
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped></style>

+ 2 - 2
src/views/user/parts/clickBtn.vue

@@ -12,8 +12,8 @@
           <span v-if="user.role == '1'">
             <van-cell is-link title="用户管理" @click="$router.push({ path: '/adminCenter/user/index' })" />
             <van-cell is-link title="对接会管理" @click="$router.push({ path: '/adminCenter/duijiehui/index' })" />
-            <van-cell is-link title="产品供求审核管理" />
-            <van-cell is-link title="产品供求交易状态审核管理" />
+            <van-cell is-link title="产品供求审核管理" @click="$router.push({ path: '/adminCenter/enterpriseProduct/index' })" />
+            <van-cell is-link title="产品供求交易状态审核管理" @click="$router.push({ path: '/adminCenter/transaction/index' })" />
           </span>
           <span v-else>
             <van-cell is-link title="用户管理" v-if="oneName == '用户管理'" />