|
@@ -809,8 +809,8 @@ module.exports = app => {
|
|
|
const stageChange = await this.ctx.service.stageChange.getAllDataByCondition({ where: { sid: stage.id, lid }});
|
|
|
|
|
|
const useModal = new autoUseChange(this.ctx.helper, tender.info);
|
|
|
- const projectFunInfo = await this.ctx.service.project.getFunRela(ctx.session.sessionProject.id);
|
|
|
- const minusNoValue = projectFunInfo.minusNoValue && ctx.tender.info.fun_rela.stage_change.minusNoValue;
|
|
|
+ const projectFunInfo = await this.ctx.service.project.getFunRela(this.ctx.session.sessionProject.id);
|
|
|
+ const minusNoValue = projectFunInfo.minusNoValue && tender.info.fun_rela.stage_change.minusNoValue;
|
|
|
useModal.use({ledgerData, posData, stageBills, stagePos, stageChange, default: { tid: stage.tid, sid: stage.id, said: this.ctx.session.sessionUser.accountId } }, validChangeBills, minusNoValue);
|
|
|
|
|
|
const conn = await this.db.beginTransaction();
|
|
@@ -858,8 +858,8 @@ module.exports = app => {
|
|
|
const stageBills = await this.ctx.service.stageBills.getAllDataByCondition({ where: { sid: stage.id } });
|
|
|
const stagePos = await this.ctx.service.stagePos.getAllDataByCondition({ where: { sid: stage.id } });
|
|
|
const useModal = new autoUseChange(this.ctx.helper, tender.info, this.ctx.service.settle.settleStatus);
|
|
|
- const projectFunInfo = await this.ctx.service.project.getFunRela(ctx.session.sessionProject.id);
|
|
|
- const minusNoValue = projectFunInfo.minusNoValue && ctx.tender.info.fun_rela.stage_change.minusNoValue;
|
|
|
+ const projectFunInfo = await this.ctx.service.project.getFunRela(this.ctx.session.sessionProject.id);
|
|
|
+ const minusNoValue = projectFunInfo.minusNoValue && tender.info.fun_rela.stage_change.minusNoValue;
|
|
|
useModal.use({ledgerData, posData, stageBills, stagePos, default: { tid: stage.tid, sid: stage.id, said: this.ctx.session.sessionUser.accountId } }, validChangeBills, minusNoValue);
|
|
|
|
|
|
// if (useModal.insertChange.length === 0) return '无可调用的清单或计量单元';
|