import { request, saasDownloadBlob } from "../utils/request";

// 鑾峰彇浼佷笟鏈紑閫氳仈鍚嶅崱浜哄憳鍒楄〃
export function getNoOpenJointlyPerList(data) {
  return request("/task/per-jointly-card/get-no-open-jointly-per-list", {
    method: "GET",
    data: data || {}
  });
}

// 鑾峰彇浼佷笟宸插紑閫氳仈鍚嶅崱浜哄憳鍒楄〃
export function getOpenJointlyPerList(data) {
  return request("/task/per-jointly-card/get-open-jointly-per-list", {
    method: "GET",
    data: data || {}
  });
}

// 鑾峰彇浼佷笟浜哄憳寮€閫氳仈鍚嶅崱鎯呭喌----鑾峰彇tab鏍忕殑鏁伴噺
export function getPerOpenJointlyInfo(data) {
  return request("/task/per-jointly-card/get-per-open-jointly-info", {
    method: "GET",
    data: data || {}
  });
}

/**
 * 浠诲姟鍒楄〃-鍒涘缓浠诲姟绗竴涓楠�
 * @author lyq
 */

export function taskPerJointlyCardBatchNotice(data) {
  return request("/task/per-jointly-card/batch-notice", {
    method: "POST",
    data: data || {}
  });
}



/* 钖叕绠$悊--瀵规帴娓ゆ捣閾惰 */


/**
 * 鍒涘缓浼佷笟娓ゆ捣钖祫浠e彂鍗�
 * @author lyq
 */

export function taskComBhGrantSaveComBhGrantInfo(data) {
  return request("/task/com/bh/grant/save-com-bh-grant-info", {
    method: "POST",
    data: data || {}
  });
}

/**
 * 鑾峰彇浼佷笟娓ゆ捣钖祫浠e彂鍗曞垪琛�
 * @author lyq
 */

export function taskComBhGrantPageComBhGrantInfoList(data) {
  return request("/task/com/bh/grant/page-com-bh-grant-info-list", {
    method: "POST",
    data: data || {}
  });
}
/**
 * 鍒犻櫎浼佷笟娓ゆ捣钖祫浠e彂鍗�
 * @author lyq
 */

export function taskComBhGrantDeleteComBhGrantInfo(data) {
  return request("/task/com/bh/grant/delete-com-bh-grant-info", {
    method: "POST",
    data: data || {}
  });
}
/**
 * 鏍规嵁id鑾峰彇浼佷笟娓ゆ捣钖祫浠e彂
 * @author lyq
 */
export function taskComBhGrantGetComBhGrantInfoById(data) {
  return request("/task/com/bh/grant/get-com-bh-grant-info-by-id", {
    method: "POST",
    data: data || {}
  });
}
/**
 * 鍚屾娓ゆ捣鍙戞斁缁撴灉
 * @author cyq
 */
export function taskComBhGrantSyncBhGrantResul(data) {
  return request("/task/com/bh/grant/sync-bh-grant-result", {
    method: "POST",
    data: data || {}
  });
}
/**
 * 鑾峰彇娓ゆ捣閾惰鍥炲崟鏂囦欢URL
 * @author cyq
 */
export function taskComBhGrantGetBhBankReceiptFileUrl(data) {
  return request("/task/com/bh/grant/get-bh-bank-receipt-file-url", {
    method: "POST",
    data: data || {}
  });
}

/**
 * 瀵煎嚭钖祫浠e彂妯℃澘
 * @author lyq
 */
export function taskComBhGrantExportOfflineGrantTemp(data = {}) {
  return saasDownloadBlob('/task/com/bh/grant/export-offline-grant-temp', data);
}
/**
 * 瀵煎嚭娓ゆ捣钖祫閾惰鍗′唬鍙戞ā鏉�
 * @author cyq
 */
export function taskComBhGrantExportBankGrantTemp(data = {}) {
  return saasDownloadBlob('/task/com/bh/grant/export-offline-bank-grant-temp', data);
}
/**
 * 瀵煎叆钖祫浠e彂妯℃澘
 * @author lyq
 */
export function taskComBhGrantImportOfflineGrantTemp(data, loading = true) {
  return request("/task/com/bh/grant/import-offline-grant-temp", {
    method: "POST",
    data: data || {}
  }, null, false, loading);
}

