فهرست منبع

限制企业在平台未审核/拒绝可以使用中台管理

lrf402788946 5 سال پیش
والد
کامیت
9a776951dc
4فایلهای تغییر یافته به همراه21 افزوده شده و 10 حذف شده
  1. 15 1
      src/layout/main-layout.vue
  2. 0 3
      src/views/registerEnt/basic.vue
  3. 1 1
      src/views/registerEnt/business.vue
  4. 5 5
      src/views/registerEnt/register.vue

+ 15 - 1
src/layout/main-layout.vue

@@ -30,6 +30,7 @@
 import bind from '@/components/bind.vue';
 import heads from '@/layout/layout-part/heads.vue';
 import menus from '@/layout/layout-part/menus.vue';
+import { mapActions, mapState } from 'vuex';
 export default {
   name: 'main-layout',
   props: {},
@@ -42,9 +43,22 @@ export default {
     dialog: false,
   }),
   created() {},
-  computed: {},
+  computed: {
+    ...mapState(['user']),
+  },
   methods: {
+    ...mapActions(['corpOperation']),
+    async getInfo() {
+      let { base } = await this.corpOperation({ type: 'search', data: { corpid: this.user.corpid } });
+      if (base.state === '已认证') return true;
+    },
     checkBind() {
+      //平台未审核/审核拒绝,只能进入基本信息去复审
+      if (!this.getInfo()) {
+        this.$message.error('您的企业还未通过审核,请检查您的信息');
+        this.$router.push({ path: '/info/base/index' });
+        return;
+      }
       if (!this.$isBindWx()) this.dialog = true;
     },
     toLogin() {

+ 0 - 3
src/views/registerEnt/basic.vue

@@ -9,9 +9,6 @@
               <el-option v-for="item in schnameList" :key="item.code" :label="item.name" :value="item"></el-option>
             </el-select>
           </el-form-item>
-          <el-form-item label="企业主页">
-            <el-input v-model="form.url" placeholder="请输入企业主页链接"></el-input>
-          </el-form-item>
           <el-form-item label="企业名称">
             <el-input v-model="form.corpname" placeholder="请输入企业全称(与组织机构代码证上一致)"></el-input>
           </el-form-item>

+ 1 - 1
src/views/registerEnt/business.vue

@@ -132,7 +132,7 @@ export default {
       }
     },
     logoUpload(response) {
-      this.form.logo_url = response.url;
+      this.$set(this.form.identity, `logo_url`, response.uri);
     },
     outLimit() {
       this.$message.error('只允许上传1个文件');

+ 5 - 5
src/views/registerEnt/register.vue

@@ -74,10 +74,10 @@ export default {
       this.$set(this, `sch`, sch);
       this.$set(this, `verifyForm`, verifyForm);
       this.$set(this, `form`, data);
-      if (!(await this.checkVerify())) {
-        this.$set(this, `active`, 1);
-        return;
-      }
+      // if (!(await this.checkVerify())) {
+      //   this.$set(this, `active`, 1);
+      //   return;
+      // }
       if (this.active++ > 2) this.active = 0;
     },
     async checkVerify() {
@@ -101,7 +101,7 @@ export default {
     async onSubmit(data) {
       let form = JSON.parse(JSON.stringify(this.form));
       form['identity'] = data.identity;
-      //连接后台接口
+      // 连接后台接口
       let result = await this.corpReg({ data: form, schname: this.sch.name, schid: this.sch.code * 1 });
       this.$message({
         type: `${result.errcode}` === '0' ? 'success' : 'error',