|
@@ -542,6 +542,7 @@
|
|
getRoomProjectId,
|
|
getRoomProjectId,
|
|
getRoomProjectList,
|
|
getRoomProjectList,
|
|
getHistoryByUserList,
|
|
getHistoryByUserList,
|
|
|
|
+ getByUserListAndDicts,
|
|
} from '@/api/common'
|
|
} from '@/api/common'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -861,11 +862,13 @@
|
|
this.EngineeringList = [];
|
|
this.EngineeringList = [];
|
|
this.userRole.forEach((item, index) => {
|
|
this.userRole.forEach((item, index) => {
|
|
|
|
|
|
- this.EngineeringList.push({
|
|
|
|
- 'id': index,
|
|
|
|
- 'name': item
|
|
|
|
- })
|
|
|
|
-
|
|
|
|
|
|
+ if (item != '危险作业工程') {
|
|
|
|
+ console.log("===", item)
|
|
|
|
+ this.EngineeringList.push({
|
|
|
|
+ 'id': index,
|
|
|
|
+ 'name': item
|
|
|
|
+ })
|
|
|
|
+ }
|
|
});
|
|
});
|
|
|
|
|
|
this.selectList = this.EngineeringList;
|
|
this.selectList = this.EngineeringList;
|
|
@@ -881,26 +884,58 @@
|
|
this.dictOptions = response.data;
|
|
this.dictOptions = response.data;
|
|
});
|
|
});
|
|
} else if (e == 'gcfl') {
|
|
} else if (e == 'gcfl') {
|
|
- if (this.isEmpty(this.ProjectType.dictValue)) {
|
|
|
|
- this.$modal.msg('请选择工程类型')
|
|
|
|
|
|
+ if (this.EngineeringValue == '民用工程') {
|
|
|
|
+ if (this.isEmpty(this.ProjectType.dictValue)) {
|
|
|
|
+ this.$modal.msg('请选择工程类型')
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ this.openDict = true;
|
|
|
|
+ getDicts(this.ProjectType.dictValue).then(response => {
|
|
|
|
+ this.dictOptions = response.data;
|
|
|
|
|
|
|
|
+ });
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
|
|
+ //工业5 带起封堵施工3
|
|
|
|
+ let nodeType = '';
|
|
|
|
+ if (this.EngineeringValue == '工业工程') {
|
|
|
|
+ nodeType = '5';
|
|
|
|
+ } else if (this.EngineeringValue == '带气封堵施工') {
|
|
|
|
+ nodeType = '3';
|
|
|
|
+ }
|
|
this.openDict = true;
|
|
this.openDict = true;
|
|
- getDicts(this.ProjectType.dictValue).then(response => {
|
|
|
|
- this.dictOptions = response.data;
|
|
|
|
|
|
+ getByUserListAndDicts(nodeType).then(
|
|
|
|
+ response => {
|
|
|
|
+ this.dictOptions = response.data;
|
|
|
|
+ });
|
|
|
|
|
|
- });
|
|
|
|
}
|
|
}
|
|
} else if (e == 'gcbz') {
|
|
} else if (e == 'gcbz') {
|
|
- if (this.isEmpty(this.ProjectClassification.dictValue)) {
|
|
|
|
- this.$modal.msg('请选择工程分类')
|
|
|
|
|
|
+ if (this.EngineeringValue == '民用工程') {
|
|
|
|
+ if (this.isEmpty(this.ProjectClassification.dictValue)) {
|
|
|
|
+ this.$modal.msg('请选择工程分类')
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ this.openDict = true;
|
|
|
|
+ getDicts(this.ProjectType.dictValue + "_" + this.ProjectClassification.dictValue).then(
|
|
|
|
+ response => {
|
|
|
|
+ this.dictOptions = response.data;
|
|
|
|
|
|
|
|
+ });
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
|
|
+ let nodeType = '';
|
|
|
|
+ if (this.EngineeringValue == '市政工程') {
|
|
|
|
+ nodeType = '4';
|
|
|
|
+ } else if (this.EngineeringValue == '基建工程') {
|
|
|
|
+ nodeType = '2';
|
|
|
|
+ } else if (this.EngineeringValue == '顶管工程') {
|
|
|
|
+ nodeType = '1';
|
|
|
|
+ }
|
|
this.openDict = true;
|
|
this.openDict = true;
|
|
- getDicts(this.ProjectType.dictValue + "_" + this.ProjectClassification.dictValue).then(
|
|
|
|
|
|
+ getByUserListAndDicts(nodeType).then(
|
|
response => {
|
|
response => {
|
|
this.dictOptions = response.data;
|
|
this.dictOptions = response.data;
|
|
-
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
} else if (e == 'shzt') {
|
|
} else if (e == 'shzt') {
|
|
@@ -1052,7 +1087,32 @@
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ clear() {
|
|
|
|
+ //清空所有筛选项
|
|
|
|
+ this.XZQValue3 = '';
|
|
|
|
+ this.XQValue3 = '';
|
|
|
|
+ this.LDValue3 = '';
|
|
|
|
+ this.DYValue3 = '';
|
|
|
|
+ this.FJValue3 = '';
|
|
|
|
+ this.ProjectType = {
|
|
|
|
+ dictValue: '',
|
|
|
|
+ dictLabel: ''
|
|
|
|
+ };
|
|
|
|
+ this.ProjectClassification = {
|
|
|
|
+ dictValue: '',
|
|
|
|
+ dictLabel: ''
|
|
|
|
+ };
|
|
|
|
+ this.ProjectSteps = {
|
|
|
|
+ dictValue: '',
|
|
|
|
+ dictLabel: ''
|
|
|
|
+ };
|
|
|
|
+ this.ReviewStatus = {
|
|
|
|
+ dictValue: '',
|
|
|
|
+ dictLabel: ''
|
|
|
|
+ };
|
|
|
|
+ this.EngineeringName='';
|
|
|
|
|
|
|
|
+ },
|
|
changeSelect(item, index) {
|
|
changeSelect(item, index) {
|
|
|
|
|
|
this.open = false;
|
|
this.open = false;
|
|
@@ -1060,6 +1120,7 @@
|
|
if (this.type == 'gcx') {
|
|
if (this.type == 'gcx') {
|
|
this.EngineeringValue = item.name
|
|
this.EngineeringValue = item.name
|
|
this.changeTab();
|
|
this.changeTab();
|
|
|
|
+ this.clear();
|
|
|
|
|
|
} else if (this.type == 'xzq') {
|
|
} else if (this.type == 'xzq') {
|
|
this.XZQValue = item;
|
|
this.XZQValue = item;
|
|
@@ -1417,6 +1478,11 @@
|
|
|
|
|
|
let param = {
|
|
let param = {
|
|
type: chooseType,
|
|
type: chooseType,
|
|
|
|
+ enginName: this.EngineeringName,
|
|
|
|
+ enginType: this.ProjectClassification.dictValue == undefined ? '' : this
|
|
|
|
+ .ProjectClassification.dictValue,
|
|
|
|
+ nodeType: this.ProjectSteps.dictLabel == undefined ? '' : this.ProjectSteps.dictLabel,
|
|
|
|
+ enginStatus: this.ReviewStatus.dictValue == undefined ? '' : this.ReviewStatus.dictValue,
|
|
district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
|
|
district: this.XZQValue3.dictValue == undefined ? '' : this.XZQValue3.dictValue,
|
|
areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
|
|
areaId: this.XQValue3.id == undefined ? '' : this.XQValue3.id,
|
|
buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
|
|
buildingId: this.LDValue3.id == undefined ? '' : this.LDValue3.id,
|