|
@@ -1,108 +0,0 @@
|
|
|
-<template>
|
|
|
- <div id="info">
|
|
|
- <el-row>
|
|
|
- <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
|
|
|
- <el-col :span="24" class="one">
|
|
|
- <cSearch :is_title="false" :is_back="true" @toBack="toBack"></cSearch>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" class="two">
|
|
|
- <cForm :fields="fields" :form="form" :disabled="true" labelWidth="auto" :isSave="false">
|
|
|
- <template #code>
|
|
|
- <el-option v-for="i in codeList" :key="i.value" :label="i.label" :value="i.value"></el-option>
|
|
|
- </template>
|
|
|
- <template #status>
|
|
|
- <el-option v-for="i in statusList" :key="i.value" :label="i.label" :value="i.value"></el-option>
|
|
|
- </template>
|
|
|
- <template #area>
|
|
|
- <el-option v-for="i in areaList" :key="i.value" :label="i.label" :value="i.value"></el-option>
|
|
|
- </template>
|
|
|
- </cForm>
|
|
|
- </el-col>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </div>
|
|
|
-</template>
|
|
|
-
|
|
|
-<script setup lang="ts">
|
|
|
-// 基础
|
|
|
-import type { Ref } from 'vue';
|
|
|
-import { onMounted, ref } from 'vue';
|
|
|
-import { useRoute } from 'vue-router';
|
|
|
-// 接口
|
|
|
-import { CompanyStore } from '@common/src/stores/admins/company';
|
|
|
-import { DictDataStore } from '@common/src/stores/system/dictData';
|
|
|
-import type { IQueryResult } from '@/util/types.util';
|
|
|
-const companyAxios = CompanyStore();
|
|
|
-const dictAxios = DictDataStore();
|
|
|
-
|
|
|
-// 路由
|
|
|
-const route = useRoute();
|
|
|
-// 加载中
|
|
|
-const loading: Ref<any> = ref(false);
|
|
|
-const form: Ref<any> = ref({});
|
|
|
-const fields: Ref<any> = ref([
|
|
|
- { label: '邀请码', model: 'code', type: 'select' },
|
|
|
- { label: '账号', model: 'account' },
|
|
|
- { label: '姓名', model: 'name' },
|
|
|
- { label: '手机号', model: 'phone' },
|
|
|
- { label: '电子邮箱', model: 'email' },
|
|
|
- { label: '联系地址', model: 'address' },
|
|
|
- { label: '办公电话', model: 'work_phone' },
|
|
|
- { label: '所属行业', model: 'industry' },
|
|
|
- { label: '所属辖区', model: 'area', type: 'select' },
|
|
|
- { label: '机构代码', model: 'institution_code' },
|
|
|
- { label: '注册类型', model: 'companytype' },
|
|
|
- { label: '注册时间', model: 'companydate', type: 'date' },
|
|
|
- { label: '注册资金', model: 'companycapital' },
|
|
|
- { label: '企业法人', model: 'companyperson' },
|
|
|
- { label: '上年度企业总收入', model: 'sndqyzsr' },
|
|
|
- { label: '上年度研发费用', model: 'sndyffy' },
|
|
|
- { label: '企业总人数', model: 'companytotal' },
|
|
|
- { label: '专&兼职研发人数', model: 'zjzyfrs' },
|
|
|
- { label: '企业简介', model: 'companybrief', type: 'textarea' },
|
|
|
- { label: '主要产品', model: 'mainproduct', type: 'textarea' },
|
|
|
- { label: '企业资质&荣誉', model: 'qualifications', type: 'textarea' }
|
|
|
-]);
|
|
|
-// 字典表
|
|
|
-const statusList: Ref<any> = ref([]);
|
|
|
-const areaList: Ref<any> = ref([]);
|
|
|
-const codeList: Ref<any> = ref([]);
|
|
|
-// 请求
|
|
|
-onMounted(async () => {
|
|
|
- loading.value = true;
|
|
|
- await searchOther();
|
|
|
- await search();
|
|
|
- loading.value = false;
|
|
|
-});
|
|
|
-const search = async () => {
|
|
|
- let id = route.query.id;
|
|
|
- if (id) {
|
|
|
- let res: IQueryResult = await companyAxios.fetch(id);
|
|
|
- if (res.errcode == '0') {
|
|
|
- form.value = res.data;
|
|
|
- }
|
|
|
- }
|
|
|
-};
|
|
|
-// 查询其他信息
|
|
|
-const searchOther = async () => {
|
|
|
- let res: IQueryResult;
|
|
|
- // 状态
|
|
|
- res = await dictAxios.query({ type: 'common_status' });
|
|
|
- if (res.errcode == '0') statusList.value = res.data;
|
|
|
- // 辖区
|
|
|
- res = await dictAxios.query({ type: 'jl_area' });
|
|
|
- if (res.errcode == '0') areaList.value = res.data;
|
|
|
- // 邀请码
|
|
|
- res = await dictAxios.query({ type: 'account_code' });
|
|
|
- if (res.errcode == '0') {
|
|
|
- let list = res.data as any;
|
|
|
- list = list.filter((i) => i.value != 'CJGLY');
|
|
|
- codeList.value = list;
|
|
|
- }
|
|
|
-};
|
|
|
-// 返回上一页
|
|
|
-const toBack = () => {
|
|
|
- window.history.go(-1);
|
|
|
-};
|
|
|
-</script>
|
|
|
-<style scoped lang="scss"></style>
|