liuxiangqi пре 1 година
родитељ
комит
494d4ef8d0

BIN
public/temp/研发项目验收报告模板.docx


+ 6 - 4
src/views/enterprise/employee/index.vue

@@ -123,7 +123,7 @@
           <el-row>
             <el-col :span="12">
               <el-form-item label="登录名称" prop="userName">
-                <el-input v-model="form.userName" placeholder="请输入登录名称" maxlength="30" />
+                <el-input v-model="form.userName" placeholder="请输入登录名称" maxlength="30" :disabled="disabled"/>
               </el-form-item>
             </el-col>
             <el-col :span="12" v-if="pwdVisible">
@@ -213,9 +213,9 @@ export default {
         userName: undefined,
         nickName: undefined,
         mobile: undefined,
-        flag: true
-
-      },
+        flag: true
+      },
+      disabled: false,
       // 表单参数
       form: {},
       // 表单校验
@@ -306,6 +306,7 @@ export default {
       this.reset();
       this.open = true;
       this.title = "添加用户";
+      this.disabled = false
       this.pwdVisible =  true
     },
     /** 修改按钮操作 */
@@ -317,6 +318,7 @@ export default {
         this.open = true;
         this.title = "修改用户";
         this.pwdVisible = false
+        this.disabled = true
         // this.$set(this.form, 'password', '')
         // this.form.password = "";
       });

+ 422 - 294
src/views/enterprise/project/components/enclosure-edit.vue

@@ -9,23 +9,211 @@
         <el-button type="primary" plain icon="el-icon-download" size="mini" @click="handleDownloadBatch">批量下载</el-button>
       </div>
     </h3>
-    <div class="table-con">
-      <table class="table_register mt20 tablebar" style="width: 100%;">
+    <el-form ref="form" :model="form" label-width="180px">
+      <div class="table-con">
+        <table class="table_register mt20 tablebar" style="width: 100%;">
+              <tr>
+                <th colspan="4" class="th_title">1、项目计划书
+                </th>
+              </tr>
+              <tr>
+                <th>项目计划书导入</th>
+                <td colspan="3">
+                  <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('9')" v-if="techFlag && list9.length<=0">上传</el-button>
+                </td>
+              </tr>
+              <tr>
+                <th>下载</th>
+                <td colspan="3">
+                  <ul>
+                    <li v-for="(item, index) in list9" :key="index" style="margin: 2px;">
+                      <el-row :gutter="20">
+                        <el-col :span="12">
+                          <a :href="item.url">{{item.fileName}}</a>
+                        </el-col>
+                        <el-col :span="12">
+                          <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
+                          <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="techFlag">删除</el-button>
+                        </el-col>
+                      </el-row>
+                    </li>
+                  </ul>
+
+                </td>
+              </tr>
+            </table>
+
+        <table class="table_register mt20 tablebar" style="width: 100%;">
+
+          <tr>
+            <th colspan="4" class="th_title">2、研发项目验收报告
+            </th>
+          </tr>
+          <tr>
+            <th><span style="color: red;">*</span>是否上传</th>
+            <td>
+              <el-form-item prop="reportFlag" label-width="0">
+                <el-radio-group v-model="form.reportFlag" :disabled="disabledFlag">
+                  <el-radio v-for="(item, index) in booleanOptions" :key="index" :label="item.dictValue">{{item.dictLabel}}</el-radio>
+                </el-radio-group>
+              </el-form-item>
+            </td>
+          </tr>
+          <template v-if="form.reportFlag">
             <tr>
-              <th colspan="4" class="th_title">1、项目计划书
-              </th>
+              <th>验收报告导入</th>
+              <td colspan="3">
+                <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('10')" v-if="techFlag && list10.length <= 0">上传</el-button>
+                <el-button type="primary" size="mini">
+                  <a href="/temp/研发项目验收报告模板.docx">模板下载</a>
+                </el-button>
+              </td>
             </tr>
             <tr>
-              <th>项目计划书导入</th>
+              <th>下载</th>
               <td colspan="3">
