明树Git Lab

Commit 27a0eeab authored by zfp1's avatar zfp1

1

parent 7be2acee
Pipeline #111209 passed with stage
in 4 seconds
...@@ -148,7 +148,7 @@ async function createProject(req, res, next) { ...@@ -148,7 +148,7 @@ async function createProject(req, res, next) {
// }); // });
// // let approvers = await userModule.getProjectApprover(req.user.id, 'xmgs_xmspr'); // // let approvers = await userModule.getProjectApprover(req.user.id, 'xmgs_xmspr');
// // if (!(approvers && approvers.length > 0)) { // // if (!(approvers && approvers.length > 0)) {
// // return res.sendError({ code: '60001', msg: '项目已保存,请联系管理员为本公司添加【项目初审】角色人员' }); // // return res.sendError({ code: '60001', message: '项目已保存,请联系管理员为本公司添加【项目初审】角色人员' });
// // } // // }
// // await DB.Message.create({ // // await DB.Message.create({
// // projectId: project.id, // // projectId: project.id,
...@@ -335,7 +335,7 @@ async function startLixiang(req, res, next) { ...@@ -335,7 +335,7 @@ async function startLixiang(req, res, next) {
// 项目公司所属单位员工发起,发送消息给项目单位部门长核准 // 项目公司所属单位员工发起,发送消息给项目单位部门长核准
let approvers = await userModule.getCompanyProjectApprover(req.user.id); let approvers = await userModule.getCompanyProjectApprover(req.user.id);
if (!(approvers && approvers.length > 0)) { if (!(approvers && approvers.length > 0)) {
return res.sendError({ code: '60001', msg: '项目已保存,请联系管理员为本公司添加【项目立项核准】角色人员' }); return res.sendError({ code: '60001', message: '项目已保存,请联系管理员为本公司添加【项目立项核准】角色人员' });
} }
//更新信息和状态 //更新信息和状态
let ret = await xiangmulixianggengxin(req.body, "2"); //状态 2 -- 立项核准中 let ret = await xiangmulixianggengxin(req.body, "2"); //状态 2 -- 立项核准中
...@@ -382,7 +382,7 @@ async function approvalLixiangByDepartHeader(req, res, next) { ...@@ -382,7 +382,7 @@ async function approvalLixiangByDepartHeader(req, res, next) {
// 给投管部经办人发消息 // 给投管部经办人发消息
let approvers = await userModule.getTouGuanJbrProjectApprover(req.user.id); let approvers = await userModule.getTouGuanJbrProjectApprover(req.user.id);
if (!(approvers && approvers.length > 0)) { if (!(approvers && approvers.length > 0)) {
return res.sendError({ code: '60001', msg: '项目已保存,请联系管理员添加【投管部经办人】角色人员' }); return res.sendError({ code: '60001', message: '项目已保存,请联系管理员添加【投管部经办人】角色人员' });
} }
//部门长核准通过,更新项目信息和状态--立项初审 //部门长核准通过,更新项目信息和状态--立项初审
ret = await xiangmulixianggengxin(body, "3"); ret = await xiangmulixianggengxin(body, "3");
...@@ -448,7 +448,7 @@ async function approvalLixiangByTouGuanJbr(req, res, next) { ...@@ -448,7 +448,7 @@ async function approvalLixiangByTouGuanJbr(req, res, next) {
// 给投管部正副职发消息 // 给投管部正副职发消息
let approvers = await userModule.getTouGuanZfzProjectApprover(req.user.id); let approvers = await userModule.getTouGuanZfzProjectApprover(req.user.id);
if (!(approvers && approvers.length > 0)) { if (!(approvers && approvers.length > 0)) {
return res.sendError({ code: '60001', msg: '请联系管理员添加【投管部正副职】角色人员' }); return res.sendError({ code: '60001', message: '请联系管理员添加【投管部正副职】角色人员' });
} }
//投管部经办人审批通过,更新项目信息和状态为--立项终审 //投管部经办人审批通过,更新项目信息和状态为--立项终审
ret = await xiangmulixianggengxin(body, "4"); ret = await xiangmulixianggengxin(body, "4");
...@@ -725,7 +725,7 @@ async function startJuece(req, res, next) { ...@@ -725,7 +725,7 @@ async function startJuece(req, res, next) {
let approvers = await userModule.getTouGuanZfzProjectApprover(req.user.id); let approvers = await userModule.getTouGuanZfzProjectApprover(req.user.id);
if (!(approvers && approvers.length > 0)) { if (!(approvers && approvers.length > 0)) {
return res.sendError({ code: '60002', msg: '请联系管理员为本公司添加【项目决策】角色人员' }); return res.sendError({ code: '60002', message: '请联系管理员为本公司添加【项目决策】角色人员' });
} }
req.body.projectFqJueceUser = req.user.id;//记录一下项目决策发起人 req.body.projectFqJueceUser = req.user.id;//记录一下项目决策发起人
let ret = await xiangmujuecegengxin(req.body, "8"); //决策审批中 let ret = await xiangmujuecegengxin(req.body, "8"); //决策审批中
...@@ -1407,7 +1407,7 @@ async function startZaiJuece(req, res, next) { ...@@ -1407,7 +1407,7 @@ async function startZaiJuece(req, res, next) {
let approvers = await userModule.getTouGuanZfzProjectApprover(req.user.id); let approvers = await userModule.getTouGuanZfzProjectApprover(req.user.id);
if (!(approvers && approvers.length > 0)) { if (!(approvers && approvers.length > 0)) {
return res.sendError({ code: '60002', msg: '项目已保存,请联系管理员为本公司添加【项目再决策】角色人员' }); return res.sendError({ code: '60002', message: '项目已保存,请联系管理员为本公司添加【项目再决策】角色人员' });
} }
req.body.projectFqZaiJueceUser = req.user.id; //发起人 req.body.projectFqZaiJueceUser = req.user.id; //发起人
let ret = await xiangmujuecegengxin(req.body, "12"); //再决策审批中 let ret = await xiangmujuecegengxin(req.body, "12"); //再决策审批中
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment