From 330843fe5a7d049cdd31d9bb12aeecb4837fd42d Mon Sep 17 00:00:00 2001
From: piaobo <1913856125@qq.com>
Date: Wed, 9 Jul 2025 12:26:57 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E5=8A=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/produce/castrate.js | 44 ++++
src/views/produce/other/castrate/index.vue | 274 +++++++++++++++++++++
2 files changed, 318 insertions(+)
create mode 100644 src/api/produce/castrate.js
create mode 100644 src/views/produce/other/castrate/index.vue
diff --git a/src/api/produce/castrate.js b/src/api/produce/castrate.js
new file mode 100644
index 0000000..df5c6cd
--- /dev/null
+++ b/src/api/produce/castrate.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询去势列表
+export function listCastrate(query) {
+ return request({
+ url: '/produce/castrate/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询去势详细
+export function getCastrate(id) {
+ return request({
+ url: '/produce/castrate/' + id,
+ method: 'get'
+ })
+}
+
+// 新增去势
+export function addCastrate(data) {
+ return request({
+ url: '/produce/castrate',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改去势
+export function updateCastrate(data) {
+ return request({
+ url: '/produce/castrate',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除去势
+export function delCastrate(id) {
+ return request({
+ url: '/produce/castrate/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/views/produce/other/castrate/index.vue b/src/views/produce/other/castrate/index.vue
new file mode 100644
index 0000000..87bc0d3
--- /dev/null
+++ b/src/views/produce/other/castrate/index.vue
@@ -0,0 +1,274 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+