<template>
    <el-form ref='form' :model='form' :rules='rules' label-width='140px'>
        <el-form-item v-if='devFlag' label='设备标识' prop="EquipmentMark">
            <el-input v-model='form.EquipmentMark'></el-input>
        </el-form-item>
    </el-form>
</template>

<script>
export default {
    name: 'step3_no-handle',
    data() {
        return {
            form: {
                EquipmentMark: ''
            },
            rules: {
                EquipmentMark: [{ required: true, message: '请输入设备标识', trigger: 'blur' }],
            }
        }
    },
    props: {
        devFlag: {
            default: true,
            type: Boolean
        }
    },
    methods: {
        getForm(cb) {
            this.$refs["form"].validate((valid) => {
                if(valid){
                    cb(this.form)
                } else {
                    cb(false)
                }
            })
        }
    }
}
</script>

<style>
</style>
