|
@@ -141,7 +141,7 @@ module.exports = app => {
|
|
|
throw err;
|
|
|
}
|
|
|
const result = await this.ctx.service.stageBills.getLastestStageData(this.ctx.tender.id, this.ctx.stage.id, [bills.id]);
|
|
|
- return { bills: result };
|
|
|
+ return { bills: {curStageData: result} };
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -208,6 +208,7 @@ module.exports = app => {
|
|
|
for (const c of updateChanges) {
|
|
|
await transaction.update(this.tableName, c);
|
|
|
}
|
|
|
+ console.log(posQty);
|
|
|
await this.ctx.service.stagePos.updateChangeQuantity(transaction, pos, posQty);
|
|
|
await transaction.commit();
|
|
|
} catch (err) {
|
|
@@ -217,9 +218,9 @@ module.exports = app => {
|
|
|
|
|
|
// 获取返回数据
|
|
|
try {
|
|
|
- const data = {};
|
|
|
- data.bills = await this.ctx.service.stageBills.getLastestStageData(this.ctx.tender.id, this.ctx.stage.id, [pos.lid]);
|
|
|
- data.pos = await this.ctx.service.stagePos.getLastestStageData(this.ctx.tender.id, this.ctx.stage.id, [pos.id]);
|
|
|
+ const data = { bills: {}, pos: {} };
|
|
|
+ data.bills.curStageData = await this.ctx.service.stageBills.getLastestStageData(this.ctx.tender.id, this.ctx.stage.id, [pos.lid]);
|
|
|
+ data.pos.curStageData = await this.ctx.service.stagePos.getLastestStageData(this.ctx.tender.id, this.ctx.stage.id, [pos.id]);
|
|
|
return data;
|
|
|
} catch(err) {
|
|
|
throw '获取数据错误,请刷新页面';
|