import { reactive, ref } from 'vue'

export const showAction = ref(false)
export const formRef = ref()
//验证
export const rules = reactive({
    dutyManagerUid: [
        {
            required: true,
            message: '请选择值班经理',
            trigger: ['blur', 'change']
        }
    ],
    monitorLeaderUid: [
        {
            required: true,
            message: '请选择监察领导',
            trigger: ['blur', 'change']
        }
    ],
    successorManagerUid: [
        {
            required: true,
            message: '请选择接班经理',
            trigger: ['blur', 'change']
        }
    ]
})
// 表单数据
export const formData = reactive({
    id: '',
    dutyManagerUname: '',
    dutyManagerUid: '',
    successorManagerUname: '',
    successorManagerUid: '',
    monitorLeaderUname: '',
    monitorLeaderUid: '',
    reportWork: '',
    importantFlight: '',
    meetingArrangementWork: '',
    handoverWork: '',
    dutyDate: undefined,
    dutyArea: ''
})