-                <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('9')" v-if="techFlag && list9.length<=0">上传</el-button>
+                <ul>
+                  <li v-for="(item, index) in list10" :key="index" style="margin: 2px;">
+                    <el-row :gutter="20">
+                      <el-col :span="12">
+                        <a :href="item.url">{{item.fileName}}</a>
+                      </el-col>
+                      <el-col :span="12">
+                        <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
+                        <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="techFlag">删除</el-button>
+                      </el-col>
+                    </el-row>
+                  </li>
+                </ul>
+              </td>
+            </tr>
+          </template>
+
+        </table>
+        <table class="table_register mt20 tablebar" style="width: 100%;">
+          <tr>
+            <th colspan="4" class="th_title">3、研发过程资料,比如研发制度、会议记录、实验记录等
+            </th>
+          </tr>
+          <tr>
+            <th>研究过程资料导入</th>
+            <td colspan="3">
+              <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('11')" v-if="techFlag && list11.length <= 0">上传</el-button>
+            </td>
+          </tr>
+          <tr>
+            <th>下载</th>
+            <td colspan="3">
+              <ul>
+                <li v-for="(item, index) in list11" :key="index" style="margin: 2px;">
+                  <el-row :gutter="20">
+                    <el-col :span="12">
+                      <a :href="item.url">{{item.fileName}}</a>
+                    </el-col>
+                    <el-col :span="12">
+                      <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
+                      <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="techFlag">删除</el-button>
+                    </el-col>
+                  </el-row>
+                </li>
+              </ul>
+            </td>
+          </tr>
+        </table>
+        <table class="table_register mt20" style="width: 100%;">
+          <tr>
+            <th colspan="4" class="th_title">4、企业有权部门关于自主、委托、合作研究开发项目立项的决议文件
+            </th>
+          </tr>
+          <tr>
+            <th>决议文件导入</th>
+            <td colspan="3">
+              <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('1')" v-if="techFlag && list1.length <= 0">上传</el-button>
+              <el-button type="primary" size="mini">
+                <a href="/temp/项目立项书模板.doc">模板下载</a>
+              </el-button>
+            </td>
+          </tr>
+          <tr>
+            <th>下载</th>
+            <td colspan="3">
+              <ul>
+                <li v-for="(item, index) in list1" :key="index" style="margin: 2px;">
+                  <el-row :gutter="20">
+                    <el-col :span="12">
+                      <a :href="item.url">{{item.fileName}}</a>
+                    </el-col>
+                    <el-col :span="12">
+                      <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
+                      <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="techFlag">删除</el-button>
+                    </el-col>
+                  </el-row>
+                </li>
+              </ul>
+            </td>
+          </tr>
+        </table>
+        <table class="table_register mt20" style="width: 100%;">
+          <tr>
+            <th colspan="4" class="th_title">5、自主、委托、合作研究开发专门机构或项目组的编制情况和研发人员名单
+            </th>
+          </tr>
+          <tr>
+            <th>研发人员名单导入</th>
+            <td colspan="3">
+              <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('2')" v-if="techFlag && list2.length <= 0">上传</el-button>
+              <el-button type="primary" size="mini">
+                <a href="/temp/项目负责人及研发人员模板.xls">模板下载</a>
+              </el-button>
+
+            </td>
+          </tr>
+          <tr>
+            <th>下载</th>
+            <td colspan="3">
+              <ul>
+                <li v-for="(item, index) in list2" :key="index" style="margin: 2px;">
+                  <el-row :gutter="20">
+                    <el-col :span="12">
+                      <a :href="item.url">{{item.fileName}}</a>
+                    </el-col>
+                    <el-col :span="12">
+                      <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
+                      <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="techFlag">删除</el-button>
+                    </el-col>
+                  </el-row>
+                </li>
+              </ul>
+            </td>
+          </tr>
+        </table>
+        <table class="table_register mt20" style="width: 100%;">
+          <tr>
+            <th colspan="4" class="th_title">6、经科技行政主管部门登记的委托、合作研究开发项目的合同
+            </th>
+          </tr>
+          <tr>
+            <th><span style="color: red;">*</span>是否上传</th>
+            <td>
+              <el-form-item prop="contractFlag" label-width="0">
+                <el-radio-group v-model="form.contractFlag" :disabled="disabledFlag">
+                  <el-radio v-for="(item, index) in booleanOptions" :key="index" :label="item.dictValue">{{item.dictLabel}}</el-radio>
+                </el-radio-group>
+              </el-form-item>
+            </td>
+          </tr>
+          <template v-if="form.contractFlag">
+            <tr>
+              <th>研究开发合同导入</th>
+              <td colspan="3">
+                <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('3')" v-if="techFlag && list3.length <= 0">上传</el-button>
               </td>
             </tr>
             <tr>
               <th>下载</th>
               <td colspan="3">
                 <ul>
