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/employee-contract/form.vue |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/pages/hrm/employee-contract/form.vue b/src/pages/hrm/employee-contract/form.vue
index 84bf7b1..63fcdaf 100644
--- a/src/pages/hrm/employee-contract/form.vue
+++ b/src/pages/hrm/employee-contract/form.vue
@@ -1,11 +1,10 @@
 <script setup lang="ts">
 import { computed, reactive, ref } from "vue";
 import { onLoad } from "@dcloudio/uni-app";
-import { createContract, getContract, getEmployeeSimpleList, getHrmDicts, updateContract, type EmployeeContract, type EmployeeSimple, type HrmAttachment } from "../../../api/hrm";
+import { createContract, getContract, getEmployeeSimpleList, getHrmDicts, updateContract, type EmployeeContract, type EmployeeSimple } 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";
 
 const { hasPermission, state } = useAuth();
 const id = ref<number>();
@@ -14,7 +13,6 @@
 const saving = ref(false);
 const dicts = ref<DictData[]>([]);
 const employees = ref<EmployeeSimple[]>([]);
-const attachments = ref<HrmAttachment[]>([]);
 const form = reactive<EmployeeContract>({ employeeId: undefined, contractType: 1, contractTermType: 1, startDate: "", blobIds: [] });
 const readonly = computed(() => mode.value === "detail");
 const canSave = computed(() => !readonly.value && (id.value
@@ -64,7 +62,6 @@
     if (id.value) {
       const detail = await getContract(state.accessToken, id.value);
       Object.assign(form, detail, { blobIds: detail.attachmentList?.map(item => item.id) || detail.blobIds || [] });
-      attachments.value = detail.attachmentList || [];
     } else if (renewFrom.value) {
       const old = await getContract(state.accessToken, renewFrom.value);
       Object.assign(form, {
@@ -124,7 +121,6 @@
       <view class="field"><text>璇曠敤鏈熺粨鏉�</text><picker v-if="!readonly" mode="date" :value="form.probationEndDate" @change="form.probationEndDate=$event.detail.value"><view class="picker"><text>{{ form.probationEndDate || "璇烽�夋嫨鏃ユ湡" }}</text><text>鈥�</text></view></picker><text v-else class="value">{{ form.probationEndDate || "--" }}</text></view>
       <view class="field"><text>璇曠敤鏈熷伐璧�</text><input v-model.number="form.probationSalary" :disabled="readonly" type="digit" placeholder="璇疯緭鍏ラ噾棰�" /></view>
       <view class="field"><text>杞宸ヨ祫</text><input v-model.number="form.regularSalary" :disabled="readonly" type="digit" 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>

--
Gitblit v1.9.3