Kaynağa Gözat

审核完善

付宇航 1 yıl önce
ebeveyn
işleme
6b81a7ff54

+ 5 - 3
src/components/ConstructionDetails/index.vue

@@ -192,7 +192,7 @@
           </el-collapse-item>
         </el-collapse>
       </el-tab-pane>
-      <button class="check" @click="checkWorking" v-if="currentStatus == 'check' && reviewStatus && isChecking " style="width: 80px;border: none;">审核</button>
+      <button class="check" @click="checkWorking" v-show="currentStatus == 'check' && reviewStatus && isChecking " style="width: 80px;border: none;">审核</button>
       <button class="check" @click="updateNodeOption" style="width: 94px;border: none;cursor: pointer;" v-if="currentStatus != 'check' && status != 'read-only'  ">修改</button>
     </el-tabs>
     </el-dialog>
@@ -332,8 +332,9 @@ export default {
       try {
         this.currentCollapses[0].zEngineeringReviewBo.reviewStatus != 1 ? this.isChecking = true : false
       } catch (error) {
-        this.isChecking = false
+        this.isChecking = true
       }
+      console.log('isChecking',this.isChecking)
       let materialQuality = []
       try {
         materialQuality = this.currentCollapses[0].zEngineeringMaterialBo[0].materialQuality
@@ -387,6 +388,7 @@ export default {
     open(dicts, type = null,currentStatus = null,kind = null) {
       this.currentStatus = currentStatus
       this.checkingVisible = false
+      console.log(this.reviewStatus,this.currentStatus,this.isChecking)
       if (type == '1' || type == '2') {
         // 工业 市政
         this.$parent.viewNodeSource()
@@ -408,7 +410,7 @@ export default {
         console.log(dicts)
         this.dialogVisible = true
         if (type=='check'&&kind=='基建'){
-            dicts=dicts.filter(item=>['水电施工','防水'].includes(item.value))
+          dicts=dicts.filter(item=>['水电施工','防水'].includes(item.value))
         }
         this.currentDicts = dicts
       }

+ 13 - 6
src/views/zdsz/engineeringInfrastructure/index.vue

@@ -738,17 +738,24 @@ export default {
   viewSource(e,type = null){
     let params = this.dict.type.engineering_infrastructure
     if(type == 'check'){
+      // 审核
+      let checkingParams = []
       getDictList({enginType:['engineering_infrastructure']}).then(res => {
-        params = res.data.filter(e => {
+        checkingParams = res.data.filter(e => {
           return e.label == '水电施工' || e.label == '防水'
         })
-        return this.$refs.ConstructionDetails.open(params,_,type)
+        setTimeout(() => {
+          console.log('___',checkingParams)
+          this.currentId = e.id
+          this.status = 'read-only'
+          this.$refs.ConstructionDetails.open(checkingParams,_,type)
+        })
       })
+    } else{
+      this.currentId = e.id
+      this.$refs.ConstructionDetails.open(params,_,type)
+      this.status = 'read-only'
     }
-    console.log(e)
-    this.currentId = e.id
-    this.$refs.ConstructionDetails.open(params,_,type)
-    this.status = 'read-only'
   },
   // 填写节点信息
   updateNodeOption(zEngineeringInfoBoList){