selectData.ts
608 字节
import { defineStore } from 'pinia'
import { ref } from 'vue'
import { BankCardItemType } from '../types'
export const useSelectDataStore = defineStore(
'selectData',
() => {
const SelectHospitalList = ref<{ id: string, name: string }[]>([]) // 选择坐诊医院
const SelectDepartmentList = ref<{ id: string, name: string }[]>([]) // 选择科室
const SelectCareerList = ref<{ id: string, name: string }[]>([]) // 选择职称
const SelectBankCardData = ref<BankCardItemType>()
return { SelectDepartmentList, SelectHospitalList, SelectBankCardData, SelectCareerList }
},
)