diff --git a/api/app/lib/schedule/workOrder.js b/api/app/lib/schedule/workOrder.js index a53c92f..741db64 100644 --- a/api/app/lib/schedule/workOrder.js +++ b/api/app/lib/schedule/workOrder.js @@ -79,7 +79,7 @@ module.exports = function (app, opts,ctx) { }) const res=await models.Workorder.create({ projectId:parseData.pomsProjectId.value || null, - formname:procinstsVariables.find(item=>item.id===f.procinstId).name||null, + formname:procinstsVariables.body.find(item=>item.id===f.procinstId).name||null, state: f.state||null, endTime:f.endTime||null, startTime:f.createTime||null