|
@@ -0,0 +1,336 @@
|
|
|
+<template>
|
|
|
+ <div id="datalists">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24" class="datalist">
|
|
|
+ <el-form :model="datalistForm" :rules="rules" ref="datalistForm" label-width="0">
|
|
|
+ <el-col :span="24" class="text">
|
|
|
+ <el-col :span="24" class="title" style="color:#ff0000">
|
|
|
+ 研究工作报告(必备):
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="file">
|
|
|
+ <el-form-item prop="work_report">
|
|
|
+ <upload
|
|
|
+ :limit="1"
|
|
|
+ :data="datalistForm.work_report"
|
|
|
+ type="work_report"
|
|
|
+ listType=""
|
|
|
+ :url="'/files/live/userDeclare_workreport/upload'"
|
|
|
+ @upload="uploadSuccess"
|
|
|
+ @delete="uploadDelete"
|
|
|
+ ></upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="text">
|
|
|
+ <el-col :span="24" class="title" style="color:#ff0000">
|
|
|
+ 研究技术报告(必备):
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="file">
|
|
|
+ <el-form-item prop="techol_report">
|
|
|
+ <upload
|
|
|
+ :limit="1"
|
|
|
+ :data="datalistForm.techol_report"
|
|
|
+ type="techol_report"
|
|
|
+ listType=""
|
|
|
+ :url="'/files/live/userDeclare_techolreport/upload'"
|
|
|
+ @upload="uploadSuccess"
|
|
|
+ @delete="uploadDelete"
|
|
|
+ ></upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="text">
|
|
|
+ <el-col :span="24" class="title" style="color:#ff0000">
|
|
|
+ 经济效益分析(必备):
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="file">
|
|
|
+ <el-form-item prop="benefit">
|
|
|
+ <upload
|
|
|
+ :limit="1"
|
|
|
+ :data="datalistForm.benefit"
|
|
|
+ type="benefit"
|
|
|
+ listType=""
|
|
|
+ :url="'/files/live/userDeclare_benefit/upload'"
|
|
|
+ @upload="uploadSuccess"
|
|
|
+ @delete="uploadDelete"
|
|
|
+ ></upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="text">
|
|
|
+ <el-col :span="24" class="title" style="color:#ff0000">
|
|
|
+ 科技查新报告(科技项目成果,必备):
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="file">
|
|
|
+ <el-form-item prop="science_report">
|
|
|
+ <upload
|
|
|
+ :limit="1"
|
|
|
+ :data="datalistForm.science_report"
|
|
|
+ type="science_report"
|
|
|
+ listType=""
|
|
|
+ :url="'/files/live/userDeclare_sciencereport/upload'"
|
|
|
+ @upload="uploadSuccess"
|
|
|
+ @delete="uploadDelete"
|
|
|
+ ></upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="text">
|
|
|
+ <el-col :span="24" class="title" style="color:#ff0000">
|
|
|
+ 法律价值评估报告(专利成果,必备):
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="file">
|
|
|
+ <el-form-item prop="assess_report">
|
|
|
+ <upload
|
|
|
+ :limit="1"
|
|
|
+ :data="datalistForm.assess_report"
|
|
|
+ type="assess_report"
|
|
|
+ listType=""
|
|
|
+ :url="'/files/live/userDeclare_assessreport/upload'"
|
|
|
+ @upload="uploadSuccess"
|
|
|
+ @delete="uploadDelete"
|
|
|
+ ></upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="text">
|
|
|
+ <el-col :span="24" class="title" style="color:#ff0000">
|
|
|
+ 推广应用证明(两家以上应用单位,必备):
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="file">
|
|
|
+ <el-form-item prop="app_prove">
|
|
|
+ <upload
|
|
|
+ :limit="1"
|
|
|
+ :data="datalistForm.app_prove"
|
|
|
+ type="app_prove"
|
|
|
+ listType=""
|
|
|
+ :url="'/files/live/userDeclare_appprove/upload'"
|
|
|
+ @upload="uploadSuccess"
|
|
|
+ @delete="uploadDelete"
|
|
|
+ ></upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="text">
|
|
|
+ <el-col :span="24" class="title" style="color:#ff0000">
|
|
|
+ 成果技术汇报PPT(必备):
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="file">
|
|
|
+ <el-form-item prop="techol_ppt">
|
|
|
+ <upload
|
|
|
+ :limit="1"
|
|
|
+ :data="datalistForm.techol_ppt"
|
|
|
+ type="techol_ppt"
|
|
|
+ listType=""
|
|
|
+ :url="'/files/live/userDeclare_techolppt/upload'"
|
|
|
+ @upload="uploadSuccess"
|
|
|
+ @delete="uploadDelete"
|
|
|
+ ></upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="text">
|
|
|
+ <el-col :span="24" class="title">
|
|
|
+ 检测报告(根据项目需要提供):
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="file">
|
|
|
+ <el-form-item prop="testing_report">
|
|
|
+ <upload
|
|
|
+ :limit="1"
|
|
|
+ :data="datalistForm.testing_report"
|
|
|
+ type="testing_report"
|
|
|
+ listType=""
|
|
|
+ :url="'/files/live/userDeclare_testingreport/upload'"
|
|
|
+ @upload="uploadSuccess"
|
|
|
+ @delete="uploadDelete"
|
|
|
+ ></upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="text">
|
|
|
+ <el-col :span="24" class="title">
|
|
|
+ 质量标准(检测报告所依据的标准,企业标准,行业标准,国家标准,国际标准):
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="file">
|
|
|
+ <el-form-item prop="quality">
|
|
|
+ <upload
|
|
|
+ :limit="1"
|
|
|
+ :data="datalistForm.quality"
|
|
|
+ type="quality"
|
|
|
+ listType=""
|
|
|
+ :url="'/files/live/userDeclare_quality/upload'"
|
|
|
+ @upload="uploadSuccess"
|
|
|
+ @delete="uploadDelete"
|
|
|
+ ></upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="text">
|
|
|
+ <el-col :span="24" class="title">
|
|
|
+ 与本成果相关的授权专利证书:
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="file">
|
|
|
+ <el-form-item prop="patent">
|
|
|
+ <upload
|
|
|
+ :limit="1"
|
|
|
+ :data="datalistForm.patent"
|
|
|
+ type="patent"
|
|
|
+ listType=""
|
|
|
+ :url="'/files/live/userDeclare_patent/upload'"
|
|
|
+ @upload="uploadSuccess"
|
|
|
+ @delete="uploadDelete"
|
|
|
+ ></upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="text">
|
|
|
+ <el-col :span="24" class="title">
|
|
|
+ 特殊行业需要提供的相应证明材料:
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="file">
|
|
|
+ <el-form-item prop="special">
|
|
|
+ <upload
|
|
|
+ :limit="1"
|
|
|
+ :data="datalistForm.special"
|
|
|
+ type="special"
|
|
|
+ listType=""
|
|
|
+ :url="'/files/live/userDeclare_special/upload'"
|
|
|
+ @upload="uploadSuccess"
|
|
|
+ @delete="uploadDelete"
|
|
|
+ ></upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="text">
|
|
|
+ <el-col :span="24" class="title">
|
|
|
+ 项目经费预算书:
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="file">
|
|
|
+ <el-form-item prop="budget">
|
|
|
+ <upload
|
|
|
+ :limit="1"
|
|
|
+ :data="datalistForm.budget"
|
|
|
+ type="budget"
|
|
|
+ listType=""
|
|
|
+ :url="'/files/live/userDeclare_budget/upload'"
|
|
|
+ @upload="uploadSuccess"
|
|
|
+ @delete="uploadDelete"
|
|
|
+ ></upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="text">
|
|
|
+ <el-col :span="24" class="title">
|
|
|
+ 项目经费决算书:
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="file">
|
|
|
+ <el-form-item prop="final">
|
|
|
+ <upload
|
|
|
+ :limit="1"
|
|
|
+ :data="datalistForm.final"
|
|
|
+ type="final"
|
|
|
+ listType=""
|
|
|
+ :url="'/files/live/userDeclare_final/upload'"
|
|
|
+ @upload="uploadSuccess"
|
|
|
+ @delete="uploadDelete"
|
|
|
+ ></upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="btn">
|
|
|
+ <el-button type="primary" size="mini" @click="detailedUp">上一步</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="onSubmit('datalistForm')">提交申报</el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-form>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import upload from '@common/src/components/frame/upload.vue';
|
|
|
+import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
+export default {
|
|
|
+ name: 'datalists',
|
|
|
+ props: {
|
|
|
+ datalistForm: { type: Object },
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ upload,
|
|
|
+ },
|
|
|
+ data: function() {
|
|
|
+ return {
|
|
|
+ rules: {
|
|
|
+ work_report: [{ required: true, message: '请上传研究工作报告', trigger: 'blur' }],
|
|
|
+ techol_report: [{ required: true, message: '请上传研究技术报告', trigger: 'blur' }],
|
|
|
+ benefit: [{ required: true, message: '请上传经济效益分析', trigger: 'blur' }],
|
|
|
+ science_report: [{ required: true, message: '请上传科技查新报告', trigger: 'blur' }],
|
|
|
+ assess_report: [{ required: true, message: '请上传法律价值评估报告', trigger: 'blur' }],
|
|
|
+ app_prove: [{ required: true, message: '请上传推广应用证明', trigger: 'blur' }],
|
|
|
+ techol_ppt: [{ required: true, message: '请上传成果技术汇报PPT', trigger: 'blur' }],
|
|
|
+ testing_report: [{ required: false, message: '请上传检测报告', trigger: 'blur' }],
|
|
|
+ quality: [{ required: false, message: '请上传质量标准', trigger: 'blur' }],
|
|
|
+ patent: [{ required: false, message: '请上传与本成果相关的授权专利证书', trigger: 'blur' }],
|
|
|
+ special: [{ required: false, message: '请上传特殊行业需要提供的相应证明材料', trigger: 'blur' }],
|
|
|
+ budget: [{ required: false, message: '请上传项目经费预算书', trigger: 'blur' }],
|
|
|
+ final: [{ required: false, message: '请上传项目经费决算书', trigger: 'blur' }],
|
|
|
+ },
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {},
|
|
|
+ methods: {
|
|
|
+ detailedUp() {
|
|
|
+ this.$emit('detailedUp');
|
|
|
+ },
|
|
|
+ onSubmit(formName) {
|
|
|
+ this.$refs[formName].validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ this.$emit('onSubmit', { data: this.datalistForm });
|
|
|
+ } else {
|
|
|
+ console.log('error submit!!');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 图片上传
|
|
|
+ uploadSuccess({ type, data }) {
|
|
|
+ this.$set(this.datalistForm, `${type}`, data.uri);
|
|
|
+ },
|
|
|
+ // 删除图片
|
|
|
+ uploadDelete(data) {
|
|
|
+ this.$set(this.datalistForm, `${data.type}`, null);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapState(['user']),
|
|
|
+ pageTitle() {
|
|
|
+ return `${this.$route.meta.title}`;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ metaInfo() {
|
|
|
+ return { title: this.$route.meta.title };
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+.datalist {
|
|
|
+ padding: 0 15px;
|
|
|
+ .text {
|
|
|
+ padding: 10px 0 10px 0;
|
|
|
+ // border-bottom: 1px solid red;
|
|
|
+ .title {
|
|
|
+ font-size: 18px;
|
|
|
+ font-weight: bold;
|
|
|
+ margin: 0 0 10px 0;
|
|
|
+ }
|
|
|
+ .file {
|
|
|
+ border: 1px dashed #ccc;
|
|
|
+ padding: 15px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .btn {
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|