Parcourir la source

用料删除bug,基建节点bug

qinhouyu il y a 1 an
Parent
commit
280034645f

+ 7 - 1
src/components/ConstructionDetails/index.vue

@@ -735,6 +735,11 @@ export default {
      * @param enginType 工程大类名称
      */
     open(dicts, type = null,currentStatus = null,kind = null,title= null,enginClassification,enginSort,enginType) {
+      console.log(1)
+      console.log(dicts)
+      console.log(type)
+      console.log(kind)
+      console.log(2)
       // if (kind=='民用'||kind=='基建'){
         this.enginType=enginType
         this.enginSort=enginSort
@@ -779,9 +784,10 @@ export default {
           }
         ]
       } else {
+        console.log(4)
         console.log(dicts)
         this.dialogVisible = true
-        if (type=='check'&&kind=='基建'){
+        if (kind=='基建'){
           dicts=dicts.filter(item=>['水电施工','防水'].includes(item.value))
         }
         this.currentDicts = dicts

+ 3 - 1
src/components/EnginNodeInfo/index.vue

@@ -541,7 +541,6 @@ export default {
     },
     addMaterial(){
       let materialBo = {}
-      console.log(this.materialComponList)
       this.materialComponList.forEach(e => {
         materialBo[e] = null
       })
@@ -558,6 +557,9 @@ export default {
         material
       )
     },
+    removezEngineeringMaterialBo(index){
+      this.zEngineeringMaterialBo.splice(index, 1);
+    },
     // 填充已有数据
     updateInfo(e){
       console.log('填充',e)