Browse Source

9/29

master
aBin 5 years ago
parent
commit
eccd6325f6
  1. 22
      src/api/enterprise.js
  2. 4
      src/router/index.js
  3. 22
      src/views/enterprise/demand.vue
  4. 447
      src/views/enterprise/enterprise.vue
  5. 2
      vue.config.js

22
src/api/enterprise.js

@ -1,11 +1,8 @@
import request from '@/utils/request' import request from '@/utils/request'
const enterprisecategory = '/enterprise/enterpriseCategory' const enterprise = '/enterprise'
const enterprise = '/enterprise/enterprise'
const enterpriseScore= '/enterprise/enterpriseScore'
const enterpriseAdditional='enterprise/enterpriseAdditional'
export function enterpriseCategoryQueryAll(id) { export function enterpriseCategoryQueryAll(id) {
return request({ return request({
url: `/gateway${enterprisecategory}/enterpriseCategoryQueryAll`, url: `/gateway${enterprise}/enterpriseCategory/enterpriseCategoryQueryAll`,
method: 'post', method: 'post',
data: { data: {
param: { param: {
@ -13,37 +10,38 @@ export function enterpriseCategoryQueryAll(id) {
} }
} }
}) })
} }
export function enterpriseQueryAll(data) { export function enterpriseQueryAll(data) {
return request({ return request({
url: `/gateway${enterprise}/enterpriseQueryAll`, url: `/gateway${enterprise}/enterprise/enterpriseQueryAll`,
method: 'post', method: 'post',
data: { data: {
param: { param: {
incubatorType: data.incubatorType,
pageNum: data.pageNum, pageNum: data.pageNum,
pageSize: data.pageSize pageSize: data.pageSize
} }
} }
}) })
} }
export function enterpriseAdditionalQueryById(id) { export function enterpriseAdditionalQueryById(id) {
return request({ return request({
url: `/gateway${enterpriseAdditional}/enterpriseAdditionalQueryById`, url: `/gateway${enterprise}/enterpriseAdditional/enterpriseAdditionalQueryById`,
method: 'post', method: 'post',
data: { data: {
id: id id: id
} }
}) })
} }
export function enterpriseScoreQueryById(id) { export function enterpriseScoreQueryById(id) {
return request({ return request({
url: `/gateway${enterpriseScore}/enterpriseScoreQueryById`, url: `/gateway${enterprise}/enterpriseScore/enterpriseScoreQueryById`,
method: 'post', method: 'post',
data: { data: {
id: id id: id
} }
}) })
} }

4
src/router/index.js

@ -107,8 +107,8 @@ export const constantRoutes = [
meta: { title: '企业信息管理', icon: '' } meta: { title: '企业信息管理', icon: '' }
}, },
{ {
path: 'Rotation', path: 'demand',
name: 'Rotation', name: 'demand',
component: () => import('@/views/enterprise/demand'), component: () => import('@/views/enterprise/demand'),
meta: { title: '企业需求管理', icon: '' } meta: { title: '企业需求管理', icon: '' }
} }

22
src/views/enterprise/demand.vue

