소스 검색

按比例计量,同名计量单元同步问题

MaiXinRong 4 년 전
부모
커밋
45e41dedd1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/service/stage_pos.js

+ 1 - 1
app/service/stage_pos.js

@@ -437,7 +437,7 @@ module.exports = app => {
 
                 const posStage = await this.getLastestStageData2(b.tender_id, this.ctx.stage.id, {lid: b.id});
                 let contract_qty = 0;
-                const newPosRange = insertPosStage.filter(x => {return x.lid = b.id});
+                const newPosRange = insertPosStage.filter(x => {return x.lid === b.id});
                 for (const nps of newPosRange) {
                     contract_qty = this.ctx.helper.add(contract_qty, nps.contract_qty);
                 }