From baae0090175996b8b26a6457fa18378570beffc2 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Fri, 22 Aug 2025 17:10:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/src/pages/xskh/khsq/form.vue | 1957 +++++++++++++++++++++++---- 1 file changed, 1727 insertions(+), 230 deletions(-) diff --git a/mobile/src/pages/xskh/khsq/form.vue b/mobile/src/pages/xskh/khsq/form.vue index e126123f..3c753725 100644 --- a/mobile/src/pages/xskh/khsq/form.vue +++ b/mobile/src/pages/xskh/khsq/form.vue @@ -8,7 +8,17 @@ - + + + + 基础信息 @@ -94,6 +104,7 @@ type="number" placeholder="请输入分数" :maxlength="10" + :disabled="isAnyLoading" style="width: 200rpx; text-align: right" @change="handleSelfScoreChange" > @@ -143,6 +154,7 @@ type="primary" shape="round" size="small" + :disabled="isAnyLoading" style="width: 160rpx; flex-shrink: 0" @click="addBonusItem" > @@ -162,6 +174,7 @@ type="error" shape="round" size="mini" + :disabled="isAnyLoading" style="width: 100rpx; flex-shrink: 0; margin-left: auto" @click="removeBonusItem(index)" > @@ -224,7 +237,7 @@ 附件: - + 图片附件 @@ -242,9 +256,10 @@ :src="image.blobUrl || image.url" class="attachment-image" mode="aspectFill" - /> + @error="handleImageError" + > - + + > {{ image.progress || 0 }}% + + > 上传失败 + + > - - + + 下载 @@ -301,7 +321,9 @@ type="warning" shape="round" plain - @click="retryUpload(image, item)" + @click.stop.prevent=" + retryUploadFile(image, $event) + " > 重试 @@ -311,13 +333,20 @@ type="error" shape="round" plain - @click="handleDelete(image, item)" + @tap="handleImageDelete(image, index)" + @click.stop.prevent=" + handleImageDeleteClick( + image, + index, + $event, + ) + " > 删除 - + {{ getShortFileName(image.name) }} @@ -325,17 +354,17 @@ - + 文档附件 @@ -346,19 +375,68 @@ : 'folder' " size="50" - :color="getFileIconColor(file.status)" + :color=" + file.status === 'error' + ? '#fa3534' + : file.status === 'success' + ? '#19be6b' + : '#909399' + " /> + + + + + + {{ file.progress || 0 }}% + + + + + + + 上传失败 + + + + + + - - + + 下载 @@ -368,7 +446,9 @@ type="warning" shape="round" plain - @click="retryUpload(file, item)" + @click.stop.prevent=" + retryUploadFile(file, $event) + " > 重试 @@ -378,13 +458,20 @@ type="error" shape="round" plain - @click="handleDelete(file, item)" + @tap="handleRemoveFile(file, index)" + @click.stop.prevent=" + handleRemoveFileClick( + file, + index, + $event, + ) + " > 删除 - + {{ getShortFileName(file.name) }} @@ -392,28 +479,30 @@ - - - - 选择图片 - + + - 选择文件 + {{ uploadLoading ? '上传中...' : '添加证明材料' }} - - - - 支持图片、视频、PDF、Word文档等格式,单个文件大小不超过10MB,最多上传15个文件。 + + + + • 支持格式:JPG、PNG、PDF、Word等 • 单个文件不超过10MB • + 最多上传15个文件 + + + • 图片文件将以图片形式展示,支持预览和下载 @@ -495,18 +584,53 @@ - - 保存 - 提交 - - 删除 + + + {{ saveLoading ? '保存中...' : '保存' }} + + + {{ submitLoading ? '提交中...' : '提交' }} + + + {{ deleteLoading ? '删除中...' : '删除' }}