完成企业可在任意流程上传附件、政策文件库样式

prod
吕天方 9 months ago
parent 1826ec8f11
commit 07d0dc874b

@ -285,7 +285,7 @@ export function putIntegrationIndustries(data) {
// 修改项目落户上传文件
export function templateOneUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
url: '/system/projectSettlementAward/update',
method: 'put',
data: data
})
@ -294,7 +294,7 @@ export function templateOneUpdata(data){
// 修改做大做强上传文件
export function templateTwoUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
url: '/system/bigStrongAward/update',
method: 'put',
data: data
})
@ -303,7 +303,7 @@ export function templateTwoUpdata(data){
// 修改载体建设上传文件
export function templateThreeUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
url: '/system/carrierConstructionAward/update',
method: 'put',
data: data
})
@ -312,7 +312,7 @@ export function templateThreeUpdata(data){
// 修改平台建设上传文件
export function templateFourUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
url: '/system/platformConstructionAward/update',
method: 'put',
data: data
})
@ -321,7 +321,7 @@ export function templateFourUpdata(data){
// 修改品牌打造上传文件
export function templateFiveUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
url: '/system/brandingAward/update',
method: 'put',
data: data
})
@ -330,7 +330,7 @@ export function templateFiveUpdata(data){
// 修改场景开放上传文件
export function templateSixUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
url: '/system/sceneOpeningAward/update',
method: 'put',
data: data
})
@ -339,7 +339,7 @@ export function templateSixUpdata(data){
// 修改信用管理上传文件
export function templateSevenUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
url: '/system/creditManagement/update',
method: 'put',
data: data
})
@ -357,7 +357,7 @@ export function templateEightUpdata(data){
// 修改制造服务业有效投入上传文件
export function templateNineUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
url: '/system/manufacturingServicesAward/update',
method: 'put',
data: data
})
@ -366,7 +366,7 @@ export function templateNineUpdata(data){
// 修改物流发展上传文件
export function templateTenUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
url: '/system/logisticsDevelopmentAward/update',
method: 'put',
data: data
})
@ -375,7 +375,7 @@ export function templateTenUpdata(data){
// 修改两业融合上传文件
export function templateElevenUpdata(data){
return request({
url: '/system/industrialInternetAward/update',
url: '/system/integrationIndustries/update',
method: 'put',
data: data
})

@ -54,6 +54,12 @@
<div class="content unicode" style="display: block;">
<ul class="icon_lists dib-box">
<li class="dib">
<span class="icon iconfont">&#xe740;</span>
<div class="name">上传</div>
<div class="code-name">&amp;#xe740;</div>
</li>
<li class="dib">
<span class="icon iconfont">&#xe730;</span>
<div class="name">已拒绝</div>
@ -162,9 +168,9 @@
<pre><code class="language-css"
>@font-face {
font-family: 'iconfont';
src: url('iconfont.woff2?t=1713417636754') format('woff2'),
url('iconfont.woff?t=1713417636754') format('woff'),
url('iconfont.ttf?t=1713417636754') format('truetype');
src: url('iconfont.woff2?t=1714456420680') format('woff2'),
url('iconfont.woff?t=1714456420680') format('woff'),
url('iconfont.ttf?t=1714456420680') format('truetype');
}
</code></pre>
<h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
@ -190,6 +196,15 @@
<div class="content font-class">
<ul class="icon_lists dib-box">
<li class="dib">
<span class="icon iconfont icon-jc-shangchuan"></span>
<div class="name">
上传
</div>
<div class="code-name">.icon-jc-shangchuan
</div>
</li>
<li class="dib">
<span class="icon iconfont icon-jc-yijujue"></span>
<div class="name">
@ -352,6 +367,14 @@
<div class="content symbol">
<ul class="icon_lists dib-box">
<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-jc-shangchuan"></use>
</svg>
<div class="name">上传</div>
<div class="code-name">#icon-jc-shangchuan</div>
</li>
<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-jc-yijujue"></use>

@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 4480457 */
src: url('iconfont.woff2?t=1713417636754') format('woff2'),
url('iconfont.woff?t=1713417636754') format('woff'),
url('iconfont.ttf?t=1713417636754') format('truetype');
src: url('iconfont.woff2?t=1714456420680') format('woff2'),
url('iconfont.woff?t=1714456420680') format('woff'),
url('iconfont.ttf?t=1714456420680') format('truetype');
}
.iconfont {
@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale;
}
.icon-jc-shangchuan:before {
content: "\e740";
}
.icon-jc-yijujue:before {
content: "\e730";
}

File diff suppressed because one or more lines are too long

@ -5,6 +5,13 @@
"css_prefix_text": "icon-jc-",
"description": "",
"glyphs": [
{
"icon_id": "19056163",
"name": "上传",
"font_class": "shangchuan",
"unicode": "e740",
"unicode_decimal": 59200
},
{
"icon_id": "39509228",
"name": "已拒绝",

@ -1,9 +1,9 @@
<template>
<el-dialog :title="enterpriseInfo.projectName + '文件上传'" :visible.sync="openCity" width="800px" append-to-body @close="close" :close-on-click-modal="false" :close-on-press-escape="false">
<el-dialog :title="enterpriseInfo.projectName + '文件上传'" :visible.sync="openCity" width="850px" append-to-body @close="close" :close-on-click-modal="false" :close-on-press-escape="false">
<el-form ref="form" :model="form" :rules="rules" label-width="120px" label-position="left" class="form">
<el-row>
<el-col :span="24" v-if="(enterpriseInfo.templateId == 2 )|| (enterpriseInfo.templateId == 4 ) || (enterpriseInfo.templateId == 5 ) || (enterpriseInfo.templateId == 6 ) || (enterpriseInfo.templateId == 8 ) ">
<el-form-item :label="uploadLabel" label-width="300px" prop="fileList">
<el-form-item :label="uploadLabel" label-width="350px" prop="fileList">
<div v-if="enterpriseInfo.templateId == 4" class="form_item"></div>
<!-- 品牌打造奖补模版 -->
<div v-if="enterpriseInfo.templateId == 5" class="form_item"></div>
@ -752,9 +752,9 @@ export default {
this.uploadLabel = '证明材料'
break;
}
console.log(this.enterpriseInfo.templateId,"uploadLabel");
// console.log(this.enterpriseInfo.templateId,"uploadLabel");
getDeclarationRecords({id:option.id}).then(response => {
console.log(response,"response");
// console.log(response,"response");
if(option.templateId == "1") {
this.form = response.data.bmsProjectSettlementAwardQueryVo //1
let agreement = this.form.agreement.split(',')
@ -938,7 +938,6 @@ export default {
let capitalVerificationReport = this.form.capitalVerificationReport.split(',')
let otherEvidence = this.form.otherEvidence.split(',')
evidence.forEach(item => {
console.log(item,"item");
this.uploadListOne.push({name: item,url: item})
this.fileListOne = [...this.uploadListOne]
this.form.fileListOne = [...this.uploadListOne]
@ -991,6 +990,24 @@ export default {
this.openCity = false
this.fileList = [];
this.uploadList = [];
this.fileListOne = [];
this.fileListTwo = [];
this.fileListThree = [];
this.fileListFour = [];
this.fileListFive = [];
this.fileListSix = [];
this.fileListSeven = [];
this.fileListEight = [];
this.fileListNine = [];
this.uploadListOne = [];
this.uploadListTwo = [];
this.uploadListThree = [];
this.uploadListFour = [];
this.uploadListFive = [];
this.uploadListSix = [];
this.uploadListSeven = [];
this.uploadListEight = [];
this.uploadListNine = [];
this.$refs.form.resetFields();
},
deleteUpload(value) {
@ -1065,7 +1082,7 @@ export default {
})
// console.log('11', params);
templateOneUpdata(params).then((response) => {
if(res.code == 200) {
if(response.code == 200) {
this.$message.success("修改成功");
this.openCity = false;
this.fileListOne = [];
@ -1093,7 +1110,7 @@ export default {
})
// console.log('11', params);
templateTwoUpdata(params).then((response) => {
if(res.code == 200) {
if(response.code == 200) {
this.$message.success("修改成功");
this.openCity = false;
this.fileList = [];
@ -1132,7 +1149,7 @@ export default {
})
// console.log('11', params);
templateThreeUpdata(params).then((response) => {
if(res.code == 200) {
if(response.code == 200) {
this.$message.success("修改成功");
this.openCity = false;
this.fileListOne = [];
@ -1158,7 +1175,7 @@ export default {
})
// console.log('11', params);
templateFourUpdata(params).then((response) => {
if(res.code == 200) {
if(response.code == 200) {
this.$message.success("修改成功");
this.openCity = false;
this.fileList = [];
@ -1178,7 +1195,7 @@ export default {
})
// console.log('11', params);
templateFiveUpdata(params).then((response) => {
if(res.code == 200) {
if(response.code == 200) {
this.$message.success("修改成功");
this.openCity = false;
this.fileList = [];
@ -1199,7 +1216,7 @@ export default {
})
// console.log('11', params);
templateSixUpdata(params).then((response) => {
if(res.code == 200) {
if(response.code == 200) {
this.$message.success("修改成功");
this.openCity = false;
this.fileList = [];
@ -1234,7 +1251,7 @@ export default {
})
// console.log('11', params);
templateSevenUpdata(params).then((response) => {
if(res.code == 200) {
if(response.code == 200) {
this.$message.success("修改成功");
this.openCity = false;
this.fileListOne = [];
@ -1257,8 +1274,8 @@ export default {
params.material+=`${item.url},`
}
})
templateEightUpdata(params).then(res=>{
if(res.code == 200) {
templateEightUpdata(params).then(response=>{
if(response.code == 200) {
this.$message.success("修改成功");
this.openCity = false;
this.fileList = [];
@ -1298,7 +1315,7 @@ export default {
})
// console.log('11', params);
templateNineUpdata(params).then((response) => {
if(res.code == 200) {
if(response.code == 200) {
this.$message.success("修改成功");
this.openCity = false;
this.fileListOne = [];
@ -1346,7 +1363,7 @@ export default {
})
// console.log('11', params);
templateTenUpdata(params).then((response) => {
if(res.code == 200) {
if(response.code == 200) {
this.$message.success("修改成功");
this.openCity = false;
this.fileListOne = [];
@ -1431,7 +1448,7 @@ export default {
})
// console.log('11', params);
templateElevenUpdata(params).then((response) => {
if(res.code == 200) {
if(response.code == 200) {
this.$message.success("修改成功");
this.openCity = false;
this.fileListOne = [];
@ -1490,7 +1507,7 @@ export default {
let data = {};
data.name = response.originalFilename;
data.url = response.url;
this.uploadList.push(data)
this.uploadListOne.push(data)
this.form.fileListOne = this.fileListOne
// console.log('this.fileListOne: ', this.fileListOne);
})
@ -1528,7 +1545,7 @@ export default {
data.url = response.url;
this.uploadListThree.push(data)
this.form.fileListThree = this.fileListThree
console.log('this.fileListThree: ', this.fileListThree);
// console.log('this.fileListThree: ', this.fileListThree);
})
},
/* 上传四 */

@ -0,0 +1,232 @@
<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="policyName">
<el-input v-model.trim="formInline.policyName" placeholder="请输入内容"></el-input>
</el-form-item>
<el-form-item label="发文单位:" prop="dispatchUnit">
<el-input v-model.trim="formInline.dispatchUnit" placeholder="请输入内容"></el-input>
</el-form-item>
<el-form-item label="政策等级:" prop="level">
<el-select class="ignoreElement" v-model="formInline.level" 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 label="发文时间:" prop="projectYear">
<el-date-picker
class="ignoreElement"
v-model="formInline.projectYear"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
type="daterange"
placeholder="选择发文时间">
</el-date-picker>
</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-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="政策文件名称" width="450px" prop="projectClassify" />
<el-table-column label="关联项目" prop="projectName" />
<el-table-column label="发文单位" prop="declareUnit" />
<el-table-column label="政策等级" prop="projectYear" />
<el-table-column label="发文时间" prop="projectYear" />
<el-table-column label="上传用户" prop="projectYear" />
<el-table-column label="上传时间" prop="projectYear" />
<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="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>
<my-dialog title="title" @close="importClose" ref="importProject">
<el-row>
<el-col :span="24">
<el-form :model="addFrom" size="small" ref="importFrom" label-width="100px" :rules="rules">
<el-form-item label="政策文件名称:" class="importFormItem" prop="projectClassify">
<!-- <el-select class="ignoreElement" v-model="addFrom.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-form-item>
</el-form>
</el-col>
</el-row>
</my-dialog>
</div>
</template>
<script>
import myPagination from "@/views/components/Pagination/index.vue"
import myDialog from "@/views/components/myDialog/index.vue"
export default {
components:{myPagination, myDialog},
data() {
return {
total:0,
pagination: {
current:1,
size:10,
},
loading:false,
formInline: {
policyName: '',
dispatchUnit:"",
level:"",
projectYear:"",
status: ''
},
tableData:[],
tabHeader: undefined,
addFrom: {
projectClassify:""
}
}
},
mounted() {
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
// this.getList();
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);
},
methods:{
//
getList(){
this.loading = true;
jProject(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.$refs.importProject.open();
},
//
importClose(){
this.$refs.importProject.close();
this.$nextTick(()=>{
this.$refs.importFrom.resetFields();
})
},
//
goInfo(rwo){
this.$router.push({
path: '/project/projectInfo',
query: { userId: rwo.id }
})
},
//
delInfo(row){
this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
jProjectDel({ 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>
<style lang="scss" scoped>
</style>
Loading…
Cancel
Save