lrf преди 2 години
родител
ревизия
ef07ce25dc
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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;