<template>
  <data-grid :model='model' partial='list' v-ref:grid>
    <template partial='head'>
      <tr>
        <th>型号</th>
        <th>进价</th>
        <th>售价</th>
        <th>操作</th>
      </tr>
    </template>
    <template partial='body'>
      <td style="text-align: center;">{{row.f_model_name}}</td>
      <td style="text-align: center;">{{row.f_model_purchase}}</td>
      <td style="text-align: center;">{{row.f_model_saleprice}}</td>
      <td style="text-align: center;">
        <button class="btn btn-success width-10" @click="edit()">编辑</button>
        <button class="btn btn-default width-10" @click="delete()">删除</button>
      </td>
    </template>
  </data-grid>
</template>

<script>
    export default {
      name: "edit-vender",
      data(){
        return {
          model:'',
        }
      },
      props:{},
      methods: {
        edit() {

        }
      }
    }
</script>

<style scoped>

</style>
