guhongwei 3 years ago
parent
commit
05fd3918b4
1 changed files with 12 additions and 3 deletions
  1. 12 3
      app/model/achieve_apply.js

+ 12 - 3
app/model/achieve_apply.js

@@ -56,6 +56,7 @@ const basic = new Schema({
 });
 basic.index({ id: 1 });
 basic.index({ achieve_num: 1 });
+
 // 内容简介
 const brief = new Schema({
   achieve_brief: { type: String }, // 成果简介
@@ -67,8 +68,8 @@ const brief = new Schema({
   prospect: { type: String }, // 推广应用的范围,条件和前景
   opinion: { type: String }, // 存在的问题和改进意见
 });
-
 brief.index({ id: 1 });
+
 // 主研人员名单
 const research = new Schema({
   name: { type: String }, // 姓名
@@ -89,6 +90,7 @@ const research = new Schema({
   email: { type: String }, // 邮箱
 });
 research.index({ id: 1 });
+
 // 委托方提供资料清单
 const datalist = new Schema({
   work_report: { type: Object }, // 工作报告(必备)
@@ -104,9 +106,16 @@ const datalist = new Schema({
   gf: { type: Object }, // 工法
   company_standard: { type: Object }, // 企业标准等证明材料
 });
-
 datalist.index({ id: 1 });
 
+// 上传文件
+const file = new Schema({
+  page5: { type: String }, // 现场测试(检测,测产)意见
+  page6: { type: String }, // 评价意见
+  nameList: { type: String }, // 评价专家组名单
+});
+file.index({ id: 1 });
+
 // 成果评价申请表
 const achieve_apply = {
   user_id: { type: ObjectId }, // 关联用户
@@ -121,7 +130,7 @@ const achieve_apply = {
   brief: { type: brief },
   research: { type: [ research ] },
   datalist: { type: datalist },
-  file: { type: Object }, // 上传文件
+  file: { type: file }, // 上传文件
   remark: { type: String, maxLength: 200 },
   create_time: { type: String, default: moment().format('YYYY-MM-DD HH:mm:ss') },
 };