import request from '@/config/axios';


/** 按机构导出情况说明 */
export const exportCommentsExcelByOrganApi = (data: any) => {
  return request.doExport({ url: '/csck/sdi/csck/CsckComments/CsckCommentsExportXlsByOrgan', data });
};

/** 按规则导出情况说明 */
export const exportCommentsExcelByRuleApi = (data: any) => {
  return request.doExport({ url: '/csck/sdi/csck/CsckComments/CsckCommentsExportXlsByRule', data });
};

/** 查询情况说明 */
export const getCsckCommentsListApi = (data: any): Promise<IResponse> => {
  return request.postJson({ url: '/csck/spi/csck/CsckComments/CsckCommentsSearch', data });
};

/** 查询情况说明子查询 */
export const getCsckCommentsSubListApi = (data: any): Promise<IResponse> => {
  return request.postJson({ url: '/csck/spi/csck/CsckComments/CsckCommentsSubSearch', data });
};

/** 保存情况说明 */
export const saveCsckCommentsApi = (data: { organCode?: string;dataDate?: string;pkid?: string,grade?:string,comment?: string }): Promise<IResponse> => {
  return request.postJson({ url: '/csck/spi/csck/CsckComments/CsckCommentsSave', data });
};

