Commit c76771e0f75df5799c6eaa6bcae42838a43a56a2

Authored by 李泰瑜
1 parent fb692fd3

首页修改数量,局部作用域去除

ant-design-vue-jeecg/src/components/NumberInfo/NumberInfo.vue
... ... @@ -49,6 +49,6 @@
49 49 }
50 50 </script>
51 51  
52   -<style lang="less" scoped>
  52 +<style lang="less">
53 53 @import "index";
54 54 </style>
55 55 \ No newline at end of file
... ...
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/home/service/impl/HomePageViewServiceImpl.java
... ... @@ -159,10 +159,10 @@ public class HomePageViewServiceImpl implements HomePageViewService {
159 159 //先存储总数
160 160 int inStock=locations.size();
161 161  
162   - //删除为空的数量
  162 + //总库位删除为空的数量长度 == 有货数量
163 163 locations.removeIf(location -> StringUtils.isEmpty(location.getContainerCode()));
164 164  
165   - //有货数量 总数-无货数量
  165 + //总数-有货数量 == 无货数量
166 166 inStock=inStock-locations.size();
167 167  
168 168 Option option = new Option();
... ... @@ -193,10 +193,10 @@ public class HomePageViewServiceImpl implements HomePageViewService {
193 193 pie.itemStyle().emphasis().setShadowColor("rgba(0, 0, 0, 0.4)");
194 194  
195 195 option.legend().data().add("有货");
196   - pie.data().add(new ChartData("有货", Convert.toDouble(inStock)));
  196 + pie.data().add(new ChartData("有货", Convert.toDouble(locations.size())));
197 197  
198 198 option.legend().data().add("无货");
199   - pie.data().add(new ChartData("无货", Convert.toDouble(locations.size())));
  199 + pie.data().add(new ChartData("无货", Convert.toDouble(inStock)));
200 200  
201 201 option.series(pie);
202 202 String format = GsonUtil.format(option);
... ...