From 89a3434177fc3af2cee50745cebd1014a1639741 Mon Sep 17 00:00:00 2001 From: wkc <978997012@qq.com> Date: Wed, 11 Feb 2026 16:17:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=BF=A1=E8=B4=B7?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=AE=B6=E5=BA=AD=E5=85=B3=E7=B3=BBAPI?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/api/ccdiCustFmyRelation.js | 90 +++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 ruoyi-ui/src/api/ccdiCustFmyRelation.js diff --git a/ruoyi-ui/src/api/ccdiCustFmyRelation.js b/ruoyi-ui/src/api/ccdiCustFmyRelation.js new file mode 100644 index 0000000..df5f7c6 --- /dev/null +++ b/ruoyi-ui/src/api/ccdiCustFmyRelation.js @@ -0,0 +1,90 @@ +import request from '@/utils/request' + +// 查询信贷客户家庭关系列表 +export function listRelation(query) { + return request({ + url: '/ccdi/custFmyRelation/list', + method: 'get', + params: query + }) +} + +// 查询信贷客户家庭关系详细 +export function getRelation(id) { + return request({ + url: '/ccdi/custFmyRelation/' + id, + method: 'get' + }) +} + +// 新增信贷客户家庭关系 +export function addRelation(data) { + return request({ + url: '/ccdi/custFmyRelation', + method: 'post', + data: data + }) +} + +// 修改信贷客户家庭关系 +export function updateRelation(data) { + return request({ + url: '/ccdi/custFmyRelation', + method: 'put', + data: data + }) +} + +// 删除信贷客户家庭关系 +export function delRelation(ids) { + return request({ + url: '/ccdi/custFmyRelation/' + ids, + method: 'delete' + }) +} + +// 导出信贷客户家庭关系 +export function exportRelation(query) { + return request({ + url: '/ccdi/custFmyRelation/export', + method: 'post', + params: query + }) +} + +// 下载导入模板 +export function importTemplate() { + return request({ + url: '/ccdi/custFmyRelation/importTemplate', + method: 'post' + }) +} + +// 导入信贷客户家庭关系 +export function importData(file, updateSupport) { + const formData = new FormData() + formData.append('file', file) + formData.append('updateSupport', updateSupport) + return request({ + url: '/ccdi/custFmyRelation/importData', + method: 'post', + data: formData + }) +} + +// 查询导入状态 +export function getImportStatus(taskId) { + return request({ + url: '/ccdi/custFmyRelation/importStatus/' + taskId, + method: 'get' + }) +} + +// 查询导入失败记录 +export function getImportFailures(taskId, pageNum, pageSize) { + return request({ + url: '/ccdi/custFmyRelation/importFailures/' + taskId, + method: 'get', + params: { pageNum, pageSize } + }) +}