duy преди 1 месец
родител
ревизия
cc2e0ea01a
променени са 1 файла, в които са добавени 8 реда и са изтрити 3 реда
  1. 8 3
      src/views/tentative/detect/commission.vue

+ 8 - 3
src/views/tentative/detect/commission.vue

@@ -488,9 +488,14 @@ const creatingDelegate = async () => {
         window.$message.warning('请先选择合同段')
         return
     }
-    const { title } = nodeDataInfo.value
-    let isCan = (title === '回弹法检测混凝土抗压强度' || title === '路基压实度' || title === '地基承载力' || title === '路基路面弯沉' || title === '锚杆' || title === '喷射混凝土厚度')
-    if (isNullES(form.sampleId) && !isCan ) {
+    // const { title } = nodeDataInfo.value
+    // let isCan = (title === '回弹法检测混凝土抗压强度' || title === '路基压实度' || title === '地基承载力' || title === '路基路面弯沉' || title === '锚杆' || title === '喷射混凝土厚度')
+    // if (isNullES(form.sampleId) && !isCan ) {
+    //     window.$message.warning('请先关联取样材料')
+    //     return
+    // }
+    const { nodeType } = nodeDataInfo.value
+    if (nodeType !== 51) {
         window.$message.warning('请先关联取样材料')
         return
     }