import { message } from "antd/lib/index";
import { getPropertyData, extendInclude, extendRule, getDataFieldValue, setDataFieldValue, initFilter, empty, onBeforeSaveHandleRecordLog } from "../../utils/common";
import { connect } from 'dva';
/**
 * @return {string}
 */
// 编辑  制定任务
export default {
  onBeforeSaveHandleRecord(params) {
    params.record.TaskID = params.data.TaskID    //TaskID传递消息表ID
    if (params.record.Nav_ListMinutesDetail != undefined && params.record.Nav_ListMinutesDetail.length > 0) {
      params.record.Nav_ListMinutesDetail[0].STATUS = params.customParams;
    }
    onBeforeSaveHandleRecordLog(params, 'SC030_1', '前端日志')
  },
  onBeforeEdit: ({ isNew, dispatch, stateData, setFieldVisible, setFieldValue, setFieldValueByBatch, setFieldEditable, login }) => {
    if (stateData.Nav_Meeting.MEETINGTYPE != '30') {
      setFieldVisible("Nav_ListPReview", false);
    }
  },
}