Browse Source

9/25

master
Lihong@123456 5 years ago
parent
commit
1e615d876d
  1. 42
      src/api/demand.js
  2. 49
      src/api/enterprise.js
  3. 135
      src/views/enterprise/demand.vue
  4. 323
      src/views/enterprise/enterprise.vue

42
src/api/demand.js

@ -0,0 +1,42 @@
import request from '@/utils/request'
const demand = 'enterprise/demand'
const demandPublish = 'enterprise/demandPublish'
export function demandQuery(data) {
return request({
url: `/gateway${demand}/demandQuery`,
method: 'post',
data: {
param: {
pageNum: data.pageNum,
pageSize: data.pageSize
}
}
})
}
export function updateDemandStatus(data) {
return request({
url: `/gateway${demand}/updateDemandStatus`,
method: 'post',
data: {
param: {
id: data.id,
dealStatus: data.dealStatus
}
}
})
}
export function demandPublishAdd(data) {
return request({
url: `/gateway${demandPublish}/demandPublishAdd`,
method: 'post',
data: {
content: data.content,
demandId: data.id,
type: data.type
}
})
}

49
src/api/enterprise.js

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

135
src/views/enterprise/demand.vue

@ -1,19 +1,148 @@
<template>
<div class="app-container">
企业需求管理界面
<el-table v-loading="listLoading" :data="demandlist" border fit highlight-current-row style="width: 100%;">
<el-table-column label="联系电话" prop="contactPhone" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.contactPhone }}</span>
</template>
</el-table-column>
<el-table-column label="联系人" prop="contacts" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.contacts }}</span>
</template>
</el-table-column>
<el-table-column label="需求内容" prop="content" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.content}}</span>
</template>
</el-table-column>
<el-table-column label="创建时间" prop="createdAt" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.createdAt }}</span>
</template>
</el-table-column>
<el-table-column label="处理状态" prop="dealStatus" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.dealStatus }}</span>
</template>
</el-table-column>
<el-table-column label="需求id" prop="id" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.id}}</span>
</template>
</el-table-column>
<el-table-column label="企业名称" prop="name" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.name }}</span>
</template>
</el-table-column>
<el-table-column label="类型" prop="type" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.type }}</span>
</template>
</el-table-column>
<el-table-column label="修改时间" prop="updatedAt" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.updatedAt }}</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="edit(row)" >修改处理状态</el-button>
<el-button size="mini" type="danger" @click="declare(row)">发榜</el-button>
</template>
</el-table-column>
</el-table>
<!-- 修改处理状态弹窗 -->
<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-item label="ID" prop="id" style="width: 180%">
<el-input v-model="temp.id" />
</el-form-item>
<el-form-item label="类型">
<el-select
v-model="temp.dealStatus"
placeholder="请选类型"
style="width: 400px;"
>
<el-option label="未处理" value="0" />
<el-option label="已处理 " value="1" />
<el-option label="已发榜 " value="2" />
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">
取消
</el-button>
<el-button type="primary" @click="editDeal()">
提交
</el-button>
</div>
</el-dialog>
<pagination v-show="total>0" :total="total" :page.sync="data.pageNum" :limit.sync="data.pageSize" @pagination="getList" />
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import * as api from '@/api/demand'
import Pagination from '@/components/Pagination' // secondary package based on el-pagination
export default {
name: 'Demand',
components: { Pagination },
data() {
return {
demandlist: [],
data: {
pageNum: 1,
pageSize: 10
},
total: 0,
listLoading: true,
dialogFormVisible: false,
temp: []
}
},
computed: {
...mapGetters(['name'])
},
created() {
this.getList()
},
methods: {
async getList() {
const that = this
await api.demandQuery(that.data).then((res) => {
that.demandlist = res.list
that.total = res.total - 0
setTimeout(() => {
that.listLoading = false
}, 1000)
})
},
edit(row) {
const that = this
that.temp = Object.assign({}, row)
that.dialogFormVisible = true
},
async editDeal() {
const that = this
await api.updateDemandStatus(that.temp).then((res) => {
})
that.dialogFormVisible = false
that.getList()
},
async declare(row) {
const that = this
console.log(row.id)
that.temp = Object.assign({}, row)
await api.demandPublishAdd(that.temp).then((res) => {
})
}
}
}
</script>
<style scoped>
</style>

323
src/views/enterprise/enterprise.vue

