lrf hace 2 años
padre
commit
ef07ce25dc
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/service/view/goods.js

+ 1 - 0
app/service/view/goods.js

@@ -56,6 +56,7 @@ class GoodsService extends CrudService {
     for (const i of list) {
       const spec = _.minBy(i.specs, 'sell_money');
       i.sell_money = _.get(spec, 'sell_money');
+      if (i.sell_money) i.sell_money = i.sell_money.toString() * 1;
       delete i.specs;
     }
     return list;