|
|
@@ -58,6 +58,15 @@ function isStopCreate() {
|
|
|
return !!(compilationData && names.includes(compilationData.name));
|
|
|
}
|
|
|
|
|
|
+function isGlYunStopCreate() {
|
|
|
+ let rst = false;
|
|
|
+ const isGlYun = $('title').text().indexOf("纵横公路云造价") !== -1;
|
|
|
+ if (isFree && isGlYun) {
|
|
|
+ rst = true;
|
|
|
+ }
|
|
|
+ return rst;
|
|
|
+}
|
|
|
+
|
|
|
//操作状态
|
|
|
const STATE = {
|
|
|
addingTender: false,
|
|
|
@@ -331,6 +340,8 @@ const projTreeObj = {
|
|
|
callback: function (key, opt) {
|
|
|
if (isStopCreate()) {
|
|
|
$('#stop-create-dialog').modal('show');
|
|
|
+ } if (isGlYunStopCreate()) {
|
|
|
+ $('#stop-create-dialog-glyun').modal('show');
|
|
|
} else {
|
|
|
$('#add-project-dialog').modal('show');
|
|
|
}
|
|
|
@@ -346,6 +357,9 @@ const projTreeObj = {
|
|
|
if (isStopCreate()) {
|
|
|
$('#stop-create-dialog').modal('show');
|
|
|
return;
|
|
|
+ } if (isGlYunStopCreate()) {
|
|
|
+ $('#stop-create-dialog-glyun').modal('show');
|
|
|
+ return;
|
|
|
}
|
|
|
//弹出新建单位工程之前,判断当前使用版本,且当前使用单位工程数是否已到最大值
|
|
|
let selectedItem = projTreeObj.tree.selected;
|
|
|
@@ -398,6 +412,9 @@ const projTreeObj = {
|
|
|
if (isStopCreate()) {
|
|
|
$('#stop-create-dialog').modal('show');
|
|
|
return;
|
|
|
+ } if (isGlYunStopCreate()) {
|
|
|
+ $('#stop-create-dialog-glyun').modal('show');
|
|
|
+ return;
|
|
|
}
|
|
|
let selectedItem = projTreeObj.tree.selected;
|
|
|
try {
|
|
|
@@ -427,6 +444,9 @@ const projTreeObj = {
|
|
|
if (isStopCreate()) {
|
|
|
$('#stop-create-dialog').modal('show');
|
|
|
return;
|
|
|
+ } if (isGlYunStopCreate()) {
|
|
|
+ $('#stop-create-dialog-glyun').modal('show');
|
|
|
+ return;
|
|
|
}
|
|
|
$("#save-as-dialog").modal("show");
|
|
|
},
|
|
|
@@ -566,6 +586,9 @@ const projTreeObj = {
|
|
|
if (isStopCreate()) {
|
|
|
$('#stop-create-dialog').modal('show');
|
|
|
return;
|
|
|
+ } if (isGlYunStopCreate()) {
|
|
|
+ $('#stop-create-dialog-glyun').modal('show');
|
|
|
+ return;
|
|
|
}
|
|
|
$("#confirm-import").hide();
|
|
|
$("#import").modal("show");
|
|
|
@@ -2607,6 +2630,9 @@ $(document).ready(function () {
|
|
|
if (isStopCreate()) {
|
|
|
$('#stop-create-dialog').modal('show');
|
|
|
return false;
|
|
|
+ } if (isGlYunStopCreate()) {
|
|
|
+ $('#stop-create-dialog-glyun').modal('show');
|
|
|
+ return false;
|
|
|
}
|
|
|
const menuDisplay = !$("#addMenu").is(":visible");
|
|
|
if (!menuDisplay) {
|
|
|
@@ -4271,6 +4297,9 @@ function AddTender() {
|
|
|
if (isStopCreate()) {
|
|
|
$('#stop-create-dialog').modal('show');
|
|
|
return;
|
|
|
+ } if (isGlYunStopCreate()) {
|
|
|
+ $('#stop-create-dialog-glyun').modal('show');
|
|
|
+ return;
|
|
|
}
|
|
|
}
|
|
|
$.bootstrapLoading.start();
|