Browse Source

公式更改

laiguoran 4 years ago
parent
commit
daee5803ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/material_exponent.js

+ 1 - 1
app/service/material_exponent.js

@@ -204,7 +204,7 @@ module.exports = app => {
                     expr += constant.toString();
                 } else if (ex.type === materialConst.ex_type[1].value) {
                     const change = ex.calc_num ? ex.calc_num : 0;
-                    expr = expr + (change !== 0 ? '+' + change.toString() : '');
+                    expr = expr + (change !== 0 ? '+' + ex.weight_num.toString() + '*(' + ex.m_price.toString() + '/' + ex.basic_price.toString() + ')' : '');
                     sumByChange = this.ctx.helper.add(sumByChange, change);
                 }
             }