|
@@ -50,6 +50,11 @@ const {
|
|
|
} = window.commonConstants;
|
|
} = window.commonConstants;
|
|
|
const { similarEqual, isDef } = window.commonUtil;
|
|
const { similarEqual, isDef } = window.commonUtil;
|
|
|
|
|
|
|
|
|
|
+function isStopCreate() {
|
|
|
|
|
+ const names = ['重庆养护(2018)', '内蒙古养护(2019)', '甘肃养护(2021)', '内蒙古高速公路养护(2022)', '内蒙古高速公路养护(2022)'];
|
|
|
|
|
+ return !!(compilationData && names.includes(compilationData.name));
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
//操作状态
|
|
//操作状态
|
|
|
const STATE = {
|
|
const STATE = {
|
|
|
addingTender: false,
|
|
addingTender: false,
|
|
@@ -321,9 +326,7 @@ const projTreeObj = {
|
|
|
return projTreeObj.getAddBtnDisabled(projectType.project);
|
|
return projTreeObj.getAddBtnDisabled(projectType.project);
|
|
|
},
|
|
},
|
|
|
callback: function (key, opt) {
|
|
callback: function (key, opt) {
|
|
|
- const names = ['重庆养护(2018)', '内蒙古养护(2019)', '甘肃养护(2021)', '内蒙古高速公路养护(2022)', '内蒙古高速公路养护(2022)'];
|
|
|
|
|
- const stopCreate = compilationData && names.includes(compilationData.name);
|
|
|
|
|
- if (stopCreate) {
|
|
|
|
|
|
|
+ if (isStopCreate()) {
|
|
|
$('#stop-create-dialog').modal('show');
|
|
$('#stop-create-dialog').modal('show');
|
|
|
} else {
|
|
} else {
|
|
|
$('#add-project-dialog').modal('show');
|
|
$('#add-project-dialog').modal('show');
|
|
@@ -385,6 +388,10 @@ const projTreeObj = {
|
|
|
return !(node && node.data.projType === projectType.tender);
|
|
return !(node && node.data.projType === projectType.tender);
|
|
|
},
|
|
},
|
|
|
callback: function (key, opt) {
|
|
callback: function (key, opt) {
|
|
|
|
|
+ if (isStopCreate()) {
|
|
|
|
|
+ $('#stop-create-dialog').modal('show');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
let selectedItem = projTreeObj.tree.selected;
|
|
let selectedItem = projTreeObj.tree.selected;
|
|
|
try {
|
|
try {
|
|
|
let selectedType =
|
|
let selectedType =
|
|
@@ -410,6 +417,10 @@ const projTreeObj = {
|
|
|
return !(node && node.data.projType === projectType.tender);
|
|
return !(node && node.data.projType === projectType.tender);
|
|
|
},
|
|
},
|
|
|
callback: function (key, opt) {
|
|
callback: function (key, opt) {
|
|
|
|
|
+ if (isStopCreate()) {
|
|
|
|
|
+ $('#stop-create-dialog').modal('show');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
$("#save-as-dialog").modal("show");
|
|
$("#save-as-dialog").modal("show");
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -545,6 +556,10 @@ const projTreeObj = {
|
|
|
return true;
|
|
return true;
|
|
|
},
|
|
},
|
|
|
callback: function (key, opt) {
|
|
callback: function (key, opt) {
|
|
|
|
|
+ if (isStopCreate()) {
|
|
|
|
|
+ $('#stop-create-dialog').modal('show');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
$("#confirm-import").hide();
|
|
$("#confirm-import").hide();
|
|
|
$("#import").modal("show");
|
|
$("#import").modal("show");
|
|
|
projTreeObj.getUploadToken();
|
|
projTreeObj.getUploadToken();
|
|
@@ -2582,6 +2597,10 @@ $(document).ready(function () {
|
|
|
|
|
|
|
|
// 新建子菜单有效性刷新
|
|
// 新建子菜单有效性刷新
|
|
|
$("#addMenuBtn").click(function () {
|
|
$("#addMenuBtn").click(function () {
|
|
|
|
|
+ if (isStopCreate()) {
|
|
|
|
|
+ $('#stop-create-dialog').modal('show');
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
const menuDisplay = !$("#addMenu").is(":visible");
|
|
const menuDisplay = !$("#addMenu").is(":visible");
|
|
|
if (!menuDisplay) {
|
|
if (!menuDisplay) {
|
|
|
return;
|
|
return;
|
|
@@ -4242,9 +4261,7 @@ function AddTender() {
|
|
|
//let newTab = window.open('about:blank');
|
|
//let newTab = window.open('about:blank');
|
|
|
let tempProj = getNodeByName(projName, tempProjs);
|
|
let tempProj = getNodeByName(projName, tempProjs);
|
|
|
if (!tempProj) {
|
|
if (!tempProj) {
|
|
|
- const names = ['重庆养护(2018)', '内蒙古养护(2019)', '甘肃养护(2021)', '内蒙古高速公路养护(2022)', '内蒙古高速公路养护(2022)'];
|
|
|
|
|
- const stopCreate = compilationData && names.includes(compilationData.name);
|
|
|
|
|
- if (stopCreate) {
|
|
|
|
|
|
|
+ if (isStopCreate()) {
|
|
|
$('#stop-create-dialog').modal('show');
|
|
$('#stop-create-dialog').modal('show');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|