From 9d961bd20d2dfa877b8411c9104b00f98b3a4983 Mon Sep 17 00:00:00 2001
From: 周宾 <2802492122@qq.com>
Date: 星期三, 24 十二月 2025 09:15:23 +0800
Subject: [PATCH] 海川开心-配置文件更改

---
 src/pages/inspectionUpload/index.vue |  828 +++++++++++++++++++++++++++++++++-------------------------
 1 files changed, 467 insertions(+), 361 deletions(-)

diff --git a/src/pages/inspectionUpload/index.vue b/src/pages/inspectionUpload/index.vue
index b648e9c..e18f93b 100644
--- a/src/pages/inspectionUpload/index.vue
+++ b/src/pages/inspectionUpload/index.vue
@@ -1,46 +1,32 @@
 <template>
   <view class="inspection-upload-page">
     <!-- 椤甸潰澶撮儴 -->
-    <PageHeader title="宸℃涓婁紶"  @back="goBack"/>
-    
+    <PageHeader title="宸℃涓婁紶" @back="goBack" />
+
     <!-- 鏁版嵁鍒楄〃 -->
     <view class="table-section">
       <!-- 鐢熶骇宸℃鍒楄〃 -->
       <view class="task-list">
-        <view 
-          v-for="(item, index) in taskTableData" 
-          :key="index"
-          class="task-item"
-        >
+        <view v-for="(item, index) in taskTableData" :key="index" class="task-item">
           <view class="task-header">
             <view class="task-info">
               <text class="task-name">{{ item.taskName }}</text>
               <text class="task-location">{{ item.inspectionLocation }}</text>
             </view>
             <view class="task-actions">
-              <u-button 
-                type="primary" 
-                size="small"
-                @click.stop="startScanForTask(item)"
-                :customStyle="{
-                  borderRadius: '15px',
-                  height: '30px',
-                  fontSize: '12px',
-                  marginRight: '8px'
-                }"
-              >
+              <u-button type="primary" size="small" @click.stop="startScanForTask(item)" :customStyle="{
+                borderRadius: '15px',
+                height: '30px',
+                fontSize: '12px',
+                marginRight: '8px'
+              }">
                 鎵爜涓婁紶
               </u-button>
-              <u-button 
-                type="success" 
-                size="small"
-                @click.stop="viewAttachments(item)"
-                :customStyle="{
-                  borderRadius: '15px',
-                  height: '30px',
-                  fontSize: '12px'
-                }"
-              >
+              <u-button type="success" size="small" @click.stop="viewAttachments(item)" :customStyle="{
+                borderRadius: '15px',
+                height: '30px',
+                fontSize: '12px'
+              }">
                 鏌ョ湅闄勪欢
               </u-button>
             </view>
@@ -58,60 +44,56 @@
               <text class="detail-label">鎵ц浜�</text>
               <text class="detail-value">{{ item.inspector }}</text>
             </view>
+            <view class="detail-item">
+              <text class="detail-label">浠诲姟涓嬪彂鏃ユ湡</text>
+              <text class="detail-value">{{ item.dateStr }}</text>
+            </view>
+            <view class="detail-item">
+              <text class="detail-label">宸℃鐘舵��</text>
+              <view class="detail-value">
+                <uni-tag v-if="item.fileStatus==2" text="宸插畬鎴�" size="small" type="success" inverted></uni-tag>
+                <uni-tag v-else-if="item.fileStatus==1" text="宸℃涓�" size="small" type="primary" inverted></uni-tag>
+                <uni-tag v-else="" text="鏈贰妫�" size="small" type="warning" inverted></uni-tag>
+              </view>
+            </view>
           </view>
         </view>
+        <uni-load-more :status="loadMoreStatus"></uni-load-more>
       </view>
-      
+
       <!-- 绌虹姸鎬� -->
-      <view v-if="taskTableData.length === 0" class="no-data">
+      <view v-if="taskTableData?.length === 0" class="no-data">
         <text>鏆傛棤鏁版嵁</text>
       </view>
-      
+
     </view>
-    
+
     <!-- 鎵爜鍖哄煙 - 鍏ㄥ眬寮圭獥 -->
     <view v-if="isScanning" class="qr-scan-overlay">
       <view class="qr-scan-container">
         <view class="scan-header">
           <text class="scan-title">鎵弿浜岀淮鐮�</text>
-          <u-button 
-            type="error" 
-            size="small"
-            @click.stop="stopScan"
-            :customStyle="{
-              borderRadius: '15px',
-              height: '30px',
-              fontSize: '12px'
-            }"
-          >
+          <u-button type="error" size="small" @click.stop="stopScan" :customStyle="{
+            borderRadius: '15px',
+            height: '30px',
+            fontSize: '12px'
+          }">
             鍏抽棴
           </u-button>
         </view>
-        <camera 
-          class="qr-camera"
-          device-position="back"
-          flash="off"
-          @scancode="handleScanCode"
-          @error="handleCameraError"
-        ></camera>
+        <camera class="qr-camera" device-position="back" flash="off" @scancode="handleScanCode"
+          @error="handleCameraError"></camera>
         <view class="scan-frame-wrapper">
           <view class="scan-frame"></view>
           <view class="scan-tip">璇峰皢浜岀淮鐮佹斁鍏ユ鍐�</view>
         </view>
-        <u-alert 
-          v-if="cameraError"
-          :title="cameraError"
-          type="error"
-          :showIcon="true"
-          :closable="true"
-          @close="cameraError = ''"
-          :customStyle="{
+        <u-alert v-if="cameraError" :title="cameraError" type="error" :showIcon="true" :closable="true"
+          @close="cameraError = ''" :customStyle="{
             margin: '10px 0'
-          }"
-        ></u-alert>
+          }"></u-alert>
       </view>
     </view>
-    
+
     <!-- 鍥剧墖涓婁紶寮圭獥 - 鍘熺敓瀹炵幇 -->
     <view v-if="showUploadDialog" class="custom-modal-overlay" @click="closeUploadDialog">
       <view class="custom-modal-container" @click.stop>
@@ -119,122 +101,117 @@
           <view class="upload-popup-header">
             <text class="upload-popup-title">涓婁紶宸℃璁板綍</text>
           </view>
-          
-            <view class="upload-popup-body">
-              <!-- 鍒嗙被鏍囩椤� -->
-              <view class="upload-tabs">
-                <view 
-                  class="tab-item"
-                  :class="{ active: currentUploadType === 'before' }"
-                  @click="switchUploadType('before')"
-                >
-                  鐢熶骇鍓�
-                </view>
-                <view 
-                  class="tab-item"
-                  :class="{ active: currentUploadType === 'after' }"
-                  @click="switchUploadType('after')"
-                >
-                  鐢熶骇涓�
-                </view>
-                <view 
-                  class="tab-item"
-                  :class="{ active: currentUploadType === 'issue' }"
-                  @click="switchUploadType('issue')"
-                >
-                  鐢熶骇鍚�
-                </view>
+
+          <view class="upload-popup-body">
+            <!-- 鍒嗙被鏍囩椤� -->
+            <view class="upload-tabs">
+              <view class="tab-item" :class="{ active: currentUploadType === 'before' }"
+                @click="switchUploadType('before')">
+                鐢熶骇鍓�
               </view>
