|
@@ -167,7 +167,7 @@
|
|
|
<el-input v-model="queryParams.plannedDuration" placeholder="请输入计划工期" maxlength="50" :disabled="title == '添加用料' "></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="文件" prop="files" v-if="queryParams.id">
|
|
|
- <ObsFileUpload ref="obsFileUpload" :disabled="title != '新增工程'" :file-size="100" :file-type="['dwg','dwt','doc','docx','xls','xlsx','png', 'jpg', 'jpeg','mp4']" :limit="9999" :value="queryParams.pics" @input="filesUpload"
|
|
|
+ <ObsFileUpload ref="obsFileUpload" :disabled="title == '添加用料' " :file-size="100" :file-type="['dwg','dwt','doc','docx','xls','xlsx','png', 'jpg', 'jpeg','mp4']" :limit="9999" :value="queryParams.pics" @input="filesUpload"
|
|
|
></ObsFileUpload>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="文件" prop="files" v-else>
|
|
@@ -188,6 +188,7 @@
|
|
|
<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
|
|
|
+ :disabled=enginNodeStatusExecuted(item)
|
|
|
:rules="{required: true, message: '请输入材质', trigger: 'blur'}"
|
|
|
:label="item.label"
|
|
|
v-for="item in checkList"
|
|
@@ -555,7 +556,7 @@ export default {
|
|
|
{ required: true, message: "工程内容不能为空", trigger: "blur" }
|
|
|
],
|
|
|
files: [
|
|
|
- { required: true, message: "至少上传一个文件", trigger: "blur" }
|
|
|
+ { required: false, message: "至少上传一个文件", trigger: "blur" }
|
|
|
],
|
|
|
|
|
|
},
|
|
@@ -694,6 +695,8 @@ export default {
|
|
|
zEngineeringNodeBo:{
|
|
|
|
|
|
},
|
|
|
+ currentCheckingEnginList:[],
|
|
|
+ currentEnginName:null
|
|
|
|
|
|
};
|
|
|
},
|
|
@@ -705,6 +708,14 @@ export default {
|
|
|
this.checkList = this.dict.type.engineering_infrastructure
|
|
|
},
|
|
|
methods: {
|
|
|
+ enginNodeStatusExecuted(item){
|
|
|
+ try {
|
|
|
+ let flag
|
|
|
+ if(this.currentCheckingEnginList.filter(e => e.label == item.label)[0].status == '1') return true
|
|
|
+ } catch (error) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ },
|
|
|
// 节点单项审核
|
|
|
checkWorking(checkingInfo){
|
|
|
let params = checkingInfo
|
|
@@ -715,6 +726,9 @@ export default {
|
|
|
message: '审核成功',
|
|
|
type: 'success'
|
|
|
});
|
|
|
+ setTimeout(() => {
|
|
|
+ this.viewNodeSource()
|
|
|
+ },1000)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -737,6 +751,24 @@ export default {
|
|
|
this.reset();
|
|
|
const id = data.id || this.ids
|
|
|
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;
|
|
|
let newData = res.data
|
|
|
this.queryParams = newData
|
|
@@ -786,11 +818,13 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- viewNodeSource(e){
|
|
|
- console.log(this.currentId)
|
|
|
+ viewNodeSource(e = null){
|
|
|
+ if(e){
|
|
|
+ this.currentEnginName = e
|
|
|
+ }
|
|
|
viewEngineeringInfrastructureSource({
|
|
|
id:this.currentId,
|
|
|
- type:e
|
|
|
+ type:e || this.currentEnginName
|
|
|
}).then(res => {
|
|
|
this.createTime = res.data.createTime
|
|
|
console.log(res)
|
|
@@ -1124,6 +1158,7 @@ export default {
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
this.reset();
|
|
|
+ this.currentCheckingEnginList = []
|
|
|
this.open = true;
|
|
|
this.enginNodeStatus == '新增'
|
|
|
this.title = "新增工程";
|