dex="0" on-click="{this.export('#products','成本.csv',$event)}"
     style="margin-bottom: 10px;">
    导出
  </a>

  <a class="ui button large right floated" tabindex="0" on-click="{newP=true}" style="margin-bottom: 10px;">
    新建
  </a>

  <table id="products" class="ui celled table">
    <thead>
    <tr>
      {#list product_items as item}
      <th>{item}</th>
      {/list}
      <th csv="false">操作</th>
    </tr>
    </thead>
    <tbody>
    <tr csv="false" r-hide="!newP">
      <td>0</td>
 