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

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


  final foodHygieneCertOption = ["Yes".tr, "No".tr];

  String templateId = "";
  void Function(dynamic value)? cb;

  UKTemplateDetailEntity? indexEntity;  //新增或者编辑的详情

  List<String> selectedCertificateList = [];   //选中的 age 的 id
  List<String> selectedVehicleList = [];   //选中的 language 的 id
}
