|
@@ -101,7 +101,11 @@ async function insertNewRation(newData,firstLibID,std,calQuantity) {//插入新
|
|
|
else if(std.rationRepId === firstLibID && newData.from === 'cpt') {
|
|
|
newData.prefix = '补';
|
|
|
}
|
|
|
- newData.programID = std.feeType;
|
|
|
+ if(std.feeType == undefined || std.feeType == null || std.feeType ==''){//定额取费专业为空的情况下,取项目属性中的定额取费专业ID
|
|
|
+ newData.programID = await getProgramForProject(newData.projectID);
|
|
|
+ }else {
|
|
|
+ newData.programID = std.feeType;
|
|
|
+ }
|
|
|
newData.rationAssList = createRationAss(std);
|
|
|
// calculate ration Quantity
|
|
|
}
|