|
@@ -2492,7 +2492,7 @@ async function doDownLoadAndImport(privateDownloadUrl,info) {
|
|
|
doc.projectID = [result.constructionProjectID];
|
|
|
}
|
|
|
}catch (error){
|
|
|
- console.log(error);
|
|
|
+ console.log(error.message);
|
|
|
doc.errorMsg = "导入失败,请检查文件!";
|
|
|
doc.status = "error";
|
|
|
}finally {
|
|
@@ -2806,23 +2806,6 @@ async function handleEachProject(data,projectIDMap,labourCoeFileIDMap,calcProgra
|
|
|
|
|
|
return [newProjectSetting,bills,rations,installationFees,projectGLJs,rationGLJs,rationCoes,quantityDetails,rationInstallations,rationTemplates,evaluateList,bidList,contractorList,newCalcProgramsFile,newLabourCoe]
|
|
|
|
|
|
- /* if(newProjectSetting) await projectSettingModel.create(newProjectSetting);
|
|
|
- if(bills.length > 0) await insertMany(bills,billsModel);
|
|
|
- if(rations.length > 0) await insertMany(rations,rationModel);
|
|
|
- if(installationFees.length > 0) await insertMany(installationFees,installationFeeModel);
|
|
|
- if(projectGLJs.length > 0) await insertMany(projectGLJs,gljListModel);
|
|
|
- if(rationGLJs.length > 0) await insertMany(rationGLJs,rationGLJModel);
|
|
|
- if(rationCoes.length > 0) await insertMany(rationCoes,rationCoeModel);
|
|
|
- if(quantityDetails.length > 0) await insertMany(quantityDetails,quantityDetailModel);
|
|
|
- if(rationInstallations.length > 0) await insertMany(rationInstallations,rationInstallationModel);
|
|
|
- if(rationTemplates.length > 0) await insertMany(rationTemplates,rationTemplateModel);
|
|
|
- if(evaluateList.length > 0) await insertMany(evaluateList,evaluateListModel);
|
|
|
- if(bidList.length > 0) await insertMany(bidList,bidListModel);
|
|
|
- if(contractorList.length > 0) await insertMany(contractorList,contractorListModel);
|
|
|
- if(newCalcProgramsFile) await calcProgramsModel.create(newCalcProgramsFile);
|
|
|
- if(newLabourCoe) await labourCoesModel.create(newLabourCoe); */
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
function setMaterialList(datas,newProjectID,projectGLJIDMap){
|
|
|
let arrs = [];
|