-                  <li v-for="(item, index) in list9" :key="index" style="margin: 2px;">
+                  <li v-for="(item, index) in list3" :key="index" style="margin: 2px;">
                     <el-row :gutter="20">
                       <el-col :span="12">
                         <a :href="item.url">{{item.fileName}}</a>
@@ -37,296 +225,190 @@
                     </el-row>
                   </li>
                 </ul>
-
               </td>
             </tr>
-          </table>
+          </template>
 
-      <table class="table_register mt20 tablebar" style="width: 100%;">
-        <tr>
-          <th colspan="4" class="th_title">2、研究成果报告
-          </th>
-        </tr>
-        <tr>
-          <th>研究成果导入</th>
-          <td colspan="3">
-            <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('10')" v-if="techFlag && list10.length <= 0">上传</el-button>
-            <el-button type="primary" size="mini">
-              <a href="/temp/研究成果报告模板.xls">模板下载</a>
-            </el-button>
-          </td>
-        </tr>
-        <tr>
-          <th>下载</th>
-          <td colspan="3">
-            <ul>
-              <li v-for="(item, index) in list10" :key="index" style="margin: 2px;">
-                <el-row :gutter="20">
-                  <el-col :span="12">
-                    <a :href="item.url">{{item.fileName}}</a>
-                  </el-col>
-                  <el-col :span="12">
-                    <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
-                    <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="techFlag">删除</el-button>
-                  </el-col>
-                </el-row>
-              </li>
-            </ul>
-          </td>
-        </tr>
-      </table>
-      <table class="table_register mt20" style="width: 100%;">
-        <tr>
-          <th colspan="4" class="th_title">3、企业有权部门关于自主、委托、合作研究开发项目立项的决议文件
-          </th>
-        </tr>
-        <tr>
-          <th>决议文件导入</th>
-          <td colspan="3">
-            <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('1')" v-if="techFlag && list1.length <= 0">上传</el-button>
-            <el-button type="primary" size="mini">
-              <a href="/temp/项目立项书模板.doc">模板下载</a>
-            </el-button>
-          </td>
-        </tr>
-        <tr>
-          <th>下载</th>
-          <td colspan="3">
-            <ul>
-              <li v-for="(item, index) in list1" :key="index" style="margin: 2px;">
-                <el-row :gutter="20">
-                  <el-col :span="12">
-                    <a :href="item.url">{{item.fileName}}</a>
-                  </el-col>
-                  <el-col :span="12">
-                    <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
-                    <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="techFlag">删除</el-button>
-                  </el-col>
-                </el-row>
-              </li>
-            </ul>
-          </td>
-        </tr>
-      </table>
-      <table class="table_register mt20" style="width: 100%;">
-        <tr>
-          <th colspan="4" class="th_title">4、自主、委托、合作研究开发专门机构或项目组的编制情况和研发人员名单
-          </th>
-        </tr>
-        <tr>
-          <th>研发人员名单导入</th>
-          <td colspan="3">
-            <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('2')" v-if="techFlag && list2.length <= 0">上传</el-button>
-            <el-button type="primary" size="mini">
-              <a href="/temp/项目负责人及研发人员模板.xls">模板下载</a>
-            </el-button>
+        </table>
 
