Browse Source

已上报的资料不允许点击保存

duy 2 years ago
parent
commit
bc490dc03d

+ 10 - 3
src/views/tentative/detect/components/ListItem.vue

@@ -66,7 +66,7 @@
                                 </div>
                                 <div class="tip-right-btn">
                                     <HcTooltip keys="wbs_save_table">
-                                        <el-button type="primary" hc-btn :disabled="item?.isTableForm === false" :loading="tableFormSaveLoading" @click="tableFormSaveClick(item,index)">
+                                        <el-button type="primary" hc-btn :disabled="NodeStatusval === '3'" :loading="tableFormSaveLoading" @click="tableFormSaveClick(item,index)">
                                             <HcIcon name="save"/>
                                             <span>保存</span>
                                         </el-button>
@@ -202,6 +202,10 @@ const props = defineProps({
        type: Array,
         default: () => ([])
     },
+    NodeStatus:{
+        type: String,
+        default: () => ('')
+    }
  
 
     
@@ -219,16 +223,19 @@ const contractId = ref(useAppState.getContractId);
 const tabTypeKeyInfo=ref(props.tabTypeKey)
 const nodeIdvaluedata=ref(props.nodeIdvalue)
 const alllistDataval=ref(props.alllistData)
+const NodeStatusval=ref(props.NodeStatus)
 
 //监听
 watch(() => [
     props.datas,
     props.tabTypeKey,
-    props.alllistData
-], ([datas,TabTypeKey,AlllistData]) => {
+    props.alllistData,
+    props.NodeStatus
+], ([datas,TabTypeKey,AlllistData,NodeStatus]) => {
     listDatas.value = datas
     tabTypeKeyInfo.value=TabTypeKey
     alllistDataval.value=AlllistData
+    NodeStatusval.value=NodeStatus
     setFormDataNum(datas)
 })
 

+ 1 - 0
src/views/tentative/detect/test-form.vue

@@ -51,6 +51,7 @@
                  :nodeIdvalue="nodeIdvalue"
                  :alllistData="alllistData"
                  @changesdate="changeorinsdate"
+                 :NodeStatus="NodeStatus"
               
                 />
             </el-scrollbar>