Pārlūkot izejas kodu

修复旧数据和第一次新建期bug

laiguoran 4 gadi atpakaļ
vecāks
revīzija
a55e610e72
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/controller/material_controller.js

+ 1 - 1
app/controller/material_controller.js

@@ -405,7 +405,7 @@ module.exports = app => {
                         }
                     }
                     // 并更新至调差表中
-                    await ctx.service.materialExponent.update({ ex_calc: renderData.ex_calc, ex_expr: ctx.material.ex_expr }, { id: ctx.material.id });
+                    await ctx.service.material.update({ ex_calc: JSON.stringify(renderData.ex_calc), ex_expr: ctx.material.ex_expr }, { id: ctx.material.id });
                 } else {
                     renderData.ex_calc = JSON.parse(ctx.material.ex_calc);
                 }