Browse Source

试验创建报告参数修改

duy 5 months ago
parent
commit
8d9c22ecfb
1 changed files with 6 additions and 1 deletions
  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 rowActionModal = ref(false)
+const creatRow = ref({})
 const rowReports = async (row) => {
 const rowReports = async (row) => {
     rowActionModal.value = true
     rowActionModal.value = true
     const { data } = await mainApi.detail(row.id)
     const { data } = await mainApi.detail(row.id)
     formModel.value = getObjValue(data)
     formModel.value = getObjValue(data)
+    creatRow.value = row
+
 }
 }
 
 
 //提交保存
 //提交保存
@@ -522,7 +525,9 @@ const rowActionSave = async () => {
     const { primaryKeyId } = nodeDataInfo.value
     const { primaryKeyId } = nodeDataInfo.value
     setStoreValue('testTreeItem', nodeDataInfo.value)
     setStoreValue('testTreeItem', nodeDataInfo.value)
     setStoreValue('prenodeDataInfo', 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) {
     if (!error && code === 200) {
         window.$message.success('创建成功')
         window.$message.success('创建成功')
         rowActionLoading.value = false
         rowActionLoading.value = false