@ -1,14 +1,333 @@
<template>
<div class="app-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-option label="标签二" value="0" />
<el-option label="标签二" value="1" />
</el-select>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-search" @click="search()">
搜索
</el-button>
<!-- 企业列表 -->
<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">
<template slot-scope="{row}">
<span>{{ row.id }}</span>
</template>
</el-table-column>
<el-table-column label="名字" prop="name" align="center" width="500">
<template slot-scope="{row}">
<span>{{ row.name }}</span>
</template>
</el-table-column>
<el-table-column label="类型" prop="name" align="center" width="500">
<template slot-scope="{row}">
<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}">
<span>{{row.name}}</span>
</template>
</el-table-column>
</el-table>
</el-dialog>
<!-- 企业详细信息弹框 -->
<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}">
<span v-if="row.dishonestEnterprise === 1"></span>
<span v-if="row.dishonestEnterprise === 0"></span>
</template>
</el-table-column>
<el-table-column label="产品和服务是否属于国家规定的禁止、限制和淘汰类" prop="forbidProduct" align="center" width="200">
<template slot-scope="{row}">
<span v-if="row.forbidProduct === 1"></span>
<span v-if="row.forbidProduct === 0"></span>
</template>
</el-table-column>
<el-table-column label="今年销售收入总额,单位:万" prop="grossSalesOne" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.grossSalesOne }}</span>
</template>
</el-table-column>
<el-table-column label="前年销售收入总额,单位:万" prop="grossSalesThree" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.grossSalesThree }}</span>
</template>
</el-table-column>
<el-table-column label="去年销售收入总额,单位:万" prop="grossSalesTwo" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.grossSalesTwo }}</span>
</template>
</el-table-column>
<el-table-column label="是否拥有有效期内高新技术企业资格证书" prop="highNewTechnologyEnterprise" align="center" width="200">
<template slot-scope="{row}">
<span v-if="row.highNewTechnologyEnterprise === 1"></span>
<span v-if="row.highNewTechnologyEnterprise === 0"></span>
</template>
</el-table-column>
<el-table-column label="高新技术产品(服务)费用,单位:万" prop="highNewTechnologyFee" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.highNewTechnologyFee }}</span>
</template>
</el-table-column>
<el-table-column label="企业详细信息id" prop="id" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.id }}</span>
</template>
</el-table-column>
<el-table-column label="前一年及当年内有无发生重大安全、重大质量事故和严重环境违法、科研严重失信行为" prop="illegalAct" align="center" width="200">
<template slot-scope="{row}">
<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}">
<span>{{ row.name }}</span>
</template>
</el-table-column>
<el-table-column label="企业是否拥有经认定的省部级以上研发机构" prop="organization" align="center" width="200">
<template slot-scope="{row}">
<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}">
<span>{{ row.illegalAct }}</span>
</template>
</el-table-column>
<el-table-column label="职工总数" prop="workforce" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.workforce }}</span>
</template>
</el-table-column>
</el-table>
</el-dialog>
<!-- 测评详细信息弹框 -->
<el-dialog title="测评详细信息" :visible.sync="dialogFormVisible1">
<el-table v-loading="listLoading" :data="enterpriseScore" border fit highlight-current-row style="width: 100%;">
<el-table-column label="ID" prop="id" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.id }}</span>
</template>
</el-table-column>
<el-table-column label="原因" prop="reason" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.reason }}</span>
</template>
</el-table-column>
<el-table-column label="测评结果" prop="result" align="center" width="200">
<template slot-scope="{row}">
<!-- <span>{{ row.result }}</span> -->
<span v-if="row.result === 1">通过</span>
<span v-if="row.result === 0">未通过</span>
</template>
</el-table-column>
<el-table-column label="测评类型" prop="type" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.type }}</span>
</template>
</el-table-column>
<el-table-column label="创建时间" prop="createdAt" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.type }}</span>
</template>
</el-table-column>
</el-table>
</el-dialog>
<pagination v-show="total>0" :total="total" :page.sync="data.pageNum" :limit.sync="data.pageSize" @pagination="getList" />
</div>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import * as api from '@/api/enterprise'
import Pagination from '@/components/Pagination' // secondary package based on el-pagination
export default {
name: 'Enterprise',
components: { Pagination },
data() {
return {
enterpriselist: [],
detaillist: [],
enterpriseScore: [],
categoryList: [],
dialogFormVisible: false,
dialogFormVisible1: false,
dialogFormVisible3: false,
data: {
type: '',
pageNum: 1,
pageSize: 20
},
temp: {
name: '1',
type: '1'
},
total: 0,
listLoading: false
}
},
computed: {
...mapGetters(['name'])
},
created() {
this.getList()
},
methods: {
async getList() {
const that = this
that.listLoading = true
await api.enterpriseQueryAll(that.data).then((res) => {
that.enterpriselist = res.list
console.log(res)
console.log(this.enterpriselist)
that.total = res.total - 0
setTimeout(() => {
that.listLoading = false
}, 1000)
})
},
async enterpriseDetail(id) {
const that = this
that.listLoading = true
await api.enterpriseAdditionalQueryById(id).then((res) => {
console.log(res)
that.$set(that.detaillist, 0,res)
setTimeout(() => {
that.listLoading = false
}, 1000)
})
that.dialogFormVisible = true
},
async enterpriseCategoryQueryAll(id) {
const that = this
console.log(id)
await api.enterpriseCategoryQueryAll(id).then((res) => {
that.categoryList=res.list
console.log(res)
console.log(that.categoryList)
setTimeout(() => {
that.listLoading = true
}, 1000)
})
that.dialogFormVisible3=false
},
async scoreDetail(id) {
const that = this
that.listLoading = true
await api.enterpriseScoreQueryById(id).then((res) => {
that.$set(that.enterpriseScore, 0,res)
console.log(this.enterpriseScore)
setTimeout(() => {
that.listLoading = false
}, 1000)
})
that.dialogFormVisible1 = true
}
}
}

Loading…
Cancel
Save