import ConfirmButton from '../../components/common/ConfirmButton';
import { message } from 'antd'
import { extendInclude, extendRule, getDataFieldValue, initFilter, empty, extendOrder, guid, getSubTableData } from "../../utils/common";
// 指定整改落实人 任务ID
export default {
  onBeforeSaveHandleRecord(params) {
    params.record.Nav_UserActualDeal = params.stateData.Nav_UserActualDeal
    params.record.TaskID = params.data.TaskID    //TaskID传递消息表ID
    params.record.RiskContentState = params.customParams;
  },
  onBeforeEdit: ({ isNew, stateData, setFieldEditable, setFieldValue, dispatch, ListCheckRiskArea, setFieldValueByBatch, updateSubTableData }) => {

    // RiskContentState < 32 
    // 整改落实人 就是整改责任人
    if (stateData.RiskContentState < 32 && stateData.ACTUAL_DEAL_USER_ID != null && stateData.ACTUAL_DEAL_USER_ID == stateData.DEAL_USER_ID) {
      setFieldValue("Nav_UserActualDeal.NAME", null)
    }
  },
}
