|
@@ -66,6 +66,7 @@ const projTreeObj = {
|
|
{name: '占造价比例(%)', dataCode: 'rate', width: 100, vAlign: 'center', hAlign: 'right', formatter: '0.00'},
|
|
{name: '占造价比例(%)', dataCode: 'rate', width: 100, vAlign: 'center', hAlign: 'right', formatter: '0.00'},
|
|
{name: '建筑面积', dataCode: 'buildingArea', width: 100, vAlign: 'center', hAlign: 'right', formatter: '0.00'},
|
|
{name: '建筑面积', dataCode: 'buildingArea', width: 100, vAlign: 'center', hAlign: 'right', formatter: '0.00'},
|
|
{name: '单方造价', dataCode: 'perCost', width: 100, vAlign: 'center', hAlign: 'right', formatter: '0.00'},
|
|
{name: '单方造价', dataCode: 'perCost', width: 100, vAlign: 'center', hAlign: 'right', formatter: '0.00'},
|
|
|
|
+ {name: '工程专业', dataCode: 'feeStandardName', width: 100, vAlign: 'center', hAlign: 'left'},
|
|
{name: '单价文件', dataCode: 'unitPriceFile', width: 140, vAlign: 'center', hAlign: 'left'},
|
|
{name: '单价文件', dataCode: 'unitPriceFile', width: 140, vAlign: 'center', hAlign: 'left'},
|
|
{name: '费率文件', dataCode: 'feeRateFile', width: 140, vAlign: 'center', hAlign: 'left'},
|
|
{name: '费率文件', dataCode: 'feeRateFile', width: 140, vAlign: 'center', hAlign: 'left'},
|
|
{name: '创建日期', dataCode: 'createDateTime', width: 100, vAlign: 'center', hAlign: 'center'}
|
|
{name: '创建日期', dataCode: 'createDateTime', width: 100, vAlign: 'center', hAlign: 'center'}
|
|
@@ -725,9 +726,11 @@ const projTreeObj = {
|
|
imgWidth = 14;
|
|
imgWidth = 14;
|
|
}
|
|
}
|
|
else if(node.data.projType === projectType.tender){
|
|
else if(node.data.projType === projectType.tender){
|
|
- img = document.getElementById('tender_pic');
|
|
|
|
|
|
+ //如果单位工程不是实时计算结果,则显示刷新标记
|
|
|
|
+ img = node.data.changeMark && node.data.changeMark!=""? document.getElementById('refresh_pic'):document.getElementById('tender_pic');
|
|
imgWidth = 14;
|
|
imgWidth = 14;
|
|
}
|
|
}
|
|
|
|
+
|
|
ctx.drawImage(img, centerX+indent/2+3, centerY - 7, imgWidth,imgHeight);
|
|
ctx.drawImage(img, centerX+indent/2+3, centerY - 7, imgWidth,imgHeight);
|
|
}
|
|
}
|
|
// Draw Vertical Line
|
|
// Draw Vertical Line
|
|
@@ -1659,8 +1662,16 @@ function init() {
|
|
billValuation = billValuation.replace(/\n/g, '\\n');
|
|
billValuation = billValuation.replace(/\n/g, '\\n');
|
|
rationValuation = rationValuation.replace(/\n/g, '\\n');
|
|
rationValuation = rationValuation.replace(/\n/g, '\\n');
|
|
//init spread and pmTree
|
|
//init spread and pmTree
|
|
|
|
+ socketObject.connect('pm');//socket 连接;
|
|
$.bootstrapLoading.start();
|
|
$.bootstrapLoading.start();
|
|
GetAllProjectData(function (datas) {
|
|
GetAllProjectData(function (datas) {
|
|
|
|
+ //设置工程专业
|
|
|
|
+ for (let data of datas) {
|
|
|
|
+ if (data.projType === projectType.tender) {
|
|
|
|
+ data.feeStandardName = data.property.feeStandardName || '';
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ console.log(datas);
|
|
CommonAjax.post('/options/getOptions', [], function (rstData) {
|
|
CommonAjax.post('/options/getOptions', [], function (rstData) {
|
|
projTreeObj.setting.style.selectedColor = rstData.COLOROPTS.SELECTED.backColor;
|
|
projTreeObj.setting.style.selectedColor = rstData.COLOROPTS.SELECTED.backColor;
|
|
projTreeObj.tree = pmTree.createNew(projTreeObj.setting, datas);
|
|
projTreeObj.tree = pmTree.createNew(projTreeObj.setting, datas);
|
|
@@ -1865,6 +1876,7 @@ function AddTenderItems(selected, projName, engName, tenderName, property, callb
|
|
}
|
|
}
|
|
else if(data.updateData.projType === projectType.tender){
|
|
else if(data.updateData.projType === projectType.tender){
|
|
tenderData = data.updateData;
|
|
tenderData = data.updateData;
|
|
|
|
+ tenderData.feeStandardName = tenderData.property.feeStandardName || '';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -1903,6 +1915,7 @@ function AddTenderItems(selected, projName, engName, tenderName, property, callb
|
|
}
|
|
}
|
|
else if(data.updateData.projType === projectType.tender){
|
|
else if(data.updateData.projType === projectType.tender){
|
|
tenderData = data.updateData;
|
|
tenderData = data.updateData;
|
|
|
|
+ tenderData.feeStandardName = tenderData.property.feeStandardName || '';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -1926,6 +1939,7 @@ function AddTenderItems(selected, projName, engName, tenderName, property, callb
|
|
datas.forEach(function (data) {
|
|
datas.forEach(function (data) {
|
|
if(data.updateType === 'new') {
|
|
if(data.updateType === 'new') {
|
|
setInitSummaryData(data.updateData);
|
|
setInitSummaryData(data.updateData);
|
|
|
|
+ data.updateData.feeStandardName = data.updateData.property.feeStandardName || '';
|
|
projTreeObj.insert(data.updateData, tempEng, null);
|
|
projTreeObj.insert(data.updateData, tempEng, null);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -3377,6 +3391,8 @@ function refreshProjSummary(project, summaryInfo) {
|
|
node.data.rate = nodeInfo.rate;
|
|
node.data.rate = nodeInfo.rate;
|
|
node.data.buildingArea = nodeInfo.buildingArea;
|
|
node.data.buildingArea = nodeInfo.buildingArea;
|
|
node.data.perCost = nodeInfo.perCost;
|
|
node.data.perCost = nodeInfo.perCost;
|
|
|
|
+ node.data.changeMark = nodeInfo.changeMark;
|
|
|
|
+ if(nodeInfo.property) node.data.property = nodeInfo.property;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
projTreeObj.refreshNodeData(refreshNodes);
|
|
projTreeObj.refreshNodeData(refreshNodes);
|