项目库、申报模板管理、企业库、智能提醒修改

des
吕天方 6 months ago
parent ba1d97c3b1
commit 00ddf63346

@ -5,8 +5,8 @@ VUE_APP_TITLE = 金鸡湖现代服务业品牌管理系统
ENV = 'development'
# 金鸡湖现代服务业品牌管理系统/开发环境
# VUE_APP_BASE_API = 'http://192.168.0.106:9040'
VUE_APP_BASE_API = 'http://39.101.188.84:9040'
VUE_APP_BASE_API = 'http://192.168.0.115:9040'
# VUE_APP_BASE_API = 'http://39.101.188.84:9040'
# VUE_APP_BASE_API = 'https://idp.sipac.gov.cn/api'
# 路由懒加载

@ -1,6 +1,6 @@
{
"name": "ruoyi",
"version": "1.0.202407080852",
"version": "1.0.202407100857",
"description": "金鸡湖现代服务业品牌管理系统",
"author": "若依",
"license": "MIT",

@ -18,7 +18,7 @@ export function jEnterpriseContactNew(data) {
})
}
// 删除企业联系人
// 修改企业联系人
export function jEnterpriseContactChange(data) {
return request({
url: "/jjh/jEnterpriseContact/edit",
@ -36,10 +36,9 @@ export function jEnterpriseContactId(id) {
}
// 删除企业联系人
export function jEnterpriseContactDel(params) {
export function jEnterpriseContactDel(id) {
return request({
url: "/jjh/jEnterpriseContact",
url: "/jjh/jEnterpriseContact/" + id,
method: "post",
params
})
}

@ -45,11 +45,10 @@ export function jSmartRemindersId(id) {
}
// 删除智能提醒
export function jSmartRemindersDel(params) {
export function jSmartRemindersDel(id) {
return request({
url: "/jjh/jSmartReminders",
url: "/jjh/jSmartReminders/" + id,
method: "post",
params
})
}

@ -36,10 +36,9 @@ export function jPolicyFileId(id) {
}
// 删除政策文件
export function jPolicyFileDel(params) {
export function jPolicyFileDel(id) {
return request({
url: "/jjh/jPolicyFile",
url: "/jjh/jPolicyFile/" + id,
method: "post",
params
})
}

@ -16,11 +16,10 @@ export function jProjectId(id) {
})
}
// 删除单个项目
export function jProjectDel(params) {
export function jProjectDel(id) {
return request({
url: "/jjh/jProject",
url: "/jjh/jProject/" + id,
method: "post",
params
})
}

@ -1,5 +1,14 @@
import request from '@/utils/request'
// 查询字典不带分页的数据列表
export function getAllList(query) {
return request({
url: '/system/dict/data/getAllList',
method: 'get',
params: query
})
}
// 查询字典数据列表
export function listData(query) {
return request({

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询登录日志列表
export function list(query) {
return request({
url: '/system/logininfor/list',
url: '/monitor/logininfor/list',
method: 'get',
params: query
})
@ -12,7 +12,7 @@ export function list(query) {
// 删除登录日志
export function delLogininfor(infoId) {
return request({
url: '/system/logininfor/' + infoId,
url: '/monitor/logininfor/' + infoId,
method: 'post'
})
}
@ -20,14 +20,14 @@ export function delLogininfor(infoId) {
// 解锁用户登录状态
export function unlockLogininfor(userName) {
return request({
url: '/system/logininfor/unlock/' + userName,
url: '/monitor/logininfor/unlock/' + userName,
method: 'get'
})
}
// 清空登录日志
export function cleanLogininfor() {
return request({
url: '/system/logininfor/clean',
url: '/monitor/logininfor/clean',
method: 'post'
})
}

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询操作日志列表
export function list(query) {
return request({
url: '/system/operlog/list',
url: '/monitor/operlog/list',
method: 'get',
params: query
})
@ -12,7 +12,7 @@ export function list(query) {
// 删除操作日志
export function delOperlog(operId) {
return request({
url: '/system/operlog/' + operId,
url: '/monitor/operlog/' + operId,
method: 'post'
})
}
@ -20,7 +20,7 @@ export function delOperlog(operId) {
// 清空操作日志
export function cleanOperlog() {
return request({
url: '/system/operlog/clean',
url: '/monitor/operlog/clean',
method: 'post'
})
}

@ -119,6 +119,9 @@
background-color: #fff;
header {
margin-bottom: 25px;
// .project_big_type {
// width: 400px;
// }
.btnss {
display: flex;
align-items: center;
@ -184,7 +187,7 @@
height: calc(100% - 40px);
}
.left-info{
height: calc(25% - 5px);
height: calc(30% - 5px);
background-color: white;
padding: 28px 28px 0 28px;
.project-info-title {
@ -196,7 +199,7 @@
}
.el-descriptions-item__label {
background: #F5F8FA;
width: 230px;
width: 180px;
// font-family: PingFang-SC, PingFang-SC;
font-weight: 500;
font-size: 14px;
@ -205,7 +208,7 @@
.el-descriptions-item__content {
// font-family: PingFang-SC, PingFang-SC;
font-weight: 500;
width: 430px;
width: 480px;
font-size: 14px;
color: #333333;
}
@ -225,10 +228,19 @@
margin-left: 0;
color: #1890FF;
}
.project_info_box {
.dict_type {
min-width: 32%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
cursor: pointer;
}
}
}
}
.left-tabs{
height: calc(75% - 5px);
height: calc(70% - 5px);
margin-top: 10px;
background-color: white;
.tabs-top {
@ -780,7 +792,7 @@
text-align: left;
}
.el-form-item__content {
.el-select,.el-date-editor {
.el-select,.el-date-editor,.el-cascader {
// width: 280px;
width: calc(100% - 20px);
}
@ -852,7 +864,7 @@
th, td {
border: 1px solid #cccccc;
width: 80px;
width: 100px;
height: 37px;
text-align: center;
}

@ -83,7 +83,8 @@
{{ info.xydj }}
</el-descriptions-item>
<el-descriptions-item labelClassName="tabOneLabel" contentClassName="tabOneContent" label="企业规模">
{{ info.qygm }}
<!-- {{ info.qygm }} -->
{{ info.type == 1 ? "规上" : info.type == 2 ? "规下" : ""}}
</el-descriptions-item>
<el-descriptions-item labelClassName="tabOneLabel" contentClassName="tabOneContent" label="法定代表人姓名">
{{ info.fddbrxm }}

@ -13,16 +13,28 @@
<el-table-column label="来源机构" prop="dwLyjg" />
</el-table>
</section>
<div id="L-header-list" class="project-info-title" style="margin-top: 20px;">常用联系人列表</div>
<section>
<el-table v-loading="loadingTwo" class="tabTwo-table" border :data="tableTwoData" :row-class-name="tableRowClassName" > <!-- :max-height="tabHeader" -->
<el-table-column label="联络人姓名" prop="contactName" />
<el-table-column label="联络人职务" prop="contactOffice" />
<el-table-column label="手机号码" prop="contactPhone" />
<el-table-column label="邮箱" prop="contactEmail" />
</el-table>
</section>
</div>
</template>
<script>
import { getjContacts } from "@/api/jin_ji_hu/enterList"
import { getJEnterpriseContact } from "@/api/jin_ji_hu/infoMaintain"
export default {
name:"tabTwo",
data() {
return {
tableData:[],
tableTwoData:[],
loading:false,
loadingTwo:false,
tabHeader: null,
}
},
@ -36,6 +48,7 @@ export default {
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
this.getList()
this.getTwoList()
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);
@ -56,6 +69,13 @@ export default {
this.loading = false;
})
},
getTwoList(){
this.loadingTwo = true;
getJEnterpriseContact({enterpriseCode: this.creditCode || this.$store.state.user.name, current: 1, size: 10}).then(res=>{
this.tableTwoData = res.data.records;
this.loadingTwo = false;
})
},
//
cancalDebounce(){
const element = document.getElementById('L-contacts-main'); // ID

@ -7,6 +7,22 @@
<el-form-item label="企业名称:" prop="qymc">
<el-input v-model.trim="formInline.qymc" placeholder="请输入内容"></el-input>
</el-form-item>
<el-form-item label="企业规模:" prop="type">
<el-select class="ignoreElement" v-model="formInline.type" placeholder="请选择">
<el-option
label="全部"
value="">
</el-option>
<el-option
label="规上"
value="1">
</el-option>
<el-option
label="规下"
value="2">
</el-option>
</el-select>
</el-form-item>
<!-- <el-form-item label="统一社会信用代码:" prop="enterUnit">
<el-input v-model.trim="formInline.enterUnit" placeholder="请输入内容"></el-input>
</el-form-item>
@ -47,7 +63,11 @@
<!-- <el-table-column label="登记注册统计类别" prop="statisticalCategories" /> -->
<el-table-column label="企业类型" prop="qylxmc" />
<el-table-column label="行业名称" prop="hymc" />
<el-table-column label="产业类型" prop="cylx" />
<el-table-column label="企业规模" prop="cylx">
<template slot-scope="scope">
<span>{{ scope.row.type == 1 ? "规上" : scope.row.type == 2 ? "规下" : ""}}</span>
</template>
</el-table-column>
<el-table-column label="成立日期" prop="clrq" width="200">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.clrq,"{y}-{m}-{d}") }}</span>
@ -145,6 +165,7 @@ export default {
loading:false,
formInline: {
qymc: '',
type: null,
},
tableData:[],
tabHeader: undefined,

@ -319,7 +319,7 @@ export default {
type: "warning",
})
.then(() => {
jEnterpriseContactDel({ id: row.id }).then((res) => {
jEnterpriseContactDel(row.id).then((res) => {
this.getList();
this.$message({
type: "success",

@ -7,6 +7,32 @@
<el-form-item label="规则名称:" prop="rulesName">
<el-input v-model.trim="formInline.rulesName" placeholder="请输入内容"></el-input>
</el-form-item>
<el-form-item label="提醒类型:" prop="alertType">
<el-select class="ignoreElement" v-model="formInline.alertType" placeholder="请选择">
<!-- <el-option
label="全局自定义通知"
value="0">
</el-option>
<el-option
label="申报任务即将结束"
value="1">
</el-option>
<el-option
label="项目即将建设完成"
value="2">
</el-option>
<el-option
label="项目自定义通知"
value="3">
</el-option> -->
<el-option
v-for="dict in dict.type.alert_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button size="mini" @click="resetQuery('queryFrom')"></el-button>
<el-button size="mini" type="primary" @click="handleQuery('queryFrom')"></el-button>
@ -21,6 +47,11 @@
<section>
<el-table v-loading="loading" :data="tableData" :row-class-name="tableRowClassName" :height="tabHeader" :max-height="tabHeader">
<el-table-column label="规则名称" prop="rulesName" />
<el-table-column label="提醒类型" prop="alertType">
<template slot-scope="scope">
<dict-tag :options="dict.type.alert_type" :value="scope.row.alertType"/>
</template>
</el-table-column>
<el-table-column label="提醒对象" prop="alertRecipients">
<template slot-scope="scope">
<span>{{ scope.row.alertRecipients == 1 ? "企业用户" : scope.row.alertRecipients == 2 ? "政务用户" : "" }}</span>
@ -150,6 +181,7 @@ import myDialog from "@/views/components/myDialog/index.vue"
import { getjSmartReminders, jSmartRemindersNew, updateNdqChange, updateDqChange, jSmartRemindersId, jSmartRemindersDel } from "@/api/jin_ji_hu/intelligentReminder"
export default {
components:{myPagination, myDialog},
dicts: ['alert_type'],
data() {
return {
total:0,
@ -160,6 +192,7 @@ export default {
loading:false,
formInline: {
rulesName: '',
alertType: "",
},
tableData:[],
tabHeader: undefined,
@ -354,7 +387,7 @@ export default {
type: "warning",
})
.then(() => {
jSmartRemindersDel({ id: row.id }).then((res) => {
jSmartRemindersDel(row.id).then((res) => {
this.getList();
this.$message({
type: "success",

@ -9,7 +9,7 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="项目分类" prop="projectClassify">
<!-- <el-form-item label="项目分类" prop="projectClassify">
<el-select v-model="queryParams.projectClassify" placeholder="请选择产业领域" clearable>
<el-option
v-for="dict in dict.type.jjh_project_type"
@ -18,6 +18,16 @@
:value="dict.value"
/>
</el-select>
</el-form-item> -->
<el-form-item label="项目小类" prop="projectClassify">
<el-select v-model="queryParams.projectClassify" placeholder="请选择项目小类" clearable>
<el-option
v-for="dict in dict.type.project_small_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<!-- <el-form-item label="产业领域" prop="productArea">
<el-select v-model="queryParams.productArea" placeholder="请选择产业领域" clearable>
@ -73,10 +83,15 @@
</template>
</el-table-column>
<el-table-column prop="templateName" label="模版名称" min-width="150" :show-overflow-tooltip="true"></el-table-column>
<el-table-column label="项目分类" :show-overflow-tooltip="true" min-width="150">
<!-- <el-table-column label="项目分类" :show-overflow-tooltip="true" min-width="150">
<template slot-scope="scope">
<dict-tag :options="dict.type.jjh_project_type" :value="scope.row.projectClassify"/>
</template>
</el-table-column> -->
<el-table-column label="项目小类" :show-overflow-tooltip="true" min-width="150">
<template slot-scope="scope">
<dict-tag :options="dict.type.project_small_type" :value="scope.row.projectSmallType"/>
</template>
</el-table-column>
<el-table-column label="级别" min-width="100">
<template slot-scope="scope">
@ -142,7 +157,7 @@ import { listInfo, exportData } from "@/api/onlineDeclartion/declarationManageme
export default {
name: "Template",
dicts: ['bms_product_area', 'bms_declaration_type', 'bms_responsibility_unit', 'bms_level', 'jjh_project_type'],
dicts: ['bms_product_area', 'bms_declaration_type', 'bms_responsibility_unit', 'bms_level', 'jjh_project_type', "project_small_type"],
data() {
return {
//
@ -155,7 +170,7 @@ export default {
//
queryParams: {
templateName: undefined,
projectClassify: undefined,
projectClassify: [],
// type: undefined,
responsibilityUnit: undefined,
pageNum: 1,
@ -196,6 +211,7 @@ export default {
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.projectSmallType = this.queryParams.projectClassify[0]
this.getList();
},
/** 重置按钮操作 */

@ -371,7 +371,7 @@ export default {
type: "warning",
})
.then(() => {
jPolicyFileDel({ id: row.id }).then((res) => {
jPolicyFileDel(row.id).then((res) => {
this.getList();
this.$message({
type: "success",

@ -15,20 +15,27 @@
</el-date-picker>
</el-form-item>
<el-form-item label="项目分类:">
<el-select class="ignoreElement" v-model="formInline.projectClassify" placeholder="请选择">
<!-- <el-select class="ignoreElement" v-model="formInline.projectClassify" placeholder="请选择">
<el-option
v-for="dict in dict.type.jjh_project_type"
:key="dict.value"
:label="dict.label"
:value="dict.value">
</el-option>
</el-select>
</el-select> -->
<el-cascader
v-model="formInline.projectClassify"
class="ignoreElement project_big_type"
:options="options"
:props="props"
clearable>
</el-cascader>
</el-form-item>
<el-form-item label="项目名称:">
<!-- <el-form-item label="项目名称:">
<el-input v-model.trim="formInline.projectName" placeholder="请输入内容"></el-input>
</el-form-item>
<el-form-item label="申报单位:">
<el-input v-model.trim="formInline.declareUnit" placeholder="请输入内容"></el-input>
</el-form-item> -->
<el-form-item label="单位名称"> <!-- 申报单位 -->
<el-input v-model.trim="formInline.declareUnit" placeholder="请输入单位名称"></el-input>
</el-form-item>
<el-form-item label="状态:">
@ -54,13 +61,30 @@
<section>
<el-table v-loading="loading" :data="tableData" :row-class-name="tableRowClassName" :height="tabHeader" :max-height="tabHeader">
<el-table-column label="年份" key="projectYear" width="200px" prop="projectYear" />
<el-table-column label="项目名称" key="projectName" width="450px" prop="projectName" />
<!-- <el-table-column label="项目名称" key="projectName" width="450px" prop="projectName" />
<el-table-column label="申报单位" key="declareUnit" width="550px" prop="declareUnit" />
<el-table-column label="项目分类" key="projectClassify" width="250px" prop="projectClassify">
<template slot-scope="scope">
<dict-tag :options="dict.type.jjh_project_type" :value="scope.row.projectClassify"/>
</template>
</el-table-column> -->
<el-table-column label="项目大类" key="projectBigType" prop="projectBigType">
<template slot-scope="scope">
<dict-tag :options="dict.type.project_categories" :value="scope.row.projectBigType"/>
</template>
</el-table-column>
<el-table-column label="项目中类" key="projectMiddleType" prop="projectMiddleType">
<template slot-scope="scope">
<dict-tag :options="dict.type.project_middle_type" :value="scope.row.projectMiddleType"/>
</template>
</el-table-column>
<el-table-column label="项目小类" key="projectSmallType" prop="projectSmallType">
<template slot-scope="scope">
<dict-tag :options="dict.type.project_small_type" :value="scope.row.projectSmallType"/>
</template>
</el-table-column>
<el-table-column label="单位名称" key="declareUnit" prop="declareUnit" />
<el-table-column label="信用代码" key="creditCode" prop="creditCode" />
<el-table-column label="状态" key="status" width="200px" prop="status" class-name="table-status">
<template slot-scope="scope">
<p class="statusisZero" v-if="scope.row.status === 0">
@ -122,30 +146,29 @@
></my-pagination>
</section>
</div>
<my-dialog :title="title" @close="importClose" ref="importProject" class="project-import-dialog">
<my-dialog :title="title" @close="importClose" ref="importProject" class="project-import-dialog" width="55%">
<el-row>
<el-col :span="12">
<el-form :model="importFrom" size="small" ref="importFrom" label-width="100px" :rules="rules">
<el-form-item label="项目类:" class="importFormItem" prop="projectClassify">
<!-- <el-form-item label="项目类:" class="importFormItem" prop="projectClassify">
<el-select class="ignoreElement" v-model="importFrom.projectClassify" placeholder="请选择">
<el-option
v-for="dict in dict.type.jjh_project_type"
v-for="dict in dict.type.project_categories"
:key="dict.value"
:label="dict.label"
:value="dict.value">
</el-option>
</el-select>
</el-form-item>
<!-- <el-form-item label="年份:" class="importFormItem" prop="projectYear">
<el-date-picker
class="ignoreElement"
v-model="importFrom.projectYear"
type="year"
format="yyyy"
value-format="yyyy"
placeholder="选择年">
</el-date-picker>
</el-form-item> -->
<el-form-item label="项目分类:" class="importFormItem" prop="projectClassify">
<el-cascader
v-model="importFrom.projectClassify"
:options="optionsTwo"
:props="propsTwo"
@change="handleItemChange"
>
</el-cascader>
</el-form-item>
<el-form-item class="importFormItem">
<!-- <el-button type="primary" class="import-btn" icon="icon iconfont icon-jc-daoru" size="mini" @click="importBtn"></el-button> -->
<div class="btnsFlex">
@ -155,7 +178,7 @@
:limit="1"
v-show="false"
accept=".xlsx, .xls"
:data="importFrom"
:data="importFromChange"
:headers="upload.headers"
:action="upload.url"
:disabled="upload.isUploading"
@ -179,15 +202,17 @@
<div class="importExplain">
<div class="importExplain-title">导入模板说明</div>
<div class="importExplain-content">
<span>"项目名称 申报单位 年份"</span>
<span>"企业名称 统一社会信用代码 年份"</span><br />
<span>以上字段为excel公共字段后面的字段可自定义系统会自动识别并导入</span>
</div>
<div class="importExplain-table">
<table>
<tr>
<th>项目名称</th>
<!-- <th>项目分类</th> -->
<!-- <th>项目名称</th>
<th>申报单位</th>
<th>年份</th> -->
<th>企业名称</th>
<th>统一社会信用代码</th>
<th>年份</th>
<th></th>
</tr>
@ -220,10 +245,10 @@ import myDialog from "@/views/components/myDialog/index.vue"
import { getToken } from "@/utils/auth";
import { clearKey } from "@/utils/object.js"
import { jProject, jProjectDel } from "@/api/jin_ji_hu/project/index"
import { getAllList } from "@/api/system/dict/data";
export default {
components:{myPagination,myDialog},
dicts: ['jjh_project_type', 'bms_approval_status'],
dicts: ['jjh_project_type', 'bms_approval_status', "project_middle_type", "project_small_type", "project_categories"],
data() {
return {
// 01 02
@ -236,29 +261,52 @@ export default {
},
formInline: {
projectClassify: '',
projectName:"",
projectName:[],
declareUnit:"",
projectYear:"",
status: ''
},
options:[
{
value: '选项1',
label: '总部经济'
},{
value: '选项2',
label: '自主品牌先进技术研究院'
},{
value: '选项3',
label: '省现代服务业重点项目'
},{
value: '选项4',
label: '省市服务业领军企业'
},{
value: '选项5',
label: '两业融合试点单位'
},
],
options: [],
optionsTwo: [],
props:{
checkStrictly:true,
lazy:true,
lazyLoad (node, resolve) {
const { level, data, children } = node;
if(children?.length == 0 ) {
getAllList({dictType: data.dict}).then(res=>{
const nodes = Array.from(res.data).map((item)=>{
return {
value:item.dictValue,
label:item.dictLabel,
dict:item.remark,
leaf: level >= 2
}
})
resolve(nodes)
})
}
}
},
propsTwo:{
lazy:true,
lazyLoad (node, resolve) {
const { level, data, children } = node;
if(children?.length == 0 ) {
getAllList({dictType: data.dict}).then(res=>{
const nodes = Array.from(res.data).map((item)=>{
return {
value:item.dictValue,
label:item.dictLabel,
dict:item.remark,
leaf: level >= 2
}
})
resolve(nodes)
})
}
}
},
loading:false,
tableData:[],
title:"导入新项目",
@ -266,6 +314,11 @@ export default {
projectClassify:"",
// projectYear:"",
},
importFromChange:{
projectBigType:"",
projectMiddleType:"",
projectSmallType:"",
},
rules: {
projectClassify: [
{ required: true, message: '请选择项目分类', trigger: 'change' }
@ -294,8 +347,12 @@ export default {
this.formInline.projectClassify = this.$route.params.projectId + '';
this.pagination = { ...this.pagination,...this.formInline };
}
if(this.$route.params.projectName) {
this.formInline.projectName = this.$route.params.projectName;
// if(this.$route.params.projectName) {
// this.formInline.projectName = this.$route.params.projectName;
// this.pagination = { ...this.pagination,...this.formInline };
// }
if(this.$route.params.declareUnit) {
this.formInline.declareUnit = this.$route.params.declareUnit
this.pagination = { ...this.pagination,...this.formInline };
}
if(this.userType == "01") {
@ -303,13 +360,32 @@ export default {
}
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
this.getDataList();
this.getList();
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);
},
methods:{
handleItemChange(value){
this.importFromChange = {
projectBigType: value[0],
projectMiddleType: value[1],
projectSmallType: value[2],
}
},
getDataList(){
getAllList({dictType:"project_categories"}).then(res=>{
res.data.map(item => {
let obj = {};
obj.value = item.dictValue;
obj.label = item.dictLabel;
obj.dict = item.remark;
this.options.push(obj);
this.optionsTwo.push(obj);
})
})
},
//
getList(){
this.loading = true;
@ -331,6 +407,11 @@ export default {
current: 1,
size: 10
}
if(this.formInline.projectClassify.length > 0) {
this.formInline.projectBigType = this.formInline.projectClassify[0]
this.formInline.projectMiddleType = this.formInline.projectClassify[1]
this.formInline.projectSmallType = this.formInline.projectClassify[2]
}
this.pagination = { ...this.pagination,...this.formInline };
// console.log(this.pagination);
// console.log(this.formInline);
@ -354,6 +435,11 @@ export default {
this.$refs.importProject.close();
this.$nextTick(()=>{
this.$refs.importFrom.resetFields();
this.importFromChange = {
projectBigType:"",
projectMiddleType:"",
projectSmallType:"",
}
})
},
//
@ -395,9 +481,13 @@ export default {
},
//
goInfo(row){
let type = 1;
if((row.projectBigType == 5 && row.projectMiddleType == 5 && row.projectSmallType == 8) || row.declareUnit == "江南嘉捷电梯股份有限公司" || row.declareUnit == "苏州工业园区文体旅游局") {
type = 2
}
this.$router.push({
name: 'projectInfo',
query: { userId: row.id }
query: { userId: row.id,type }
})
},
//
@ -408,7 +498,7 @@ export default {
type: "warning",
})
.then(() => {
jProjectDel({ id: row.id }).then((res) => {
jProjectDel(row.id).then((res) => {
this.getList();
this.$message({
type: "success",

@ -91,7 +91,8 @@
{{ info.xydj }}
</el-descriptions-item>
<el-descriptions-item labelClassName="tabOneLabel" contentClassName="tabOneContent" label="企业规模">
{{ info.qygm }}
<!-- {{ info.qygm }} -->
{{ info.type == 1 ? "规上" : info.type == 2 ? "规下" : ""}}
</el-descriptions-item>
<el-descriptions-item labelClassName="tabOneLabel" contentClassName="tabOneContent" label="法定代表人姓名">
{{ info.fddbrxm }}

@ -3,24 +3,39 @@
<el-row :gutter="10" class="L_row">
<el-col :span="18">
<div class="left-info" id="L-header">
<div class="project-info-title">{{ info.projectName }}</div>
<div class="project-info-title">{{ info.declareUnit }}</div>
<el-descriptions class="margin-top" :column="2" size="medium" border v-loading="loading">
<el-descriptions-item label="项目名称">{{ info.projectName }}</el-descriptions-item>
<el-descriptions-item label="项目分类" contentClassName="info-link"><a class="a-primary" @click="goback(info.projectClassify)"><dict-tag :options="dict.type.jjh_project_type" :value="info.projectClassify"/></a></el-descriptions-item>
<el-descriptions-item label="申报单位" contentClassName="info-link">{{ info.declareUnit }}<a v-show="info.declareUnit" @click="goEnterprice(info.creditCode)"></a></el-descriptions-item>
<el-descriptions-item label="企业名称" contentClassName="info-link">{{ info.declareUnit }}<a v-if="$route.query.type == 1" @click="goEnterprice(info.creditCode)"></a></el-descriptions-item>
<el-descriptions-item label="统一社会信用代码">{{ info.creditCode }}</el-descriptions-item>
<el-descriptions-item label="项目分类" contentClassName="info-link">
<div class="project_info_box" style="display: flex;">
<dict-tag class="dict_type" :options="dict.type.project_categories" :value="info.projectBigType" />/<dict-tag class="dict_type" :options="dict.type.project_middle_type" :value="info.projectMiddleType"/>/<dict-tag class="dict_type" :options="dict.type.project_small_type" :value="info.projectSmallType"/>
<!-- <el-tooltip effect="light" :content="getLabel(info.projectBigType,'big')" placement="top">
<dict-tag class="dict_type" :options="dict.type.project_categories" :value="info.projectBigType"/>/
</el-tooltip>
<el-tooltip effect="light" :content="getLabel(info.projectMiddleType,'middle')" placement="top">
<dict-tag class="dict_type" :options="dict.type.project_middle_type" :value="info.projectMiddleType"/>/
</el-tooltip>
<el-tooltip effect="light" :content="getLabel(info.projectSmallType,'small')" placement="top">
<dict-tag class="dict_type" :options="dict.type.project_small_type" :value="info.projectSmallType"/>
</el-tooltip> -->
</div>
</el-descriptions-item>
<!-- <el-descriptions-item label="项目中类" contentClassName="info-link"><a class="a-primary" @click="goback(info.projectMiddleType)"><dict-tag :options="dict.type.project_middle_type" :value="info.projectMiddleType"/></a></el-descriptions-item>
<el-descriptions-item label="项目小类" contentClassName="info-link"><a class="a-primary" @click="goback(info.projectSmallType)"><dict-tag :options="dict.type.project_small_type" :value="info.projectSmallType"/></a></el-descriptions-item> -->
<el-descriptions-item label="年份">{{ info.projectYear }}</el-descriptions-item>
</el-descriptions>
</div>
<div class="left-tabs">
<div class="tabs-top" id="L-pagination">
<div v-for="(item,index) in tabs" :key="index" class="tabs-top-item" :class="active == index ? 'active-item' : ''" @click="active = index">{{ item.name }}</div>
<div v-for="(item,index) in tabs" :key="index" class="tabs-top-item" :class="active == item.id ? 'active-item' : ''" @click="active = item.id">{{ item.name }}</div>
</div>
<div class="tabs-bottom" :style="tabStyle">
<tab-one v-if="active == 0" :detailedInfo="detailedInfo" :fileJson="fileJson" :enterInfo="info"></tab-one>
<tab-two v-if="active == 1" :info="enterInfo"></tab-two>
<tab-three v-if="active == 2"></tab-three>
<tab-four v-if="active == 3" :id="$route.query.userId"></tab-four>
<tab-five v-if="active == 4" :id="Number($route.query.userId)"></tab-five>
<tab-one v-if="active == 1" :detailedInfo="detailedInfo" :fileJson="fileJson" :enterInfo="info"></tab-one>
<tab-two v-if="active == 2" :info="enterInfo"></tab-two>
<tab-three v-if="active == 3"></tab-three>
<tab-four v-if="active == 4" :id="$route.query.userId"></tab-four>
<tab-five v-if="active == 5" :id="Number($route.query.userId)"></tab-five>
</div>
</div>
</el-col>
@ -38,7 +53,7 @@
import { tabOne, tabTwo, tabThree, tabFour, tabFive, projectProgress } from "./components"
import { jProjectId, getUserId } from "@/api/jin_ji_hu/project/index"
export default {
dicts: ['jjh_project_type','jjh_status'],
dicts: ["project_middle_type", "project_small_type", "project_categories"],
components:{
tabOne,
tabTwo,
@ -53,28 +68,60 @@ export default {
enterpriseTabs:[
{
name: "项目详细信息",
id: 1,
},{
name: "申报单位信息",
id: 2,
},{
name: "资金拨付进度",
id: 3,
}
],
enterpriseSpecialTabs:[
{
name: "项目详细信息",
id: 1,
},{
name: "资金拨付进度",
id: 3,
}
],
govSpecialTabs:[
{
name: "项目详细信息",
id: 1,
},{
name: "资金拨付进度",
id: 3,
},{
name: "备忘录",
id: 4,
},{
name: "智能提醒",
id: 5,
},
],
govTabs:[
{
name: "项目详细信息",
id: 1,
},{
name: "申报单位信息",
id: 2,
},{
name: "资金拨付进度",
id: 3,
},{
name: "备忘录",
id: 4,
},{
name: "智能提醒",
id: 5,
},
],
// 01 02
userType: this.$store.state.user.userType,
active: 0,
active: 1,
info:{},
detailedInfo:{},
fileJson:{},
@ -89,9 +136,17 @@ export default {
mounted(){
this.getInfo(this.$route.query.userId)
if(this.userType == '01') {
this.tabs = this.enterpriseTabs;
if(this.$route.query.type == 2) {
this.tabs = this.enterpriseSpecialTabs
} else {
this.tabs = this.enterpriseTabs;
}
} else {
this.tabs = this.govTabs;
if(this.$route.query.type == 2) {
this.tabs = this.govSpecialTabs
} else {
this.tabs = this.govTabs;
}
}
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
@ -103,6 +158,18 @@ export default {
goBack(){
this.$router.back();
},
getLabel(id,type){
if(type == 'big') {
let label = this.dict.type.project_categories.filter(item => item.value === id + "")
return label[0].label;
} else if(type == 'middle') {
let label = this.dict.type.project_middle_type.filter(item => item.value === id + "")
return label[0].label;
} else if(type == 'small') {
let label = this.dict.type.project_small_type.filter(item => item.value === id + "")
return label[0].label;
}
},
getInfo(id){
this.loading = true;
jProjectId(id).then(res=>{

@ -297,7 +297,7 @@ export default {
selectAll({ name: queryString }).then(res => {
res.data.forEach(item => {
results.push({
value: item.projectName,
value: item.declareUnit,
id: item.id
})
})
@ -316,7 +316,6 @@ export default {
},
//
handleSelect(item) {
console.log(item);
if(this.checked == 0) {
this.$router.push({
name: 'enterpriselibraryInfo',
@ -339,9 +338,13 @@ export default {
params: { enterpriseName: this.search }
})
} else if(this.checked == 1) {
// this.$router.push({
// name: 'Project',
// params: { projectName: this.search }
// })
this.$router.push({
name: 'Project',
params: { projectName: this.search }
params: { declareUnit: this.search }
})
} else if(this.checked == 2) {

Loading…
Cancel
Save