<template>
    <el-dialog title="关闭" append-to-body :modelValue="showScheduling" @close="closeDialog">
        <el-form :model="schedulingForm" :rules="schedulingRules" label-width="100px">
            <el-form-item label="需求交期" prop="demandDate">
                <el-date-picker style="width: 98%;" v-model="schedulingForm.demandDate" type="date" placeholder="请选择需求交期"
                    format="YYYY-MM-DD" value-format="YYYY-MM-DD"></el-date-picker>
            </el-form-item>
        </el-form>
        <template #footer>
            <span class="dialog-footer">
                <el-button @click="closeDialog">取 消</el-button>
                <el-button type="primary" @click="closeDialog">保 存</el-button>
            </span>
        </template>
    </el-dialog>
</template>

<script>
export default {
    props: {
        showScheduling: {
            type: Boolean,
            default: false
        },
    },
    data() {
        return {
            schedulingForm: {},
            schedulingRules: {
                demandDate:[{required:true,message:'请选择需求交期',trigger:'blur'}],
            }
        }
    },
    mounted() {

    },
    methods: {
        // 关闭弹窗
        closeDialog() {
            this.$emit('closeDialog');
        },
    }
}
</script>

<style></style>