新增企业联系人、企业库页面

prod
吕天方 8 months ago
parent c3cfba0e16
commit 0837870569

@ -5,7 +5,7 @@ VUE_APP_TITLE = 金鸡湖现代服务业品牌管理系统
ENV = 'development'
# 金鸡湖现代服务业品牌管理系统/开发环境
# VUE_APP_BASE_API = 'http://192.168.0.106:9040'
# VUE_APP_BASE_API = 'http://192.168.0.111:9040'
VUE_APP_BASE_API = 'http://39.101.188.84:9040'
# 路由懒加载

@ -0,0 +1,45 @@
import request from "@/utils/request"
// 分页查询企业联系人
export function getJEnterpriseContact(params) {
return request({
url: "/jjh/jEnterpriseContact",
method: "get",
params
})
}
// 新增企业联系人
export function jEnterpriseContactNew(data) {
return request({
url: "/jjh/jEnterpriseContact",
method: "post",
data
})
}
// 删除企业联系人
export function jEnterpriseContactChange(data) {
return request({
url: "/jjh/jEnterpriseContact",
method: "put",
data
})
}
// 根据主键查询企业联系人
export function jEnterpriseContactId(id) {
return request({
url: "/jjh/jEnterpriseContact/" + id,
method: "get",
})
}
// 删除企业联系人
export function jEnterpriseContactDel(params) {
return request({
url: "/jjh/jEnterpriseContact",
method: "delete",
params
})
}

