|
@@ -345,11 +345,6 @@ module.exports = app => {
|
|
// }
|
|
// }
|
|
} else {
|
|
} else {
|
|
// 本期结束
|
|
// 本期结束
|
|
- // 生成截止本期数据 final数据
|
|
|
|
- // console.time('generatePre');
|
|
|
|
- // await this.ctx.service.stageBillsFinal.generateFinalData(transaction, this.ctx.tender, this.ctx.stage);
|
|
|
|
- // await this.ctx.service.stagePosFinal.generateFinalData(transaction, this.ctx.tender, this.ctx.stage);
|
|
|
|
- // console.timeEnd('generatePre');
|
|
|
|
// 同步 期信息
|
|
// 同步 期信息
|
|
await transaction.update(this.ctx.service.material.tableName, {
|
|
await transaction.update(this.ctx.service.material.tableName, {
|
|
id: materialId, status: checkData.checkType,
|
|
id: materialId, status: checkData.checkType,
|
|
@@ -519,11 +514,6 @@ module.exports = app => {
|
|
};
|
|
};
|
|
await this.ctx.helper.sendWechat(users, smsTypeConst.const.TC, smsTypeConst.judge.result.toString(), wxConst.template.material, wechatData);
|
|
await this.ctx.helper.sendWechat(users, smsTypeConst.const.TC, smsTypeConst.judge.result.toString(), wxConst.template.material, wechatData);
|
|
|
|
|
|
- // 计算该审批人最终数据
|
|
|
|
- // await this.ctx.service.stagePay.calcAllStagePays(this.ctx.stage, transaction);
|
|
|
|
- // 复制一份最新数据给原报
|
|
|
|
- // await this.ctx.service.stagePay.copyAuditStagePays(this.ctx.stage, this.ctx.stage.times + 1, 0, transaction);
|
|
|
|
-
|
|
|
|
// 添加短信通知-审批退回提醒功能
|
|
// 添加短信通知-审批退回提醒功能
|
|
// const mobile_array = [];
|
|
// const mobile_array = [];
|
|
// const stageInfo = await this.ctx.service.stage.getDataById(stageId);
|
|
// const stageInfo = await this.ctx.service.stage.getDataById(stageId);
|
|
@@ -704,13 +694,7 @@ module.exports = app => {
|
|
});
|
|
});
|
|
await transaction.insert(this.tableName, newAuditors);
|
|
await transaction.insert(this.tableName, newAuditors);
|
|
|
|
|
|
- // 复制一份最新数据给下一人
|
|
|
|
- // await this.ctx.service.stagePay.copyAuditStagePays(this.ctx.stage, this.ctx.stage.times, audit.order + 2, transaction);
|
|
|
|
-
|
|
|
|
// 本期结束
|
|
// 本期结束
|
|
- // 生成截止本期数据 final数据
|
|
|
|
- // await this.ctx.service.stageBillsFinal.delGenerateFinalData(transaction, this.ctx.tender, this.ctx.stage);
|
|
|
|
- // await this.ctx.service.stagePosFinal.delGenerateFinalData(transaction, this.ctx.tender, this.ctx.stage);
|
|
|
|
// 同步 期信息
|
|
// 同步 期信息
|
|
await transaction.update(this.ctx.service.material.tableName, {
|
|
await transaction.update(this.ctx.service.material.tableName, {
|
|
id: materialId, status: auditConst.status.checking,
|
|
id: materialId, status: auditConst.status.checking,
|