补充拉取本行信息前端接口契约
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({
|
return request({
|
||||||
url: '/ccdi/project/' + projectId + '/pull-bank-info',
|
url: '/ccdi/file-upload/parse-id-card-file',
|
||||||
method: 'post'
|
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,
|
getNameListOptions,
|
||||||
getUploadStatus,
|
getUploadStatus,
|
||||||
pullBankInfo,
|
pullBankInfo,
|
||||||
|
parseIdCardFile,
|
||||||
updateNameListSelection,
|
updateNameListSelection,
|
||||||
uploadFile,
|
uploadFile,
|
||||||
batchUploadFiles,
|
batchUploadFiles,
|
||||||
@@ -690,36 +691,8 @@ export default {
|
|||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
/** 拉取本行信息 */
|
/** 拉取本行信息 */
|
||||||
async handleFetchBankInfo() {
|
handleFetchBankInfo() {
|
||||||
this.$confirm("确认拉取本行信息吗?", "提示", {
|
this.pullBankInfoDialogVisible = true;
|
||||||
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(() => {});
|
|
||||||
},
|
},
|
||||||
/** 获取进度条偏移 */
|
/** 获取进度条偏移 */
|
||||||
getProgressOffset(value) {
|
getProgressOffset(value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user