|
|
|
@ -4,22 +4,41 @@
|
|
|
|
|
<div class="left_content">
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px" label-position="left" class="form">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12" style="height: 50px">
|
|
|
|
|
<el-col :span="8" style="height: 50px">
|
|
|
|
|
<div class="templateInfo">
|
|
|
|
|
<div class="templateInfo_left">申报类别</div>
|
|
|
|
|
<div>{{ templateInfo.templateName }}</div>
|
|
|
|
|
<div class="templateInfo_left">申报任务标题:</div>
|
|
|
|
|
<div>{{ enterpriseDirectory }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12" style="height: 50px">
|
|
|
|
|
<el-col :span="8" style="height: 50px">
|
|
|
|
|
<div class="templateInfo">
|
|
|
|
|
<div class="templateInfo_left">责任单位</div>
|
|
|
|
|
<div class="templateInfo_left">申报单位:</div>
|
|
|
|
|
<div>{{ baseInfo.enterpriseName }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" style="height: 50px">
|
|
|
|
|
<div class="templateInfo">
|
|
|
|
|
<div class="templateInfo_left">年份:</div>
|
|
|
|
|
<!-- <div>{{ parseTime(new Date(), '{y}-{m}-{d}') }}</div> -->
|
|
|
|
|
<div>{{ parseTime(templateInfo.createTime, '{y}') }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" style="height: 50px">
|
|
|
|
|
<div class="templateInfo">
|
|
|
|
|
<div class="templateInfo_left">项目分类:</div>
|
|
|
|
|
<dict-tag :options="dict.type.jjh_project_type" :value="templateInfo.projectClassify"/>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" style="height: 50px">
|
|
|
|
|
<div class="templateInfo">
|
|
|
|
|
<div class="templateInfo_left">责任单位:</div>
|
|
|
|
|
<dict-tag :options="dict.type.bms_responsibility_unit" :value="templateInfo.responsibilityUnit"/>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12" style="height: 50px">
|
|
|
|
|
<el-col :span="8" style="height: 50px">
|
|
|
|
|
<div class="templateInfo">
|
|
|
|
|
<div class="templateInfo_left">申报时间</div>
|
|
|
|
|
<div>{{ parseTime(new Date(), '{y}-{m}-{d}') }}</div>
|
|
|
|
|
<div class="templateInfo_left">级别:</div>
|
|
|
|
|
<dict-tag :options="dict.type.bms_level" :value="templateInfo.level"/>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -62,7 +81,7 @@
|
|
|
|
|
<template slot="label">
|
|
|
|
|
项目名称
|
|
|
|
|
</template>
|
|
|
|
|
{{ openInterfaceInfo.projectName }}
|
|
|
|
|
{{ templateInfo.templateName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
@ -137,7 +156,7 @@
|
|
|
|
|
<template slot="label">
|
|
|
|
|
项目名称
|
|
|
|
|
</template>
|
|
|
|
|
{{ openInterfaceInfo.projectName }}
|
|
|
|
|
{{ templateInfo.templateName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
@ -262,7 +281,7 @@
|
|
|
|
|
<template slot="label">
|
|
|
|
|
项目名称
|
|
|
|
|
</template>
|
|
|
|
|
{{ openInterfaceInfo.projectName }}
|
|
|
|
|
{{ templateInfo.templateName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
@ -321,7 +340,7 @@
|
|
|
|
|
<template slot="label">
|
|
|
|
|
项目名称
|
|
|
|
|
</template>
|
|
|
|
|
{{ openInterfaceInfo.projectName }}
|
|
|
|
|
{{ templateInfo.templateName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
@ -347,7 +366,7 @@
|
|
|
|
|
<template slot="label">
|
|
|
|
|
项目名称
|
|
|
|
|
</template>
|
|
|
|
|
{{ openInterfaceInfo.projectName }}
|
|
|
|
|
{{ templateInfo.templateName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
@ -387,7 +406,7 @@
|
|
|
|
|
<template slot="label">
|
|
|
|
|
项目名称
|
|
|
|
|
</template>
|
|
|
|
|
{{ openInterfaceInfo.projectName }}
|
|
|
|
|
{{ templateInfo.templateName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
@ -413,7 +432,7 @@
|
|
|
|
|
<template slot="label">
|
|
|
|
|
项目名称
|
|
|
|
|
</template>
|
|
|
|
|
{{ openInterfaceInfo.projectName }}
|
|
|
|
|
{{ templateInfo.templateName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
@ -434,7 +453,7 @@
|
|
|
|
|
<template slot="label">
|
|
|
|
|
项目名称
|
|
|
|
|
</template>
|
|
|
|
|
{{ openInterfaceInfo.projectName }}
|
|
|
|
|
{{ templateInfo.templateName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
</div>
|
|
|
|
@ -445,7 +464,7 @@
|
|
|
|
|
<template slot="label">
|
|
|
|
|
项目名称
|
|
|
|
|
</template>
|
|
|
|
|
{{ openInterfaceInfo.projectName }}
|
|
|
|
|
{{ templateInfo.templateName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
@ -1175,6 +1194,7 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { getTemplateInfo, getBasicInfo, getOpenInterface, templateList, uploadFile,
|
|
|
|
|
templateGetId,
|
|
|
|
|
addProjectSettlementAward, putProjectSettlementAward,
|
|
|
|
|
addBigStrongAward, putBigStrongAward,
|
|
|
|
|
addCarrierConstructionAward, putCarrierConstructionAward,
|
|
|
|
@ -1192,7 +1212,7 @@ import { dealFormatDate } from "@/utils/index.js"
|
|
|
|
|
export default {
|
|
|
|
|
name: "declareAddContent",
|
|
|
|
|
dicts: ['sys_show_hide', 'sys_normal_disable', 'bms_product_area', 'bms_declaration_type',
|
|
|
|
|
'bms_responsibility_unit', 'bms_level', 'bms_template_type', 'bms_declaration_channels', 'bms_affiliation_type', 'sys_declaration_type'],
|
|
|
|
|
'bms_responsibility_unit', 'bms_level', 'bms_template_type', 'bms_declaration_channels', 'bms_affiliation_type', 'sys_declaration_type', 'jjh_project_type'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
size: '',
|
|
|
|
@ -1200,9 +1220,11 @@ export default {
|
|
|
|
|
baseInfo: {},
|
|
|
|
|
openInterfaceInfo: {},
|
|
|
|
|
templateDataList: [],
|
|
|
|
|
enterpriseDirectory: null,
|
|
|
|
|
form: {},
|
|
|
|
|
active: 4,
|
|
|
|
|
templateId: null,
|
|
|
|
|
declarationId: null,
|
|
|
|
|
templateRecordId: null,
|
|
|
|
|
uploadLabel: null,
|
|
|
|
|
// 表格宽度
|
|
|
|
@ -1334,7 +1356,8 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
async mounted(){
|
|
|
|
|
let { templateId, templateRecordId, pageType} = this.$route.query;
|
|
|
|
|
let { templateId, templateRecordId, pageType, declarationId} = this.$route.query;
|
|
|
|
|
this.declarationId = declarationId
|
|
|
|
|
this.templateId = templateId
|
|
|
|
|
this.templateRecordId = templateRecordId
|
|
|
|
|
let { data } = await getTemplateInfo({templateId: templateId})
|
|
|
|
@ -1360,16 +1383,20 @@ export default {
|
|
|
|
|
getBasicInfo({enterpriseId: this.$store.state.user.enterpriseId}).then((response) => {
|
|
|
|
|
this.baseInfo = response.data
|
|
|
|
|
})
|
|
|
|
|
getOpenInterface({templateRecordId: templateRecordId}).then((response) => {
|
|
|
|
|
this.openInterfaceInfo = response.data
|
|
|
|
|
})
|
|
|
|
|
templateList({
|
|
|
|
|
responsibilityUnit: this.templateInfo.responsibilityUnit,
|
|
|
|
|
enterpriseId: this.$store.state.user.enterpriseId,
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
this.templateDataList = response.rows
|
|
|
|
|
// getOpenInterface({templateRecordId: templateRecordId}).then((response) => {
|
|
|
|
|
// this.openInterfaceInfo = response.data
|
|
|
|
|
// })
|
|
|
|
|
// templateList({
|
|
|
|
|
// responsibilityUnit: this.templateInfo.responsibilityUnit,
|
|
|
|
|
// enterpriseId: this.$store.state.user.enterpriseId,
|
|
|
|
|
// pageNum: 1,
|
|
|
|
|
// pageSize: 10,
|
|
|
|
|
// }).then((response) => {
|
|
|
|
|
// this.templateDataList = response.rows
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
templateGetId(templateRecordId).then(res=>{
|
|
|
|
|
this.enterpriseDirectory = res.data.enterpriseDirectory
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
@ -1381,14 +1408,15 @@ export default {
|
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
let params = {
|
|
|
|
|
declarationId: this.declarationId,
|
|
|
|
|
address: this.baseInfo.address,
|
|
|
|
|
contacts: this.baseInfo.contacts,
|
|
|
|
|
contactsNumber: this.baseInfo.contactsNumber,
|
|
|
|
|
creditCode: this.baseInfo.creditCode,
|
|
|
|
|
enterpriseName: this.baseInfo.enterpriseName,
|
|
|
|
|
declarationTemplateType: this.openInterfaceInfo.declarationTemplateType,
|
|
|
|
|
projectName: this.openInterfaceInfo.projectName,
|
|
|
|
|
year: this.openInterfaceInfo.year,
|
|
|
|
|
// declarationTemplateType: this.openInterfaceInfo.declarationTemplateType,
|
|
|
|
|
// projectName: this.openInterfaceInfo.projectName,
|
|
|
|
|
// year: this.openInterfaceInfo.year,
|
|
|
|
|
projectId: this.templateId,
|
|
|
|
|
templateRecordId: this.templateRecordId,
|
|
|
|
|
status: 1,
|
|
|
|
@ -2113,7 +2141,8 @@ list-style: none; /* 清除列表项前的标记 */
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
.templateInfo_left {
|
|
|
|
|
width: 80px;
|
|
|
|
|
// width: 100px;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.f_validate {
|
|
|
|
|