Parcourir la source

修复首件上报

iZaiZaiA il y a 2 ans
Parent
commit
06657a7d92
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/views/other/first-item.vue

+ 2 - 1
src/views/other/first-item.vue

@@ -602,6 +602,7 @@ const reportModalClick = async () => {
             contractId: contractId.value
         })
         if (tabTypeKey.value === 'mark') {
+            reportIds.value = tableFormId.value
             const { error, code, data } = await firstApi.queryFirstDocumentTitle({
                 projectId: projectId.value,
                 contractId: contractId.value,
@@ -614,6 +615,7 @@ const reportModalClick = async () => {
                 reportTaskName.value = ''
             }
         } else {
+            reportIds.value = rowsToId(rows)
             //设置任务数据
             let reportDataArr = []
             rows.forEach(item => {
@@ -629,7 +631,6 @@ const reportModalClick = async () => {
         }
         reportLoading.value = false
         if (taskCheck) {
-            reportIds.value = rowsToId(rows)
             //附加数据
             reportAddition.value = {
                 classify: 1,