Pārlūkot izejas kodu

创建委托条件下取消关联限制

duy 5 mēneši atpakaļ
vecāks
revīzija
d8ed9a1c01
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      src/views/tentative/detect/commission.vue

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

@@ -441,7 +441,9 @@ const creatingDelegate = async () => {
         window.$message.warning('请先选择合同段')
         return
     }
-    if (isNullES(form.sampleId)) {
+    const { title } = nodeDataInfo.value
+    let isCan = (title === '回弹法检测混凝土抗压强度' || title === '路基压实度' || title === '地基承载力' || title === '路基路面弯沉')
+    if (isNullES(form.sampleId) && !isCan ) {
         window.$message.warning('请先关联取样材料')
         return
     }
@@ -454,7 +456,6 @@ const creatingDelegate = async () => {
     form.contractId = delegateContractId.value
     form.nodeErTreeId = nodeErTreeId.value
     form.nodeId = primaryKeyId
-    console.log(form)
     //发起请求
     const { error, code, msg } = await mainApi.htmlSave(form)
     if (!error && code === 200) {