<template>
  <div>
    <el-button type="text" @click="isShow = true">点击打开 Dialog</el-button>
    <el-button type="text" @click="ubmShow = true">UBM预约</el-button>
    <el-button type="text" @click="addShow = true">新增</el-button>
    <el-button type="text" @click="listShow = true">预约患者列表</el-button>
    <el-button type="text" @click="numberShow = true">号源管理</el-button>
    <re-dialog :is-show="isShow" @close="closeDialog1" />
    <u-b-m-order :is-show="ubmShow" @close="closeDialog2" />
    <add-project :is-show="addShow" @close="closeDialog3" />
    <order-patient-list :is-show="listShow" @addOrder="addOrder" @close="closeDialog4" />
    <number-manage :is-show="numberShow" @close="closeDialog5" />
  </div>
</template>

<script>
import ReDialog from '@/page-subspecialty/views/modules/nurseManagement/reDialog.vue'
import UBMOrder from '@/page-subspecialty/views/modules/nurseManagement/UBMOrder.vue'
import AddProject from '@/page-subspecialty/views/modules/nurseManagement/addProject.vue'
import OrderPatientList from '@/page-subspecialty/views/modules/nurseManagement/orderPatientList.vue'
import NumberManage from '@/page-subspecialty/views/modules/nurseManagement/numberManage.vue'

export default {
  name: 'NurseManagement',
  components: { NumberManage, OrderPatientList, AddProject, UBMOrder, ReDialog },
  data() {
    return {
      isShow: false,
      ubmShow: false, // ubm弹框
      addShow: false,
      listShow: false,
      numberShow: false
    }
  },
  methods: {
    addOrder() {
      this.ubmShow = true
    },
    closeDialog1(val) {
      this.isShow = val
    }, closeDialog2(val) {
      this.ubmShow = val
    }, closeDialog3(val) {
      this.addShow = val
    }, closeDialog4(val) {
      this.listShow = val
    }, closeDialog5(val) {
      this.numberShow = val
    }
  }
}
</script>

<style scoped>

</style>
