Przeglądaj źródła

部位台账、图册号相关

MaiXinRong 5 lat temu
rodzic
commit
d5b8d3549c

+ 2 - 2
app/lib/bills_pos_convert.js

@@ -123,7 +123,7 @@ class BillsPosConvert {
             for (const p of pos) {
                 const posUnit = xmj.unitTree.addNode({pos_name: p.name,
                     b_code: null, name: '', unit: null, unit_price: null});
-                if (p.drawing_code && posUnit.drawing_code.indexOf(p.drawing_code) <= 0)
+                if (p.drawing_code && posUnit.drawing_code.indexOf(p.drawing_code) < 0)
                     posUnit.drawing_code.push(p.drawing_code);
                 if (p.memo) posUnit.memo.push(p.memo);
                 if (node.postil) posUnit.postil.push(node.postil);
@@ -150,7 +150,7 @@ class BillsPosConvert {
                 pos_name: '',
                 b_code: node.b_code, name: node.name, unit: node.unit, unit_price: node.unit_price,
             });
-            if (node.drawing_code && unit.drawing_code.indexOf(node.drawing_code) <= 0)
+            if (node.drawing_code && unit.drawing_code.indexOf(node.drawing_code) < 0)
                 unit.drawing_code.push(node.drawing_code);
             if (node.memo) unit.memo.push(node.memo);
             if (node.postil) unit.postil.push(node.postil);

+ 0 - 1
app/service/report_memory.js

@@ -782,7 +782,6 @@ module.exports = app => {
             await this.ctx.service.tender.checkTender(tid);
             await this.ctx.service.stage.checkStage(sid);
 
-
             const data = await this.ctx.service.stageOther.getStageData(this.ctx.stage.id);
             const preData = await this.ctx.service.stageOther.getPreStageData(this.ctx.stage.order);
             for (const d of data) {

+ 1 - 0
builder_report_index_define.js

@@ -75,6 +75,7 @@ const stage_bonus = {
         { name: '期历史记录', field: 'shistory', type: dataType.str },
         { name: '排序', field: 'order', type: dataType.int },
         { name: '编号', field: 'code', type: dataType.str},
+        { name: '发文单位', field: 'doc_co', type: dataType.str},
     ],
 };
 const stage_other = {