<template>
  <div style="padding-right:25px;padding-left: 20px;">
    <tabset v-ref:tabs :close="false" v-if="!$parent.f_distribution_state || !$parent.f_warehouse_id || $parent.f_distribution_state === '已领用'">
      <tab header="操作记录">
        <meter-record :row="$parent.row"></meter-record>
      </tab>
    </tabset>
    <tabset v-ref:tabs :close="false" v-if="$parent.f_warehouse_id && $parent.f_distribution_state === '已入库'">
      <tab header="领用">
        <meter-receive :rowsdata="$parent.rowsdata" :f_warehouse_id="$parent.f_warehouse_id"></meter-receive>
      </tab>
      <tab header="归还">
        <meter-return :rowsdata="$parent.rowsdata" :f_warehouse_id="$parent.f_warehouse_id"></meter-return>
      </tab>
      <tab header="操作记录">
        <meter-record :row="$parent.row"></meter-record>
      </tab>
    </tabset>
  </div>
</template>

<script>
  export default {
    name: 'MeterOperation',
    data () {
      return {

      }
    },
    props: {
      f_distribution_state: String,
      f_warehouse_id: Number,
      row: Object,
      rowsdata: Array
    },
    created () {
    },
    ready () {
    },
    methods: {
    }
  }
</script>

<style lang="less">

</style>
