diff --git a/package.json b/package.json
index de8e23e..158bb8c 100644
--- a/package.json
+++ b/package.json
@@ -22,7 +22,7 @@
"axios": "0.28.1",
"clipboard": "2.0.11",
"echarts": "5.5.1",
- "element-plus": "2.7.6",
+ "element-plus": "^2.7.6",
"file-saver": "2.0.5",
"fuse.js": "6.6.2",
"js-beautify": "1.14.11",
diff --git a/src/api/produce/manage_sheep/add_sheep/add_sheep.js b/src/api/produce/manage_sheep/add_sheep/add_sheep.js
new file mode 100644
index 0000000..e4644ff
--- /dev/null
+++ b/src/api/produce/manage_sheep/add_sheep/add_sheep.js
@@ -0,0 +1,20 @@
+import request from '@/utils/request';
+
+// 新增羊只
+export function addSheep(data) {
+ return request({
+ url: '/produce/manage_sheep/add_sheep',
+ method: 'post',
+ data: data
+ });
+}
+
+//导出模板
+export function exportSheepForm(data) {
+ return request({
+ url: '/produce/manage_sheep/add_sheep/exportForm',
+ method: 'post',
+ data,
+ responseType: 'blob'
+ });
+}
\ No newline at end of file
diff --git a/src/api/produce/manage_sheep/trans_group/trans_group.js b/src/api/produce/manage_sheep/trans_group/trans_group.js
new file mode 100644
index 0000000..9e174a5
--- /dev/null
+++ b/src/api/produce/manage_sheep/trans_group/trans_group.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询转群记录列表
+export function listTrans_group(query) {
+ return request({
+ url: '/produce/manage_sheep/trans_group/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询转群记录详细
+export function getTrans_group(id) {
+ return request({
+ url: '/produce/manage_sheep/trans_group/' + id,
+ method: 'get'
+ })
+}
+
+// 新增转群记录
+export function addTrans_group(data) {
+ return request({
+ url: '/produce/manage_sheep/trans_group',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改转群记录
+export function updateTrans_group(data) {
+ return request({
+ url: '/produce/manage_sheep/trans_group',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除转群记录
+export function delTrans_group(id) {
+ return request({
+ url: '/produce/manage_sheep/trans_group/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/produce/manage_sheep/transition_info/transition_info.js b/src/api/produce/manage_sheep/transition_info/transition_info.js
new file mode 100644
index 0000000..a86dbf4
--- /dev/null
+++ b/src/api/produce/manage_sheep/transition_info/transition_info.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询转场列表
+export function listTransition_info(query) {
+ return request({
+ url: 'produce/manage_sheep/transition_info/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询转场详细
+export function getTransition_info(id) {
+ return request({
+ url: 'produce/manage_sheep/transition_info/' + id,
+ method: 'get'
+ })
+}
+
+// 新增转场
+export function addTransition_info(data) {
+ return request({
+ url: 'produce/manage_sheep/transition_info',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改转场
+export function updateTransition_info(data) {
+ return request({
+ url: 'produce/manage_sheep/transition_info',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除转场
+export function delTransition_info(id) {
+ return request({
+ url: 'produce/manage_sheep/transition_info/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/produce/castrate.js b/src/api/produce/other/castrate/castrate.js
similarity index 75%
rename from src/api/produce/castrate.js
rename to src/api/produce/other/castrate/castrate.js
index df5c6cd..cf036a2 100644
--- a/src/api/produce/castrate.js
+++ b/src/api/produce/other/castrate/castrate.js
@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询去势列表
export function listCastrate(query) {
return request({
- url: '/produce/castrate/list',
+ url: '/produce/other/castrate/list',
method: 'get',
params: query
})
@@ -12,7 +12,7 @@ export function listCastrate(query) {
// 查询去势详细
export function getCastrate(id) {
return request({
- url: '/produce/castrate/' + id,
+ url: '/produce/other/castrate/' + id,
method: 'get'
})
}
@@ -20,7 +20,7 @@ export function getCastrate(id) {
// 新增去势
export function addCastrate(data) {
return request({
- url: '/produce/castrate',
+ url: '/produce/other/castrate',
method: 'post',
data: data
})
@@ -29,7 +29,7 @@ export function addCastrate(data) {
// 修改去势
export function updateCastrate(data) {
return request({
- url: '/produce/castrate',
+ url: '/produce/other/castrate',
method: 'put',
data: data
})
@@ -38,7 +38,7 @@ export function updateCastrate(data) {
// 删除去势
export function delCastrate(id) {
return request({
- url: '/produce/castrate/' + id,
+ url: '/produce/other/castrate/' + id,
method: 'delete'
})
}
diff --git a/src/api/produce/other/fixHoof/fixHoof.js b/src/api/produce/other/fixHoof/fixHoof.js
new file mode 100644
index 0000000..6512d2a
--- /dev/null
+++ b/src/api/produce/other/fixHoof/fixHoof.js
@@ -0,0 +1,93 @@
+// import request from '@/utils/request'
+
+// // 查询修蹄列表
+// export function listFixHoof(query) {
+// return request({
+// url: '/produce/other/fixHoof/list',
+// method: 'get',
+// params: query
+// })
+// }
+
+// // 查询修蹄详细
+// export function getFixHoof(id) {
+// return request({
+// url: '/produce/other/fixHoof' + id,
+// method: 'get'
+// })
+// }
+
+// // 新增修蹄
+// export function addFixHoof(data) {
+// return request({
+// url: '/produce/other/fixHoof',
+// method: 'post',
+// data: data
+// })
+// }
+
+// // 修改修蹄
+// export function updateFixHoof(data) {
+// return request({
+// url: '/produce/other/fixHoof/',
+// method: 'put',
+// data: data
+// })
+// }
+
+// // 删除修蹄
+// export function delFixHoof(id) {
+// return request({
+// url: '/produce/other/fixHoof/' + id,
+// method: 'delete'
+// })
+// }
+// fixHoof.js
+import request from '@/utils/request'
+// 查询修蹄列表
+export function listFixHoof(query) {
+ return request({
+ url: '/produce/other/fixHoof/list',
+ method: 'get',
+ params: query
+ })
+}
+// 查询修蹄详细
+export function getFixHoof(id) {
+ return request({
+ url: '/produce/other/fixHoof/${id}',
+ method: 'get'
+ })
+}
+// 新增修蹄
+export function addFixHoof(data) {
+ return request({
+ url: '/produce/other/fixHoof',
+ method: 'post',
+ data: data
+ })
+}
+// 修改修蹄
+export function updateFixHoof(data) {
+ return request({
+ url: '/produce/other/fixHoof',
+ method: 'put',
+ data: data
+ })
+}
+// 删除修蹄
+export function delFixHoof(ids) {
+ return request({
+ url: `/produce/other/fixHoof/${ids.join(',')}`,
+ method: 'delete'
+ })
+}
+//导出
+export function exportFixHoof(query) {
+ return request({
+ url: '/produce/other/fixHoof/export',
+ method: 'post',
+ params: query,
+ responseType: 'blob' // 导出功能需要设置响应类型为blob
+ })
+}
diff --git a/src/settings.js b/src/settings.js
index d67ff12..c2f78c4 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -45,5 +45,5 @@ export default {
* The default is only used in the production env
* If you want to also use it in dev, you can pass ['production', 'development']
*/
- errorLog: 'production'
+ errorLog: 'production',
}
diff --git a/src/views/produce/manage_sheep/add_sheep/index.vue b/src/views/produce/manage_sheep/add_sheep/index.vue
new file mode 100644
index 0000000..b9797f1
--- /dev/null
+++ b/src/views/produce/manage_sheep/add_sheep/index.vue
@@ -0,0 +1,223 @@
+
+