From 801446f2cd18bfafb579e3deacf48e6616457759 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=BC=82=E6=B3=8A?= <1913856125@qq.com>
Date: Mon, 9 Feb 2026 20:23:48 +0800
Subject: [PATCH] =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=9C=A8=E7=BE=A4=E6=9F=A5?=
=?UTF-8?q?=E8=AF=A2=EF=BC=9A=E7=94=9F=E7=89=A9=E5=AE=89=E5=85=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/common/user.js | 8 +++++
src/views/biosafety/deworm/index.vue | 9 ++++-
src/views/biosafety/diagnosis/index.vue | 9 +++--
src/views/biosafety/health/index.vue | 7 ++++
src/views/biosafety/immunity/index.vue | 7 ++++
src/views/biosafety/quarantine/index.vue | 13 ++++++--
src/views/biosafety/treatment/index.vue | 8 ++++-
src/views/work/index.vue | 42 ++++++++++++++++++++----
8 files changed, 90 insertions(+), 13 deletions(-)
diff --git a/src/api/common/user.js b/src/api/common/user.js
index 0ad5564..b0fad08 100644
--- a/src/api/common/user.js
+++ b/src/api/common/user.js
@@ -8,3 +8,11 @@ export function getUserByPost(query) {
params: query
})
}
+
+// 根据查看岗位
+export function getPostTeam() {
+ return request({
+ url: '/userPost/getPostTeam',
+ method: 'get'
+ })
+}
diff --git a/src/views/biosafety/deworm/index.vue b/src/views/biosafety/deworm/index.vue
index 07d08d9..bd5948a 100644
--- a/src/views/biosafety/deworm/index.vue
+++ b/src/views/biosafety/deworm/index.vue
@@ -78,6 +78,13 @@
+
+
+
+
+
+
+
搜索
重置
@@ -762,7 +769,7 @@
}
function handleExport() {
- proxy.download('biosafety/deworm/export', { ...queryParams }, `deworm_${Date.now()}.xlsx`)
+ proxy.download('biosafety/deworm/export', { ...queryParams }, `驱虫_${Date.now()}.xlsx`)
}
/* ------------------ 药品/处方/下拉 ------------------ */
diff --git a/src/views/biosafety/diagnosis/index.vue b/src/views/biosafety/diagnosis/index.vue
index 0f88687..6ddb506 100644
--- a/src/views/biosafety/diagnosis/index.vue
+++ b/src/views/biosafety/diagnosis/index.vue
@@ -100,8 +100,13 @@
-
-
+
+
+
+
+
+
+
搜索
diff --git a/src/views/biosafety/health/index.vue b/src/views/biosafety/health/index.vue
index 6cc49ec..0b8b271 100644
--- a/src/views/biosafety/health/index.vue
+++ b/src/views/biosafety/health/index.vue
@@ -81,6 +81,13 @@
+
+
+
+
+
+
+
搜索
重置
diff --git a/src/views/biosafety/immunity/index.vue b/src/views/biosafety/immunity/index.vue
index e53e9c6..7c7023a 100644
--- a/src/views/biosafety/immunity/index.vue
+++ b/src/views/biosafety/immunity/index.vue
@@ -79,6 +79,13 @@
+
+
+
+
+
+
+
搜索
重置
diff --git a/src/views/biosafety/quarantine/index.vue b/src/views/biosafety/quarantine/index.vue
index 45884f8..d00996e 100644
--- a/src/views/biosafety/quarantine/index.vue
+++ b/src/views/biosafety/quarantine/index.vue
@@ -106,6 +106,13 @@
+
+
+
+
+
+
+
@@ -262,7 +269,7 @@
-
+
@@ -421,7 +428,7 @@ const technicalOptions = ref([]) //自定义技术员数组变量
// 获取技术员列表
const fetchTechnicalList = () => {
- getUserByPost({ postCode: "techs" })
+ getUserByPost({ postCode: "" })
.then(res => {
if (res.code === 200 && Array.isArray(res.data)) {
technicalOptions.value = res.data.map(item => ({
diff --git a/src/views/biosafety/treatment/index.vue b/src/views/biosafety/treatment/index.vue
index 52ff4c3..aaef377 100644
--- a/src/views/biosafety/treatment/index.vue
+++ b/src/views/biosafety/treatment/index.vue
@@ -85,6 +85,13 @@
+
+
+
+
+
+
+
搜索
重置
@@ -459,7 +466,6 @@
-
diff --git a/src/views/work/index.vue b/src/views/work/index.vue
index 1ee6ea8..953e746 100644
--- a/src/views/work/index.vue
+++ b/src/views/work/index.vue
@@ -9,7 +9,9 @@
-
+
+
+
@@ -176,11 +178,11 @@
-
-
+
+
+
@@ -373,6 +375,13 @@ import {
import Editor from '@/components/Editor/index.vue'
import dayjs from 'dayjs'
import request from '@/utils/request'
+import { getPostTeam } from '@/api/common/user'
+
+
+// 部门选项
+const departmentOptions = ref([])
+
+
const { proxy } = getCurrentInstance()
/* -------------------------------------------------
@@ -452,6 +461,26 @@ function genOrderNo(type) {
return `${prefix}-${dateStr}`
}
+// 获取部门列表并映射为下拉选项
+const loadDepartmentOptions = async () => {
+ try {
+ const { data } = await getPostTeam()
+ if (!Array.isArray(data)) {
+ departmentOptions.value = []
+ return
+ }
+ // Post实体类: postId -> value, postName -> label
+ departmentOptions.value = data.map(item => ({
+ value: item.postId,
+ label: item.postName
+ }))
+ } catch (error) {
+ console.error('获取部门列表失败', error)
+ departmentOptions.value = []
+ }
+}
+
+
/* -------------------------------------------------
* 羊舍 & 耳号 功能函数
* ------------------------------------------------- */
@@ -652,6 +681,7 @@ function handleDetail(row) {
/* 初始加载 */
getList()
+loadDepartmentOptions()