Bladeren bron

fix: 修改督办

shiyanyu 3 dagen geleden
bovenliggende
commit
f62c315c40

+ 20 - 20
src/views/costAudit/projectInfo/taskSuperviseManage/superviseMattersManage/index.vue

@@ -486,26 +486,7 @@
         })
 
         // if(!id){
-        createSuperviseTask({ reportContent, attachmentUrls, projectId })
-          .then((res) => {
-            if (res && Number(res.code) === 200) {
-              this.$message.success('提交成功')
-              this.isReport = false
-              this.reportForm = { content: '', uploadUrl: [] }
-              this.currentTask = null
-              this.generateTableData()
-            } else {
-              this.$message.error((res && res.message) || '提交失败')
-            }
-          })
-          .catch(() => {
-            this.$message.error('提交失败')
-          })
-          .finally(() => {
-            loading && loading.close && loading.close()
-          })
-        // }else{
-        //   updateSuperviseTask({ id, reportContent, attachmentUrls, projectId })
+        // createSuperviseTask({ reportContent, attachmentUrls, projectId })
         //   .then((res) => {
         //     if (res && Number(res.code) === 200) {
         //       this.$message.success('提交成功')
@@ -523,6 +504,25 @@
         //   .finally(() => {
         //     loading && loading.close && loading.close()
         //   })
+        // // }else{
+        updateSuperviseTask({ id, reportContent, attachmentUrls, projectId })
+          .then((res) => {
+            if (res && Number(res.code) === 200) {
+              this.$message.success('提交成功')
+              this.isReport = false
+              this.reportForm = { content: '', uploadUrl: [] }
+              this.currentTask = null
+              this.generateTableData()
+            } else {
+              this.$message.error((res && res.message) || '提交失败')
+            }
+          })
+          .catch(() => {
+            this.$message.error('提交失败')
+          })
+          .finally(() => {
+            loading && loading.close && loading.close()
+          })
         // }
       },
       handleCancel() {

+ 4 - 3
src/views/costAudit/projectInfo/taskSuperviseManage/superviseResultManage/index.vue

@@ -250,7 +250,8 @@
           <el-table-column
             prop="reportContent"
             label="报告内容"
-            align="center"
+            header-align="center"
+            align="left"
             show-overflow-tooltip
           ></el-table-column>
           <el-table-column
@@ -625,8 +626,8 @@
             this.supervisionRecords = arr.map((it, idx) => ({
               serialNumber: idx + 1,
               supervisor: it.supervisor || it.supervisorName || '',
-              reportTime: it.requireTime || '',
-              reportContent: it.requireContent || '',
+              reportTime: it.reportTime || '',
+              reportContent: it.reportContent || '',
               relatedFiles:
                 it.attachmentUrls || it.attachmentIds || it.relatedFiles || '',
             }))