明树Git Lab

Commit 5099d9db authored by zfp1's avatar zfp1

update

parent 6a3ec579
Pipeline #103862 passed with stage
in 3 seconds
......@@ -148,7 +148,7 @@ async function createProject(req, res, next) {
*/
//B. 找到本公司审批人员发送消息-- 如果找不到人 则提示项目已保存,联系管理员添加【项目公司项目审批人】角色
//A. 创建发起记录
if (buttonType === 'submit') {
if (req.body.buttonType === 'submit') {
await DB.FlowRecord.create({
userId: req.user.id,
actionName: '发起项目初审',
......@@ -286,7 +286,7 @@ async function updateProject(req, res, next) {
/**
* 根据前端加入的参数区分按钮 更新草稿并提交 更新草稿 TODO:
*/
if (buttonType === 'submit') {
if (req.body.buttonType === 'submit') {
await DB.FlowRecord.create({
userId: req.user.id,
actionName: '发起项目初审',
......@@ -334,7 +334,7 @@ async function preJugProject(req, res, next) {
/**
* 1. 更新项目状态 5 初审通过 初审不通过则回到状态1
*/
if (buttonType === 'approve') {
if (req.body.buttonType === 'approve') {
await DB.Project.update({ projectLiuZhuanType: 3 }, { where: { id } });
//处理项目流转记录 及消息发送TODO:
} else {
......@@ -367,7 +367,7 @@ async function finalJugProject(req, res, next) {
/**
* 1. 更新项目状态 5 终审通过 初审不通过则回到状态1
*/
if (buttonType === 'approve') {
if (req.body.buttonType === 'approve') {
await DB.Project.update({ projectLiuZhuanType: 7 }, { where: { id } });
//处理项目流转记录 及消息发送TODO:
} else {
......
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