明树Git Lab

Commit 71fa35ab authored by zfp1's avatar zfp1

update

parent c87b9f5f
Pipeline #108162 passed with stage
in 3 seconds
...@@ -622,6 +622,7 @@ async function deleteXxhjs(req, res, next) { ...@@ -622,6 +622,7 @@ async function deleteXxhjs(req, res, next) {
// ---------------- 投资档案管理管理 RcTwhgl ---------------- // ---------------- 投资档案管理管理 RcTwhgl ----------------
// 创建投资档案管理 // 创建投资档案管理
async function createTzdagl(req, res, next) { async function createTzdagl(req, res, next) {
......
...@@ -1084,6 +1084,16 @@ async function getXmtcInfo(req, res, next) { ...@@ -1084,6 +1084,16 @@ async function getXmtcInfo(req, res, next) {
next(error); next(error);
} }
} }
async function deleteXmtc(req, res, next) {
try {
await DB.TzXmtc.update({ del: 1 }, { where: { id: req.body.id } });
return res.sendData({});
} catch (error) {
next(error);
}
}
async function updateXmtc(req, res, next) { async function updateXmtc(req, res, next) {
try { try {
if (!req.body.projectId) { if (!req.body.projectId) {
...@@ -1232,4 +1242,5 @@ module.exports = { ...@@ -1232,4 +1242,5 @@ module.exports = {
deleteJsqtzjc, deleteJsqtzjc,
deleteZdsxsp, deleteZdsxsp,
getProTzmbzrs, getProTzmbzrs,
deleteXmtc,
} }
\ No newline at end of file
...@@ -38,8 +38,8 @@ const TzXmtc = sequelize.define('TzXmtc', { ...@@ -38,8 +38,8 @@ const TzXmtc = sequelize.define('TzXmtc', {
dqjzc: { type: DataTypes.DECIMAL(20, 8), allowNull: true, comment: "当前净资产" }, dqjzc: { type: DataTypes.DECIMAL(20, 8), allowNull: true, comment: "当前净资产" },
xmtzxy: {type: DataTypes.JSON, comment: "项目投资效益,不建表,json处理"}, xmtzxy: {type: DataTypes.JSON, comment: "项目投资效益,不建表,json处理", defaultValue: []},
zjgc: {type: DataTypes.JSON, comment: "资金构成"}, zjgc: {type: DataTypes.JSON, comment: "资金构成", defaultValue: []},
//财务评价指标 //财务评价指标
jcxmtznbsylsq: { type: DataTypes.DECIMAL(5, 2), allowNull: true, comment: "决策:项目投资内部收益率(税前):" }, jcxmtznbsylsq: { type: DataTypes.DECIMAL(5, 2), allowNull: true, comment: "决策:项目投资内部收益率(税前):" },
...@@ -53,16 +53,16 @@ const TzXmtc = sequelize.define('TzXmtc', { ...@@ -53,16 +53,16 @@ const TzXmtc = sequelize.define('TzXmtc', {
zzyy: {type: DataTypes.STRING, comment: "中止原因"}, zzyy: {type: DataTypes.STRING, comment: "中止原因"},
zzxxyy: {type: DataTypes.TEXT, comment: "中止详细原因"}, zzxxyy: {type: DataTypes.TEXT, comment: "中止详细原因"},
qtsm: {type: DataTypes.TEXT, comment: "其他说明"}, qtsm: {type: DataTypes.TEXT, comment: "其他说明"},
xmzzbg: {type: DataTypes.JSON}, xmzzbg: {type: DataTypes.JSON, defaultValue: []},
qtxgzccl: {type: DataTypes.JSON}, qtxgzccl: {type: DataTypes.JSON, defaultValue: []},
bpbbwjlj: {type: DataTypes.JSON}, bpbbwjlj: {type: DataTypes.JSON, defaultValue: []},
//项目重启 //项目重启
jhcqsj: { type: DataTypes.DATE, allowNull: true, comment: "计划重启时间" }, jhcqsj: { type: DataTypes.DATE, allowNull: true, comment: "计划重启时间" },
cqyy: {type: DataTypes.STRING, comment: "重启原因"}, cqyy: {type: DataTypes.STRING, comment: "重启原因"},
// qtsm: {type: DataTypes.TEXT, comment: "其他说明 --见上"}, // qtsm: {type: DataTypes.TEXT, comment: "其他说明 --见上"},
xmcqbg: {type: DataTypes.JSON}, xmcqbg: {type: DataTypes.JSON, defaultValue: []},
jcwj: {type: DataTypes.JSON}, jcwj: {type: DataTypes.JSON, defaultValue: []},
// bpbbwjlj: {type: DataTypes.JSON --见上}, // bpbbwjlj: {type: DataTypes.JSON --见上},
//项目终止 //项目终止
zhongzyy: {type: DataTypes.STRING, comment: "终止原因"}, zhongzyy: {type: DataTypes.STRING, comment: "终止原因"},
...@@ -70,9 +70,9 @@ const TzXmtc = sequelize.define('TzXmtc', { ...@@ -70,9 +70,9 @@ const TzXmtc = sequelize.define('TzXmtc', {
xmssxz: {type: DataTypes.TEXT, comment: "项目实施现状"}, xmssxz: {type: DataTypes.TEXT, comment: "项目实施现状"},
knfsdfljfhjjss: {type: DataTypes.TEXT, comment: "可能发生的法律纠纷和经济损失"}, knfsdfljfhjjss: {type: DataTypes.TEXT, comment: "可能发生的法律纠纷和经济损失"},
// qtsm: {type: DataTypes.TEXT, comment: "其他说明 --见上"}, // qtsm: {type: DataTypes.TEXT, comment: "其他说明 --见上"},
xmzhongzbg: {type: DataTypes.JSON}, xmzhongzbg: {type: DataTypes.JSON, defaultValue: []},
qtxgzccl: {type: DataTypes.JSON}, qtxgzccl: {type: DataTypes.JSON, defaultValue: []},
bpbbwjlj: {type: DataTypes.JSON}, bpbbwjlj: {type: DataTypes.JSON, defaultValue: []},
//项目退出 //项目退出
zmjz: {type: DataTypes.DECIMAL(20, 8), allowNull: true, comment: "账面净值"}, zmjz: {type: DataTypes.DECIMAL(20, 8), allowNull: true, comment: "账面净值"},
......
...@@ -111,6 +111,7 @@ router.post('/createXmtc', projectTzController.createXmtc); ...@@ -111,6 +111,7 @@ router.post('/createXmtc', projectTzController.createXmtc);
router.post('/updateXmtc', projectTzController.updateXmtc); router.post('/updateXmtc', projectTzController.updateXmtc);
router.post('/getXmtcList', projectTzController.getXmtcList); router.post('/getXmtcList', projectTzController.getXmtcList);
router.post('/getXmtcInfo', projectTzController.getXmtcInfo); router.post('/getXmtcInfo', projectTzController.getXmtcInfo);
router.post('/deleteXmtc', projectTzController.deleteXmtc);
/** /**
......
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