guhongwei 3 years ago
parent
commit
db5caa2607
2 changed files with 2 additions and 4 deletions
  1. 1 1
      app/controller/patent/.patentassess.js
  2. 1 3
      app/service/patent/patentassess.js

+ 1 - 1
app/controller/patent/.patentassess.js

@@ -56,6 +56,6 @@ module.exports = {
     },
   },
   check: {
-    requestBody: ["id", "status", "remark"],
+    requestBody: ["id", "status", "remark", "report"],
   },
 };

+ 1 - 3
app/service/patent/patentassess.js

@@ -25,13 +25,11 @@ class PatentassessService extends CrudService {
    * @property info 其他数据,当做多个备注,记录使用
    */
   async check({ id, status, remark, report }) {
-    console.log(report);
     const data = { status, report };
-    console.log(data);
     if (status === '4') data['meta.state'] = 1;
     await this.model.updateOne({ _id: ObjectId(id) }, data);
     // 换成对应的状态码,record在下面
-    return await this.record({ id, method: status, remark, report });
+    return await this.record({ id, method: status, remark });
   }
   async record({ id, method, remark }) {
     let word = '';