<template>
  <stock-in-order-detail v-if="isEdit == 0"   v-on:edit-record="isEdit = 1"></stock-in-order-detail>
  <stock-in-order-edit v-else></stock-in-order-edit>
</template>

<script>
  import StockInOrderDetail from './stockInOrderDetail'
  import StockInOrderEdit from './stockInOrderEdit'
  export default {
    name: 'stockInDeatail',
    components: { StockInOrderEdit, StockInOrderDetail },
    data() {
      return {
        isEdit: 0
      }
  }

  }

</script>

<style scoped>

</style>
