|
@@ -364,7 +364,7 @@ const projTreeObj = {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
refreshSummary: {
|
|
refreshSummary: {
|
|
|
- name: "刷新当前项目造价",
|
|
|
|
|
|
|
+ name: "刷新项目造价",
|
|
|
icon: 'fa-refresh',
|
|
icon: 'fa-refresh',
|
|
|
disabled: function () {
|
|
disabled: function () {
|
|
|
let selectedItem = projTreeObj.tree.selected;
|
|
let selectedItem = projTreeObj.tree.selected;
|
|
@@ -400,6 +400,8 @@ const projTreeObj = {
|
|
|
if(selectedItem.children[0] .projType === projectType.project ) return false;//如果文件夹有子项,并且是建设项目,可用
|
|
if(selectedItem.children[0] .projType === projectType.project ) return false;//如果文件夹有子项,并且是建设项目,可用
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return false;
|
|
|
}
|
|
}
|
|
|
return true;
|
|
return true;
|
|
|
},
|
|
},
|
|
@@ -1588,6 +1590,9 @@ const projTreeObj = {
|
|
|
parent = selectNode.parent;
|
|
parent = selectNode.parent;
|
|
|
next = selectNode.nextSibling;
|
|
next = selectNode.nextSibling;
|
|
|
updateData["update"] = {query:{ID:selectNode.id()}}
|
|
updateData["update"] = {query:{ID:selectNode.id()}}
|
|
|
|
|
+ } else if (!selectNode) { // 默认在第一位
|
|
|
|
|
+ parent = selectNode ? selectNode.parent : projTreeObj.tree._root;
|
|
|
|
|
+ next = selectNode ? selectNode.nextSibling : projTreeObj.tree.firstNode();
|
|
|
}
|
|
}
|
|
|
updateData["self"] ={ParentID:parent.id(),NextSiblingID:next?next.id():-1};
|
|
updateData["self"] ={ParentID:parent.id(),NextSiblingID:next?next.id():-1};
|
|
|
return updateData;
|
|
return updateData;
|
|
@@ -1601,6 +1606,13 @@ const projTreeObj = {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
|
|
|
+ // 单位工程超限提示后,弹出客服列表
|
|
|
|
|
+ $('#hintBox_form').on('hide.bs.modal', function () {
|
|
|
|
|
+ const text = $('#hintBox_caption').text();
|
|
|
|
|
+ if (text === '您创建的项目个数超限,请联系我们的客服人员,或者导出建设项目保存到本地备份,删除云上数据。') {
|
|
|
|
|
+ $('#customerService').click();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
//绑定项目管理的升降级、上下移按钮事件
|
|
//绑定项目管理的升降级、上下移按钮事件
|
|
|
projTreeObj.loadBtn();
|
|
projTreeObj.loadBtn();
|
|
|
$('#sideTab').find('li').click(function () {
|
|
$('#sideTab').find('li').click(function () {
|
|
@@ -2013,12 +2025,12 @@ $(document).ready(function() {
|
|
|
projectMap['copy'] = {document:projectData};
|
|
projectMap['copy'] = {document:projectData};
|
|
|
$("#copy-to-dialog").modal('hide');
|
|
$("#copy-to-dialog").modal('hide');
|
|
|
$.bootstrapLoading.start();
|
|
$.bootstrapLoading.start();
|
|
|
- CommonAjax.post('/pm/api/copyProjects',{projectMap:projectMap,user_id: userID},function (result) {
|
|
|
|
|
|
|
+ CommonAjax.post('/pm/api/copyProjects',{projectMap:projectMap,user_id: userID, tenderCount: 1},function (result) {
|
|
|
let newNode = projTreeObj.insert(result['copy'].document,parent,next);
|
|
let newNode = projTreeObj.insert(result['copy'].document,parent,next);
|
|
|
let refreshNodes = projTreeObj.calEngineeringCost(newNode);
|
|
let refreshNodes = projTreeObj.calEngineeringCost(newNode);
|
|
|
projTreeObj.refreshNodeData(refreshNodes);
|
|
projTreeObj.refreshNodeData(refreshNodes);
|
|
|
$.bootstrapLoading.end();
|
|
$.bootstrapLoading.end();
|
|
|
- })
|
|
|
|
|
|
|
+ }, null, 1000 * 60 * 5);
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
$('#selectSameTypeProject').click(function(){
|
|
$('#selectSameTypeProject').click(function(){
|