
<template>
   <nm-form-vuetify-drawer ref="form" v-bind="form" v-on="on" :parent="parent" :title="title" placement="left" :visible.sync="visible_">
          
              
            

                             <v-checkbox  
                    v-model="form.model.isDeleted"
                    label="是否删除"
                    :rules="form.rules.isDeletedRules"
                 >
                  </v-checkbox>
            

        
              
            

                             <v-checkbox  
                    v-model="form.model.isLocked"
                    label="是否锁定"
                    :rules="form.rules.isLockedRules"
                 >
                  </v-checkbox>
            

        
                               <v-text-field
                    v-model="form.model.isFrozen"
                    label="是否冻结"
                    :rules="form.rules.isFrozenRules"
                  ></v-text-field>
            
            

            

        
                               <v-text-field
                    v-model="form.model.nId"
                    label="数字模型编码"
                    :rules="form.rules.nIdRules"
                  ></v-text-field>
            
            

            

        
                               <v-text-field
                    v-model="form.model.name"
                    label="数字模型名称"
                    :rules="form.rules.nameRules"
                  ></v-text-field>
            
            

            

        
                               <v-text-field
                    v-model="form.model.description"
                    label="数字模型描述"
                    :rules="form.rules.descriptionRules"
                  ></v-text-field>
            
            

            

        
                               <v-text-field
                    v-model="form.model.entityTypeNId"
                    label="实体表名"
                    :rules="form.rules.entityTypeNIdRules"
                  ></v-text-field>
            
            

            

            </nm-form-vuetify-drawer>
</template>
<script>
import { mixins } from 'xmanager-ui'
const { add, edit, update } = $api.reference.numberingPattern

export default {
    mixins: [mixins.formSave],
    data() {
        return {
          title: '数字模型',
          actions: { add, edit, update },
          parent: this,
          form: {
            model: {
                      /** 是否删除 */
              isDeleted: false,
                          /** 是否锁定 */
              isLocked: false,
                           /** 是否冻结 */
              isFrozen: '',
                       /** 数字模型编码 */
              nId: '',
                       /** 数字模型名称 */
              name: '',
                       /** 数字模型描述 */
              description: '',
                       /** 实体表名 */
              entityTypeNId: ''
                },
            rules: {
                        isDeletedRules: [
                                (v) => !!v || '是否删除 is required',
                                ],
                        isLockedRules: [
                                (v) => !!v || '是否锁定 is required',
                                ],
                        isFrozenRules: [
                                (v) => !!v || '是否冻结 is required',
                                ],
                        nIdRules: [
                                (v) => !!v || '数字模型编码 is required',
                                ],
                        nameRules: [
                                (v) => !!v || '数字模型名称 is required',
                                ],
                        descriptionRules: [
                                (v) => !!v || '数字模型描述 is required',
                                ],
                        entityTypeNIdRules: [
                                (v) => !!v || '实体表名 is required',
                                ],
                        }
          }
        }
      },
    }
</script>
