<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2023/2/22
  Time: 15:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/webpage/include/taglib.jsp" %>

<div class="statistic-container">
    <table id="statisticTable" class="detail-table"></table>
</div>

<script>

   function initStatisticTable(){
       $("#statisticTable").bootstrapTable({
           data: [],
           columns:[
               {field: 'name', title: '名称', align: 'center'},
               {field: 'type.name', title: '品名代码',align: 'center'},
               {field: 'model', title: '型号',align: 'center'},
               {field: 'warehouseNames', title: '仓库',align: 'center'},
               {field: 'shelvesNames', title: '货架',align: 'center'},
               {field: 'sum', title: '总价',align: 'center'},
               {field: 'num', title: '数量',align: 'center'}
           ]
       })
   }

  function getDetail(){
      $.get("${ctx}/warehouse/storage/storage/countStorage?id=${storage.id}", function(storage){
          var data = storage.countStorageInfoList;
          $("#statisticTable").bootstrapTable('append', data);
      })
  }
</script>