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

<script>
  import CancelStockOrderDetail from './cancelStockOrderDetail'
  import CancelStockOrderEdit from './cancelStockOrderEdit'
  export default {
    name: 'cancelStockDetail',
    components: { CancelStockOrderEdit, CancelStockOrderDetail },
    data() {
      return {
        isEdit: 0
      }
    },
  }

</script>

<style scoped>

</style>