@ -11,26 +11,26 @@
<span>{{ row.contacts }}</span> <span>{{ row.contacts }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="需求内容" prop="content" align="center" width="200"> <el-table-column label="需求内容" prop="content" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.content}}</span> <span>{{ row.content }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间" prop="createdAt" align="center" width="200"> <!-- <el-table-column label="创建时间" prop="createdAt" align="center" width="200">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.createdAt }}</span> <span>{{ row.createdAt }}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="处理状态" prop="dealStatus" align="center" width="200"> <el-table-column label="处理状态" prop="dealStatus" align="center" width="200">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.dealStatus }}</span> <span>{{ row.dealStatus }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="需求id" prop="id" align="center" width="200"> <!-- <el-table-column label="需求id" prop="id" align="center" width="200">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.id}}</span> <span>{{ row.id }}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="企业名称" prop="name" align="center" width="200"> <el-table-column label="企业名称" prop="name" align="center" width="200">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.name }}</span> <span>{{ row.name }}</span>
@ -41,21 +41,21 @@
<span>{{ row.type }}</span> <span>{{ row.type }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="修改时间" prop="updatedAt" align="center" width="200"> <!-- <el-table-column label="修改时间" prop="updatedAt" align="center" width="200">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.updatedAt }}</span> <span>{{ row.updatedAt }}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="操作" align="center" width="230" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" width="230" class-name="small-padding fixed-width">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="primary" size="mini" @click="edit(row)" >修改处理状态</el-button> <el-button type="primary" size="mini" @click="edit(row)">修改处理状态</el-button>
<el-button size="mini" type="danger" @click="declare(row)">发榜</el-button> <el-button size="mini" type="danger" @click="declare(row)">发榜</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 修改处理状态弹窗 --> <!-- 修改处理状态弹窗 -->
<el-dialog title="修改处理状态" :visible.sync="dialogFormVisible"> <el-dialog title="修改处理状态" :visible.sync="dialogFormVisible">
<el-form ref="dataForm" :model="temp" label-position="left" label-width="70px" style="width: 400px; margin-left:50px;" > <el-form ref="dataForm" :model="temp" label-position="left" label-width="70px" style="width: 400px; margin-left:50px;">
<el-form-item label="ID" prop="id" style="width: 180%"> <el-form-item label="ID" prop="id" style="width: 180%">
<el-input v-model="temp.id" /> <el-input v-model="temp.id" />
</el-form-item> </el-form-item>

447
src/views/enterprise/enterprise.vue

