From a057316e8546d78dbb72eb7198cc5c8c249758aa Mon Sep 17 00:00:00 2001 From: zyh <2066096076@qq.com> Date: Sat, 12 Jul 2025 17:58:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BE=8A=E5=8F=AA=EF=BC=8C?= =?UTF-8?q?=E8=BD=AC=E5=9C=BA=EF=BC=8C=E8=BD=AC=E7=BE=A4=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E8=B9=84=EF=BC=8C=E5=8E=BB=E5=8A=BF=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- .../manage_sheep/add_sheep/add_sheep.js | 20 + .../manage_sheep/trans_group/trans_group.js | 44 ++ .../transition_info/transition_info.js | 44 ++ .../produce/{ => other/castrate}/castrate.js | 10 +- src/api/produce/other/fixHoof/fixHoof.js | 93 ++++ src/settings.js | 2 +- .../produce/manage_sheep/add_sheep/index.vue | 223 ++++++++++ .../manage_sheep/trans_group/index.vue | 359 +++++++++++++++ .../manage_sheep/transition_info/index.vue | 413 ++++++++++++++++++ src/views/produce/other/castrate/index.vue | 121 +++-- src/views/produce/other/fixHoof/index.vue | 291 ++++++++++++ 12 files changed, 1547 insertions(+), 75 deletions(-) create mode 100644 src/api/produce/manage_sheep/add_sheep/add_sheep.js create mode 100644 src/api/produce/manage_sheep/trans_group/trans_group.js create mode 100644 src/api/produce/manage_sheep/transition_info/transition_info.js rename src/api/produce/{ => other/castrate}/castrate.js (75%) create mode 100644 src/api/produce/other/fixHoof/fixHoof.js create mode 100644 src/views/produce/manage_sheep/add_sheep/index.vue create mode 100644 src/views/produce/manage_sheep/trans_group/index.vue create mode 100644 src/views/produce/manage_sheep/transition_info/index.vue create mode 100644 src/views/produce/other/fixHoof/index.vue 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 @@ + + + + + \ No newline at end of file diff --git a/src/views/produce/manage_sheep/trans_group/index.vue b/src/views/produce/manage_sheep/trans_group/index.vue new file mode 100644 index 0000000..8053714 --- /dev/null +++ b/src/views/produce/manage_sheep/trans_group/index.vue @@ -0,0 +1,359 @@ + + + diff --git a/src/views/produce/manage_sheep/transition_info/index.vue b/src/views/produce/manage_sheep/transition_info/index.vue new file mode 100644 index 0000000..3119219 --- /dev/null +++ b/src/views/produce/manage_sheep/transition_info/index.vue @@ -0,0 +1,413 @@ + + + diff --git a/src/views/produce/other/castrate/index.vue b/src/views/produce/other/castrate/index.vue index 87bc0d3..bfb81a5 100644 --- a/src/views/produce/other/castrate/index.vue +++ b/src/views/produce/other/castrate/index.vue @@ -2,30 +2,14 @@
- + - + - + 搜索 @@ -35,49 +19,27 @@ - 新增 + 新增 - 修改 + 修改 - 删除 + 删除 - 导出 + 导出 - + @@ -89,19 +51,16 @@ - - + + @@ -109,8 +68,13 @@ - - + + + + + + + @@ -126,8 +90,9 @@
- diff --git a/src/views/produce/other/fixHoof/index.vue b/src/views/produce/other/fixHoof/index.vue new file mode 100644 index 0000000..3a85c85 --- /dev/null +++ b/src/views/produce/other/fixHoof/index.vue @@ -0,0 +1,291 @@ + + +