Oit.js 1.83 KB
export default class Oit {
  constructor() {
    this.data = {
      inr: '',
      objtyp: '',
      objinr: '',
      subtyp: '',
      subbus: '',
      inflev: '',
      inftxt: '',
      
      
      objextkey: '',
      objnam: '',
      objcod: '',
      pageNum: 1,
      pageSize:PageSize,
      total: 0,
      
    }
  }
}

export const Pattern = {
  inr: [
    { required: true, message: '必输项', type: 'string', trigger: 'blur' },
    { max: 8, message: '最大长度8个字符', trigger: 'blur' },
  ],
  objtyp: [
    { required: true, message: '必输项', type: 'string', trigger: 'blur' },
    { max: 6, message: '最大长度6个字符', trigger: 'blur' },
  ],
  objinr: [
    { required: true, message: '必输项', type: 'string', trigger: 'blur' },
    { max: 8, message: '最大长度8个字符', trigger: 'blur' },
  ],
  subtyp: [
    { required: true, message: '必输项', type: 'string', trigger: 'blur' },
    { max: 3, message: '最大长度3个字符', trigger: 'blur' },
  ],
  subbus: [
    { required: true, message: '必输项', type: 'string', trigger: 'change' }
  ],

  inflev: [
    { required: true, message: '必输项', type: 'string', trigger: 'blur' },
    { max: 1, message: '最大长度1个字符', trigger: 'blur' },
  ],
  inftxt: [
  { required: true, message: '必输项', type: 'string', trigger: 'blur' },
  { max: 60, message: '最大长度60个字符', trigger: 'blur' },
  ],


  objextkey: [
    { required: true, message: '必输项', type: 'string', trigger: 'blur' },
    { max: 24, message: '最大长度24个字符', trigger: 'blur' },
  ],
  objnam: [
    { required: true, message: '必输项', type: 'string', trigger: 'blur' },
    { max: 175, message: '最大长度175个字符', trigger: 'blur' },
  ],
  objcod: [
    { required: true, message: '必输项', type: 'string', trigger: 'change' }
  ],

}