@ -1,239 +1,249 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div class="filter-container"> <div class="filter-container">
<el-select v-model = "data.type" placeholder="标签" clearable class="filter-item" style="width: 190px;margin-left:10px" value="1"> <el-select v-model="data.type" placeholder="孵化器类型" clearable class="filter-item" style="width: 190px;margin-left:10px" value="1">
<el-option label="标签二" value="0" /> <el-option label="虚拟孵化器" value="0" />
<el-option label="标签二" value="1" /> <el-option label="实体孵化器" value="1" />
</el-select> </el-select>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-search" @click="search()"> <el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-search" @click="search">
搜索 搜索
</el-button> </el-button>
<!-- 企业列表 --> <!-- 企业列表 -->
<el-table v-loading="listLoading" :data="enterpriselist" border fit highlight-current-row style="width: 100%;"> <el-table v-loading="listLoading" :data="enterpriselist" border fit highlight-current-row style="width: 100%;">
<el-table-column label="ID" prop="name" align="center" width="500"> <el-table-column label="ID" prop="ID" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.id }}</span> <span>{{ row.id }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="名字" prop="name" align="center" width="500"> <el-table-column label="企业名称" prop="name" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.name }}</span> <span>{{ row.name }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="类型" prop="name" align="center" width="500">
<template slot-scope="{row}"> <el-table-column label="孵化器类型" prop="incubator" align="center">
<span>{{ row.incubator}}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="230" class-name="small-padding fixed-width">
<template slot-scope="{row}">
<el-button type="primary" size="mini" @click="scoreDetail(row.id)" >企业测评详情</el-button>
<el-button size="mini" type="danger" @click="enterpriseDetail(row.id)">企业详细信息</el-button>
<el-button size="mini" type="danger" @click="enterpriseCategoryQueryAll(row.id)">企业标签</el-button>
</template>
</el-table-column>
</el-table>
<!-- 企业标签弹框 -->
<el-dialog title="企业标签弹框" :visible.sync="dialogFormVisible3">
<el-table v-loading="categoryList" :data="detaillist" border fit highlight-current-row style="width: 100%;">
<el-table-column>
<template slot-scope="{row}">
<span>{{row.category}}</span>
</template>
</el-table-column>
<el-table-column>
<template slot-scope="{row}">
<span>{{row.createdAt}}</span>
</template>
</el-table-column>
<el-table-column>
<template slot-scope="{row}">
<span>{{row.id}}</span>
</template>
</el-table-column>
<el-table-column>
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{row.name}}</span> <span>{{ row.incubator }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table>
</el-dialog> <el-table-column label="联系人" prop="contacts" align="center">
<!-- 企业详细信息弹框 -->
<el-dialog title="企业详细信息展示" :visible.sync="dialogFormVisible">
<el-table v-loading="listLoading" :data="detaillist" border fit highlight-current-row style="width: 100%;">
<el-table-column label="企业是否被列入经营异常名录和严重违法失信企业名单 " prop="dishonestEnterprise" align="center" width="200">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span v-if="row.dishonestEnterprise === 1"></span> <span>{{ row.contacts }}</span>
<span v-if="row.dishonestEnterprise === 0"></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="产品和服务是否属于国家规定的禁止、限制和淘汰类" prop="forbidProduct" align="center" width="200">
<el-table-column label="联系电话" prop="contactPhone" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span v-if="row.forbidProduct === 1"></span> <span>{{ row.contactPhone }}</span>
<span v-if="row.forbidProduct === 0"></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="今年销售收入总额,单位:万" prop="grossSalesOne" align="center" width="200">
<el-table-column label="税务号" prop="theTaxNo" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.grossSalesOne }}</span> <span>{{ row.theTaxNo }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="前年销售收入总额,单位:万" prop="grossSalesThree" align="center" width="200">
<!-- <el-table-column label="注册地" prop="theTaxNo" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.grossSalesThree }}</span> <span>{{ row.cities[0] }}-{{ row.cities[1] }}-{{ row.cities[2] }}-{{ row.registrationPlace }}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="去年销售收入总额,单位:万" prop="grossSalesTwo" align="center" width="200">
<el-table-column label="联系人" prop="name" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.grossSalesTwo }}</span> <span>{{ row.name }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="是否拥有有效期内高新技术企业资格证书" prop="highNewTechnologyEnterprise" align="center" width="200">
<el-table-column label="类型" prop="incubator" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span v-if="row.highNewTechnologyEnterprise === 1"></span> <span>{{ row.incubator }}</span>
<span v-if="row.highNewTechnologyEnterprise === 0"></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="高新技术产品(服务)费用,单位:万" prop="highNewTechnologyFee" align="center" width="200">
<el-table-column label="操作" align="center" width="330" class-name="small-padding fixed-width">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.highNewTechnologyFee }}</span> <el-button type="primary" size="mini" @click="scoreDetail(row.id)">企业测评详情</el-button>
<el-button size="mini" type="primary" @click="enterpriseDetail(row.id)">企业详细信息</el-button>
<el-button size="mini" type="primary" @click="enterpriseCategoryQueryAll(row.id)">企业标签</el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="企业详细信息id" prop="id" align="center" width="200"> </el-table>
<!-- 企业标签弹框 -->
<el-dialog title="企业标签" :visible.sync="dialogFormVisible3">
<el-table v-loading="listLoading" :data="categoryList" border fit highlight-current-row>
<!-- <el-table-column label="标签ID" prop="ID" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.id }}</span> <span>{{ row.id }}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="前一年及当年内有无发生重大安全、重大质量事故和严重环境违法、科研严重失信行为" prop="illegalAct" align="center" width="200">
<template slot-scope="{row}"> <!-- <el-table-column label="企业名称" prop="name" align="center">
<span v-if="row.illegalAct === 1"></span>
<span v-if="row.illegalAct === 0"></span>
</template>
</el-table-column>
<el-table-column label="Ⅰ类知识产权数" prop="intellectualPropertyRightI" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.illegalAct }}</span>
</template>
</el-table-column>
<el-table-column label="Ⅱ类知识产权" prop="intellectualPropertyRightII" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.intellectualPropertyRightII }}</span>
</template>
</el-table-column>
<el-table-column label="对企业主要产品(服务)发挥核心支持作用的技术" prop="mainProductTechnology" align="center" width="200">
<template slot-scope="{row}">
<span v-if="row.mainProductTechnology === 0">其他</span>
<span v-if="row.mainProductTechnology === 1">电子信息技术</span>
<span v-if="row.mainProductTechnology === 2">生物与医药技术</span>
<span v-if="row.mainProductTechnology === 3">航空航天技术</span>
<span v-if="row.mainProductTechnology === 4">新材料技术</span>
<span v-if="row.mainProductTechnology === 5">高新技术服务技术</span>
<span v-if="row.mainProductTechnology === 6">新能源及节能技术</span>
<span v-if="row.mainProductTechnology === 7">资源与环境技术</span>
<span v-if="row.mainProductTechnology === 8">高新技术改造传统产业</span>
</template>
</el-table-column>
<el-table-column label="企业名称" prop="name" align="center" width="200">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.name }}</span> <span>{{ row.name }}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="企业是否拥有经认定的省部级以上研发机构" prop="organization" align="center" width="200">
<template slot-scope="{row}"> <!-- <el-table-column label="创建时间" prop="createdAt" align="center">
<span v-if="row.organization === 0"></span>
<span v-if="row.organization === 1"></span>
</template>
</el-table-column>
<el-table-column label="rdexpensesOne" prop="rdexpensesOne" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.rdexpensesOne }}</span>
</template>
</el-table-column>
<el-table-column label="rdexpensesThree" prop="rdexpensesThree" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.rdexpensesThree }}</span>
</template>
</el-table-column>
<el-table-column label="rdexpensesTwo" prop="rdexpensesTwo" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.rdexpensesTwo }}</span>
</template>
</el-table-column>
<el-table-column label="企业近五年内是否主导制定过国际标准、国家标准或行业标准" prop="standard" align="center" width="200">
<template slot-scope="{row}">
<span v-if="row.standard === 1"></span>
<span v-if="row.standard === 0"></span>
</template>
</el-table-column>
<el-table-column label="科技人员总数" prop="technicians" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.technicians }}</span>
</template>
</el-table-column>
<el-table-column label="企业近五年内是否获得过国家级科技奖励,并在获奖单位中排在前三名" prop="technologyAwards" align="center" width="200">
<template slot-scope="{row}">
<span v-if="row.technologyAwards === 1"></span>
<span v-if="row.technologyAwards === 0"></span>
</template>
</el-table-column>
<el-table-column label="资产总额,单位:万" prop="totalAssets" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.totalAssets }}</span>
</template>
</el-table-column>
<el-table-column label="今年成本费用支出总额,单位:万" prop="totalCostExpensesOne" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.totalCostExpensesOne }}</span>
</template>
</el-table-column>
<el-table-column label="前年成本费用支出总额,单位:万" prop="totalCostExpensesThree" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.totalCostExpensesThree }}</span>
</template>
</el-table-column>
<el-table-column label="去年成本费用支出总额,单位:万" prop="grossSalesThree" align="center" width="200">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.illegalAct }}</span> <span>{{ row.createdAt }}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="职工总数" prop="workforce" align="center" width="200">
<el-table-column label="企业类型标签" prop="category" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{ row.workforce }}</span> <span>{{ row.category }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="dialogFormVisible3=false">
确定
</el-button>
</div>
</el-dialog>
<!-- 企业详细信息弹框 -->
<el-dialog title="企业详细信息展示" :visible.sync="dialogFormVisible">
<el-form ref="dataForm" :model="detaillist" label-position="left" label-width="70px" style="width: auto; margin-left:50px; height:550px; overflow-y:auto; overflow-x:hidden">
<el-form-item label="企业ID" prop="id" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.id }}</span>
</el-form-item>
<el-form-item label="企业名称" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.name }}</span>
</el-form-item>
<el-form-item label="企业是否被列入经营异常名录和严重违法失信企业名单" style="width: 180%;margin-top:-20px" prop="id" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.dishonestEnterprise }}</span>
</el-form-item>
<el-form-item label="产品和服务是否属于国家规定的禁止、限制和淘汰类" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.forbidProduct }}</span>
</el-form-item>
<el-form-item label="今年销售收入总额,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.grossSalesOne }}</span>
</el-form-item>
<el-form-item label="前年销售收入总额,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.grossSalesThree }}</span>
</el-form-item>
<el-form-item label="去年销售收入总额,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.grossSalesTwo }}</span>
</el-form-item>
<el-form-item label="是否拥有有效期内高新技术企业资格证书" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.highNewTechnologyEnterprise }}</span>
</el-form-item>
<el-form-item label="高新技术产品(服务)费用,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.highNewTechnologyFee }}</span>
</el-form-item>
<el-form-item label="前一年及当年内有无发生重大安全、重大质量事故和严重环境违法、科研严重失信行为" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.illegalAct }}</span>
</el-form-item>
<el-form-item label="Ⅰ类知识产权数" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.intellectualPropertyRightI }}</span>
</el-form-item>
<el-form-item label="Ⅱ类知识产权" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.intellectualPropertyRightII }}</span>
</el-form-item>
<el-form-item label="对企业主要产品(服务)发挥核心支持作用的技术" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.mainProductTechnology }}</span>
</el-form-item>
<el-form-item label="企业是否拥有经认定的省部级以上研发机构" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.organization }}</span>
</el-form-item>
<el-form-item label="今年研发费用总额" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.rdexpensesOne }}</span>
</el-form-item>
<el-form-item label="前年研发费用总额" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.rdexpensesThree }}</span>
</el-form-item>
<el-form-item label="去年研发费用总额" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.rdexpensesTwo }}</span>
</el-form-item>
<el-form-item label="企业近五年内是否主导制定过国际标准、国家标准或行业标准" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.standard }}</span>
</el-form-item>
<el-form-item label="科技人员总数" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.technicians }}</span>
</el-form-item>
<el-form-item label="企业近五年内是否获得过国家级科技奖励,并在获奖单位中排在前三名" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.technologyAwards }}</span>
</el-form-item>
<el-form-item label="资产总额,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.totalAssets }}</span>
</el-form-item>
<el-form-item label="今年成本费用支出总额,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.totalCostExpensesOne }}</span>
</el-form-item>
<el-form-item label="前年成本费用支出总额,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.totalCostExpensesThree }}</span>
</el-form-item>
<el-form-item label="去年成本费用支出总额,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.totalCostExpensesTwo }}</span>
</el-form-item>
<el-form-item label="职工总数" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.workforce }}</span>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="dialogFormVisible=false">
确定
</el-button>
</div>
</el-dialog> </el-dialog>
<!-- 测评详细信息弹框 --> <!-- 测评详细信息弹框 -->
<el-dialog title="测评详细信息" :visible.sync="dialogFormVisible1"> <el-dialog title="测评详细信息" :visible.sync="dialogFormVisible1">
<el-table v-loading="listLoading" :data="enterpriseScore" border fit highlight-current-row style="width: 100%;"> <el-form ref="dataForm" :model="enterpriseScore" label-position="left" label-width="70px" style="width: 400px; margin-left:50px;">
<el-table-column label="ID" prop="id" align="center" width="200">
<template slot-scope="{row}"> <el-form-item label="企业ID" prop="id" style="width: 180%">
<span>{{ row.id }}</span> <span style="margin-left:200px;">{{ enterpriseScore.id }}</span>
</template> </el-form-item>
</el-table-column>
<el-table-column label="原因" prop="reason" align="center" width="200"> <el-form-item label="测评时间" prop="createdAt" style="width: 180%">
<template slot-scope="{row}"> <span style="margin-left:200px;">{{ enterpriseScore.createdAt }}</span>
<span>{{ row.reason }}</span> </el-form-item>
</template>
</el-table-column> <el-form-item label="测评结果" prop="result" style="width: 180%">
<el-table-column label="测评结果" prop="result" align="center" width="200"> <span v-if="enterpriseScore.result === 1" style="margin-left:200px;">通过</span>
<template slot-scope="{row}"> <span v-if="enterpriseScore.result === 0" style="margin-left:200px;">未通过</span>
<!-- <span>{{ row.result }}</span> --> </el-form-item>
<span v-if="row.result === 1">通过</span>
<span v-if="row.result === 0">未通过</span> <el-form-item label="理由" prop="reason" style="width: 180%">
</template> <span style="margin-left:200px;">{{ enterpriseScore.reason }}</span>
</el-table-column> </el-form-item>
<el-table-column label="测评类型" prop="type" align="center" width="200">
<template slot-scope="{row}"> <el-form-item label="测评类型" prop="type" style="width: 180%">
<span>{{ row.type }}</span> <span v-if="enterpriseScore.type === 0" style="margin-left:200px;">科小</span>
</template> <span v-if="enterpriseScore.type === 1" style="margin-left:200px;">高企</span>
</el-table-column> </el-form-item>
<el-table-column label="创建时间" prop="createdAt" align="center" width="200"> </el-form>
<template slot-scope="{row}"> <div slot="footer" class="dialog-footer">
<span>{{ row.type }}</span> <el-button type="primary" @click="dialogFormVisible1=false">
</template> 确定
</el-table-column> </el-button>
</el-table> </div>
</el-dialog> </el-dialog>
<pagination v-show="total>0" :total="total" :page.sync="data.pageNum" :limit.sync="data.pageSize" @pagination="getList" /> <pagination v-show="total>0" :total="total" :page.sync="data.pageNum" :limit.sync="data.pageSize" @pagination="getList" />
</div> </div>
@ -249,14 +259,41 @@ export default {
data() { data() {
return { return {
enterpriselist: [], enterpriselist: [],
detaillist: [], detaillist: {
enterpriseScore: [], dishonestEnterprise: '',
forbidProduct: '',
grossSalesOne: '',
grossSalesThree: '',
grossSalesTwo: '',
highNewTechnologyEnterprise: '',
highNewTechnologyFee: '',
id: '',
illegalAct: '',
intellectualPropertyRightI: '',
intellectualPropertyRightII: '',
mainProductTechnology: '',
name: '',
organization: '',
rdexpensesOne: '',
rdexpensesThree: '',
rdexpensesTwo: '',
standard: '',
technicians: '',
technologyAwards: '',
totalAssets: '',
totalCostExpensesOne: '',
totalCostExpensesThree: '',
totalCostExpensesTwo: '',
workforce: ''
},
enterpriseScore: {},
categoryList: [], categoryList: [],
dialogFormVisible: false, dialogFormVisible: false,
dialogFormVisible1: false, dialogFormVisible1: false,
dialogFormVisible3: false, dialogFormVisible3: false,
data: { data: {
type: '', type: '',
incubatorType: '',
pageNum: 1, pageNum: 1,
pageSize: 20 pageSize: 20
}, },
@ -280,49 +317,57 @@ export default {
that.listLoading = true that.listLoading = true
await api.enterpriseQueryAll(that.data).then((res) => { await api.enterpriseQueryAll(that.data).then((res) => {
that.enterpriselist = res.list that.enterpriselist = res.list
console.log(res)
console.log(this.enterpriselist)
that.total = res.total - 0 that.total = res.total - 0
setTimeout(() => { setTimeout(() => {
that.listLoading = false that.listLoading = false
}, 1000) }, 1000)
}) })
}, },
search() {
const that = this
if (that.data.type === '') {
that.data.incubatorType = ''
} else {
if (that.data.type - 0 === 0 || that.data.type - 0 === 1) {
that.data.incubatorType = that.data.type - 0
} else {
that.data.incubatorType = ''
}
}
this.getList()
},
async enterpriseDetail(id) { async enterpriseDetail(id) {
const that = this const that = this
for (const key in that.detaillist) {
that.detaillist[key] = ''
}
that.listLoading = true that.listLoading = true
await api.enterpriseAdditionalQueryById(id).then((res) => { await api.enterpriseAdditionalQueryById(id).then((res) => {
console.log(res) if (res) {
that.$set(that.detaillist, 0,res) that.detaillist = res
}
setTimeout(() => { setTimeout(() => {
that.listLoading = false that.listLoading = false
}, 1000) }, 1000)
})
that.dialogFormVisible = true that.dialogFormVisible = true
})
}, },
async enterpriseCategoryQueryAll(id) { async enterpriseCategoryQueryAll(id) {
const that = this const that = this
console.log(id) that.listLoading = true
await api.enterpriseCategoryQueryAll(id).then((res) => { await api.enterpriseCategoryQueryAll(id).then((res) => {
that.categoryList=res.list that.categoryList = res.list
console.log(res) that.dialogFormVisible3 = true
console.log(that.categoryList) that.listLoading = false
setTimeout(() => {
that.listLoading = true
}, 1000)
}) })
that.dialogFormVisible3=false
}, },
async scoreDetail(id) { async scoreDetail(id) {
const that = this const that = this
that.listLoading = true that.listLoading = true
await api.enterpriseScoreQueryById(id).then((res) => { await api.enterpriseScoreQueryById(id).then((res) => {
that.$set(that.enterpriseScore, 0,res) that.enterpriseScore = res
console.log(this.enterpriseScore)
setTimeout(() => { setTimeout(() => {
that.listLoading = false that.listLoading = false
}, 1000) }, 1000)

2
vue.config.js

@ -50,7 +50,7 @@ module.exports = {
resolve: { resolve: {
alias: { alias: {
'@': resolve('src'), '@': resolve('src'),
'api': resolve('src/api'), 'api': resolve('src/api')
} }
} }
}, },

Loading…
Cancel
Save