-              
-              <!-- 褰撳墠鍒嗙被鐨勪笂浼犲尯鍩� -->
-              <view class="simple-upload-area">
-                <view class="upload-buttons">
-                  <u-button 
-                    type="primary" 
-                    @click="chooseImage"
-                    :loading="uploading"
-                    :disabled="getCurrentFiles().length >= uploadConfig.limit"
-                    :customStyle="{ marginRight: '10px', flex: 1 }"
-                  >
-                    <u-icon name="camera" size="18" color="#fff" style="margin-right: 5px;"></u-icon>
-                    {{ uploading ? '涓婁紶涓�...' : '鎷嶇収' }}
-                  </u-button>
-                  <u-button 
-                    type="success" 
-                    @click="chooseVideo"
-                    :loading="uploading"
-                    :disabled="getCurrentFiles().length >= uploadConfig.limit"
-                    :customStyle="{ flex: 1 }"
-                  >
-                    <u-icon name="video" size="18" color="#fff" style="margin-right: 5px;"></u-icon>
-                    {{ uploading ? '涓婁紶涓�...' : '鎷嶈棰�' }}
-                  </u-button>
+              <view class="tab-item" :class="{ active: currentUploadType === 'after' }"
+                @click="switchUploadType('after')">
+                鐢熶骇涓�
+              </view>
+              <view class="tab-item" :class="{ active: currentUploadType === 'issue' }"
+                @click="switchUploadType('issue')">
+                鐢熶骇鍚�
+              </view>
+            </view>
+
+            <!-- 寮傚父鐘舵�侀�夋嫨 -->
+            <view class="exception-section">
+              <text class="section-title">鏄惁瀛樺湪寮傚父锛�</text>
+              <view class="exception-options">
+                <view class="exception-option" :class="{ active: hasException === false }"
+                  @click="setExceptionStatus(false)">
+                  <u-icon name="checkmark-circle" size="20" color="#52c41a"></u-icon>
+                  <text>姝e父</text>
                 </view>
-                
-                <!-- 涓婁紶杩涘害 -->
-                <view v-if="uploading" class="upload-progress">
-                  <u-line-progress 
-                    :percentage="uploadProgress" 
-                    :showText="true"
-                    activeColor="#409eff"
-                  ></u-line-progress>
-                </view>
-                
-                <!-- 褰撳墠鍒嗙被鐨勬枃浠跺垪琛� -->
-                <view v-if="getCurrentFiles().length > 0" class="file-list">
-                  <view 
-                    v-for="(file, index) in getCurrentFiles()" 
-                    :key="index"
-                    class="file-item"
-                  >
-                    <view class="file-preview-container">
-                      <image 
-                        v-if="file.type === 'image'"
-                        :src="file.url || file.tempFilePath || file.path" 
-                        class="file-preview"
-                        mode="aspectFill"
-                      />
-                      <view v-else class="video-preview">
-                        <u-icon name="video" size="24" color="#409eff"></u-icon>
-                        <text class="video-text">瑙嗛</text>
-                      </view>
-                      
-                      <!-- 鍒犻櫎鎸夐挳 -->
-                      <view class="delete-btn" @click="removeFile(index)">
-                        <u-icon name="close" size="12" color="#fff"></u-icon>
-                      </view>
-                    </view>
-                    
-                    <view class="file-info">
-                      <text class="file-name">{{ file.bucketFilename || file.name || (file.type === 'image' ? '鍥剧墖' : '瑙嗛') }}</text>
-                      <text class="file-size">{{ formatFileSize(file.size) }}</text>
-                    </view>
-                  </view>
-                </view>
-                
-                <view v-if="getCurrentFiles().length === 0" class="empty-state">
-                  <text>璇烽�夋嫨瑕佷笂浼犵殑{{ getUploadTypeText() }}鍥剧墖鎴栬棰�</text>
-                </view>
-                
-                <!-- 缁熻淇℃伅 -->
-                <view class="upload-summary">
-                  <text class="summary-text">
-                    鐢熶骇鍓�: {{ beforeModelValue.length }}涓枃浠� | 
-                    鐢熶骇涓�: {{ afterModelValue.length }}涓枃浠� | 
-                    鐢熶骇鍚�: {{ issueModelValue.length }}涓枃浠�
-                  </text>
+                <view class="exception-option" :class="{ active: hasException === true }"
+                  @click="setExceptionStatus(true)">
+                  <u-icon name="close-circle" size="20" color="#ff4d4f"></u-icon>
+                  <text>瀛樺湪寮傚父</text>
                 </view>
               </view>
             </view>
-          
+
+            <!-- 褰撳墠鍒嗙被鐨勪笂浼犲尯鍩� -->
+            <view class="simple-upload-area">
+              <view class="upload-buttons">
+                <u-button type="primary" @click="chooseMedia('image')" :loading="uploading"
+                  :disabled="getCurrentFiles().length >= uploadConfig.limit"
+                  :customStyle="{ marginRight: '10px', flex: 1 }">
+                  <u-icon name="camera" size="18" color="#fff" style="margin-right: 5px;"></u-icon>
+                  {{ uploading ? '涓婁紶涓�...' : '鎷嶇収' }}
+                </u-button>
+                <u-button type="success" @click="chooseMedia('video')" :loading="uploading"
+                  :disabled="getCurrentFiles().length >= uploadConfig.limit" :customStyle="{ flex: 1 }">
+                  <uni-icons type="videocam" name="videocam" size="18" color="#fff"
+                    style="margin-right: 5px;"></uni-icons>
+                  {{ uploading ? '涓婁紶涓�...' : '鎷嶈棰�' }}
+                </u-button>
+              </view>
+
+              <!-- 涓婁紶杩涘害 -->
+              <view v-if="uploading" class="upload-progress">
+                <u-line-progress :percentage="uploadProgress" :showText="true" activeColor="#409eff"></u-line-progress>
+              </view>
+
+              <!-- 褰撳墠鍒嗙被鐨勬枃浠跺垪琛� -->
+              <view v-if="getCurrentFiles().length > 0" class="file-list">
+                <view v-for="(file, index) in getCurrentFiles()" :key="index" class="file-item">
+                  <view class="file-preview-container">
+                    <image v-if="file?.path?.fileType === 'image'"
+                      :src="file?.url || file?.tempFilePath?.tempFilePath || file?.path?.tempFilePath"
+                      class="file-preview" mode="aspectFill" />
+                    <view v-else class="video-preview">
+                      <uni-icons type="videocam" name="videocam" size="18" color="#fff"
+                        style="margin-right: 5px;"></uni-icons>
+                      <text class="video-text">瑙嗛</text>
+                    </view>
+
+                    <!-- 鍒犻櫎鎸夐挳 -->
+                    <view class="delete-btn" @click="removeFile(index)">
+                      <u-icon name="close" size="12" color="#fff"></u-icon>
+                    </view>
+                  </view>
+
+                  <view class="file-info">
+                    <text class="file-name">{{ file.bucketFilename || file.name || (file.type === 'image' ? '鍥剧墖' : '瑙嗛')
+                      }}</text>
+                    <text class="file-size">{{ formatFileSize(file.size) }}</text>
+                  </view>
+                </view>
+              </view>
+
+              <view v-if="getCurrentFiles().length === 0" class="empty-state">
+                <text>璇烽�夋嫨瑕佷笂浼犵殑{{ getUploadTypeText() }}鍥剧墖鎴栬棰�</text>
+              </view>
+
+              <!-- 缁熻淇℃伅 -->
+              <view class="upload-summary">
+                <text class="summary-text">
+                  鐢熶骇鍓�: {{ beforeModelValue.length }}涓枃浠� |
+                  鐢熶骇涓�: {{ afterModelValue.length }}涓枃浠� |
+                  鐢熶骇鍚�: {{ issueModelValue.length }}涓枃浠�
+                </text>
+              </view>
+            </view>
+          </view>
+
           <view class="upload-popup-footer">
             <u-button @click="closeUploadDialog" :customStyle="{ marginRight: '10px' }">鍙栨秷</u-button>
