@@ -152,6 +152,34 @@ export const getScoreTemplate = quantificationId => {
|
||||
});
|
||||
};
|
||||
|
||||
/** 线下评分 Excel 模板下载 */
|
||||
export const downloadScoreExcelTemplate = quantificationId => {
|
||||
return request({
|
||||
url: '/blade-transport/customer-archive/score-excel-template',
|
||||
method: 'get',
|
||||
responseType: 'blob',
|
||||
params: {
|
||||
quantificationId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
/** 线下评分 Excel 导入(成功返回评分明细 JSON;失败返回失败明细 Excel 流) */
|
||||
export const importScoreExcel = (quantificationId, file) => {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
return request({
|
||||
url: '/blade-transport/customer-archive/score-import',
|
||||
method: 'post',
|
||||
data: formData,
|
||||
responseType: 'blob',
|
||||
timeout: 60000,
|
||||
params: {
|
||||
quantificationId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const queryKingdeeCustomer = creditCode => {
|
||||
return request({
|
||||
url: '/blade-transport/bfi/customer/query-by-credit-code',
|
||||
|
||||
Reference in New Issue
Block a user