<template>
  <div style="padding-right:25px;padding-left: 20px;">
    <tabset v-ref:tabs :close="false" v-if="!$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_distribution_state === '待分配'">
      <tab header="入库">
        <meter-join :rowsdata="$parent.rowsdata"></meter-join>
      </tab>
    </tabset>
    <tabset v-ref:tabs :close="false" v-if="$parent.f_distribution_state === '已入库'">
      <tab header="调拨">
        <meter-allocation :rowsdata="$parent.rowsdata"></meter-allocation>
      </tab>
      <tab header="操作记录">
        <meter-record :row="$parent.row"></meter-record>
      </tab>
    </tabset>
  </div>
</template>

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

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

<style lang="less">

</style>
