|
@@ -303,6 +303,17 @@ module.exports = app => {
|
|
|
if (!data) {
|
|
|
throw '提交数据错误';
|
|
|
}
|
|
|
+ if (ctx.tender.data.ledger_status === auditConst.ledger.status.checked) {
|
|
|
+ if (data.deal_param) {
|
|
|
+ const lastStage = await this.ctx.service.stage.getLastestStage(ctx.tender.id, true);
|
|
|
+ if (lastStage) {
|
|
|
+ if (lastStage.order > 1 || (lastStage.status === auditConst.stage.status.checked || lastStage.status === auditConst.stage.status.checking))
|
|
|
+ throw '第一期上报后不可修改合同参数';
|
|
|
+ if (lastStage.user_id !== ctx.session.sessionUser.accountId) throw '仅原报可修改合同参数';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
await ctx.service.tenderInfo.saveTenderInfo(ctx.tender.id, data);
|
|
|
ctx.body = { err: 0, msg: '', data: JSON.parse(ctx.request.body.data) };
|
|
|
} catch (err) {
|