import { action, observable } from "mobx";
import { WeaForm, WeaTableNew } from "comsMobx";

const { TableStore } = WeaTableNew;

export class AttendanceStore {
  @observable form = new WeaForm();
  @action("字段管理-新建字段表单初始化")
  initForm = () => this.form = new WeaForm();
  @observable refenceform = new WeaForm();
  //薪酬统计 新增form
  @observable statisticsForm = new WeaForm();
  @observable reportForm = new WeaForm();
  //报表查看 统计数据范围及规则设置form
  @observable settingForm = new WeaForm();
  //报表查看 分享报表
  @observable salaryDetailSearchForm = new WeaForm();
  @observable tableStore = new TableStore();//薪资明细表格仓库
  @observable shareForm = new WeaForm();
  @observable shareLogForm = new WeaForm();
  @observable sharePerForm = new WeaForm();
  @observable extensionForm = new WeaForm(); //扩展属性
  @action("报表查看-扩展属性表单初始化")
  initExtensionForm = () => this.extensionForm = new WeaForm();
  @observable tempForm = new WeaForm(); //扩展属性
  @action("薪资明细-模板设置表单初始化")
  initTempForm = () => this.tempForm = new WeaForm();

  @action("报表查看-分享报表表单初始化")
  initShareForm = () => this.shareForm = new WeaForm();
  @action("报表查看-查看分享记录详情表单初始化")
  initShareLogForm = () => this.shareLogForm = new WeaForm();
  @action("报表查看-追加被分享人表单初始化")
  initSharePerForm = () => this.sharePerForm = new WeaForm();
}
