浏览代码

工程量清单,新增部位明细,刷新问题

MaiXinRong 6 年之前
父节点
当前提交
807b4c759c
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      app/service/stage_pos.js

+ 0 - 2
app/service/stage_pos.js

@@ -163,7 +163,6 @@ module.exports = app => {
                 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]);
                 const addRst = await transaction.insert(this.ctx.service.pos.tableName, p);
-                p.id = addRst.insertId;
                 result.pos.push(p.id);
                 // 如果存在复核数据,更新计算主表清单
                 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);
                     }
                 }
-                console.log(result);
                 return result;
             } catch(err) {
                 throw '获取数据异常,请刷新页面。';