瀏覽代碼

材差数据问题

MaiXinRong 3 年之前
父節點
當前提交
7c21692edb
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/service/rpt_stage_sum_memory.js

+ 2 - 2
app/service/rpt_stage_sum_memory.js

@@ -262,7 +262,7 @@ module.exports = app => {
                 columns: ['id', 'tid', 'order', 't_type', 'code', 'name', 'unit', 'spec', 'm_type', 'basic_price', 'basic_times', 'in_time', 'origin', 'remark'],
                 where: { tid }
             });
-            const fields = ['quantity', 'tp', 'm_tax_tp', 'expr', 'msg_tp', 'msg_times', 'msg_spread', 'm_up_risk', 'm_down_risk', 'm_spread', 'm_tax'];
+            const fields = ['quantity', 'm_tp', 'm_tax_tp', 'expr', 'msg_tp', 'msg_times', 'msg_spread', 'm_up_risk', 'm_down_risk', 'm_spread', 'm_tax'];
             const calcPrefix = [];
 
             for (const m of gsCustom.materials) {
@@ -277,7 +277,7 @@ module.exports = app => {
                 const curMaterial = material.status === auditConst.material.status.checked
                     ? await this.ctx.service.materialBillsHistory.getAllDataByCondition({ where: { mid: material.id } })
                     : await this.ctx.service.materialBills.getAllDataByCondition({ where: { tid }});
-
+                
                 this.ctx.helper.assignRelaData(materialData, [
                     {data: curMaterial, fields, prefix: prefix, relaId: 'mb_id', defaultData: defaultData}
                 ]);