From af85dd610f4a363abfb3e7ae26f1a3fcf06ee590 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 03 十一月 2026 10:20:31 +0800
Subject: [PATCH] feat(app): 移除 App 端全部附件上传、下载、预览功能

---
 src/pages/hrm/resignation/form.vue |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/pages/hrm/resignation/form.vue b/src/pages/hrm/resignation/form.vue
index 78f565b..90f4b3a 100644
--- a/src/pages/hrm/resignation/form.vue
+++ b/src/pages/hrm/resignation/form.vue
@@ -1,17 +1,16 @@
 <script setup lang="ts">
 import { computed, reactive, ref } from "vue";
 import { onLoad } from "@dcloudio/uni-app";
-import { createResignation, getEmployeeSimpleList, getHrmDicts, getResignation, updateResignation, type EmployeeSimple, type HrmAttachment, type Resignation } from "../../../api/hrm";
+import { createResignation, getEmployeeSimpleList, getHrmDicts, getResignation, updateResignation, type EmployeeSimple, type Resignation } from "../../../api/hrm";
 import type { DictData } from "../../../api/crm";
 import { useAuth } from "../../../stores/auth";
 import { HRM_DICT, label, options } from "../shared";
-import HrmAttachmentField from "../HrmAttachmentField.vue";
 import PickerSheet from "../../mes/process-design/components/PickerSheet.vue";
 
 const { hasPermission, state } = useAuth();
 const id = ref<number>(); const mode = ref("edit"); const saving = ref(false);
 const handoverVisible = ref(false);
-const dicts = ref<DictData[]>([]); const employees = ref<EmployeeSimple[]>([]); const attachments = ref<HrmAttachment[]>([]);
+const dicts = ref<DictData[]>([]); const employees = ref<EmployeeSimple[]>([]);
 const form = reactive<Resignation>({ userId: undefined, resignationType: undefined, expectedDate: "", reason: "", handoverUserId: undefined, handoverRemark: "", blobIds: [], remark: "" });
 const readonly = computed(() => mode.value === "detail");
 const canSave = computed(() => !readonly.value && (id.value ? hasPermission("hrm:resignation:update") : hasPermission("hrm:resignation:create")));
@@ -41,7 +40,6 @@
         return setTimeout(() => uni.navigateBack(), 500);
       }
       Object.assign(form, detail, { blobIds: detail.attachmentList?.map(item => item.id) || detail.blobIds || [] });
-      attachments.value = detail.attachmentList || [];
     }
     else { form.userId = state.user?.id; form.userName = state.user?.nickname || state.user?.username; form.deptName = state.user?.dept?.name; }
   } catch (cause) { uni.showToast({ title: cause instanceof Error ? cause.message : "鏁版嵁鍔犺浇澶辫触", icon: "none" }); }
@@ -55,7 +53,6 @@
   <view class="field"><text>浜ゆ帴浜�</text><view v-if="!readonly" class="picker" @click="handoverVisible=true"><text>{{ handoverText }}</text><text>鈥�</text></view><text v-else class="value">{{ handoverText }}</text></view>
   <view class="field column"><text>绂昏亴鍘熷洜 <text class="required">*</text></text><textarea v-model="form.reason" :disabled="readonly" maxlength="500" placeholder="璇疯緭鍏ョ鑱屽師鍥�" /></view>
   <view class="field column"><text>浜ゆ帴璇存槑</text><textarea v-model="form.handoverRemark" :disabled="readonly" maxlength="500" placeholder="璇疯緭鍏ヤ氦鎺ヨ鏄�" /></view>
-  <HrmAttachmentField v-model="form.blobIds" v-model:files="attachments" :token="state.accessToken" :readonly="readonly" />
   <view class="field column"><text>澶囨敞</text><textarea v-model="form.remark" :disabled="readonly" placeholder="璇疯緭鍏ュ娉�" /></view>
 </view><button v-if="canSave" class="save" :loading="saving" @click="save">淇濆瓨鑽夌</button><button v-else-if="readonly&&form.status===0&&hasPermission('hrm:resignation:update')" class="save" @click="mode='edit'">缂栬緫</button><PickerSheet v-model:show="handoverVisible" title="閫夋嫨浜ゆ帴浜�" :items="employees.map(item=>({key:item.id||0,label:item.name||'--',sub:item.employeeNo}))" :selected-keys="form.handoverUserId?[form.handoverUserId]:[]" search-placeholder="鎼滅储濮撳悕鎴栧伐鍙�" @confirm="selectHandover" /></view></template>
 <style lang="scss" scoped>@import "../form.scss";</style>

--
Gitblit v1.9.3