|
@@ -80,13 +80,13 @@ async function insertNewRation(newData,firstLibID,std,calQuantity) {//插入新
|
|
|
newData.comments = std.chapter.explanation;
|
|
|
newData.ruleText = std.chapter.ruleText;
|
|
|
}
|
|
|
- newData.prefix = 0;
|
|
|
+ newData.prefix = '';
|
|
|
newData.from = std.type === 'complementary' ? 'cpt' : 'std';
|
|
|
if(firstLibID !== std.rationRepId){//借
|
|
|
- newData.prefix = 2;
|
|
|
+ newData.prefix = '借';
|
|
|
}
|
|
|
else if(std.rationRepId === firstLibID && newData.from === 'cpt') {
|
|
|
- newData.prefix = 1;
|
|
|
+ newData.prefix = '补';
|
|
|
}
|
|
|
newData.programID = std.feeType;
|
|
|
newData.rationAssList = createRationAss(std);
|
|
@@ -317,13 +317,13 @@ async function updateRation(std,firstLibID,rationID,billsItemID,projectID,calQu
|
|
|
}
|
|
|
ration.from = std.type === 'complementary' ? 'cpt' : 'std';
|
|
|
//定额前缀 none:0, complementary:1, borrow: 2
|
|
|
- ration.prefix = 0;
|
|
|
+ ration.prefix = '';
|
|
|
//借用优先级比补充高
|
|
|
if(std.rationRepId !== parseInt(firstLibID)){//借用
|
|
|
- ration.prefix = 2;
|
|
|
+ ration.prefix = '借';
|
|
|
}
|
|
|
else if(std.rationRepId === firstLibID && ration.from === 'cpt') {
|
|
|
- ration.prefix = 1;
|
|
|
+ ration.prefix = '补';
|
|
|
}
|
|
|
ration.programID = std.feeType;
|
|
|
ration.rationAssList = createRationAss(std);//生成辅助定额
|