<template>
    <el-dialog
        title="模板信息"
        width="600px"
        :visible.sync="visible"
        :before-close="_close"
    >
        <div>
            <el-form :model="form"  class="adviceForm" ref="form" label-width="100px" style="display: flex;flex-wrap: wrap;justify-content: space-between;">
                <el-form-item label="创建人 : " style="width: 100%;margin-bottom:0;">
                    医生
                </el-form-item>
                <el-form-item label="处方类型 : " style="width: 100%;margin-bottom:0;">
                    药品模板
                </el-form-item>
                <el-form-item label="模板类型 : " style="width: 100%;margin-bottom:0;">
                    <el-radio v-model="radio" label="1">临时</el-radio>
                    <el-radio v-model="radio" label="2">长期</el-radio>
                </el-form-item>
                <el-form-item label="科室 : " style="width: 100%;">
                    <el-select v-model="value" style="width:100%;" placeholder="请选择">
                        <el-option
                        v-for="item in options"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                        </el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="模板名称 : " style="width: 100%;">
                    <el-input v-model="form.name" placeholder=""></el-input>
                </el-form-item>
                <el-form-item label="模板说明 : " style="width: 100%;">
                    <el-input v-model="form.name" placeholder=""></el-input>
                </el-form-item>
                <el-form-item label="诊断信息 : " style="width: 100%;">
                    <el-input v-model="form.name" placeholder=""></el-input>
                </el-form-item>
                <el-form-item label="医嘱说明 : " style="width: 100%;">
                    <el-input v-model="form.name" placeholder=""></el-input>
                </el-form-item>
                <el-form-item label="备注说明 : " style="width: 100%;">
                    <el-input v-model="form.name" placeholder=""></el-input>
                </el-form-item>
            </el-form>
        </div>
        <div slot="footer" class="dialog-footer">
            <el-button @click="hide">取 消</el-button>
            <el-button type="primary" @click="submitAction()">保 存</el-button>
        </div>
    </el-dialog>         
</template>

<script>
export default {
    data(){
        return{
            visible:false,
            form:{
                name:''
            },
            radio:"1",
            options:[],
            value:''
        }
    },
    methods:{
        _close: function(done) {
            // this.clear()
            done()
        },
        clear: function() {
            this.form.id = 0;
            this.form.name = "";
            this.form.intro = "";
        },
        show() {
            // this.clear()
            this.visible = true
        },
        hide() {
            // this.clear()
            this.visible = false
        },
    }
}
</script>


