Quellcode durchsuchen

关联取样修改

duy vor 1 Monat
Ursprung
Commit
cc2e0ea01a
1 geänderte Dateien mit 8 neuen und 3 gelöschten Zeilen
  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
     }