|
@@ -988,7 +988,7 @@ module.exports = app => {
|
|
|
const advanceList = await ctx.service.advance.getAdvanceListDirectly(params.tender_id);
|
|
|
for (const advance of advanceList) {
|
|
|
if (advance.id === params.advance_id) {
|
|
|
- stgAudit.push({ aid: advance.uid, status: 3, opinion: '同意', end_time: advance.end_time || (new Date()), order: 0 }); // 加上原报,默认status为3
|
|
|
+ stgAudit.push({ aid: advance.uid, status: advance.status, opinion: '同意', end_time: advance.end_time || (new Date()), order: 0 }); // 加上原报,默认status为3
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -1003,7 +1003,7 @@ module.exports = app => {
|
|
|
const materialList = await ctx.service.material.getValidMaterials(params.tender_id);
|
|
|
for (const material of materialList) {
|
|
|
if (material.id === params.material_id) {
|
|
|
- stgAudit.push({ aid: material.user_id, status: 3, opinion: '同意', end_time: material.in_time, order: 0 }); // 加上原报,默认status为3
|
|
|
+ stgAudit.push({ aid: material.user_id, status: material.status, opinion: '同意', end_time: material.in_time, order: 0 }); // 加上原报,默认status为3
|
|
|
}
|
|
|
}
|
|
|
const materialAdjAuditList = await ctx.service.materialAudit.getAuditorsByTender(params.tender_id);
|