|
@@ -78,11 +78,12 @@ async function addNewRation(data,compilation) {
|
|
|
}
|
|
|
|
|
|
async function addMultiRation(datas,compilation) {
|
|
|
- const task = [];
|
|
|
- for (const data of datas) {
|
|
|
- task.push(addNewRation(data, compilation));
|
|
|
- }
|
|
|
- return await Promise.all(task);
|
|
|
+ let rst = [];
|
|
|
+ for(let data of datas){
|
|
|
+ let r = await addNewRation(data,compilation);
|
|
|
+ rst.push(r);
|
|
|
+ }
|
|
|
+ return rst;
|
|
|
}
|
|
|
|
|
|
async function deleteMultiRation(rations) {//这里是只有删除的情况,删除定额的同时删除定额下挂的其它子项目
|