|
@@ -701,7 +701,7 @@ function sortChildren(lists) {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-async function getGLJSummayDatas(projectIDs) {
|
|
|
|
|
|
|
+async function getGLJSummayDatas(projectIDs, compilationName = '') {
|
|
|
let projects = [];
|
|
let projects = [];
|
|
|
let names = [];
|
|
let names = [];
|
|
|
let prjTypeNames = [];
|
|
let prjTypeNames = [];
|
|
@@ -721,7 +721,7 @@ async function getGLJSummayDatas(projectIDs) {
|
|
|
compilationScopes.push(p.compilationScope);
|
|
compilationScopes.push(p.compilationScope);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- let mList = mergeGLJ(mp, projects, names, prjTypeNames);
|
|
|
|
|
|
|
+ let mList = mergeGLJ(mp, projects, names, prjTypeNames, compilationName);
|
|
|
mList = gljUtil.sortProjectGLJ(mList, _);
|
|
mList = gljUtil.sortProjectGLJ(mList, _);
|
|
|
let summaryGLJDatas = getSummaryGLJDatas(mList, mp.property.decimal, names, prjTypeNames, compilationScopes);
|
|
let summaryGLJDatas = getSummaryGLJDatas(mList, mp.property.decimal, names, prjTypeNames, compilationScopes);
|
|
|
|
|
|
|
@@ -782,9 +782,11 @@ function getSummaryGLJDatas(gljList, decimal, nameList, prjTypeNames, compilatio
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function mergeGLJ(mp, projects) {
|
|
|
|
|
|
|
+function mergeGLJ(mp, projects, names, prjTypeNames, compilationName = '') {
|
|
|
let gljMap = {},
|
|
let gljMap = {},
|
|
|
gljList = [];
|
|
gljList = [];
|
|
|
|
|
+ const noPriceChkList = ['甘肃养护(2021)', '重庆养护(2018)', '浙江养护(2005)', '安徽养护(2018)', '山东养护(2016)', '湖南养护(2014)'];
|
|
|
|
|
+ const noPriceCheck = noPriceChkList.indexOf(compilationName) >= 0;
|
|
|
for (let g of mp.gljList) {
|
|
for (let g of mp.gljList) {
|
|
|
g.quantityMap = {};
|
|
g.quantityMap = {};
|
|
|
g.quantityMap[mp.name] = g.tenderQuantity;
|
|
g.quantityMap[mp.name] = g.tenderQuantity;
|
|
@@ -802,9 +804,10 @@ function mergeGLJ(mp, projects) {
|
|
|
t.unitPriceMap = {};
|
|
t.unitPriceMap = {};
|
|
|
t.unitPriceMap[projects[i].name] = t.marketPrice;
|
|
t.unitPriceMap[projects[i].name] = t.marketPrice;
|
|
|
//这里除了5个属性相同判断为同一个之外,还要判断市场价相同,才认为是同一个工料机
|
|
//这里除了5个属性相同判断为同一个之外,还要判断市场价相同,才认为是同一个工料机
|
|
|
|
|
+ //但有些省份不需要检测,体现在noPriceCheck标记
|
|
|
let connect_key = gljUtil.getIndex(t);
|
|
let connect_key = gljUtil.getIndex(t);
|
|
|
let g = gljMap[connect_key];
|
|
let g = gljMap[connect_key];
|
|
|
- if (g && g.marketPrice == t.marketPrice) {
|
|
|
|
|
|
|
+ if (noPriceCheck || (g && g.marketPrice == t.marketPrice)) {
|
|
|
g.quantityMap[projects[i].name] = t.tenderQuantity;
|
|
g.quantityMap[projects[i].name] = t.tenderQuantity;
|
|
|
g.unitPriceMap[projects[i].name] = t.marketPrice;
|
|
g.unitPriceMap[projects[i].name] = t.marketPrice;
|
|
|
} else {
|
|
} else {
|