Browse Source

修复bug

laiguoran 3 years atrás
parent
commit
64b1ce93a9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/service/material_list.js

+ 2 - 2
app/service/material_list.js

@@ -312,8 +312,8 @@ module.exports = app => {
                     xmj_id: ml.xmj_id,
                     mx_id: ml.mx_id,
                     gather_qty: ml.gather_qty,
-                    quantity: ml.quantity,
-                    expr: ml.expr,
+                    quantity: ml.quantity ? ml.quantity : 0,
+                    expr: ml.expr ? ml.expr : '',
                     is_join: is_join ? 0 : 1,
                     in_time: new Date(),
                 };