import 'package:domain/entity/response/add_edit_revise_view_s_g_entity.dart';
import 'package:flutter/material.dart';
import 'package:plugin_basic/basic_export.dart';

class ReviseAddEditState {

  int pageType = 0;  //页面的状态 0 是新增  1是编辑  2是详情
  String? id;  //编辑和详情需要用到ID,新增是 appliedId  编辑和详情是 reviseId
  void Function(dynamic value)? cb;

  //页面对应的详情数据
  AddEditReviseViewSGEntity? addEditEntity;


  //表单的校验与数据
  Map<String, Map<String, dynamic>> formData = {
    'revise_hour': {
      'value': '',
      'controller': TextEditingController(),
      'focusNode': FocusNode(),
      'hintText': 'Enter...'.tr,
      'obsecure': false,
    },
    'reason': {
      'value': '',
      'controller': TextEditingController(),
      'focusNode': FocusNode(),
      'hintText': 'Enter...'.tr,
      'obsecure': false,
    },
  };

}
