|
@@ -206,7 +206,7 @@ module.exports = app => {
|
|
|
const create_time = Date.parse(new Date()) / 1000;
|
|
|
let stream = await parts();
|
|
|
const bonus = await ctx.service.stageBonus.getStageDataById(parts.field.bonus_id);
|
|
|
- if (!bonus || bonus.sid !== ctx.stage.id) throw '该奖罚金,当前不允许上传附件';
|
|
|
+ //if (!bonus || bonus.sid !== ctx.stage.id) throw '该奖罚金,当前不允许上传附件';
|
|
|
while (stream !== undefined) {
|
|
|
if (!stream.filename) {
|
|
|
throw '未发现上传文件!';
|
|
@@ -228,7 +228,7 @@ module.exports = app => {
|
|
|
filepath: path.join(dirName, fileName),
|
|
|
uid: ctx.session.sessionUser.accountId,
|
|
|
in_time: moment(create_time * 1000).format('YYYY-MM-DD'),
|
|
|
- renew: ctx.stage.status === auditConst.status.checked,
|
|
|
+ renew: bonus.sid === ctx.stage.id ? ctx.stage.status === auditConst.status.checked : true,
|
|
|
});
|
|
|
++index;
|
|
|
if (Array.isArray(parts.field.size) && index < parts.field.size.length) {
|