-          </td>
-        </tr>
-        <tr>
-          <th>下载</th>
-          <td colspan="3">
-            <ul>
-              <li v-for="(item, index) in list2" :key="index" style="margin: 2px;">
-                <el-row :gutter="20">
-                  <el-col :span="12">
-                    <a :href="item.url">{{item.fileName}}</a>
-                  </el-col>
-                  <el-col :span="12">
-                    <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
-                    <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="techFlag">删除</el-button>
-                  </el-col>
-                </el-row>
-              </li>
-            </ul>
-          </td>
-        </tr>
-      </table>
-      <table class="table_register mt20" style="width: 100%;">
-        <tr>
-          <th colspan="4" class="th_title">5、经科技行政主管部门登记的委托、合作研究开发项目的合同
-          </th>
-        </tr>
-        <tr>
-          <th>研究开发合同导入</th>
-          <td colspan="3">
-            <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('3')" v-if="techFlag && list3.length <= 0">上传</el-button>
-          </td>
-        </tr>
-        <tr>
-          <th>下载</th>
-          <td colspan="3">
-            <ul>
-              <li v-for="(item, index) in list3" :key="index" style="margin: 2px;">
-                <el-row :gutter="20">
-                  <el-col :span="12">
-                    <a :href="item.url">{{item.fileName}}</a>
-                  </el-col>
-                  <el-col :span="12">
-                    <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
-                    <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="techFlag">删除</el-button>
-                  </el-col>
-                </el-row>
-              </li>
-            </ul>
-          </td>
-        </tr>
-      </table>
 
+        <table class="table_register mt20" style="width: 100%;">
+          <tr>
+            <th colspan="4" class="th_title">7、“研发支出”辅助账及汇总表
+            </th>
+          </tr>
+          <tr>
+            <th>“研发支出”辅助账及汇总表导入</th>
+            <td colspan="3">
+              <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('6')" v-if="techFlag && list6.length <= 0">上传</el-button>
+            </td>
+          </tr>
+          <tr>
+            <th>下载</th>
+            <td colspan="3">
+              <ul>
+                <li v-for="(item, index) in list6" :key="index" style="margin: 2px;">
+                  <el-row :gutter="20">
+                    <el-col :span="12">
+                      <a :href="item.url">{{item.fileName}}</a>
+                    </el-col>
+                    <el-col :span="12">
+                      <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
+                      <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="techFlag">删除</el-button>
+                    </el-col>
+                  </el-row>
+                </li>
+              </ul>
+            </td>
+          </tr>
+        </table>
+        <table class="table_register mt20" style="width: 100%;">
+          <tr>
+            <th colspan="4" class="th_title">8、企业如果已取得地市级(含)以上科技行政主管部门出具的鉴定意见,应作为资料留存备查
+            </th>
+          </tr>
+          <tr>
+            <th><span style="color: red;">*</span>是否上传</th>
+            <td>
+              <el-form-item prop="appraisalFlag" label-width="0">
+                <el-radio-group v-model="form.appraisalFlag" :disabled="disabledFlag">
+                  <el-radio v-for="(item, index) in booleanOptions" :key="index" :label="item.dictValue">{{item.dictLabel}}</el-radio>
+                </el-radio-group>
+              </el-form-item>
+            </td>
+          </tr>
+          <template v-if="form.appraisalFlag">
+            <tr>
+              <th>科技主管部门鉴定意见导入</th>
+              <td colspan="3">
+                <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('7')" v-if="techFlag && list7.length <= 0">上传</el-button>
+              </td>
+            </tr>
+            <tr>
+              <th>下载</th>
+              <td colspan="3">
+                <ul>
+                  <li v-for="(item, index) in list7" :key="index" style="margin: 2px;">
+                    <el-row :gutter="20">
+                      <el-col :span="12">
+                        <a :href="item.url">{{item.fileName}}</a>
+                      </el-col>
+                      <el-col :span="12">
+                        <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
+                        <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="techFlag">删除</el-button>
+                      </el-col>
+                    </el-row>
+                  </li>
+                </ul>
+              </td>
+            </tr>
+          </template>
 