+            <u-button v-if="hasException === true" type="warning" @click="goToRepair"
+              :customStyle="{ marginRight: '10px' }">
+              鏂板鎶ヤ慨
+            </u-button>
             <u-button type="primary" @click="submitUpload">鎻愪氦</u-button>
           </view>
         </view>
       </view>
     </view>
-    
+
     <!-- 鏌ョ湅闄勪欢寮圭獥 -->
     <view v-if="showAttachmentDialog" class="custom-modal-overlay" @click="closeAttachmentDialog">
       <view class="custom-modal-container" @click.stop>
@@ -245,62 +222,44 @@
               <u-icon name="close" size="16" color="#666"></u-icon>
             </view>
           </view>
-          
+
           <view class="attachment-popup-body">
             <!-- 鍒嗙被鏍囩椤� -->
             <view class="attachment-tabs">
-              <view 
-                class="tab-item"
-                :class="{ active: currentViewType === 'before' }"
-                @click="switchViewType('before')"
-              >
+              <view class="tab-item" :class="{ active: currentViewType === 'before' }"
+                @click="switchViewType('before')">
                 鐢熶骇鍓� ({{ getAttachmentsByType(0).length }})
               </view>
-              <view 
-                class="tab-item"
-                :class="{ active: currentViewType === 'after' }"
-                @click="switchViewType('after')"
-              >
+              <view class="tab-item" :class="{ active: currentViewType === 'after' }" @click="switchViewType('after')">
                 鐢熶骇涓� ({{ getAttachmentsByType(1).length }})
               </view>
-              <view 
-                class="tab-item"
-                :class="{ active: currentViewType === 'issue' }"
-                @click="switchViewType('issue')"
-              >
+              <view class="tab-item" :class="{ active: currentViewType === 'issue' }" @click="switchViewType('issue')">
                 鐢熶骇鍚� ({{ getAttachmentsByType(2).length }})
               </view>
             </view>
-            
+
             <!-- 褰撳墠鍒嗙被鐨勯檮浠跺垪琛� -->
             <view class="attachment-content">
               <view v-if="getCurrentViewAttachments().length > 0" class="attachment-list">
-                <view 
-                  v-for="(file, index) in getCurrentViewAttachments()" 
-                  :key="index"
-                  class="attachment-item"
-                  @click="previewAttachment(file)"
-                >
+                <view v-for="(file, index) in getCurrentViewAttachments()" :key="index" class="attachment-item"
+                  @click="previewAttachment(file)">
                   <view class="attachment-preview-container">
-                    <image 
-                      v-if="file.type === 'image' || isImageFile(file)"
-                      :src="file.url || file.downloadUrl" 
-                      class="attachment-preview"
-                      mode="aspectFill"
-                    />
+                    <image v-if="file.type === 'image' || isImageFile(file)" :src="file.url || file.downloadUrl"
+                      class="attachment-preview" mode="aspectFill" />
                     <view v-else class="attachment-video-preview">
                       <u-icon name="video" size="24" color="#409eff"></u-icon>
                       <text class="video-text">瑙嗛</text>
                     </view>
                   </view>
-                  
+
                   <view class="attachment-info">
-                    <text class="attachment-name">{{ file.originalFilename || file.bucketFilename || file.name || '闄勪欢' }}</text>
+                    <text class="attachment-name">{{ file.originalFilename || file.bucketFilename || file.name || '闄勪欢'
+                      }}</text>
                     <text class="attachment-size">{{ formatFileSize(file.byteSize || file.size) }}</text>
                   </view>
                 </view>
               </view>
-              
+
               <view v-else class="attachment-empty">
                 <text>璇ュ垎绫绘殏鏃犻檮浠�</text>
               </view>
@@ -309,7 +268,7 @@
         </view>
       </view>
     </view>
-    
+
     <!-- 瑙嗛棰勮寮圭獥 -->
     <view v-if="showVideoDialog" class="video-modal-overlay" @click="closeVideoPreview">
       <view class="video-modal-container" @click.stop>
@@ -320,14 +279,8 @@
           </view>
         </view>
         <view class="video-modal-body">
-          <video 
-            v-if="currentVideoFile"
-            :src="currentVideoFile.url || currentVideoFile.downloadUrl"
-            class="video-player"
-            controls
-            autoplay
-            @error="handleVideoError"
-          ></video>
+          <video v-if="currentVideoFile" :src="currentVideoFile.url || currentVideoFile.downloadUrl"
+            class="video-player" controls autoplay @error="handleVideoError"></video>
         </view>
       </view>
     </view>
@@ -335,11 +288,11 @@
 </template>
 
 <script setup>