/**
 * 瀵煎叆娓ゆ捣钖祫閾惰鍗′唬鍙戞ā鏉�
 * @author cyq
 */
export function taskComBhGrantImportOfflineBankGrantTemp(data, loading = true) {
  return request("/task/com/bh/grant/import-offline-bank-grant-temp", {
    method: "POST",
    data: data || {}
  }, null, false, loading);
}


/**
 * 鑾峰彇浼佷笟娓ゆ捣钖祫鍙戞斁鏄庣粏
 * @author lyq
 */
export function taskComBhGrantPageComBhGrantDetailList(data) {
  return request("/task/com/bh/grant/page-com-bh-grant-detail-list", {
    method: "POST",
    data: data || {}
  });
};
/**
 * 鍒犻櫎浼佷笟娓ゆ捣钖祫浠f槑缁�
 * @author lyq
 */
export function taskComBhGrantDeleteComBhGrantDetailById(data) {
  return request("/task/com/bh/grant/delete-com-bh-grant-detail-by-id", {
    method: "POST",
    data: data || {}
  });
};
/**
 * 鏌ヨ浼佷笟娓ゆ捣鍙戞斁鎿嶄綔璁板綍鍒楄〃
 * @author lyq
 */
export function taskComBhGrantGetBhGrantOperRecordList(data) {
  return request("/task/com/bh/grant/get-bh-grant-oper-record-list", {
    method: "POST",
    data: data || {}
  });
};
/**
 * 鎻愪氦鍙戞斁鐢宠
 * @author lyq
 */
export function taskComBhGrantCommitGrantApply(data) {
  return request("/task/com/bh/grant/commit-grant-apply", {
    method: "POST",
    data: data || {}
  });
};

/**
 * 鑾峰彇浼佷笟娓ゆ捣璐︽埛淇℃伅
 * @author lyq
 */
export function taskComBhAccountGetComBhAccount(data) {
  return request("/task/com/bh/account/get-com-bh-account", {
    method: "POST",
    data: data || {}
  });
};
/**
 * 鑾峰彇浼佷笟娓ゆ捣璐︽埛淇℃伅
 * @author lyq
 */
export function taskComBhAccountSendOpenAccountVerifyCode(data) {
  return request("/task/com/bh/account/send-open-account-verify-code", {
    method: "POST",
    data: data || {}
  });
};
/**
 * 鑾峰彇娓ゆ捣璐︽埛浣欓
 * @author lyq
 */
export function taskComBhAccountGetComBhAccountAmount(data) {
  return request("/task/com/bh/account/get-com-bh-account-amount", {
    method: "POST",
    data: data || {}
  });
};
/**
 * 娓ゆ捣閾惰寮€鎴�
 * @author lyq
 */
export function taskComBhAccountSaveComBhAccount(data) {
  return request("/task/com/bh/account/save-com-bh-account", {
    method: "POST",
    data: data || {}
  });
};
/**
 * 淇敼浼佷笟娓ゆ捣璐︽埛
 * @author cyq
 */
export function taskComBhAccountUpdateComBhAccount(data) {
  return request("/task/com/bh/account/update-com-bh-account", {
    method: "POST",
    data: data || {}
  });
};
/**
 * 娓ゆ捣閾惰璐︽埛鎻愮幇
 * @author cyq
 */
export function taskComBhAccountWithdrawa(data) {
  return request("/task/com/bh/account/bh-account-withdrawa", {
    method: "POST",
    data: data || {}
  });
};
/**
 * 娓ゆ捣閾惰鍙戦€侀獙璇佺爜
 * @author cyq
 */
export function BhAccountSendVerifyCode(data) {
  return request("/task/com/bh/account/send-verify-code", {
    method: "POST",
    data: data || {}
  });
};
/**
 * 娓ゆ捣閾惰淇敼鎵嬫満
 * @author cyq
 */
export function BhAccountUpdateMobilephone(data) {
  return request("/task/com/bh/account/update-mobilephone", {
    method: "POST",
    data: data || {}
  },null,true);
};
/**
 * 鑾峰彇璐︽埛鍘嗗彶鏄庣粏鍒楄〃
 * @author cyq
 */
export function getAccountHistoryDetailList(data) {
  return request("/task/com/bh/account/get-account-history-detail-list", {
    method: "POST",
    data: data || {}
  });
};