|
@@ -215,7 +215,7 @@ async function addRationSubList(stdRation,newRation,needInstall,compilation) {
|
|
|
console.log("添加定额install时间-----"+(addRationInstallFeeTime - addRationCoeTime));
|
|
|
//添加定额模板子目
|
|
|
let ration_template = await addRationTemplate(stdRation,newRation);
|
|
|
- return {ration:newRation,ration_gljs:ration_gljs,ration_coes:ration_coes,ration_installations:ration_installations,ration_templates:[ration_template]};
|
|
|
+ return {ration:newRation,ration_gljs:ration_gljs,ration_coes:ration_coes,ration_installations:ration_installations,ration_templates:ration_template?[ration_template]:[]};
|
|
|
}
|
|
|
|
|
|
async function addRationInstallFee(std,newRation) {
|
|
@@ -274,6 +274,7 @@ async function addRationTemplate(std,newRation) {
|
|
|
template.type = tem.type;
|
|
|
template.unit = re_ration.unit;
|
|
|
template.billsLocation = tem.billsLocation;
|
|
|
+ template.defaultLocation = tem.billsLocation;
|
|
|
templateList.push(template)
|
|
|
}
|
|
|
}
|