-import { onMounted, onUnmounted, ref, nextTick, computed } from 'vue'
-import { onShow } from '@dcloudio/uni-app'
+import { onMounted, onUnmounted, ref, nextTick, computed, reactive } from 'vue'
+import { onShow, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
 import PageHeader from '@/components/PageHeader.vue'
 import { getLedgerById } from '@/api/equipmentManagement/ledger.js'
-import {inspectionTaskList, uploadInspectionTask} from "@/api/inspectionManagement";
+import { inspectionTaskList, uploadInspectionTask } from "@/api/inspectionManagement";
 import { getToken } from "@/utils/auth";
 
 // 缁勪欢寮曠敤宸茬Щ闄�
@@ -389,6 +342,9 @@
 const showVideoDialog = ref(false)
 const currentVideoFile = ref(null)
 
+// 寮傚父鐘舵��
+const hasException = ref(null) // null: 鏈�夋嫨, true: 瀛樺湪寮傚父, false: 姝e父
+
 // 涓婁紶閰嶇疆
 const uploadConfig = {
   action: "/common/minioUploads",
@@ -401,15 +357,15 @@
 // 璁$畻涓婁紶URL
 const uploadFileUrl = computed(() => {
   let baseUrl = '';
-  
+
   if (process.env.VUE_APP_BASE_API) {
     baseUrl = process.env.VUE_APP_BASE_API;
   } else if (process.env.NODE_ENV === 'development') {
-    baseUrl = 'http://192.168.1.147:9036';
+    baseUrl = 'http://114.132.189.42:9068';
   } else {
-    baseUrl = 'http://192.168.1.147:9036';
+    baseUrl = 'http://114.132.189.42:9068';
   }
-  
+
   return baseUrl + uploadConfig.action;
 })
 
@@ -426,29 +382,68 @@
 const isScanning = ref(false)
 const cameraError = ref('')
 
+const pagesPames = reactive({
+  size: 10,
+  current:1
+})
+
+const loadMoreStatus = computed(()=>{
+  if(loading.value){
+    return 'loading'
+  }
+  if(noMore.value){
+    return 'noMore'
+  }
+  return 'more'
+})
+const totalSize = ref(0)
+const noMore = computed(()=>{
+  return taskTableData.value.length>=totalSize.value
+})
+const loading = ref(false)
+
+const reloadPage = ()=>{
+  pagesPames.current = 1
+  taskTableData.value = []
+  getList()
+}
+const loadPage = ()=>{
+  if(noMore.value||loading.value)return;
+  pagesPames.current += 1
+  getList()
+}
+
 // 鐢熷懡鍛ㄦ湡
 onMounted(() => {
   // 寤惰繜鍒濆鍖栵紝纭繚DOM宸叉覆鏌�
-  nextTick(() => {
-    getList()
-  })
+  // nextTick(() => {
+  //   getList()
+  // })
+})
+
+onReachBottom(() => {
+  loadPage()
+})
+onPullDownRefresh(() => {
+  reloadPage()
+  uni.stopPullDownRefresh()
 })
 
 onShow(() => {
   // 椤甸潰鏄剧ず鏃跺埛鏂版暟鎹�
-  getList()
+  reloadPage()
 })
 
 // 缁勪欢閿�姣佹椂鐨勬竻鐞�
 onUnmounted(() => {
   // 璁剧疆鍙栨秷鏍囧織锛岄樆姝㈠悗缁殑寮傛鎿嶄綔
   isRequestCancelled = true
-  
+
   // 鍋滄鎵爜
   if (isScanning.value) {
     isScanning.value = false
   }
-  
+
   // 鍏抽棴涓婁紶寮圭獥
   if (showUploadDialog.value) {
     showUploadDialog.value = false
@@ -460,28 +455,23 @@
   uni.navigateBack()
 }
 
-// 鏌ヨ鏁版嵁
-const handleQuery = () => {
-  getList()
-}
 
 // 鑾峰彇鍒楄〃鏁版嵁
 const getList = () => {
   // 鏄剧ず鍔犺浇鎻愮ず
-  showLoadingToast('鍔犺浇涓�...')
-  
+  // showLoadingToast('鍔犺浇涓�...')
+
   // 璁剧疆鍙栨秷鏍囧織
   isRequestCancelled = false
-  
-  inspectionTaskList({}).then(res => {
+  loading.value = true
+  inspectionTaskList({...pagesPames}).then(res => {
     // 妫�鏌ョ粍浠舵槸鍚﹁繕瀛樺湪涓旇姹傛湭琚彇娑�
     if (!isRequestCancelled) {
-      console.log('鐢熶骇宸℃API杩斿洖鏁版嵁:', res);
-      
       // 澶勭悊涓嶅悓鐨勬暟鎹粨鏋�
       let records = [];
       if (res && res.data) {
         // 灏濊瘯澶氱鍙兘鐨勬暟鎹粨鏋�
+        totalSize.value = res.data.total
         if (Array.isArray(res.data.records)) {
           records = res.data.records;
         } else if (Array.isArray(res.data.rows)) {
@@ -492,12 +482,13 @@
           records = res.data.list;
         }
       }
-      
+
       if (records.length > 0) {
-        taskTableData.value = records;
-        console.log('鐢熶骇宸℃鏁版嵁璁剧疆鎴愬姛锛岃褰曟暟:', records.length);
+        taskTableData.value = [...taskTableData.value,...records.map((record)=>{
+          record.fileStatus = getFileStatus(record)
+          return record
+        })];
       } else {
-        console.warn('鐢熶骇宸℃鏁版嵁涓虹┖鎴栨牸寮忎笉姝g‘:', res);
         taskTableData.value = [];
         uni.showToast({
           title: '鏆傛棤宸℃浠诲姟鏁版嵁',
@@ -505,12 +496,12 @@
         });
       }
     }
+    loading.value =false
     // 鍏抽棴鍔犺浇鎻愮ず
-    closeToast()
+    // closeToast()
   }).catch(err => {
     // 妫�鏌ョ粍浠舵槸鍚﹁繕瀛樺湪涓旇姹傛湭琚彇娑�
     if (!isRequestCancelled) {
-      console.error('鑾峰彇鐢熶骇宸℃鏁版嵁澶辫触:', err);
       taskTableData.value = [];
       // 娣诲姞閿欒鎻愮ず
       uni.showToast({
@@ -518,9 +509,23 @@
         icon: 'error'
       })
     }
+    loading.value =false
     // 鍏抽棴鍔犺浇鎻愮ず
-    closeToast()
+    // closeToast()
   })
+}
+
+const getFileStatus = (record)=>{
+  let _beforeProduction = record.beforeProduction&&record.beforeProduction.length
+  let _afterProduction = record.afterProduction&&record.afterProduction.length
+  let _productionIssues = record.productionIssues&&record.productionIssues.length
+  if(_beforeProduction&&_afterProduction&&_productionIssues){
+    return 2
+  }else if(_beforeProduction||_afterProduction||_productionIssues){
+    return 1
+  }else{
+    return 0
+  }
 }
 
 // 涓烘寚瀹氫换鍔″紑濮嬫壂鐮�
@@ -528,21 +533,16 @@
   try {
     // 璁板綍褰撳墠鎵弿鐨勪换鍔�
     currentScanningTask.value = task
-    console.log('涓轰换鍔″紑濮嬫壂鐮侊紝浠诲姟ID:', task.taskId || task.id, '浠诲姟鍚嶇О:', task.taskName)
-    
+
     // 鏄剧ず鎵弿鐣岄潰
     isScanning.value = true
-    
+
     // 浣跨敤uniapp鐨勬壂鐮丄PI
     uni.scanCode({
       success: (res) => {
-        console.log('=== 鎵爜API鎴愬姛鍥炶皟 ===')
-        console.log('鎵爜缁撴灉:', res)
-        console.log('褰撳墠鎵弿浠诲姟:', currentScanningTask.value)
         handleScanSuccess(res)
       },
       fail: (err) => {
-        console.error('鎵爜澶辫触:', err)
         uni.showToast({
           title: '鎵爜澶辫触',
           icon: 'error'
@@ -550,10 +550,8 @@
         // 鍏抽棴鎵弿鐣岄潰
         isScanning.value = false
       }
-      // 绉婚櫎complete鍥炶皟锛岄伩鍏嶅共鎵板脊绐楁樉绀�
     })
   } catch (e) {
-    console.error('鍚姩鎵爜澶辫触:', e)
     uni.showToast({
       title: '鍚姩鎵爜澶辫触',
       icon: 'error'
@@ -571,12 +569,9 @@
 // 鎵爜鎴愬姛澶勭悊
 const handleScanSuccess = async (result) => {
   try {
-    console.log('澶勭悊鎵爜缁撴灉:', result)
-    console.log('褰撳墠鍏宠仈浠诲姟:', currentScanningTask.value?.taskName)
-    
     // 瑙f瀽浜岀淮鐮佹暟鎹紝鎻愬彇deviceId
     let deviceId = ''
-    
+
     // 妫�鏌ユ槸鍚︽槸URL鏍煎紡
     if (result.result.includes('deviceId=')) {
       // 浠嶶RL涓彁鍙杁eviceId
@@ -584,20 +579,18 @@
       const match = url.match(/deviceId=(\d+)/)
       if (match && match[1]) {
         deviceId = match[1]
-        console.log('浠嶶RL涓彁鍙栧埌deviceId:', deviceId)
       }
     } else {
       // 灏濊瘯瑙f瀽JSON鏍煎紡
       try {
         const qrData = JSON.parse(result.result)
-        console.log('瑙f瀽鐨勪簩缁寸爜鏁版嵁:', qrData)
         deviceId = qrData.deviceId || qrData.qrCodeId || ''
       } catch (e) {
         // 濡傛灉涓嶆槸JSON鏍煎紡锛岀洿鎺ヤ娇鐢ㄧ粨鏋�
         deviceId = result.result
       }
     }
-    
+
     if (!deviceId) {
       uni.showToast({
         title: '鏈瘑鍒埌璁惧ID',
@@ -606,28 +599,22 @@
       isScanning.value = false
       return
     }
-    
+
     // 鑾峰彇褰撳墠浠诲姟鐨則askId
     const currentTaskId = currentScanningTask.value?.taskId || currentScanningTask.value?.id
-    console.log('褰撳墠浠诲姟ID:', currentTaskId, '鎵爜璁惧ID:', deviceId)
-    
+
     // 瀵规瘮deviceId鍜宼askId
     if (deviceId === currentTaskId.toString()) {
-      console.log('=== 璁惧ID鍖归厤鎴愬姛 ===')
       uni.showToast({
         title: '璇嗗埆鎴愬姛',
         icon: 'success'
       })
-      
-      console.log('鍑嗗鎵撳紑涓婁紶寮圭獥锛屽綋鍓嶄换鍔�:', currentScanningTask.value)
-      
+
       // 鍏堝叧闂壂鎻忕晫闈�
       isScanning.value = false
-      console.log('鎵弿鐣岄潰宸插叧闂�')
-      
+
       // 寤惰繜鎵撳紑涓婁紶寮圭獥锛岀‘淇濇壂鎻忕晫闈㈠畬鍏ㄥ叧闂�
       setTimeout(() => {
-        console.log('寤惰繜鎵撳紑涓婁紶寮圭獥')
         openUploadDialog(currentScanningTask.value)
       }, 300)
     } else {
@@ -635,14 +622,12 @@
         title: '璇锋壂鎻忔纭殑璁惧',
         icon: 'error'
       })
-      console.warn('璁惧ID涓嶅尮閰嶏紝鏈熸湜:', currentTaskId, '瀹為檯:', deviceId)
-      
+
       // 鍏抽棴鎵弿鐣岄潰
       isScanning.value = false
     }
-    
+
   } catch (error) {
-    console.error('澶勭悊鎵爜缁撴灉澶辫触:', error)
     uni.showToast({
       title: error.message || '鏁版嵁瑙f瀽澶辫触',
       icon: 'error'
@@ -654,11 +639,6 @@
 
 // 鎵撳紑涓婁紶寮圭獥
 const openUploadDialog = (task) => {
-  console.log('=== 寮�濮嬫墦寮�涓婁紶寮圭獥 ===')
-  console.log('浼犲叆鐨勪换鍔�:', task)
-  console.log('浠诲姟鍚嶇О:', task?.taskName || '鏈煡浠诲姟')
-  console.log('褰撳墠showUploadDialog鐘舵��(璋冪敤鍓�):', showUploadDialog.value)
-  
   // 璁剧疆浠诲姟淇℃伅鍒癷nfoData
   if (task) {
     infoData.value = {
@@ -666,25 +646,16 @@
       taskId: task.taskId || task.id,
       storageBlobDTO: [] // 鍒濆鍖栨枃浠跺垪琛�
     };
-    console.log('璁剧疆infoData:', infoData.value);
   }
-  
+
   // 璁剧疆涓婁紶鐘舵�佺被鍨嬶紙鍙互鏍规嵁浠诲姟绫诲瀷璁剧疆涓嶅悓鐨勭姸鎬侊級
   uploadStatusType.value = 0 // 榛樿鐘舵��
-  
+
   // 娓呯┖涔嬪墠鐨勬枃浠�
   uploadFiles.value = []
-  
+
   // 鏄剧ず涓婁紶寮圭獥
   showUploadDialog.value = true
-  
-  console.log('褰撳墠showUploadDialog鐘舵��(璁剧疆鍚�):', showUploadDialog.value)
-  console.log('=== 涓婁紶寮圭獥璁剧疆瀹屾垚 ===')
-  
-  // 寤惰繜妫�鏌ョ姸鎬�
-  setTimeout(() => {
-    console.log('寤惰繜妫�鏌howUploadDialog鐘舵��:', showUploadDialog.value)
-  }, 100)
 }
 
 // 鍏抽棴涓婁紶寮圭獥
@@ -696,25 +667,24 @@
   afterModelValue.value = []
   issueModelValue.value = []
   currentUploadType.value = 'before'
+  hasException.value = null // 閲嶇疆寮傚父鐘舵��
   infoData.value = null // 娓呯悊浠诲姟鏁版嵁
-  console.log('涓婁紶寮圭獥宸插叧闂紝鏁版嵁宸叉竻鐞�')
 }
 
 // 鍒囨崲涓婁紶绫诲瀷
 const switchUploadType = (type) => {
   currentUploadType.value = type
-  console.log('鍒囨崲鍒颁笂浼犵被鍨�:', type)
 }
 
 // 鑾峰彇褰撳墠鍒嗙被鐨勬枃浠跺垪琛�
 const getCurrentFiles = () => {
   switch (currentUploadType.value) {
     case 'before':
-      return beforeModelValue.value
+      return beforeModelValue.value||[]
     case 'after':
-      return afterModelValue.value
+      return afterModelValue.value||[]
     case 'issue':
-      return issueModelValue.value
+      return issueModelValue.value||[]
     default:
       return []
   }
@@ -737,12 +707,61 @@
 // 澶勭悊涓婁紶鏂囦欢鏇存柊
 const handleUploadUpdate = (files) => {
   uploadFiles.value = files
-  console.log('涓婁紶鏂囦欢鏇存柊:', files)
+}
+
+// 璁剧疆寮傚父鐘舵��
+const setExceptionStatus = (status) => {
+  hasException.value = status
+}
+
+// 璺宠浆鍒版柊澧炴姤淇〉闈�
+const goToRepair = () => {
+  try {
+    // 瀛樺偍褰撳墠浠诲姟淇℃伅鍒版湰鍦板瓨鍌紝渚涙姤淇〉闈娇鐢�
+    const taskInfo = {
+      taskId: infoData.value?.taskId || infoData.value?.id,
+      taskName: infoData.value?.taskName,
+      inspectionLocation: infoData.value?.inspectionLocation,
+      inspector: infoData.value?.inspector,
+      // 浼犻�掑綋鍓嶄笂浼犵殑鏂囦欢淇℃伅
+      uploadedFiles: {
+        before: beforeModelValue.value,
+        after: afterModelValue.value,
+        issue: issueModelValue.value
+      }
+    }
+
+    uni.setStorageSync('repairTaskInfo', JSON.stringify(taskInfo))
+
+    // 璺宠浆鍒版柊澧炴姤淇〉闈�
+    uni.navigateTo({
+      url: '/pages/equipmentManagement/repair/add'
+    })
+
+    // 鍏抽棴涓婁紶寮圭獥
+    closeUploadDialog()
+
+  } catch (error) {
+    console.error('璺宠浆鎶ヤ慨椤甸潰澶辫触:', error)
+    uni.showToast({
+      title: '璺宠浆澶辫触锛岃閲嶈瘯',
+      icon: 'error'
+    })
+  }
 }
 
 // 鎻愪氦涓婁紶
 const submitUpload = async () => {
   try {
+    // 妫�鏌ユ槸鍚﹂�夋嫨浜嗗紓甯哥姸鎬�
+    if (hasException.value === null) {
+      uni.showToast({
+        title: '璇烽�夋嫨鏄惁瀛樺湪寮傚父',
+        icon: 'none'
+      })
+      return
+    }
+
     // 妫�鏌ユ槸鍚︽湁浠讳綍鏂囦欢涓婁紶
     const totalFiles = beforeModelValue.value.length + afterModelValue.value.length + issueModelValue.value.length;
     if (totalFiles === 0) {
@@ -767,38 +786,31 @@
     if (issueModelValue.value.length > 0) {
       arr.push(...issueModelValue.value);
     }
-    
+
     // 鎻愪氦鏁版嵁
     infoData.value.storageBlobDTO = arr;
-    
-    console.log('鍑嗗鎻愪氦宸℃浠诲姟鏁版嵁:', infoData.value);
-    console.log('鍚堝苟鐨勬枃浠跺垪琛�:', arr);
-    console.log('鐢熶骇鍓嶆枃浠�(type=0):', beforeModelValue.value.length, beforeModelValue.value);
-    console.log('鐢熶骇涓枃浠�(type=1):', afterModelValue.value.length, afterModelValue.value);
-    console.log('鐢熶骇鍚庢枃浠�(type=2):', issueModelValue.value.length, issueModelValue.value);
-    
-    const result = await uploadInspectionTask({...infoData.value});
-    
-    console.log('宸℃浠诲姟鎻愪氦缁撴灉:', result);
-    
+    // 娣诲姞寮傚父鐘舵�佷俊鎭�
+    infoData.value.hasException = hasException.value;
+    const result = await uploadInspectionTask({ ...infoData.value });
+
     // 妫�鏌ユ彁浜ょ粨鏋�
     if (result && (result.code === 200 || result.success)) {
       // 鎻愪氦鎴愬姛
       closeToast(); // 鍏抽棴鍔犺浇鎻愮ず
-      
+
       uni.showToast({
         title: '鎻愪氦鎴愬姛',
         icon: 'success'
       })
-      
+
       // 鍏抽棴寮圭獥
       closeUploadDialog()
-      
+
       // 鍒锋柊鍒楄〃
       setTimeout(() => {
-        getList()
+        reloadPage()
       }, 500)
-      
+
     } else {
       // 鎻愪氦澶辫触
       closeToast();
@@ -807,11 +819,11 @@
         icon: 'error'
       })
     }
-    
+
   } catch (error) {
     console.error('鎻愪氦涓婁紶澶辫触:', error)
     closeToast(); // 鍏抽棴鍔犺浇鎻愮ず
-    
+
     let errorMessage = '鎻愪氦澶辫触';
     if (error.message) {
       errorMessage = error.message;
@@ -820,7 +832,7 @@
     } else if (typeof error === 'string') {
       errorMessage = error;
     }
-    
+
     uni.showToast({
       title: errorMessage,
       icon: 'error'
@@ -830,26 +842,23 @@
 
 // 鎽勫儚澶撮敊璇鐞�
 const handleCameraError = (error) => {
-  console.error('鎽勫儚澶撮敊璇�:', error)
   cameraError.value = '鎽勫儚澶磋闂け璐ワ紝璇锋鏌ユ潈闄愯缃�'
 }
 
 // 鎵爜浜嬩欢澶勭悊
 const handleScanCode = (result) => {
-  console.log('鎵爜缁撴灉:', result)
   handleScanSuccess(result)
 }
 
 // 鏌ョ湅闄勪欢
 const viewAttachments = async (task) => {
   try {
-    console.log('鏌ョ湅闄勪欢锛屼换鍔�:', task)
     currentViewTask.value = task
     currentViewType.value = 'before'
-    
+
     // 瑙f瀽鏂扮殑鏁版嵁缁撴瀯
     attachmentList.value = []
-    
+
     // 鐢熶骇鍓嶉檮浠� (type=0)
     if (task.beforeProduction && Array.isArray(task.beforeProduction)) {
       const beforeFiles = task.beforeProduction.map(file => ({
@@ -858,7 +867,7 @@
       }))
       attachmentList.value.push(...beforeFiles)
     }
-    
+
     // 鐢熶骇涓檮浠� (type=1) 
     if (task.afterProduction && Array.isArray(task.afterProduction)) {
       const afterFiles = task.afterProduction.map(file => ({
@@ -867,7 +876,7 @@
       }))
       attachmentList.value.push(...afterFiles)
     }
-    
+
     // 鐢熶骇鍚庨檮浠� (type=2)
     if (task.productionIssues && Array.isArray(task.productionIssues)) {
       const issueFiles = task.productionIssues.map(file => ({
@@ -876,16 +885,10 @@
       }))
       attachmentList.value.push(...issueFiles)
     }
-    
-    console.log('瑙f瀽鍚庣殑闄勪欢鍒楄〃:', attachmentList.value)
-    console.log('鐢熶骇鍓嶉檮浠�:', task.beforeProduction?.length || 0)
-    console.log('鐢熶骇涓檮浠�:', task.afterProduction?.length || 0)
-    console.log('鐢熶骇鍚庨檮浠�:', task.productionIssues?.length || 0)
-    
+
     showAttachmentDialog.value = true
-    
+
   } catch (error) {
-    console.error('鑾峰彇闄勪欢鍒楄〃澶辫触:', error)
     uni.showToast({
       title: '鑾峰彇闄勪欢澶辫触',
       icon: 'error'
@@ -904,14 +907,25 @@
 // 鍒囨崲鏌ョ湅绫诲瀷
 const switchViewType = (type) => {
   currentViewType.value = type
-  console.log('鍒囨崲鏌ョ湅绫诲瀷鍒�:', type)
 }
 
 // 鏍规嵁type鑾峰彇瀵瑰簲鍒嗙被鐨勯檮浠�
 const getAttachmentsByType = (typeValue) => {
   return attachmentList.value.filter(file => file.type === typeValue) || []
 }
-
+// 鑾峰彇type鍊�
+const getTabType = () => {
+  switch (currentUploadType.value) {
+    case 'before':
+      return 0
+    case 'after':
+      return 1
+    case 'issue':
+      return 2
+    default:
+      return 0
+  }
+}
 // 鑾峰彇褰撳墠鏌ョ湅绫诲瀷鐨勯檮浠�
 const getCurrentViewAttachments = () => {
   switch (currentViewType.value) {
@@ -932,10 +946,10 @@
   if (file.contentType && file.contentType.startsWith('image/')) {
     return true
   }
-  
+
   // 妫�鏌ュ師鏈夌殑type瀛楁
   if (file.type === 'image') return true
-  
+
   // 妫�鏌ユ枃浠舵墿灞曞悕
   const name = file.bucketFilename || file.originalFilename || file.name || ''
   const ext = name.split('.').pop()?.toLowerCase()
@@ -949,7 +963,7 @@
     const imageUrls = getCurrentViewAttachments()
       .filter(f => isImageFile(f))
       .map(f => f.url || f.downloadUrl)
-    
+
     uni.previewImage({
       urls: imageUrls,
       current: file.url || file.downloadUrl
@@ -964,7 +978,6 @@
 const showVideoPreview = (file) => {
   currentVideoFile.value = file
   showVideoDialog.value = true
-  console.log('鎾斁瑙嗛:', file.url || file.downloadUrl)
 }
 
 // 鍏抽棴瑙嗛棰勮
@@ -975,10 +988,57 @@
 
 // 瑙嗛鎾斁閿欒澶勭悊
 const handleVideoError = (error) => {
-  console.error('瑙嗛鎾斁閿欒:', error)
   uni.showToast({
     title: '瑙嗛鎾斁澶辫触',
     icon: 'error'
+  })
+}
+
+// 浣跨敤鐩告満
+const chooseMedia = (type) => {
+  let mediaPamaes = {
+    count: 1,
+    mediaType: [type || 'image'],
+    sizeType: ['compressed', 'original'],
+    sourceType: ['camera'],
+  }
+  uni.chooseMedia({
+    ...mediaPamaes,
+    success: (res) => {
+      try {
+        if (!res.tempFiles || res.tempFiles.length === 0) {
+          throw new Error('鏈幏鍙栧埌鍥剧墖鏂囦欢');
+        }
+
+        const tempFilePath = res.tempFiles[0];
+        const tempFile = res.tempFiles && res.tempFiles[0] ? res.tempFiles[0] : {};
+
+        const file = {
+          tempFilePath: tempFilePath,
+          path: tempFilePath, // 淇濇寔鍏煎鎬�
+          type: 'image',
+          name: `photo_${Date.now()}.jpg`,
+          size: tempFile.size || 0,
+          createTime: new Date().getTime(),
+          uid: Date.now() + Math.random()
+        };
+
+        handleBeforeUpload(file);
+      } catch (error) {
+        console.error('澶勭悊鎷嶇収缁撴灉澶辫触:', error);
+        uni.showToast({
+          title: '澶勭悊鍥剧墖澶辫触',
+          icon: 'error'
+        });
+      }
+    },
+    fail: (err) => {
+      console.error('鎷嶇収澶辫触:', err);
+      uni.showToast({
+        title: '鎷嶇収澶辫触: ' + (err.errMsg || '鏈煡閿欒'),
+        icon: 'error'
+      });
+    }
   })
 }
 
@@ -991,20 +1051,21 @@
     });
     return;
   }
-  
-  uni.chooseImage({
+
+  uni.chooseMedia({
     count: 1,
+    mediaType: ['image', 'video'],
     sizeType: ['compressed', 'original'],
     sourceType: ['camera'],
     success: (res) => {
       try {
-        if (!res.tempFilePaths || res.tempFilePaths.length === 0) {
+        if (!res.tempFiles || res.tempFiles.length === 0) {
           throw new Error('鏈幏鍙栧埌鍥剧墖鏂囦欢');
         }
-        
-        const tempFilePath = res.tempFilePaths[0];
+
+        const tempFilePath = res.tempFiles[0];
         const tempFile = res.tempFiles && res.tempFiles[0] ? res.tempFiles[0] : {};
-        
+
         const file = {
           tempFilePath: tempFilePath,
           path: tempFilePath, // 淇濇寔鍏煎鎬�
@@ -1014,7 +1075,7 @@
           createTime: new Date().getTime(),
           uid: Date.now() + Math.random()
         };
-        
+
         handleBeforeUpload(file);
       } catch (error) {
         console.error('澶勭悊鎷嶇収缁撴灉澶辫触:', error);
@@ -1043,7 +1104,7 @@
     });
     return;
   }
-  
+
   uni.chooseVideo({
     sourceType: ['camera'],
     maxDuration: uploadConfig.maxVideoDuration,
@@ -1053,7 +1114,7 @@
         if (!res.tempFilePath) {
           throw new Error('鏈幏鍙栧埌瑙嗛鏂囦欢');
         }
-        
+
         const file = {
           tempFilePath: res.tempFilePath,
           path: res.tempFilePath, // 淇濇寔鍏煎鎬�
@@ -1064,7 +1125,7 @@
           createTime: new Date().getTime(),
           uid: Date.now() + Math.random()
         };
-        
+
         handleBeforeUpload(file);
       } catch (error) {
         console.error('澶勭悊鎷嶈棰戠粨鏋滃け璐�:', error);
@@ -1167,7 +1228,7 @@
   if (uploadConfig.fileType && Array.isArray(uploadConfig.fileType) && uploadConfig.fileType.length > 0) {
     const fileName = file.name || '';
     const fileExtension = fileName ? fileName.split('.').pop().toLowerCase() : '';
-    
+
     // 鏍规嵁鏂囦欢绫诲瀷纭畾鏈熸湜鐨勬墿灞曞悕
     let expectedTypes = [];
     if (file.type === 'image') {
@@ -1175,13 +1236,13 @@
     } else if (file.type === 'video') {
       expectedTypes = ['mp4', 'mov', 'avi', 'wmv'];
     }
-    
+
     // 妫�鏌ユ枃浠舵墿灞曞悕鏄惁鍦ㄥ厑璁哥殑绫诲瀷涓�
     if (fileExtension && expectedTypes.length > 0) {
-      const isAllowed = expectedTypes.some(type => 
+      const isAllowed = expectedTypes.some(type =>
         uploadConfig.fileType.includes(type) && type === fileExtension
       );
-      
+
       if (!isAllowed) {
         uni.showToast({
           title: `鏂囦欢鏍煎紡涓嶆敮鎸侊紝璇锋媿鎽� ${expectedTypes.join('/')} 鏍煎紡鐨勬枃浠禶,
@@ -1202,34 +1263,33 @@
   uploading.value = true;
   uploadProgress.value = 0;
   number.value++; // 澧炲姞涓婁紶璁℃暟
-  
+
   // 纭繚鏂囦欢璺緞姝g‘
-  const filePath = file.tempFilePath || file.path;
+  const filePath = file.tempFilePath?.tempFilePath || file.path?.tempFilePath || '';
   if (!filePath) {
     handleUploadError('鏂囦欢璺緞涓嶅瓨鍦�');
     return;
   }
-  
+
   // 纭繚token瀛樺湪
   const token = getToken();
   if (!token) {
     handleUploadError('鐢ㄦ埛鏈櫥褰�');
     return;
   }
-  
+
   // 鍑嗗涓婁紶鍙傛暟
   const uploadParams = {
     url: uploadFileUrl.value,
     filePath: filePath,
     name: 'files',
     formData: {
-      type: uploadStatusType.value || 0
+      type: getTabType() || 0
     },
     header: {
       'Authorization': `Bearer ${token}`
     }
   };
-  
   const uploadTask = uni.uploadFile({
     ...uploadParams,
     success: (res) => {
@@ -1257,7 +1317,7 @@
     fail: (err) => {
       console.error('涓婁紶澶辫触:', err.errMsg || err);
       number.value--; // 涓婁紶澶辫触鏃跺噺灏戣鏁�
-      
+
       let errorMessage = '涓婁紶澶辫触';
       if (err.errMsg) {
         if (err.errMsg.includes('statusCode: null')) {
@@ -1270,7 +1330,7 @@
           errorMessage = err.errMsg;
         }
       }
-      
+
       handleUploadError(errorMessage);
     },
     complete: () => {
@@ -1278,7 +1338,7 @@
       uploadProgress.value = 0;
     }
   });
-  
+
   // 鐩戝惉涓婁紶杩涘害
   if (uploadTask && uploadTask.onProgressUpdate) {
     uploadTask.onProgressUpdate((res) => {
@@ -1311,7 +1371,7 @@
 const handleUploadSuccess = (res, file) => {
   if (res.code === 200 && res.data && Array.isArray(res.data) && res.data.length > 0) {
     const uploadedFile = res.data[0];
-    
+
     // 鏍规嵁褰撳墠涓婁紶绫诲瀷璁剧疆type瀛楁
     let typeValue = 0; // 榛樿涓虹敓浜у墠
     switch (currentUploadType.value) {
@@ -1325,7 +1385,7 @@
         typeValue = 2;
         break;
     }
-    
+
     // 纭繚涓婁紶鐨勬枃浠舵暟鎹畬鏁达紝鍖呭惈id鍜宼ype
     const fileData = {
       ...file,
@@ -1337,9 +1397,7 @@
       createTime: uploadedFile.createTime || new Date().getTime(),
       type: typeValue // 娣诲姞绫诲瀷瀛楁锛�0=鐢熶骇鍓�, 1=鐢熶骇涓�, 2=鐢熶骇鍚�
     };
-    
-    console.log(`${getUploadTypeText()}鏂囦欢涓婁紶鎴愬姛锛岀被鍨嬪��:`, typeValue, '鏂囦欢鏁版嵁:', fileData);
-    
+
     uploadList.value.push(fileData);
     uploadedSuccessfully();
   } else {
@@ -1363,12 +1421,10 @@
         issueModelValue.value = [...issueModelValue.value, ...uploadList.value];
         break;
     }
-    
+
     // 閲嶇疆鐘舵��
     uploadList.value = [];
     number.value = 0;
-    
-    console.log(`${getUploadTypeText()}鏂囦欢涓婁紶瀹屾垚:`, getCurrentFiles());
   }
 }
 
@@ -1777,6 +1833,56 @@
   color: #333;
 }
 
+/* 寮傚父鐘舵�侀�夋嫨鏍峰紡 */
+.exception-section {
+  margin-bottom: 20px;
+  padding: 15px;
+  background: #f8f9fa;
+  border-radius: 8px;
+  border: 1px solid #e9ecef;
+}
+
+.section-title {
+  display: block;
+  font-size: 14px;
+  font-weight: 600;
+  color: #333;
+  margin-bottom: 12px;
+}
+
+.exception-options {
+  display: flex;
+  gap: 12px;
+}
+
+.exception-option {
+  flex: 1;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  gap: 8px;
+  padding: 12px 16px;
+  background: #fff;
+  border: 2px solid #e9ecef;
+  border-radius: 8px;
+  cursor: pointer;
+  transition: all 0.3s ease;
+  font-size: 14px;
+  color: #666;
+}
+
+.exception-option.active {
+  border-color: #409eff;
+  background: #f0f8ff;
+  color: #409eff;
+  font-weight: 500;
+}
+
+.exception-option:hover:not(.active) {
+  border-color: #d9d9d9;
+  background: #fafafa;
+}
+
 /* 缁熻淇℃伅鏍峰紡 */
 .upload-summary {
   margin-top: 15px;

--
Gitblit v1.9.3