补充拉取本行信息前端接口契约
This commit is contained in:
@@ -57,10 +57,25 @@ export function executeQualityCheck(projectId) {
|
||||
}
|
||||
|
||||
// 拉取本行信息
|
||||
export function pullBankInfo(projectId) {
|
||||
export function parseIdCardFile(file) {
|
||||
const formData = new FormData()
|
||||
formData.append('file', file)
|
||||
return request({
|
||||
url: '/ccdi/project/' + projectId + '/pull-bank-info',
|
||||
method: 'post'
|
||||
url: '/ccdi/file-upload/parse-id-card-file',
|
||||
method: 'post',
|
||||
data: formData,
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 拉取本行信息
|
||||
export function pullBankInfo(data) {
|
||||
return request({
|
||||
url: '/ccdi/file-upload/pull-bank-info',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -270,6 +270,7 @@ import {
|
||||
getNameListOptions,
|
||||
getUploadStatus,
|
||||
pullBankInfo,
|
||||
parseIdCardFile,
|
||||
updateNameListSelection,
|
||||
uploadFile,
|
||||
batchUploadFiles,
|
||||
@@ -690,36 +691,8 @@ export default {
|
||||
.catch(() => {});
|
||||
},
|
||||
/** 拉取本行信息 */
|
||||
async handleFetchBankInfo() {
|
||||
this.$confirm("确认拉取本行信息吗?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
})
|
||||
.then(async () => {
|
||||
try {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: "正在拉取本行信息...",
|
||||
spinner: "el-icon-loading",
|
||||
background: "rgba(0, 0, 0, 0.7)",
|
||||
});
|
||||
|
||||
await pullBankInfo(this.projectId);
|
||||
|
||||
loading.close();
|
||||
this.$message.success("本行信息拉取成功");
|
||||
this.$emit("fetch-bank-info");
|
||||
|
||||
// 刷新质量指标
|
||||
this.updateQualityMetrics();
|
||||
} catch (error) {
|
||||
this.$message.error(
|
||||
"拉取本行信息失败:" + (error.msg || "未知错误")
|
||||
);
|
||||
}
|
||||
})
|
||||
.catch(() => {});
|
||||
handleFetchBankInfo() {
|
||||
this.pullBankInfoDialogVisible = true;
|
||||
},
|
||||
/** 获取进度条偏移 */
|
||||
getProgressOffset(value) {
|
||||
|
||||
Reference in New Issue
Block a user