新增模板

prod
吕天方 8 months ago
parent 519ad0b1d1
commit 89f3453e30

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

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

@ -289,6 +289,25 @@ export function putIntegrationIndustries(data) {
}) })
} }
// 新增-2024年度淘汰落后和退出低端低效产能装备清单模板-12
export function addOutQuitProducts(data) {
return request({
url: '/system/outQuitProducts',
method: 'post',
data: data
})
}
// 编辑-2024年度淘汰落后和退出低端低效产能装备清单模板-12
export function putOutQuitProducts(data) {
return request({
url: '/system/outQuitProducts',
method: 'put',
data: data
})
}
// 修改项目落户上传文件 // 修改项目落户上传文件
export function templateOneUpdata(data){ export function templateOneUpdata(data){
@ -388,3 +407,12 @@ export function templateElevenUpdata(data){
data: data data: data
}) })
} }
// 修改2024年度淘汰落后和退出低端低效产能装备清单模板上传文件
export function templateProductsUpdata(data){
return request({
url: '/system/outQuitProducts/update',
method: 'put',
data: data
})
}

@ -483,6 +483,65 @@
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
<!-- 2024年度淘汰落后和退出低端低效产能装备清单模板 -->
<div class="table-content" v-if="templateId == 12">
<el-descriptions class="margin-top" title="【项目投资计划】" :column="2" :size="size" border>
<el-descriptions-item>
<template slot="label">
项目名称
</template>
{{ templateInfo.templateName }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<span class="f_validate">*</span>主要产品
</template>
<el-form-item label-width="0" prop="mainProducts">
<el-input placeholder="请输入主要产品" v-model="form.mainProducts"></el-input>
</el-form-item>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<span class="f_validate">*</span>所属行业
</template>
<el-form-item label-width="0" prop="industry">
<el-checkbox-group v-model="form.industry" style="width: 100%;">
<el-checkbox v-for="city in dict.type.template_industry" :true-label="city.value" :label="city.value" :key="city.value">
{{city.label}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<span class="f_validate">*</span>工作联系人
</template>
<el-form-item label-width="0" prop="workContact">
<el-input placeholder="请输入工作联系人" v-model="form.workContact"></el-input>
</el-form-item>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<span class="f_validate">*</span>联系电话
</template>
<el-form-item label-width="0" prop="iphone">
<el-input placeholder="请输入联系电话" v-model="form.iphone" ></el-input>
</el-form-item>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<span class="f_validate">*</span>类别
</template>
<el-form-item label-width="0" prop="template_type">
<el-checkbox-group v-model="form.template_type" @change="handleCheckedCitiesChange" style="width: 100%;">
<el-checkbox v-for="dict in dict.type.new_template_type" :true-label="dict.value" :label="dict.value" :key="dict.value">
{{dict.label}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
</el-descriptions-item>
</el-descriptions>
</div>
<!-- 上传文件列表 --> <!-- 上传文件列表 -->
<div class="table-content last_upload"> <div class="table-content last_upload">
<p>上传材料</p> <p>上传材料</p>
@ -1148,6 +1207,55 @@
</ul> </ul>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- -->
<el-col :span="24" v-if="templateId == 12" class="upload_col upload_col_one">
<!-- 2024年度淘汰落后和退出低端低效产能装备清单模板 -->
<el-form-item :label="form.template_type == '1' ? '淘汰落后生产工艺装备':'退出低端低效产能装备'" label-width="340px" prop="fileListOne">
<!-- 2024年度淘汰落后和退出低端低效产能装备清单模板 -->
<div class="form_item">1填报具体装备名称规格型号数量等共XX台套</div>
<div class="form_item" style="margin-top: 20px;">2落后生产工艺装备特指产业结构调整指导目录中明列的淘汰类落后生产工艺装备低端低效生产工艺装备主要指经过较长时间运行在能耗环保安全技术指标等方面已弱化企业拟主动提前退出的设备它不属强制淘汰范畴</div>
<el-upload
class="upload-demo"
:show-file-list="false"
action=""
accept=".xlsx,.XLSX,.XSL,.doc,.xls,.ppt,.pdf,.png,.jpg,.jpeg,.rar,.zip,.docx"
:http-request="handleFileUploadOne"
:file-list="fileListOne"
:on-remove="handleRemove">
<el-button slot="trigger" size="small" type="primary">上传文件</el-button>
<div slot="tip" class="el-upload__tip">请上传格式为<span style="color: red;">doc/xls/ppt/pdf/png/jpg/jpeg/rar/zip/docx/xlsx</span>的文件</div>
</el-upload>
<ul v-if="fileListOne.length >0" class="upload_ul">
<li v-for="item in uploadListOne" :key="item.url" class="upload_li">
<img src="../../../assets/images/uploadBgc.jpg" class="li_img" alt="">
<span class="icon_name">{{ item.name }}</span>
<el-button type="text" style="color: red;" @click="deleteUpload(item)"></el-button>
</li>
</ul>
</el-form-item>
</el-col>
<el-col :span="24" v-if="templateId == 12 " class="upload_col">
<el-form-item label="其他相关情况说明" label-width="340px" prop="fileListTwo">
<el-upload
class="upload-demo"
:show-file-list="false"
action=""
accept=".xlsx,.XLSX,.XSL,.doc,.xls,.ppt,.pdf,.png,.jpg,.jpeg,.rar,.zip,.docx"
:http-request="handleFileUploadTwo"
:file-list="fileListTwo"
:on-remove="handleRemove">
<el-button slot="trigger" size="small" type="primary">上传文件</el-button>
<div slot="tip" class="el-upload__tip">请上传格式为<span style="color: red;">doc/xls/ppt/pdf/png/jpg/jpeg/rar/zip/docx/xlsx</span>的文件</div>
</el-upload>
<ul v-if="fileListTwo.length >0" class="upload_ul">
<li v-for="item in uploadListTwo" :key="item.url" class="upload_li">
<img src="../../../assets/images/uploadBgc.jpg" class="li_img" alt="">
<span class="icon_name">{{ item.name }}</span>
<el-button type="text" style="color: red;" @click="deleteUploadTwo(item)"></el-button>
</li>
</ul>
</el-form-item>
</el-col>
</el-row> </el-row>
</div> </div>
</el-form> </el-form>
@ -1187,8 +1295,8 @@
</div> </div>
<div class="operate_btn"> <div class="operate_btn">
<el-button @click="goBack"></el-button> <el-button @click="goBack"></el-button>
<el-button @click="submitForm" >暂存</el-button> <el-button @click="submitForm('ts')" >暂存</el-button>
<el-button type="success" @click="submitForm" class="btn">提交</el-button> <el-button type="success" @click="submitForm('sub')" class="btn">提交</el-button>
</div> </div>
</div> </div>
</template> </template>
@ -1207,14 +1315,26 @@ import { getTemplateInfo, getBasicInfo, getOpenInterface, templateList, uploadFi
addManufacturingServicesAward, putManufacturingServicesAward, addManufacturingServicesAward, putManufacturingServicesAward,
addLogisticsDevelopmentAward, putLogisticsDevelopmentAward, addLogisticsDevelopmentAward, putLogisticsDevelopmentAward,
addIntegrationIndustries, putIntegrationIndustries, addIntegrationIndustries, putIntegrationIndustries,
addOutQuitProducts, putOutQuitProducts
} from "@/api/onlineDeclartion/declareAddContent" } from "@/api/onlineDeclartion/declareAddContent"
import { dealFormatDate } from "@/utils/index.js" import { dealFormatDate } from "@/utils/index.js"
export default { export default {
name: "declareAddContent", name: "declareAddContent",
dicts: ['sys_show_hide', 'sys_normal_disable', 'bms_product_area', 'bms_declaration_type', // 'sys_show_hide', 'sys_normal_disable', 'bms_product_area', 'bms_declaration_type','bms_template_type', 'bms_declaration_channels',
'bms_responsibility_unit', 'bms_level', 'bms_template_type', 'bms_declaration_channels', 'bms_affiliation_type', 'sys_declaration_type', 'jjh_project_type'],
dicts: ['bms_responsibility_unit', 'bms_level', 'bms_affiliation_type', 'sys_declaration_type', 'jjh_project_type', 'template_industry', 'new_template_type'],
data() { data() {
//
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 { return {
size: '', size: '',
templateInfo: {}, templateInfo: {},
@ -1222,7 +1342,10 @@ export default {
openInterfaceInfo: {}, openInterfaceInfo: {},
templateDataList: [], templateDataList: [],
enterpriseDirectory: null, enterpriseDirectory: null,
form: {}, form: {
industry: "",
template_type: "1",
},
active: 4, active: 4,
templateId: null, templateId: null,
declarationId: null, declarationId: null,
@ -1332,6 +1455,22 @@ export default {
declarationType: [ declarationType: [
{ required: true, message: "请选择项目", trigger: "blur" } { required: true, message: "请选择项目", trigger: "blur" }
], ],
mainProducts: [
{ required: true, message: "请输入主要产品", trigger: "blur" }
],
industry: [
{ required: true, message: "请选择所属行业", trigger: "blur" }
],
workContact: [
{ required: true, message: "请输入工作联系人", trigger: "blur" }
],
iphone: [
{ required: true, message: "请输入联系电话", trigger: "blur" },
{validator: checkMobile, trigger: 'blur'}
],
template_type: [
{ required: true, message: "请选择类别", trigger: "blur" }
],
}, },
fileList: [], fileList: [],
fileListOne: [], fileListOne: [],
@ -1405,7 +1544,17 @@ export default {
goBack() { goBack() {
this.$router.go(-1) this.$router.go(-1)
}, },
submitForm() { //
handleCheckedCitiesChange(value){
if(this.fileListOne || this.uploadListOne) {
this.fileListOne = [];
this.uploadListOne = [];
this.form.fileName = ''
this.form.fileListOne = []
}
},
submitForm(type) {
console.log(this.form);
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
let params = { let params = {
@ -1416,11 +1565,11 @@ export default {
creditCode: this.baseInfo.creditCode, creditCode: this.baseInfo.creditCode,
enterpriseName: this.baseInfo.enterpriseName, enterpriseName: this.baseInfo.enterpriseName,
// declarationTemplateType: this.openInterfaceInfo.declarationTemplateType, // declarationTemplateType: this.openInterfaceInfo.declarationTemplateType,
// projectName: this.openInterfaceInfo.projectName, projectName: this.templateInfo.templateName,
// year: this.openInterfaceInfo.year, year: this.templateInfo.createTime,
projectId: this.templateId, projectId: this.templateId,
templateRecordId: this.templateRecordId, templateRecordId: this.templateRecordId,
status: 1, status: type == 'ts' ? 0 : 1,
agreement:'', //1 agreement:'', //1
businessLicense: '', //1,3,11 businessLicense: '', //1,3,11
otherMaterials: '', //1 otherMaterials: '', //1
@ -1443,6 +1592,12 @@ export default {
independentAccounting: '', //11 independentAccounting: '', //11
capitalVerificationReport: '', //11 capitalVerificationReport: '', //11
otherEvidence: '', //11 otherEvidence: '', //11
// 2024退
// mainProducts: '', //
// industry: '', //
// workContact: '', //
// iphone: '', //
// template_type: '', //
} }
if(this.templateId == "1") { if(this.templateId == "1") {
params.establishTime = this.form.establishTime params.establishTime = this.form.establishTime
@ -1811,6 +1966,37 @@ export default {
this.$router.go(-1) this.$router.go(-1)
}).catch((response) => { }).catch((response) => {
})
}
if(this.templateId == "12") {
params.mainProducts = this.form.mainProducts
params.industry = Number(this.form.industry)
params.workContact = this.form.workContact
params.iphone = this.form.iphone
params.type = Number(this.form.template_type)
params.fillingTime = dealFormatDate(new Date())
params.specifics = ''; //退
params.otherSpecifics = ''; //
this.uploadListOne.forEach((item,index) => {
if(this.uploadListOne.length-1 == index){
params.specifics+=`${item.url}`
} else {
params.specifics+=`${item.url},`
}
})
this.uploadListTwo.forEach((item,index) => {
if(this.uploadListTwo.length-1 == index){
params.otherSpecifics+=`${item.url}`
} else {
params.otherSpecifics+=`${item.url},`
}
})
// console.log(params);
addOutQuitProducts(params).then((response) => {
this.$message.success("上传成功");
this.$router.go(-1)
}).catch((response) => {
}) })
} }
} }
@ -2137,6 +2323,9 @@ list-style: none; /* 清除列表项前的标记 */
border-bottom: 1px solid #ebeef5; border-bottom: 1px solid #ebeef5;
padding: 10px 30px; padding: 10px 30px;
} }
.upload_col_one {
padding-bottom: 100px;
}
.templateInfo { .templateInfo {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;

@ -570,6 +570,101 @@
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
<!-- 2024年度淘汰落后和退出低端低效产能装备清单模板 -->
<div class="table-content" v-if="templateId == 12">
<el-descriptions class="margin-top" title="【项目投资计划】" :column="2" :size="size" border :label-style="LS">
<el-descriptions-item>
<template slot="label">
项目名称
</template>
{{ templateInfo.templateName }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<span v-if="pageType == 'detail'"></span>
<span v-if="pageType == 'edit'" class="f_validate">*</span>
<span v-if="pageType == 'edit'"></span>
</template>
<el-form-item v-if="pageType == 'edit'" prop="mainProducts" label-width="0">
<el-input
v-if="pageType == 'edit'"
type="text"
placeholder="请输入主要产品"
v-model="form.mainProducts"
show-word-limit
>
</el-input>
</el-form-item>
<span v-if="pageType == 'detail'">{{ form.mainProducts }}</span>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<span v-if="pageType == 'detail'"></span>
<span v-if="pageType == 'edit'" class="f_validate">*</span>
<span v-if="pageType == 'edit'"></span>
</template>
<el-form-item v-if="pageType == 'edit'" label-width="0" prop="industry">
<el-checkbox-group v-model="form.industry" style="width: 100%;" :disabled="pageType == 'edit' ? false : true">
<el-checkbox v-for="city in dict.type.template_industry" :true-label="city.value" :label="city.value" :key="city.value">
{{city.label}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
<dict-tag v-if="pageType == 'detail'" :options="dict.type.template_industry" :value="form.industry"/>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<span v-if="pageType == 'detail'"></span>
<span v-if="pageType == 'edit'" class="f_validate">*</span>
<span v-if="pageType == 'edit'"></span>
</template>
<el-form-item v-if="pageType == 'edit'" prop="workContact" label-width="0">
<el-input
v-if="pageType == 'edit'"
type="text"
placeholder="请输入工作联系人"
v-model="form.workContact"
show-word-limit
>
</el-input>
</el-form-item>
<span v-if="pageType == 'detail'">{{ form.workContact }}</span>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<span v-if="pageType == 'detail'"></span>
<span v-if="pageType == 'edit'" class="f_validate">*</span>
<span v-if="pageType == 'edit'"></span>
</template>
<el-form-item v-if="pageType == 'edit'" prop="iphone" label-width="0">
<el-input
v-if="pageType == 'edit'"
type="text"
placeholder="请输入联系电话"
v-model="form.iphone"
show-word-limit
>
</el-input>
</el-form-item>
<span v-if="pageType == 'detail'">{{ form.iphone }}</span>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<span v-if="pageType == 'detail'"></span>
<span v-if="pageType == 'edit'" class="f_validate">*</span>
<span v-if="pageType == 'edit'"></span>
</template>
<el-form-item v-if="pageType == 'edit'" label-width="0" prop="template_type">
<el-checkbox-group v-model="form.template_type" style="width: 100%;" :disabled="pageType == 'edit' ? false : true">
<el-checkbox v-for="city in dict.type.new_template_type" :true-label="city.value" :label="city.value" :key="city.value">
{{city.label}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
<dict-tag v-if="pageType == 'detail'" :options="dict.type.new_template_type" :value="form.template_type"/>
</el-descriptions-item>
</el-descriptions>
</div>
<!-- 上传文件列表 --> <!-- 上传文件列表 -->
<div class="table-content"> <div class="table-content">
<p>上传材料</p> <p>上传材料</p>
@ -1210,6 +1305,53 @@
</ul> </ul>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- 2024年度淘汰落后和退出低端低效产能装备清单模板 -->
<el-col :span="24" v-if="templateId == 12 " class="upload_col upload_col_one">
<el-form-item :label="form.template_type == '1' ? '淘汰落后生产工艺装备':'退出低端低效产能装备'" label-width="340px" prop="fileListOne">
<div class="form_item">1填报具体装备名称规格型号数量等共XX台套</div>
<div class="form_item" style="margin-top: 20px;">2落后生产工艺装备特指产业结构调整指导目录中明列的淘汰类落后生产工艺装备低端低效生产工艺装备主要指经过较长时间运行在能耗环保安全技术指标等方面已弱化企业拟主动提前退出的设备它不属强制淘汰范畴</div>
<el-upload
class="upload-demo"
:show-file-list="false"
action=""
accept=".xlsx,.XLSX,.XSL,.doc,.xls,.ppt,.pdf,.png,.jpg,.jpeg,.rar,.zip,.docx"
:http-request="handleFileUploadOne"
:file-list="fileListOne"
:on-remove="handleRemove">
<el-button slot="trigger" size="small" type="primary">上传文件</el-button>
<div slot="tip" class="el-upload__tip">请上传格式为<span style="color: red;">doc/xls/ppt/pdf/png/jpg/jpeg/rar/zip/docx/xlsx</span>的文件</div>
</el-upload>
<ul v-if="fileListOne.length >0" class="upload_ul">
<li v-for="item in uploadListOne" :key="item.url" class="upload_li">
<img src="../../../assets/images/uploadBgc.jpg" class="li_img" alt="">
<span class="icon_name">{{ item.name | dealURL }}</span>
<el-button type="text" style="color: red;" @click="deleteUploadOne(item)"></el-button>
</li>
</ul>
</el-form-item>
</el-col>
<el-col :span="24" v-if="templateId == 12 " class="upload_col">
<el-form-item label="其他相关情况说明" label-width="340px" prop="fileListTwo">
<el-upload
class="upload-demo"
:show-file-list="false"
action=""
accept=".xlsx,.XLSX,.XSL,.doc,.xls,.ppt,.pdf,.png,.jpg,.jpeg,.rar,.zip,.docx"
:http-request="handleFileUploadTwo"
:file-list="fileListTwo"
:on-remove="handleRemove">
<el-button slot="trigger" size="small" type="primary">上传文件</el-button>
<div slot="tip" class="el-upload__tip">请上传格式为<span style="color: red;">doc/xls/ppt/pdf/png/jpg/jpeg/rar/zip/docx/xlsx</span>的文件</div>
</el-upload>
<ul v-if="fileListTwo.length >0" class="upload_ul">
<li v-for="item in uploadListTwo" :key="item.url" class="upload_li">
<img src="../../../assets/images/uploadBgc.jpg" class="li_img" alt="">
<span class="icon_name">{{ item.name | dealURL}}</span>
<el-button type="text" style="color: red;" @click="deleteUploadTwo(item)"></el-button>
</li>
</ul>
</el-form-item>
</el-col>
</el-row> </el-row>
<div v-if="pageType == 'detail'"> <div v-if="pageType == 'detail'">
<!-- 项目落户奖补模版 1--> <!-- 项目落户奖补模版 1-->
@ -1652,6 +1794,39 @@
</ul> </ul>
</div> </div>
</div> </div>
<!-- 2024年度淘汰落后和退出低端低效产能装备清单模板 -->
<div v-if="templateId == 12 " class="detail_main">
<div class="left">
<div class="upload_title">{{ form.template_type == '1' ? '淘汰落后生产工艺装备':'退出低端低效产能装备' }}</div>
<div class="title_explain">1填报具体装备名称规格型号数量等共XX台套</div>
<div class="title_explain">2落后生产工艺装备特指产业结构调整指导目录中明列的淘汰类落后生产工艺装备低端低效生产工艺装备主要指经过较长时间运行在能耗环保安全技术指标等方面已弱化企业拟主动提前退出的设备它不属强制淘汰范畴</div>
</div>
<div class="right">
<ul class="upload_ul">
<li v-for="item in uploadListOne" :key="item.url" class="upload_li">
<a :href="VUE_APP_BASE_API + item.url" target="_blank">
<img src="../../../assets/images/uploadBgc.jpg" class="li_img" alt="">
<span class="icon_name">{{ item.name | dealURL }}</span>
</a>
</li>
</ul>
</div>
</div>
<div v-if="templateId == 12 " class="detail_main">
<div class="left">
<div class="upload_title">其他相关情况说明</div>
</div>
<div class="right">
<ul class="upload_ul">
<li v-for="item in uploadListTwo" :key="item.url" class="upload_li">
<a :href="VUE_APP_BASE_API + item.url" target="_blank">
<img src="../../../assets/images/uploadBgc.jpg" class="li_img" alt="">
<span class="icon_name">{{ item.name | dealURL }}</span>
</a>
</li>
</ul>
</div>
</div>
</div> </div>
</div> </div>
</el-form> </el-form>
@ -1739,8 +1914,8 @@
</div> </div>
<div class="operate_btn"> <div class="operate_btn">
<el-button @click="goBack"></el-button> <el-button @click="goBack"></el-button>
<el-button v-if="pageType == 'edit'" @click="submitForm"></el-button> <el-button v-if="pageType == 'edit'" @click="submitForm('ts')"></el-button>
<el-button v-if="pageType == 'edit'" type="success" @click="submitForm"></el-button> <el-button v-if="pageType == 'edit'" type="success" @click="submitForm('sub')"></el-button>
<el-button v-if="pageType == 'detail'" @click="printOutpdf" class="btn"></el-button> <el-button v-if="pageType == 'detail'" @click="printOutpdf" class="btn"></el-button>
</div> </div>
</div> </div>
@ -1759,15 +1934,15 @@ import { getTemplateInfo, getBasicInfo, getOpenInterface, uploadFile, getDeclara
addManufacturingServicesAward, putManufacturingServicesAward, addManufacturingServicesAward, putManufacturingServicesAward,
addLogisticsDevelopmentAward, putLogisticsDevelopmentAward, addLogisticsDevelopmentAward, putLogisticsDevelopmentAward,
addIntegrationIndustries, putIntegrationIndustries, addIntegrationIndustries, putIntegrationIndustries,
addOutQuitProducts, putOutQuitProducts
} from "@/api/onlineDeclartion/declareAddContent" } from "@/api/onlineDeclartion/declareAddContent"
import { dealFormatDate } from "@/utils/index.js" import { dealFormatDate } from "@/utils/index.js"
import html2canvas from 'html2canvas'; import html2canvas from 'html2canvas';
import JsPDF from 'jspdf'; import JsPDF from 'jspdf';
// 'sys_show_hide', 'sys_normal_disable', 'bms_product_area', 'bms_declaration_type', 'bms_template_type', 'bms_declaration_channels'
export default { export default {
name: "declareDetailContent", name: "declareDetailContent",
dicts: ['sys_show_hide', 'sys_normal_disable', 'bms_product_area', 'bms_declaration_type', dicts: ['bms_responsibility_unit', 'bms_level', 'bms_affiliation_type', 'sys_declaration_type', 'jjh_project_type', 'template_industry', 'new_template_type'],
'bms_responsibility_unit', 'bms_level', 'bms_template_type', 'bms_declaration_channels', 'bms_affiliation_type', 'sys_declaration_type', 'jjh_project_type'],
data() { data() {
return { return {
VUE_APP_BASE_API:process.env.VUE_APP_BASE_API, VUE_APP_BASE_API:process.env.VUE_APP_BASE_API,
@ -1775,7 +1950,10 @@ export default {
templateInfo: {}, templateInfo: {},
baseInfo: {}, baseInfo: {},
openInterfaceInfo: {}, openInterfaceInfo: {},
form: {}, form: {
industry: "",
template_type: "1",
},
active: 4, active: 4,
templateId: null, //id templateId: null, //id
templateRecordId: null, //ID templateRecordId: null, //ID
@ -1886,6 +2064,9 @@ export default {
declarationType: [ declarationType: [
{ required: true, message: "请选择项目", trigger: "blur" } { required: true, message: "请选择项目", trigger: "blur" }
], ],
industry: [
{ required: true, message: "请选择所属行业", trigger: "blur" }
]
}, },
fileList: [], fileList: [],
fileListOne: [], fileListOne: [],
@ -1913,12 +2094,13 @@ export default {
}; };
}, },
async mounted(){ async mounted(){
let { templateId, templateRecordId, pageType, detailId, enterpriseId} = this.$route.query; // enterpriseId, templateRecordId
let { templateId, pageType, detailId} = this.$route.query;
this.templateId = templateId this.templateId = templateId
this.templateRecordId = templateRecordId // this.templateRecordId = templateRecordId
this.detailId = detailId this.detailId = detailId
this.pageType = pageType this.pageType = pageType
this.enterpriseId = enterpriseId // this.enterpriseId = enterpriseId
let { data } = await getTemplateInfo({templateId: templateId}) let { data } = await getTemplateInfo({templateId: templateId})
this.templateInfo = data this.templateInfo = data
switch (this.templateId){ switch (this.templateId){
@ -2201,6 +2383,7 @@ export default {
if(this.templateId == "11") { if(this.templateId == "11") {
this.form = response.data.bmsIntegrationIndustries //11 this.form = response.data.bmsIntegrationIndustries //11
this.form.declarationType = this.form.declarationType + '' this.form.declarationType = this.form.declarationType + ''
this.form.industry = this.form.industry + ''
let evidence = this.form.evidence.split(',') let evidence = this.form.evidence.split(',')
let businessLicense = this.form.businessLicense.split(',') let businessLicense = this.form.businessLicense.split(',')
let taxPaymentCertificate = this.form.taxPaymentCertificate.split(',') let taxPaymentCertificate = this.form.taxPaymentCertificate.split(',')
@ -2256,9 +2439,27 @@ export default {
this.form.fileListNine = [...this.uploadListNine] this.form.fileListNine = [...this.uploadListNine]
}) })
} }
if(this.templateId == "12") {
this.form = response.data.bmsOutQuitProducts //3
this.form.template_type = this.form.type + '';
this.form.industry = this.form.industry + '';
let specifics = this.form.specifics.split(',')
let otherSpecifics = this.form.otherSpecifics.split(',')
specifics.forEach(item => {
this.uploadListOne.push({name: item,url: item})
this.fileListOne = [...this.uploadListOne]
this.form.fileListOne = [...this.uploadListOne]
})
otherSpecifics.forEach(item => {
this.uploadListTwo.push({name: item,url: item})
this.fileListTwo = [...this.uploadListTwo]
this.form.fileListTwo = [...this.uploadListTwo]
})
// console.log(this.form);
}
}) })
}, },
submitForm() { submitForm(type) {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
let params = { let params = {
@ -2274,7 +2475,7 @@ export default {
templateRecordId: this.templateRecordId, templateRecordId: this.templateRecordId,
declarationRecordsId: this.detailId, declarationRecordsId: this.detailId,
id: this.form.id, id: this.form.id,
status: 1, status: type == 'ts' ? 0 : 1,
agreement:'', //1 agreement:'', //1
businessLicense: '', //1,3,11 businessLicense: '', //1,3,11
otherMaterials: '', //1 otherMaterials: '', //1
@ -2697,6 +2898,36 @@ export default {
this.$router.go(-1) this.$router.go(-1)
}).catch((response) => { }).catch((response) => {
})
}
if(this.templateId == "12") {
params.mainProducts = this.form.mainProducts
params.industry = Number(this.form.industry)
params.workContact = this.form.workContact
params.iphone = this.form.iphone
params.type = Number(this.form.template_type)
params.fillingTime = dealFormatDate(new Date())
params.specifics = ''; //退
params.otherSpecifics = ''; //
this.uploadListOne.forEach((item,index) => {
if(this.uploadListOne.length-1 == index){
params.specifics+=`${item.url}`
} else {
params.specifics+=`${item.url},`
}
})
this.uploadListTwo.forEach((item,index) => {
if(this.uploadListTwo.length-1 == index){
params.otherSpecifics+=`${item.url}`
} else {
params.otherSpecifics+=`${item.url},`
}
})
putOutQuitProducts(params).then((response) => {
this.$message.success("修改成功");
this.$router.go(-1)
}).catch((response) => {
}) })
} }
} }
@ -3038,6 +3269,9 @@ list-style: none; /* 清除列表项前的标记 */
border-bottom: 1px solid #ebeef5; border-bottom: 1px solid #ebeef5;
padding: 10px 30px; padding: 10px 30px;
} }
.upload_col_one {
padding-bottom: 100px;
}
.detail_main { .detail_main {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;

@ -635,6 +635,53 @@
</ul> </ul>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- 2024年度淘汰落后和退出低端低效产能装备清单模板 -->
<el-col :span="24" v-if="enterpriseInfo.templateId == 12 " class="upload_col upload_col_one">
<el-form-item :label="form.template_type == '1' ? '淘汰落后生产工艺装备':'退出低端低效产能装备'" label-width="340px" prop="fileListOne">
<div class="form_item">1填报具体装备名称规格型号数量等共XX台套</div>
<div class="form_item" style="margin-top: 20px;">2落后生产工艺装备特指产业结构调整指导目录中明列的淘汰类落后生产工艺装备低端低效生产工艺装备主要指经过较长时间运行在能耗环保安全技术指标等方面已弱化企业拟主动提前退出的设备它不属强制淘汰范畴</div>
<el-upload
class="upload-demo"
:show-file-list="false"
action=""
accept=".xlsx,.XLSX,.XSL,.doc,.xls,.ppt,.pdf,.png,.jpg,.jpeg,.rar,.zip,.docx"
:http-request="handleFileUploadOne"
:file-list="fileListOne"
:on-remove="handleRemove">
<el-button slot="trigger" size="small" type="primary">上传文件</el-button>
<div slot="tip" class="el-upload__tip">请上传格式为<span style="color: red;">doc/xls/ppt/pdf/png/jpg/jpeg/rar/zip/docx/xlsx</span>的文件</div>
</el-upload>
<ul v-if="fileListOne.length >0" class="upload_ul">
<li v-for="item in uploadListOne" :key="item.url" class="upload_li">
<img src="@/assets/images/uploadBgc.jpg" class="li_img" alt="">
<span class="icon_name">{{ item.name | dealURL }}</span>
<el-button type="text" style="color: red;" @click="deleteUploadOne(item)"></el-button>
</li>
</ul>
</el-form-item>
</el-col>
<el-col :span="24" v-if="enterpriseInfo.templateId == 12 " class="upload_col">
<el-form-item label="其他相关情况说明" label-width="340px" prop="fileListTwo">
<el-upload
class="upload-demo"
:show-file-list="false"
action=""
accept=".xlsx,.XLSX,.XSL,.doc,.xls,.ppt,.pdf,.png,.jpg,.jpeg,.rar,.zip,.docx"
:http-request="handleFileUploadTwo"
:file-list="fileListTwo"
:on-remove="handleRemove">
<el-button slot="trigger" size="small" type="primary">上传文件</el-button>
<div slot="tip" class="el-upload__tip">请上传格式为<span style="color: red;">doc/xls/ppt/pdf/png/jpg/jpeg/rar/zip/docx/xlsx</span>的文件</div>
</el-upload>
<ul v-if="fileListTwo.length >0" class="upload_ul">
<li v-for="item in uploadListTwo" :key="item.url" class="upload_li">
<img src="@/assets/images/uploadBgc.jpg" class="li_img" alt="">
<span class="icon_name">{{ item.name | dealURL}}</span>
<el-button type="text" style="color: red;" @click="deleteUploadTwo(item)"></el-button>
</li>
</ul>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24" style="display: flex;justify-content: flex-end;margin-top: 10px"> <el-col :span="24" style="display: flex;justify-content: flex-end;margin-top: 10px">
@ -659,6 +706,7 @@ import {
templateNineUpdata, templateNineUpdata,
templateTenUpdata, templateTenUpdata,
templateElevenUpdata, templateElevenUpdata,
templateProductsUpdata,
uploadFile, uploadFile,
} from "@/api/onlineDeclartion/declareAddContent" } from "@/api/onlineDeclartion/declareAddContent"
import { dealFormatDate } from "@/utils/index.js" import { dealFormatDate } from "@/utils/index.js"
@ -1012,6 +1060,21 @@ export default {
}) })
} }
} }
if(option.templateId == "12") {
this.form = response.data.bmsOutQuitProducts //12
let specifics = this.form.specifics.split(',')
let otherSpecifics = this.form.otherSpecifics.split(',')
specifics.forEach(item => {
this.uploadListOne.push({name: item,url: item})
this.fileListOne = [...this.uploadListOne]
this.form.fileListOne = [...this.uploadListOne]
})
otherSpecifics.forEach(item => {
this.uploadListTwo.push({name: item,url: item})
this.fileListTwo = [...this.uploadListTwo]
this.form.fileListTwo = [...this.uploadListTwo]
})
}
this.openCity = true this.openCity = true
}) })
}, },
@ -1503,6 +1566,43 @@ export default {
} }
}).catch((response) => { }).catch((response) => {
})
}
if(this.enterpriseInfo.templateId == "12") {
params.mainProducts = this.form.mainProducts
params.industry = Number(this.form.industry)
params.workContact = this.form.workContact
params.iphone = this.form.iphone
params.type = Number(this.form.template_type)
params.fillingTime = dealFormatDate(new Date())
params.specifics = ''; //退
params.otherSpecifics = ''; //
this.uploadListOne.forEach((item,index) => {
if(this.uploadListOne.length-1 == index){
params.specifics+=`${item.url}`
} else {
params.specifics+=`${item.url},`
}
})
this.uploadListTwo.forEach((item,index) => {
if(this.uploadListTwo.length-1 == index){
params.otherSpecifics+=`${item.url}`
} else {
params.otherSpecifics+=`${item.url},`
}
})
templateProductsUpdata(params).then((response) => {
if(response.code == 200) {
this.$message.success("修改成功");
this.openCity = false;
this.fileListOne = [];
this.fileListTwo = [];
this.uploadListOne = [];
this.uploadListTwo = [];
this.$refs.form.resetFields();
}
}).catch((response) => {
}) })
} }
} }
@ -1808,6 +1908,9 @@ list-style: none; /* 清除列表项前的标记 */
// border-bottom: 1px solid #ebeef5; // border-bottom: 1px solid #ebeef5;
padding: 10px 30px; padding: 10px 30px;
} }
.upload_col_one {
padding-bottom: 100px;
}
.form_item { .form_item {
position: absolute; position: absolute;
width: 300px; width: 300px;

@ -581,10 +581,10 @@ export default {
handleDetail(row){ handleDetail(row){
this.$router.push({name: 'declareDetailContent',query: { this.$router.push({name: 'declareDetailContent',query: {
templateId: row.templateId, templateId: row.templateId,
templateRecordId: row.templateRecordId, // templateRecordId: row.templateRecordId,
pageType: "detail", pageType: "detail",
detailId: row.id, detailId: row.id,
enterpriseId: row.enterpriseId // enterpriseId: row.enterpriseId
}}) }})
}, },
/** 上传附件 */ /** 上传附件 */

@ -212,6 +212,36 @@
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
<!-- 2024年度淘汰落后和退出低端低效产能装备清单 -->
<div class="table-content" v-if="templateId == 12">
<el-descriptions class="margin-top" title="【项目投资计划】" :column="2" :size="size" border :label-style="LS">
<el-descriptions-item>
<template slot="label">
主要产品
</template>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
所属行业
</template>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
工作联系人
</template>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
联系电话
</template>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
类别
</template>
</el-descriptions-item>
</el-descriptions>
</div>
<!-- 上传文件列表 --> <!-- 上传文件列表 -->
<div class="table-content last_upload"> <div class="table-content last_upload">
<p>上传材料</p> <p>上传材料</p>
@ -291,7 +321,7 @@
<div v-if="templateId == 10 " class="upload_col"> <div v-if="templateId == 10 " class="upload_col">
<div class="upload_title">会计师事务所出具的企业财务报表审计报告</div> <div class="upload_title">会计师事务所出具的企业财务报表审计报告</div>
</div> </div>
<!-- 物流发展奖补模版 --> <!-- 两业融合奖补模版 -->
<div v-if="templateId == 11 " class="upload_col"> <div v-if="templateId == 11 " class="upload_col">
<div class="upload_title">证明文件</div> <div class="upload_title">证明文件</div>
</div> </div>
@ -320,6 +350,14 @@
<div v-if="templateId == 11 " class="upload_col"> <div v-if="templateId == 11 " class="upload_col">
<div class="upload_title">其他证明材料</div> <div class="upload_title">其他证明材料</div>
</div> </div>
<!-- 2024年度淘汰落后和退出低端低效产能装备清单 -->
<div v-if="templateId == 12 " class="upload_col">
<div class="upload_title">拟淘汰或退出生产工艺装备情况</div>
<div class="form_item">落后生产工艺装备特指产业结构调整指导目录中明列的淘汰类落后生产工艺装备低端低效生产工艺装备主要指经过较长时间运行在能耗环保安全技术指标等方面已弱化企业拟主动提前退出的设备它不属强制淘汰范畴</div>
</div>
<div v-if="templateId == 12 " class="upload_col">
<div class="upload_title">其他相关情况说明</div>
</div>
</div> </div>
</div> </div>
<!-- <div class="operate_btn"> <!-- <div class="operate_btn">

Loading…
Cancel
Save