|
@@ -163,7 +163,6 @@ module.exports = app => {
|
|
if (d.qtcl_qty) p.qtcl_qty = this.round(d.qtcl_qty, precision.value);
|
|
if (d.qtcl_qty) p.qtcl_qty = this.round(d.qtcl_qty, precision.value);
|
|
p.quantity = this.ctx.helper.sum([p.sgfh_qty, p.sjcl_qty, p.qtcl_qty]);
|
|
p.quantity = this.ctx.helper.sum([p.sgfh_qty, p.sjcl_qty, p.qtcl_qty]);
|
|
const addRst = await transaction.insert(this.ctx.service.pos.tableName, p);
|
|
const addRst = await transaction.insert(this.ctx.service.pos.tableName, p);
|
|
- p.id = addRst.insertId;
|
|
|
|
result.pos.push(p.id);
|
|
result.pos.push(p.id);
|
|
// 如果存在复核数据,更新计算主表清单
|
|
// 如果存在复核数据,更新计算主表清单
|
|
if (p.sgfh_qty || p.sjcl_qty || p.qtcl_qty) {
|
|
if (p.sgfh_qty || p.sjcl_qty || p.qtcl_qty) {
|
|
@@ -352,7 +351,6 @@ module.exports = app => {
|
|
result.pos.curStageData = await this.getLastestStageData(this.ctx.tender.id, this.ctx.stage.id, refreshData.pos);
|
|
result.pos.curStageData = await this.getLastestStageData(this.ctx.tender.id, this.ctx.stage.id, refreshData.pos);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- console.log(result);
|
|
|
|
return result;
|
|
return result;
|
|
} catch(err) {
|
|
} catch(err) {
|
|
throw '获取数据异常,请刷新页面。';
|
|
throw '获取数据异常,请刷新页面。';
|