Browse Source

合同工程清单修改

duy 1 year ago
parent
commit
6b131e37cd
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/project/debit/contract/check-list.vue

+ 3 - 3
src/views/project/debit/contract/check-list.vue

@@ -18,7 +18,7 @@
         <div :id="`hc_table_card_${uuid}`" class="flex-1">
             <hc-new-card scrollbar title="合同工程清单明细">
                 <template #extra>
-                    <el-button v-if="!isInfoView" hc-btn type="primary" @click="addsupply">增补清单</el-button>
+                    <el-button v-if="infoData?.isFormNode === 0" hc-btn type="primary" @click="addsupply">增补清单</el-button>
                     <el-button hc-btn type="primary" @click="leadModalShow = true">导入</el-button>
                     <el-button hc-btn type="primary">导出</el-button>
                 </template>
@@ -511,8 +511,8 @@ const treeMenuTap = ({ key, data, node }) => {
 }
 //、新增修改是否为清单节点限制
 const changeAddFormType = (val)=>{
-    const { formType } = treeItem.value
-    if (formType === 1 && val === 1) {
+    const { isFormNode } = treeItem.value
+    if (isFormNode === 1 && val === 1) {
         window.$message.warning('非清单节点才可新增下级清单节点')
     }
 }