|
|
@@ -675,7 +675,8 @@ function getGLJSearchInfo(ration_glj) {
|
|
|
offSiteTransportLossRate:ration_glj.offSiteTransportLossRate,
|
|
|
handlingLossRate:ration_glj.handlingLossRate,
|
|
|
is_adjust_price:0,
|
|
|
- is_main_material:1,
|
|
|
+ is_evaluate:0,
|
|
|
+ is_eval_material:0,
|
|
|
from: ration_glj.from ? ration_glj.from : 'std'//std:标准工料机库, cpt:补充工料机库
|
|
|
};
|
|
|
let glj_type_object = glj_type_util.getStdGljTypeCacheObj();
|
|
|
@@ -1180,6 +1181,12 @@ async function testError() {
|
|
|
}
|
|
|
|
|
|
function getData(projectID, callback, isReport) {
|
|
|
+ function findRation(rations, ID) {
|
|
|
+ let ration = rations.find(function getElement(element) {
|
|
|
+ return element.ID == ID;
|
|
|
+ });
|
|
|
+ return ration && ration._doc;
|
|
|
+ };
|
|
|
ration_glj.find({'projectID': projectID}, (err, datas) => {
|
|
|
if (err) {
|
|
|
callback(1, '', null);
|