|
@@ -188,6 +188,7 @@
|
|
<el-form-item label="环节" prop="currentCheckList" style="width: 100%;margin-left: 0;" v-if="title!=='修改基建工程'">
|
|
<el-form-item label="环节" prop="currentCheckList" style="width: 100%;margin-left: 0;" v-if="title!=='修改基建工程'">
|
|
<el-checkbox-group v-model="currentCheckList" @change="console.log(currentCheckList)" :rules="{required: true, message: '请输入材质', trigger: 'blur'}">
|
|
<el-checkbox-group v-model="currentCheckList" @change="console.log(currentCheckList)" :rules="{required: true, message: '请输入材质', trigger: 'blur'}">
|
|
<el-checkbox
|
|
<el-checkbox
|
|
|
|
+ :disabled=enginNodeStatusExecuted(item)
|
|
:rules="{required: true, message: '请输入材质', trigger: 'blur'}"
|
|
:rules="{required: true, message: '请输入材质', trigger: 'blur'}"
|
|
:label="item.label"
|
|
:label="item.label"
|
|
v-for="item in checkList"
|
|
v-for="item in checkList"
|
|
@@ -694,6 +695,7 @@ export default {
|
|
zEngineeringNodeBo:{
|
|
zEngineeringNodeBo:{
|
|
|
|
|
|
},
|
|
},
|
|
|
|
+ currentCheckingEnginList:[]
|
|
|
|
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -705,6 +707,14 @@ export default {
|
|
this.checkList = this.dict.type.engineering_infrastructure
|
|
this.checkList = this.dict.type.engineering_infrastructure
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ enginNodeStatusExecuted(item){
|
|
|
|
+ try {
|
|
|
|
+ let flag
|
|
|
|
+ if(this.currentCheckingEnginList.filter(e => e.label == item.dictValue)[0].status == '1') return true
|
|
|
|
+ } catch (error) {
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 节点单项审核
|
|
// 节点单项审核
|
|
checkWorking(checkingInfo){
|
|
checkWorking(checkingInfo){
|
|
let params = checkingInfo
|
|
let params = checkingInfo
|
|
@@ -737,6 +747,24 @@ export default {
|
|
this.reset();
|
|
this.reset();
|
|
const id = data.id || this.ids
|
|
const id = data.id || this.ids
|
|
viewEngineeringInfrastructure(id).then(res => {
|
|
viewEngineeringInfrastructure(id).then(res => {
|
|
|
|
+ this.currentCheckingEnginList = []
|
|
|
|
+ // 处理当前已审核通过的节点
|
|
|
|
+ try {
|
|
|
|
+ res.data.zEngineeringNodeBoList.forEach(e => {
|
|
|
|
+ let status
|
|
|
|
+ try {
|
|
|
|
+ status = e.zEngineeringInfoBoList[0].zEngineeringReviewBo.reviewStatus
|
|
|
|
+ } catch (error) {
|
|
|
|
+ status = '0'
|
|
|
|
+ }
|
|
|
|
+ this.currentCheckingEnginList.push({
|
|
|
|
+ label:e.type,
|
|
|
|
+ status
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ } catch (error) {
|
|
|
|
+ this.currentCheckingEnginList = []
|
|
|
|
+ }
|
|
this.loading = false;
|
|
this.loading = false;
|
|
let newData = res.data
|
|
let newData = res.data
|
|
this.queryParams = newData
|
|
this.queryParams = newData
|
|
@@ -1124,6 +1152,7 @@ export default {
|
|
/** 新增按钮操作 */
|
|
/** 新增按钮操作 */
|
|
handleAdd() {
|
|
handleAdd() {
|
|
this.reset();
|
|
this.reset();
|
|
|
|
+ this.currentCheckingEnginList = []
|
|
this.open = true;
|
|
this.open = true;
|
|
this.enginNodeStatus == '新增'
|
|
this.enginNodeStatus == '新增'
|
|
this.title = "新增工程";
|
|
this.title = "新增工程";
|