From fe167dd71a1300aeae07522db990d6b3fdb77a0e Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 12 三月 2026 13:26:02 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_New' into dev_中兴实强

---
 src/views/personnelManagement/employeeRecord/components/EmergencyAndAttachmentSection.vue |  115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 115 insertions(+), 0 deletions(-)

diff --git a/src/views/personnelManagement/employeeRecord/components/EmergencyAndAttachmentSection.vue b/src/views/personnelManagement/employeeRecord/components/EmergencyAndAttachmentSection.vue
new file mode 100644
index 0000000..bd63608
--- /dev/null
+++ b/src/views/personnelManagement/employeeRecord/components/EmergencyAndAttachmentSection.vue
@@ -0,0 +1,115 @@
+<template>
+  <div>
+    <!-- 绱ф�ヨ仈绯讳汉 -->
+    <el-card class="form-card" shadow="never">
+      <template #header>
+        <span class="card-title">
+          <span class="card-title-line">|</span>
+          绱ф�ヨ仈绯讳汉
+        </span>
+      </template>
+      <el-table :data="form.staffEmergencyContactList" border>
+        <el-table-column label="绱ф�ヨ仈绯讳汉濮撳悕" prop="contactName" min-width="160">
+          <template #default="{ row }">
+            <el-input
+              v-model="row.contactName"
+              placeholder="璇疯緭鍏�"
+              clearable
+              maxlength="50"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+        <el-table-column label="绱ф�ヨ仈绯讳汉鍏崇郴" prop="contactRelation" min-width="140">
+          <template #default="{ row }">
+            <el-input
+              v-model="row.contactRelation"
+              placeholder="璇疯緭鍏�"
+              clearable
+              maxlength="20"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+        <el-table-column label="绱ф�ヨ仈绯讳汉鎵嬫満" prop="contactPhone" width="160">
+          <template #default="{ row }">
+            <el-input
+              v-model="row.contactPhone"
+              placeholder="璇疯緭鍏�"
+              clearable
+              maxlength="11"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+        <el-table-column label="绱ф�ヨ仈绯讳汉浣忓潃" prop="contactAddress" min-width="220">
+          <template #default="{ row }">
+            <el-input
+              v-model="row.contactAddress"
+              placeholder="璇疯緭鍏�"
+              clearable
+              maxlength="50"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+        <el-table-column label="鎿嶄綔" width="80" align="center">
+          <template #default="scope">
+            <el-button
+              v-if="form.staffEmergencyContactList.length > 1"
+              type="primary"
+              link
+              @click="removeEmergencyRow(scope.$index)"
+            >
+              鍒犻櫎
+            </el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+      <div class="table-add-row" @click="addEmergencyRow">鏂板缓涓�琛�</div>
+    </el-card>
+  </div>
+</template>
+
+<script setup>
+import { toRefs } from "vue";
+
+const props = defineProps({
+  form: { type: Object, required: true }
+});
+
+const { form } = toRefs(props);
+
+const addEmergencyRow = () => {
+  form.value.staffEmergencyContactList.push({
+    contactName: "",
+    contactRelation: "",
+    contactPhone: "",
+    contactAddress: "",
+  });
+};
+
+const removeEmergencyRow = (index) => {
+  if (form.value.staffEmergencyContactList.length <= 1) return;
+  form.value.staffEmergencyContactList.splice(index, 1);
+};
+</script>
+
+<style scoped>
+.form-card {
+  margin-bottom: 16px;
+}
+
+.card-title-line {
+  color: #f56c6c;
+  margin-right: 4px;
+}
+
+.table-add-row {
+  margin-top: 8px;
+  color: #409eff;
+  cursor: pointer;
+  font-size: 14px;
+}
+</style>
+

--
Gitblit v1.9.3