-      <table class="table_register mt20" style="width: 100%;">
-        <tr>
-          <th colspan="4" class="th_title">6、“研发支出”辅助账及汇总表
-          </th>
-        </tr>
-        <tr>
-          <th>“研发支出”辅助账及汇总表导入</th>
-          <td colspan="3">
-            <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('6')" v-if="techFlag && list6.length <= 0">上传</el-button>
-          </td>
-        </tr>
-        <tr>
-          <th>下载</th>
-          <td colspan="3">
-            <ul>
-              <li v-for="(item, index) in list6" :key="index" style="margin: 2px;">
-                <el-row :gutter="20">
-                  <el-col :span="12">
-                    <a :href="item.url">{{item.fileName}}</a>
-                  </el-col>
-                  <el-col :span="12">
-                    <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
-                    <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="techFlag">删除</el-button>
-                  </el-col>
-                </el-row>
-              </li>
-            </ul>
-          </td>
-        </tr>
-      </table>
-      <table class="table_register mt20" style="width: 100%;">
-        <tr>
-          <th colspan="4" class="th_title">7、企业如果已取得地市级(含)以上科技行政主管部门出具的鉴定意见,应作为资料留存备查
-          </th>
-        </tr>
-        <tr>
-          <th>科技主管部门鉴定意见导入</th>
-          <td colspan="3">
-            <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('7')" v-if="techFlag && list7.length <= 0">上传</el-button>
-          </td>
-        </tr>
-        <tr>
-          <th>下载</th>
-          <td colspan="3">
-            <ul>
-              <li v-for="(item, index) in list7" :key="index" style="margin: 2px;">
-                <el-row :gutter="20">
-                  <el-col :span="12">
-                    <a :href="item.url">{{item.fileName}}</a>
-                  </el-col>
-                  <el-col :span="12">
-                    <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
-                    <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="techFlag">删除</el-button>
-                  </el-col>
-                </el-row>
-              </li>
-            </ul>
-          </td>
-        </tr>
-      </table>
+        </table>
 