@ -0,0 +1,405 @@
<template>
<div class="L-public-main" id="L-size-main">
<div class="L-main">
<header id="L-header">
<el-form :inline="true" :model="formInline" size="small" class="demo-form-inline" ref="queryFrom">
<el-col :span="22">
<el-form-item label="企业名称:" prop="name">
<el-input v-model.trim="formInline.name" placeholder="请输入内容"></el-input>
</el-form-item>
<el-form-item label="统一社会信用代码:" prop="enterUnit">
<el-input v-model.trim="formInline.enterUnit" placeholder="请输入内容"></el-input>
</el-form-item>
<el-form-item label="经营状态:" prop="policyLevel">
<el-select class="ignoreElement" v-model="formInline.policyLevel" placeholder="请选择">
<!-- <el-option
v-for="dict in dict.type.jjh_project_type"
:key="dict.value"
:label="dict.label"
:value="dict.value">
</el-option> -->
<el-option
label="省级"
value="0">
</el-option>
<el-option
label="市级"
value="1">
</el-option>
</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>
</el-form-item>
</el-col>
<!-- <el-col :span="2">
<el-button v-if="userType !== '01'" type="primary" class="import-btn" icon="el-icon-plus" size="mini" @click="importBtn"></el-button>
</el-col> -->
</el-form>
</header>
<section>
<el-table v-loading="loading" :data="tableData" :row-class-name="tableRowClassName" :height="tabHeader" :max-height="tabHeader">
<el-table-column label="企业名称" prop="name" />
<el-table-column label="统一社会信用代码" prop="enterUnit" width="140px" />
<el-table-column label="法定代表人" prop="policyLevel" />
<el-table-column label="经营状态" prop="enterTime" />
<el-table-column label="成立日期" prop="createBy" />
<el-table-column label="注册资本" prop="createTime" />
<el-table-column label="企业类型" prop="createTime" />
<el-table-column label="所属行业" prop="createTime" />
<el-table-column label="组织机构代码" prop="createTime" />
<el-table-column label="参保人数" prop="createTime" />
<el-table-column label="曾用名" prop="createTime" />
<el-table-column label="注册地址" prop="createTime" />
<el-table-column label="注册类型" prop="createTime" />
<el-table-column label="经营范围" prop="createTime" />
<el-table-column label="操作" prop="userId" class-name="table-operation">
<template slot-scope="scope">
<span class="look-info" @click="goInfo(scope.row)"></span>
<!-- <span class="edit-info" @click="editInfo(scope.row)"></span>
<span class="del-info" @click="delInfo(scope.row)"></span> -->
</template>
</el-table-column>
</el-table>
<my-pagination
id="L-pagination"
:total="total"
:page="pagination.current"
:limit="pagination.size"
@pagination="getPagination"
:current-page.sync="pagination.current"
></my-pagination>
</section>
</div>
<!-- :rules="rules" -->
<my-dialog :title="title" @close="importClose" @confirm="confirm" ref="importProject" closeText="关闭" :myclass="true">
<el-form :model="addFrom" size="small" ref="importFrom" label-width="120px" class="newArticle" disabled>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="企业名称:" class="importFormItem" prop="name">
<el-input v-model.trim="addFrom.name" placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="统一社会信用代码:" class="importFormItem" prop="policyLevel">
<el-input v-model.trim="addFrom.policyLevel" placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="法定代表人:" class="importFormItem" prop="enterUnit">
<el-input v-model.trim="addFrom.enterUnit" placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="经营状态:" class="importFormItem" prop="enterTime">
<el-input v-model.trim="addFrom.enterUnit" placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="成立日期:" class="importFormItem" prop="joinProject">
<el-input v-model.trim="addFrom.enterUnit" placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="注册资本:" class="importFormItem" prop="joinProject">
<el-input v-model.trim="addFrom.enterUnit" placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="企业类型:" class="importFormItem" prop="joinProject">
<el-input v-model.trim="addFrom.enterUnit" placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所属行业:" class="importFormItem" prop="joinProject">
<el-input v-model.trim="addFrom.enterUnit" placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="组织机构代码:" class="importFormItem" prop="joinProject">
<el-input v-model.trim="addFrom.enterUnit" placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="参保人数:" class="importFormItem" prop="joinProject">
<el-input v-model.trim="addFrom.enterUnit" placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="曾用名:" class="importFormItem" prop="joinProject">
<el-input v-model.trim="addFrom.enterUnit" placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="注册地址:" class="importFormItem" prop="joinProject">
<el-input v-model.trim="addFrom.enterUnit" placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="注册类型:" class="importFormItem" prop="joinProject">
<el-input v-model.trim="addFrom.enterUnit" placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="经营范围:" class="importFormItem" prop="joinProject">
<el-input v-model.trim="addFrom.enterUnit" placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</my-dialog>
</div>
</template>
<script>
import myPagination from "@/views/components/Pagination/index.vue"
import myDialog from "@/views/components/myDialog/index.vue"
import { getJPolicyFile, jPolicyFileNew, jPolicyFileChange, jPolicyFileId, jPolicyFileDel } from "@/api/jin_ji_hu/policyDocument"
export default {
components:{myPagination, myDialog},
dicts: ['jjh_project_type'],
data() {
return {
userType: this.$store.state.user.userType,
deptId: this.$store.state.user.deptId,
total:0,
pagination: {
current:1,
size:10,
},
loading:false,
formInline: {
name: '',
enterUnit:"",
policyLevel:"",
},
tableData:[
// {
// projectName:"[2021]101 2021 ",
// project:"CDMO",
// unit:"",
// grade:"",
// issueTime:"2023-03-19",
// user:"",
// uploadingTime:"2023-05-11 14:00",
// }
],
tabHeader: undefined,
addFrom: {
name:"",
joinProject:"",
enterUnit:"",
policyLevel:"",
enterTime:"",
},
rules:{
name:[
{ required: true, message: '请填写政策文件名称', trigger: 'blur' }
],
joinProject:[
{ required: true, message: '请填写政策等级', trigger: 'blur' }
],
enterUnit:[
{ required: true, message: '请填写发文单位', trigger: 'blur' }
],
policyLevel:[
{ required: true, message: '请选择发文时间', trigger: 'change' }
],
enterTime:[
{ required: true, message: '请选择关联项目', trigger: 'change' }
],
},
title:"新增发文",
infoVisible:false,
}
},
mounted() {
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
// this.getList();
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);
},
methods:{
//
getList(){
this.loading = true;
getJPolicyFile(this.pagination).then(res=>{
this.loading = false;
this.total = res.data.total;
this.tableData = res.data.records;
})
},
//
getPagination(pages) {
this.pagination.current = pages.page;
this.pagination.size = pages.limit;
// this.getList();
},
//
handleQuery() {
this.pagination = {
current: 1,
size: 10
}
this.pagination = { ...this.pagination,...this.formInline };
// console.log(this.pagination);
// console.log(this.formInline);
// this.getList();
},
//
resetQuery(formName){
this.$refs[formName].resetFields();
this.pagination = {
current: 1,
size: 10
}
// this.getList();
},
// table
tableRowClassName({row, rowIndex}){
if (rowIndex % 2 !== 0) {
return 'evenNumber-row';
}
return '';
},
//
importBtn(){
this.title = "新增发文";
this.$refs.importProject.open();
},
//
importClose(){
this.$nextTick(()=>{
this.$refs.importFrom.resetFields();
this.$refs.importProject.close();
this.addFrom = {
name:"",
joinProject:"",
enterUnit:"",
policyLevel:"",
enterTime:"",
}
})
},
//
infoClose(){
this.addFrom = {}
this.infoVisible = false;
},
//
goInfo(row){
this.title = "企业详情"
jPolicyFileId(row.id).then((res=>{
if(res.code == 200) {
this.addFrom = res.data;
this.addFrom.joinProject = this.addFrom.joinProject + ''
this.$refs.importProject.open();
}
}))
},
//
editInfo(row){
this.title = "修改发文"
jPolicyFileId(row.id).then((res)=>{
if(res.code == 200) {
this.addFrom = res.data;
this.$refs.importProject.open();
}
})
},
//
confirm(){
this.$refs.importFrom.validate((valid) => {
if (valid) {
// console.log(this.addFrom);
let id = this.addFrom.id ? this.addFrom.id : null;
if(id) {
jPolicyFileChange(this.addFrom).then((res)=>{
if(res.code == 200) {
this.getList();
this.importClose();
this.$message({
type: "success",
message: "修改成功!",
});
}
})
} else {
jPolicyFileNew(this.addFrom).then((res)=>{
if(res.code == 200) {
this.getList();
this.importClose();
this.$message({
type: "success",
message: "新增成功!",
});
}
})
}
} else {
return false;
}
});
},
//
delInfo(row){
this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
jPolicyFileDel({ id: row.id }).then((res) => {
this.getList();
this.$message({
type: "success",
message: "删除成功!",
});
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
//
goToProject(id){
// this.$router.push({
// path: '/project/index',
// params: { projectId: id }
// })
this.$router.push({
name: 'ProjectList',
params: { projectId: id }
})
},
//
cancalDebounce(){
const element = document.getElementById('L-size-main'); // ID
const header = document.getElementById('L-header'); // ID
const pagination = document.getElementById('L-pagination'); // ID
const elementHeight = element.offsetHeight;
const headerHeight = header.offsetHeight;
const paginationtHeight = pagination.offsetHeight;
this.tabHeader = elementHeight - headerHeight - paginationtHeight - 140;
}
},
}
</script>

@ -0,0 +1,347 @@
<template>
<div class="L-public-main" id="L-size-main">
<div class="L-main">
<header id="L-header">
<el-form :inline="true" :model="formInline" size="small" class="demo-form-inline" ref="queryFrom" :disabled="userType == '01' ? true : false">
<el-col :span="22">
<el-form-item label="企业名称:" prop="enterpriseName">
<el-input v-model.trim="formInline.enterpriseName" placeholder="请输入内容"></el-input>
</el-form-item>
<el-form-item label="统一社会信用代码:" prop="enterpriseCode">
<el-input v-model.trim="formInline.enterpriseCode" placeholder="请输入内容"></el-input>
</el-form-item>
<!-- <el-form-item label="政策等级:" prop="policyLevel">
<el-select class="ignoreElement" v-model="formInline.policyLevel" placeholder="请选择">
<el-option
label="省级"
value="0">
</el-option>
<el-option
label="市级"
value="1">
</el-option>
</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>
</el-form-item>
</el-col>
<el-col :span="2">
<!-- <el-button type="primary" class="import-btn" icon="icon iconfont icon-jc-shangchuan" size="mini" @click="importBtn"></el-button> -->
<el-button v-if="roles.includes('ent') && tableData.length == 0" type="primary" class="import-btn" icon="el-icon-plus" size="mini" @click="importBtn"></el-button>
</el-col>
</el-form>
</header>
<section>
<el-table v-loading="loading" :data="tableData" :row-class-name="tableRowClassName" :height="tabHeader" :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-column label="操作" prop="userId" class-name="table-operation" width="180px">
<template slot-scope="scope">
<span class="look-info" @click="goInfo(scope.row)"></span>
<span class="edit-info" @click="editInfo(scope.row)" v-hasRole="['ent']"></span>
<span class="del-info" @click="delInfo(scope.row)" v-hasRole="['ent']"></span>
</template>
</el-table-column>
</el-table>
<my-pagination
id="L-pagination"
:total="total"
:page="pagination.current"
:limit="pagination.size"
@pagination="getPagination"
:current-page.sync="pagination.current"
></my-pagination>
</section>
</div>
<my-dialog :title="title" @close="importClose" @confirm="confirm" ref="importProject" closeText="关闭" :myclass="true">
<el-form :model="addFrom" size="small" ref="importFrom" label-width="180px" :rules="rules" class="newArticle" :disabled="title == '查看常用联系人' ? true : false">
<el-row>
<el-col :span="24">
<el-form-item label="企业统一社会信用代码:" class="importFormItem">
<el-input v-model.trim="addFrom.enterpriseCode" placeholder="请输入内容" disabled></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="企业名称:" class="importFormItem">
<el-input v-model.trim="addFrom.enterpriseName" placeholder="请输入内容" disabled></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="常用联系人名称:" class="importFormItem" prop="contactName">
<el-input v-model.trim="addFrom.contactName" placeholder="请输入常用联系人名称"></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="常用联系人公司职务:" class="importFormItem" prop="contactOffice">
<el-input v-model.trim="addFrom.contactOffice" placeholder="请输入常用联系人公司职务"></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="常用联系人手机号码:" class="importFormItem" prop="contactPhone">
<el-input v-model.trim="addFrom.contactPhone" placeholder="请输入常用联系人手机号码"></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="常用联系人邮箱:" class="importFormItem" prop="contactEmail">
<el-input v-model.trim="addFrom.contactEmail" placeholder="请输入常用联系人邮箱"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</my-dialog>
</div>
</template>
<script>
import myPagination from "@/views/components/Pagination/index.vue"
import myDialog from "@/views/components/myDialog/index.vue"
import { getJEnterpriseContact, jEnterpriseContactNew, jEnterpriseContactChange, jEnterpriseContactId, jEnterpriseContactDel } from "@/api/jin_ji_hu/infoMaintain"
export default {
components:{myPagination, myDialog},
dicts: ['jjh_project_type'],
data() {
//
var checkEmail = (rule,value,cb) => {
//
const regEmail = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/;
if(regEmail.test(value)){
//
return cb();
}
//
cb(new Error('请输入合法的邮箱!'));
}
//
var checkMobile = (rule,value,cb) =>{
const regMobile = /^(0|86|17951)?(13[0-9]|15[0123456789]|17[678]|18[0-9]|14[57])[0-9]{8}$/;
if(regMobile.test(value)){
//
return cb();
}
//
cb(new Error('请输入合法的手机号!'));
}
return {
userType: this.$store.state.user.userType,
deptId: this.$store.state.user.deptId,
roles: this.$store.state.user.roles,
name: this.$store.state.user.name,
nickName: this.$store.state.user.nickName,
total:0,
pagination: {
current:1,
size:10,
},
loading:false,
formInline: {
enterpriseName: '',
enterpriseCode:"",
},
tableData:[],
tabHeader: undefined,
addFrom: {
contactName:"",
contactOffice:"",
contactPhone:"",
contactEmail:"",
enterpriseCode:"",
enterpriseName:"",
},
rules:{
contactName:[
{ required: true, message: '请填写常用联系人姓名', trigger: 'blur' }
],
contactOffice:[
{ required: true, message: '请填写常用联系人公司职务', trigger: 'blur' }
],
contactPhone:[
{ required: true, message: '请填写常用联系人手机号码', trigger: 'blur' },
{validator: checkMobile, trigger: 'blur'}
],
contactEmail:[
{ required: true, message: '请填写常用联系人邮箱', trigger: 'blur' },
{validator: checkEmail, trigger: 'blur'}
],
},
title:"新增常用联系人",
infoVisible:false,
}
},
mounted() {
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
if(this.userType == "01") {
this.pagination.enterpriseCode = this.name;
this.pagination.enterpriseName = this.nickName;
this.formInline.enterpriseCode = this.name;
this.formInline.enterpriseName = this.nickName;
}
this.getList();
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);
},
methods:{
//
getList(){
this.loading = true;
getJEnterpriseContact(this.pagination).then(res=>{
this.loading = false;
this.total = res.data.total;
this.tableData = res.data.records;
})
},
//
getPagination(pages) {
this.pagination.current = pages.page;
this.pagination.size = pages.limit;
this.getList();
},
//
handleQuery() {
this.pagination.current = 1;
this.pagination.size = 10;
this.pagination = { ...this.pagination,...this.formInline };
// console.log(this.pagination);
// console.log(this.formInline);
this.getList();
},
//
resetQuery(formName){
this.$nextTick(() => {
this.$refs[formName].resetFields();
if(this.userType == "01") {
this.pagination.current = 1;
this.pagination.size = 10;
} else {
this.pagination = {
current: 1,
size: 10
}
}
this.getList();
});
},
// table
tableRowClassName({row, rowIndex}){
if (rowIndex % 2 !== 0) {
return 'evenNumber-row';
}
return '';
},
//
importBtn(){
this.title = "新增常用联系人";
this.addFrom.enterpriseCode = this.name;
this.addFrom.enterpriseName = this.nickName;
this.$refs.importProject.open();
},
//
importClose(){
this.$nextTick(()=>{
this.$refs.importFrom.resetFields();
this.$refs.importProject.close();
this.addFrom = {
contactName:"",
contactOffice:"",
contactPhone:"",
contactEmail:"",
}
})
},
//
goInfo(row){
this.title = "查看常用联系人"
jEnterpriseContactId(row.id).then((res=>{
if(res.code == 200) {
this.addFrom = res.data;
this.$refs.importProject.open();
}
}))
},
//
editInfo(row){
this.title = "修改常用联系人"
// this.addFrom.enterpriseCode = this.name;
// this.addFrom.enterpriseName = this.nickName;
jEnterpriseContactId(row.id).then((res)=>{
if(res.code == 200) {
this.addFrom = res.data;
this.$refs.importProject.open();
}
})
},
//
confirm(){
this.$refs.importFrom.validate((valid) => {
if (valid) {
// console.log(this.addFrom);
let id = this.addFrom.id ? this.addFrom.id : null;
if(id) {
jEnterpriseContactChange(this.addFrom).then((res)=>{
if(res.code == 200) {
this.getList();
this.importClose();
this.$message({
type: "success",
message: "修改成功!",
});
}
})
} else {
jEnterpriseContactNew(this.addFrom).then((res)=>{
if(res.code == 200) {
this.getList();
this.importClose();
this.$message({
type: "success",
message: "新增成功!",
});
}
})
}
} else {
return false;
}
});
},
//
delInfo(row){
this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
jEnterpriseContactDel({ id: row.id }).then((res) => {
this.getList();
this.$message({
type: "success",
message: "删除成功!",
});
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
//
cancalDebounce(){
const element = document.getElementById('L-size-main'); // ID
const header = document.getElementById('L-header'); // ID
const pagination = document.getElementById('L-pagination'); // ID
const elementHeight = element.offsetHeight;
const headerHeight = header.offsetHeight;
const paginationtHeight = pagination.offsetHeight;
this.tabHeader = elementHeight - headerHeight - paginationtHeight - 140;
}
},
}
</script>

@ -40,7 +40,7 @@
@click="handleAdd"
class="btn"
>新增申报记录</el-button>
>发布申报任务</el-button>
</el-col>
</el-row>
@ -86,11 +86,11 @@
<el-table-column prop="createByName" label="创建人" min-width="80"></el-table-column>
<el-table-column label="操作" align="center" width="150" fixed="right">
<template slot-scope="scope">
<el-button
<!-- <el-button
size="mini"
type="text"
@click="handleUpdate(scope.row)"
>编辑</el-button>
>编辑</el-button> -->
<el-button
size="mini"
type="text"
@ -415,8 +415,12 @@ export default {
this.form.responsibilityUnit = this.form.responsibilityUnit + ''
this.form.road = this.form.road + ''
this.form.isFrame = "0"
this.form.fileList = this.form.fileName
this.fileList = this.form.fileName
if(this.form.fileName) {
let fileList = this.form.fileName.split(',')
fileList.length > 0 ? this.form.isFrame = "1" : this.form.isFrame = "0"
}
this.form.fileList = this.form.fileName || []
this.fileList = this.form.fileName || []
let arr = []
arr.push(this.form.startTime, this.form.endTime)
this.$set(this.form, 'reportTime', arr)
@ -517,7 +521,7 @@ export default {
//
frontDownload() {
var a = document.createElement("a"); //<a></a>
a.href = "/static/企业名录模板.xlsx";
a.href = "/demo/JinJiHu/static/企业名录模板.xlsx";
//ahref .
a.download ="企业名录模板.xlsx";
//.xlsxpdf.fpd

@ -85,9 +85,9 @@
<el-radio-button label="1,8">初审</el-radio-button>
<el-radio-button label="2,7">复审</el-radio-button>
<!-- <el-radio-button label="3,6">专家评审</el-radio-button> -->
<el-radio-button label="3,6">专家评审</el-radio-button>
<el-radio-button label="3,6">上级评审</el-radio-button>
<!-- <el-radio-button label="4">市级评审</el-radio-button> -->
<el-radio-button label="5">通过</el-radio-button>
<el-radio-button label="5">通过</el-radio-button>
</el-radio-group>
</el-col>
<el-col :span="2" class="zipImport">
@ -96,7 +96,6 @@
plain
:disabled="multipleSelection.length > 0 ? false : true"
@click="zipDowmload"
:loading="exportLoading"
>打包下载</el-button>
</el-col>
<!-- <el-col :span="1.5">
@ -341,6 +340,7 @@
import { listRecords, exportData, templateList, downloadData, uploadFile, putMunicipalBureauReview, exportZip } from "@/api/onlineDeclartion/records"
import updataChange from "./components/index.vue"
import * as XLSX from 'xlsx'
import { Message, Loading } from 'element-ui'
export default {
name: "Records",
dicts: ['sys_show_hide', 'sys_normal_disable', 'bms_declaration_type', 'bms_responsibility_unit', 'bms_level', 'bms_template_type', 'bms_declaration_channels'],
@ -396,7 +396,6 @@ export default {
},
tabHeader: undefined,
radio:'',
exportLoading: false,
};
},
components:{
@ -493,7 +492,8 @@ export default {
/** 打包下载 */
zipDowmload() {
// this.multipleSelection
this.exportLoading = true;
// this.exportLoading = true;
let downloadLoadingInstance = Loading.service({ text: "正在下载数据,请稍候", spinner: "el-icon-loading", background: "rgba(0, 0, 0, 0.7)", })
let id = [];
let name = [];
let enterpriseName = [];
@ -514,7 +514,7 @@ export default {
}
link.click();
URL.revokeObjectURL(url); //
this.exportLoading = false;
downloadLoadingInstance.close();
// this.checkList = [];
// console.log(response);
})

@ -315,13 +315,13 @@
</div> -->
</el-form>
</div>
<div class="right_content">
<!-- <div class="right_content">
<div class="left_title">
<el-steps :active="active" finish-status="process" align-center>
<el-step title="初审中"></el-step>
<el-step title="复审中"></el-step>
<!-- <el-step title="专家评审中"></el-step>
<el-step title="市级评定中"></el-step> -->
<el-step title="专家评审中"></el-step>
<el-step title="市级评定中"></el-step>
<el-step title="上级评定中"></el-step>
<el-step title="评定通过"></el-step>
</el-steps>
@ -340,7 +340,7 @@
</el-tab-pane>
</el-tabs>
</div>
</div>
</div> -->
</div>
<div class="operate_btn">
<el-button @click="goBack"></el-button>
@ -598,7 +598,8 @@ list-style: none; /* 清除列表项前的标记 */
height: 100%;
// height: calc(100vh - 160px);
box-sizing: border-box;
width: 69.5%;
// width: 69.5%;
width: 100%;
overflow: auto;
background-color: #fff;
padding: 20px;

@ -321,6 +321,7 @@ export default {
},
//
editInfo(row){
this.title = "修改发文"
jPolicyFileId(row.id).then((res)=>{
if(res.code == 200) {
this.addFrom = res.data;

Loading…
Cancel
Save