|
@@ -50,6 +50,14 @@ const {
|
|
|
} = window.commonConstants;
|
|
} = window.commonConstants;
|
|
|
const { similarEqual, isDef } = window.commonUtil;
|
|
const { similarEqual, isDef } = window.commonUtil;
|
|
|
|
|
|
|
|
|
|
+function isStopCreate() {
|
|
|
|
|
+ if (userMobile === '15919278500') {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ const names = ['重庆养护(2018)', '内蒙古养护(2019)', '甘肃养护(2021)', '内蒙古高速公路养护(2022)', '内蒙古高速公路养护(2022)'];
|
|
|
|
|
+ return !!(compilationData && names.includes(compilationData.name));
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
//操作状态
|
|
//操作状态
|
|
|
const STATE = {
|
|
const STATE = {
|
|
|
addingTender: false,
|
|
addingTender: false,
|
|
@@ -321,9 +329,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');
|
|
@@ -337,6 +343,10 @@ const projTreeObj = {
|
|
|
return projTreeObj.getAddBtnDisabled(projectType.tender);
|
|
return projTreeObj.getAddBtnDisabled(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;
|
|
|
$("#add-tender-dialog").modal("show");
|
|
$("#add-tender-dialog").modal("show");
|
|
@@ -385,6 +395,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 +424,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 +563,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 +2604,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 +4268,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;
|
|
|
}
|
|
}
|