소스 검색

试验创建报告参数修改

duy 5 달 전
부모
커밋
8d9c22ecfb
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      src/views/tentative/detect/commission.vue

+ 6 - 1
src/views/tentative/detect/commission.vue

@@ -505,10 +505,13 @@ const formRules = {
 
 //创建报告
 const rowActionModal = ref(false)
+const creatRow = ref({})
 const rowReports = async (row) => {
     rowActionModal.value = true
     const { data } = await mainApi.detail(row.id)
     formModel.value = getObjValue(data)
+    creatRow.value = row
+
 }
 
 //提交保存
@@ -522,7 +525,9 @@ const rowActionSave = async () => {
     const { primaryKeyId } = nodeDataInfo.value
     setStoreValue('testTreeItem', nodeDataInfo.value)
     setStoreValue('prenodeDataInfo', nodeDataInfo.value)
-    const { error, code, msg } = await mainApi.update({ id, expCount })
+    const { repealType, sampleStatus } = creatRow.value
+
+    const { error, code, msg } = await mainApi.update({ id, expCount, repealType, sampleStatus })
     if (!error && code === 200) {
         window.$message.success('创建成功')
         rowActionLoading.value = false