Explorar el Código

关联试验文件功能修改

duy hace 1 mes
padre
commit
232dbf82c5
Se han modificado 1 ficheros con 8 adiciones y 2 borrados
  1. 8 2
      src/views/data-fill/collapse-form/test-file-cy.vue

+ 8 - 2
src/views/data-fill/collapse-form/test-file-cy.vue

@@ -199,6 +199,10 @@ const filedialogTableSelection1 = (rows) => {
 //试验文件节点下的数据
 
 const getfileNodeData = async () => {
+    if (!filenodeDataInfo.value?.pkeyId) {
+        window.$message.warning('请先选择节点')
+        return
+    }
     // 获取数据
     filedialogTableLoading.value = true
    
@@ -281,9 +285,11 @@ const savesubmitRelationFile = async (ids) => {
     const { error, code, data, msg } = await samplingApi.submitRelationFile({
         projectId: projectId.value,
         contractId: contractId.value,
-        nodeId: isPrimaryKeyId.value,
-        type: fileModalradio.value === 'test' ? 4 : fileModalradio.value === 0 ? 5 : 6,
+        nodeId: filenodeDataInfo.value?.pkeyId,
+        type: fileModalradio.value === 'test' ? 11 : fileModalradio.value === 0 ? 12 : 13,
         ids,
+        qualityTestPKeyld:isPrimaryKeyId.value,
+       
     })
     if (!error && code === 200) {
         window?.$message?.success('操作成功')