<template>
  <!-- 会员出库 -->
  <SaleLayout>
    <CardList
      ref="cardList"
      @setType="cardType=$event"
      v-model="cardList"
      slot="left">
    </CardList>

    <div
      slot="right"
      @keyup="()=>{return false}">
      <FormInfo
        slot="right"
        @clear="cardList=[],$refs.cardList.cardType=null,cardType=null"
        :card-list="cardList"
        :card-type="cardType"></FormInfo>
    </div>
  </SaleLayout>
</template>

<script>
import SaleLayout from '@/layout/SaleLayout'
import CardList from './iccardCheckout/CardList'
import FormInfo from './iccardCheckout/FormInfo'

export default {
  components: {
    SaleLayout,
    CardList,
    FormInfo
  },
  data () {
    return {
      cardList: [],
      cardType: null
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
