ソースを参照

修复首件上报

iZaiZaiA 2 年 前
コミット
06657a7d92
1 ファイル変更2 行追加1 行削除
  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,