|
@@ -24,11 +24,11 @@ class PatentapplyService extends CrudService {
|
|
|
* @property status 交底书要改变成的状态
|
|
|
* @property info 其他数据,当做多个备注,记录使用
|
|
|
*/
|
|
|
- async check({ id, remark, status, ...data }) {
|
|
|
+ async check({ id, remark, ...data }) {
|
|
|
// const data = { status, admin_id, admin_name };
|
|
|
await this.model.updateOne({ _id: ObjectId(id) }, data);
|
|
|
// 换成对应的状态码,record在下面
|
|
|
- return await this.record({ id, method: status, remark });
|
|
|
+ return await this.record({ id, method: data.status, remark });
|
|
|
}
|
|
|
async record({ id, method, remark }) {
|
|
|
let word = '';
|