import { message, Checkbox, Radio } from "antd/lib/index";
import { getPropertyData, extendInclude, extendRule, guid, getDataFieldValue, setDataFieldValue, initFilter, empty, onBeforeSaveHandleRecordLog, Format } from "../../utils/common";
import { connect } from 'dva';
import moment from 'moment';
import SC030 from "./SC030";
/**
 * @return {string}
 */
// 编辑  应急响应评估
export default {
  onBeforeSaveHandleRecord(params) {
    params.record.TaskID = params.data.TaskID    //TaskID传递消息表ID
    params.record.STATUS = params.customParams;
    // onBeforeSaveHandleRecordLog(params, 'CM034', '应急演练活动记录表')
  },
  onBeforeEdit: ({ isNew, login, stateData, data, setFieldEditable, getFieldValue, dispatch, ListCheckRiskArea, setFieldValueByBatch, setFieldVisible, setFieldValue }) => {
    if (!isNew && stateData.PLAN_DETAIL_ID != null && stateData.PLAN_DETAIL_ID.length > 0) {
      setFieldEditable('Nav_Name.NAME', false)
    }
  },

}