From 98b00c97565276acd51a9e188f8f2bf9ed0f6ebc Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 31 十二月 2025 13:32:33 +0800
Subject: [PATCH] 陕西昭德型煤: 1.现场巡检上传附件查看附件修改联调
---
src/pages/inspectionUpload/components/formDia.vue | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/pages/inspectionUpload/components/formDia.vue b/src/pages/inspectionUpload/components/formDia.vue
index 5372423..5421415 100644
--- a/src/pages/inspectionUpload/components/formDia.vue
+++ b/src/pages/inspectionUpload/components/formDia.vue
@@ -89,7 +89,7 @@
<script setup>
import { ref, computed } from 'vue'
-import { submitInspectionRecord } from '@/api/equipmentManagement/inspection.js'
+import {submitInspectionRecord, uploadInspectionTask} from '@/api/equipmentManagement/inspection.js'
import { getToken } from '@/utils/auth'
import config from '@/config.js'
@@ -285,18 +285,18 @@
try {
let arr = []
if (beforeModelValue.value.length > 0) {
- arr.push(...beforeModelValue.value.map(item => ({ ...item, statusType: 0 })))
+ arr.push(...beforeModelValue.value.map(item => ({ ...item, type: 0 })))
}
if (afterModelValue.value.length > 0) {
- arr.push(...afterModelValue.value.map(item => ({ ...item, statusType: 1 })))
+ arr.push(...afterModelValue.value.map(item => ({ ...item, type: 1 })))
}
if (issueModelValue.value.length > 0) {
- arr.push(...issueModelValue.value.map(item => ({ ...item, statusType: 2 })))
+ arr.push(...issueModelValue.value.map(item => ({ ...item, type: 2 })))
}
// 鎻愪氦鏁版嵁
infoData.value.storageBlobDTO = arr
- await submitInspectionRecord({ ...infoData.value })
+ await uploadInspectionTask({ ...infoData.value })
uni.showToast({
title: '鎻愪氦鎴愬姛',
--
Gitblit v1.9.3