lrf402788946 4 years ago
parent
commit
440efbef1b
2 changed files with 22 additions and 15 deletions
  1. 9 2
      app/controller/.achieve_apply.js
  2. 13 13
      app/model/achieve_apply.js

+ 9 - 2
app/controller/.achieve_apply.js

@@ -1,6 +1,6 @@
 module.exports = {
   create: {
-    requestBody: ["basic", "brief", "research", "datalist"],
+    requestBody: ["basic", "brief", "research", "datalist", "user_id"],
   },
   destroy: {
     params: ["!id"],
@@ -8,7 +8,14 @@ module.exports = {
   },
   update: {
     params: ["!id"],
-    requestBody: ["basic", "brief", "research", "datalist", "experts", "status"],
+    requestBody: [
+      "basic",
+      "brief",
+      "research",
+      "datalist",
+      "experts",
+      "status",
+    ],
   },
   show: {
     parameters: {

+ 13 - 13
app/model/achieve_apply.js

@@ -55,19 +55,19 @@ const research = new Schema({
 research.index({ id: 1 });
 // 委托方提供资料清单
 const datalist = new Schema({
-  work_report: { type: String, required: true }, // 研究工作报告(必备)
-  techol_report: { type: String, required: true }, // 研究技术报告(必备)
-  benefit: { type: String, required: true }, // 经济效益分析(必备)
-  science_report: { type: String, required: true }, // 科技查新报告(科技项目成果,必备)
-  assess_report: { type: String, required: true }, // 法律价值评估报告(专利成果,必备)
-  app_prove: { type: String, required: true }, // 推广应用证明(两家以上应用单位,必备)
-  techol_ppt: { type: String, required: true }, // 成果技术汇报PPT(必备)
-  testing_report: { type: String }, // 检测报告(根据项目需要提供)
-  quality: { type: String }, // 质量标准(检测报告所依据的标准,企业标准,行业标准,国家标准,国际标准)
-  patent: { type: String }, // 与本成果相关的授权专利证书
-  special: { type: String }, // 特殊行业需要提供的相应证明材料
-  budget: { type: String }, // 项目经费预算书
-  final: { type: String }, // 项目经费决算书
+  work_report: { type: Object }, // 研究工作报告(必备)
+  techol_report: { type: Object }, // 研究技术报告(必备)
+  benefit: { type: Object }, // 经济效益分析(必备)
+  science_report: { type: Object }, // 科技查新报告(科技项目成果,必备)
+  assess_report: { type: Object }, // 法律价值评估报告(专利成果,必备)
+  app_prove: { type: Object }, // 推广应用证明(两家以上应用单位,必备)
+  techol_ppt: { type: Object }, // 成果技术汇报PPT(必备)
+  testing_report: { type: Object }, // 检测报告(根据项目需要提供)
+  quality: { type: Object }, // 质量标准(检测报告所依据的标准,企业标准,行业标准,国家标准,国际标准)
+  patent: { type: Object }, // 与本成果相关的授权专利证书
+  special: { type: Object }, // 特殊行业需要提供的相应证明材料
+  budget: { type: Object }, // 项目经费预算书
+  final: { type: Object }, // 项目经费决算书
 });
 
 datalist.index({ id: 1 });