|
@@ -324,8 +324,8 @@ class BudgetFinal {
|
|
|
const contractData = await this.ctx.service.contract.getAllDataByCondition({ where: { id: deal, spid: this.ctx.subProject.id, contract_type: 1 } });
|
|
const contractData = await this.ctx.service.contract.getAllDataByCondition({ where: { id: deal, spid: this.ctx.subProject.id, contract_type: 1 } });
|
|
|
|
|
|
|
|
const paySqlParam = [];
|
|
const paySqlParam = [];
|
|
|
- const timeFilter = stage.type === 'month' ? `AND pay_time <= ? ` : '';
|
|
|
|
|
- if (stage.type === 'month') {
|
|
|
|
|
|
|
+ const timeFilter = stage.type === 'under-month' ? `AND pay_time <= ? ` : '';
|
|
|
|
|
+ if (stage.type === 'under-month') {
|
|
|
paySqlParam.push(this.ctx.moment(stage.month, 'YYYY-MM').endOf('month').format('YYYY-MM-DD HH:mm:ss'));
|
|
paySqlParam.push(this.ctx.moment(stage.month, 'YYYY-MM').endOf('month').format('YYYY-MM-DD HH:mm:ss'));
|
|
|
}
|
|
}
|
|
|
const checkedFilter = stage.checked && this.ctx.subProject.page_show.openContractPaySubProjectShenpi ? ' AND status = 3 ' : '';
|
|
const checkedFilter = stage.checked && this.ctx.subProject.page_show.openContractPaySubProjectShenpi ? ' AND status = 3 ' : '';
|