Browse Source

合同计量单元修改

duy 1 year ago
parent
commit
0f902ed2b2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/views/project/debit/contract/components/unit/tree-form.vue

+ 4 - 1
src/views/project/debit/contract/components/unit/tree-form.vue

@@ -152,7 +152,10 @@ const delRowClick = (index) => {
 }
 const addNodeLoading = ref(false)
 const modalSave = async () => {
-
+    if (tableData.value.length === 0) {
+        window.$message.warning('请选择部位点击新增')
+        return
+    }
    
         const { error, code, msg } = await unitApi.addNode({
             contractId:contractId.value,