-      <!-- 财务 -->
-      <table class="table_register mt20" style="width: 100%;">
-        <tr>
-          <th colspan="4" class="th_title">8、从事研发活动的人员(包括外聘人员)和用于研发活动的仪器、设备、无形资产的费用分配说明(包括工作使用情况记录及费用分配计算证据材料)
-          </th>
-        </tr>
-        <tr>
-          <th>费用分配说明导入</th>
-          <td colspan="3">
-            <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('4')" v-if="finFlag && list4.length <= 0">上传</el-button>
-          </td>
-        </tr>
-        <tr>
-          <th>下载</th>
-          <td colspan="3">
-            <ul>
-              <li v-for="(item, index) in list4" :key="index" style="margin: 2px;">
-                <el-row :gutter="20">
-                  <el-col :span="12">
-                    <a :href="item.url">{{item.fileName}}</a>
-                  </el-col>
-                  <el-col :span="12">
-                    <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
-                    <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="finFlag">删除</el-button>
-                  </el-col>
-                </el-row>
-              </li>
-            </ul>
-          </td>
-        </tr>
-      </table>
-      <table class="table_register mt20" style="width: 100%;">
-        <tr>
-          <th colspan="4" class="th_title">9、集中研发项目研发费决算表、集中研发项目费用分摊明细情况表和实际分享收益比例等资料
-          </th>
-        </tr>
-        <tr>
-          <th>资料导入</th>
-          <td colspan="3">
-            <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('5')"v-if="finFlag && list5.length <= 0">上传</el-button>
-          </td>
-        </tr>
-        <tr>
-          <th>下载</th>
-          <td colspan="3">
-            <ul>
-              <li v-for="(item, index) in list5" :key="index" style="margin: 2px;">
-                <el-row :gutter="20">
-                  <el-col :span="12">
-                    <a :href="item.url">{{item.fileName}}</a>
-                  </el-col>
-                  <el-col :span="12">
-                    <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
-                    <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="finFlag">删除</el-button>
-                  </el-col>
-                </el-row>
-              </li>
-            </ul>
-          </td>
-        </tr>
-      </table>
-      <table class="table_register mt20" style="width: 100%;">
-        <tr>
-          <th colspan="4" class="th_title">10、《研发费用加计扣除优惠明细表》(a107012,选择预缴享受的企业留存备查)
-          </th>
-        </tr>
-        <tr>
-          <th>优惠明细表导入</th>
-          <td colspan="3">
-            <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('8')" v-if="finFlag && list8.length <= 0">上传</el-button>
-          </td>
-        </tr>
-        <tr>
-          <th>下载</th>
-          <td colspan="3">
-            <ul>
-              <li v-for="(item, index) in list8" :key="index" style="margin: 2px;">
-                <el-row :gutter="20">
-                  <el-col :span="12">
-                    <a :href="item.url">{{item.fileName}}</a>
-                  </el-col>
-                  <el-col :span="12">
-                    <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
-                    <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="finFlag">删除</el-button>
-                  </el-col>
-                </el-row>
-              </li>
-            </ul>
-          </td>
-        </tr>
-      </table>
-    </div>
+        <!-- 财务 -->
+        <table class="table_register mt20" style="width: 100%;">
+          <tr>
+            <th colspan="4" class="th_title">9、从事研发活动的人员(包括外聘人员)和用于研发活动的仪器、设备、无形资产的费用分配说明(包括工作使用情况记录及费用分配计算证据材料)
+            </th>
+          </tr>
+          <tr>
+            <th>费用分配说明导入</th>
+            <td colspan="3">
+              <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('4')" v-if="finFlag && list4.length <= 0">上传</el-button>
+            </td>
+          </tr>
+          <tr>
+            <th>下载</th>
+            <td colspan="3">
+              <ul>
+                <li v-for="(item, index) in list4" :key="index" style="margin: 2px;">
+                  <el-row :gutter="20">
+                    <el-col :span="12">
+                      <a :href="item.url">{{item.fileName}}</a>
+                    </el-col>
+                    <el-col :span="12">
+                      <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
+                      <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="finFlag">删除</el-button>
+                    </el-col>
+                  </el-row>
+                </li>
+              </ul>
+            </td>
+          </tr>
+        </table>
+        <table class="table_register mt20" style="width: 100%;">
+          <tr>
+            <th colspan="4" class="th_title">10、集中研发项目研发费决算表、集中研发项目费用分摊明细情况表和实际分享收益比例等资料
+            </th>
+          </tr>
+          <tr>
+            <th>资料导入</th>
+            <td colspan="3">
+              <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('5')"v-if="finFlag && list5.length <= 0">上传</el-button>
+            </td>
+          </tr>
+          <tr>
+            <th>下载</th>
+            <td colspan="3">
+              <ul>
+                <li v-for="(item, index) in list5" :key="index" style="margin: 2px;">
+                  <el-row :gutter="20">
+                    <el-col :span="12">
+                      <a :href="item.url">{{item.fileName}}</a>
+                    </el-col>
+                    <el-col :span="12">
+                      <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
+                      <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="finFlag">删除</el-button>
+                    </el-col>
+                  </el-row>
+                </li>
+              </ul>
+            </td>
+          </tr>
+        </table>
+        <table class="table_register mt20" style="width: 100%;">
+          <tr>
+            <th colspan="4" class="th_title">11、《研发费用加计扣除优惠明细表》(a107012,选择预缴享受的企业留存备查)
+            </th>
+          </tr>
+          <tr>
+            <th>优惠明细表导入</th>
+            <td colspan="3">
+              <el-button type="primary"  icon="el-icon-upload2" size="mini" @click="handleUpload('8')" v-if="finFlag && list8.length <= 0">上传</el-button>
+            </td>
+          </tr>
+          <tr>
+            <th>下载</th>
+            <td colspan="3">
+              <ul>
+                <li v-for="(item, index) in list8" :key="index" style="margin: 2px;">
+                  <el-row :gutter="20">
+                    <el-col :span="12">
+                      <a :href="item.url">{{item.fileName}}</a>
+                    </el-col>
+                    <el-col :span="12">
+                      <el-button type="primary"  icon="el-icon-download" size="mini" @click="handleDownload(item.id)">下载</el-button>
+                      <el-button type="primary"  icon="el-icon-delete" size="mini" @click="handleDelete(item.id)" v-if="finFlag">删除</el-button>
+                    </el-col>
+                  </el-row>
+                </li>
+              </ul>
+            </td>
+          </tr>
+        </table>
+      </div>
+      <template v-if="techFlag">
+        <el-row :gutter="40">
+          <el-col :span="24">
+            <el-form-item style="width:100%;text-align: center;" label-width="0px" class="mt20">
+              <el-button :loading="loading" size="medium" type="primary" @click.native.prevent="submitForm" style="width: 100px;">保存</el-button>
+              <el-button size="medium" type="primary" style="width: 100px;" @click="cancel">取消</el-button>
+            </el-form-item>
+          </el-col>
+        </el-row>
+      </template>
+    </el-form>
     <!-- 技术 -->
 
     <upload-enclosure ref="uploadEnclosure" v-if="enclosureVisible" @refreshData="getList()" :dataId="dataId" :attachType="'PROJECT'"></upload-enclosure>
@@ -334,13 +416,14 @@
 </template>
 
 <script>
-  import {getEnclosureApi,deleteEnclosureApi,getProjectInfoApi,downloadApi} from '@/api/enterprise/project/project'
+  import {getEnclosureApi,deleteEnclosureApi,getProjectInfoApi,downloadApi,declareUpdateApi} from '@/api/enterprise/project/project'
   import UploadEnclosure from './UploadEnclosure'
   import { getExtend, readBuffer, render } from '@/utils/util';
   import { parse } from 'qs';
   import axios from 'axios'
   import FileUpload from '@/components/FileUpload'
   import { downLoadZip } from "@/utils/zipdownload";
+  import { booleanOptions } from "@/utils/dataFormat"
   export default {
     components: {
       UploadEnclosure,
@@ -349,10 +432,23 @@
     props: {
       type: {
         type: String
+      },
+      info: {
+        type: Object,
+        default: function () {
+          return {}
+        }
       }
     },
     data() {
       return {
+        disabledFlag: false,
+        form: {
+          contractFlag: false,
+          reportFlag: false,
+          appraisalFlag: false
+        },
+        booleanOptions: booleanOptions,
         total: 0,
         enclosureVisible: false,
         list: [],
@@ -375,7 +471,8 @@
         list7: [],
         list8: [],
         list9: [],
-        list10: []
+        list10: [],
+        list11: []
       };
     },
     computed: {
@@ -396,6 +493,9 @@
       if(this.id) {
         this.getList()
       }
+      if(this.finFlag) {
+        this.disabledFlag = true
+      }
     },
     methods: {
       getList() {
@@ -412,6 +512,7 @@
             this.list8 = []
             this.list9 = []
             this.list10 = []
+            this.list11 = []
             this.list.map(item => {
               if(item.fileType == 'file1') {
                 this.list1.push(item)
@@ -443,7 +544,9 @@
               if(item.fileType == 'file10') {
                 this.list10.push(item)
               }
-
+              if(item.fileType == 'file11') {
+                this.list11.push(item)
+              }
             })
             this.total = res.data.total
           }
@@ -482,7 +585,6 @@
         window.open(routeUrl.href, "_blank");
       },
       handleDelete(id) {
-        // const id = row.id;
         this.$confirm('是否确认删除该数据?', "警告", {
             confirmButtonText: "确定",
             cancelButtonText: "取消",
@@ -513,6 +615,32 @@
         }else {
           this.ids = ''
         }
+      },
+      submitForm() {
+        declareUpdateApi(this.form).then(res => {
+          this.$alert('保存成功', '提示', {
+            confirmButtonText: '确定',
+            callback: action => {
+              this.loading = false
+              this.$store.dispatch("tagsView/delView", this.$route);
+              this.$router.go(-1);
+            }
+          })
+        })
+      },
+      cancel() {
+        this.$store.dispatch("tagsView/delView", this.$route); // 关闭当前tab
+        this.$router.go(-1);
+      }
+    },
+    watch: {
+      info: {
+        immediate: true,
+        handler (obj) {
+          if(obj) {
+            this.form = Object.assign({}, this.form, obj)
+          }
+        }
       }
     }
   };

+ 1 - 1
src/views/enterprise/project/edit.vue

@@ -8,7 +8,7 @@
         <ent-edit :type="type" :info.sync="form"></ent-edit>
       </el-tab-pane>
       <el-tab-pane label="上传文件" name="3" :disabled="encDisabled">
-        <enclosure-edit :type="type"></enclosure-edit>
+        <enclosure-edit :type="type" :info.sync="form"></enclosure-edit>
       </el-tab-pane>
     </el-tabs>
     <div class="oper" v-if="oper == 'audit'">