From b0ca2d334bc87fa5f02f669ec6bd6c3ff6a95dfa Mon Sep 17 00:00:00 2001 From: ll <1079863556@qq.com> Date: Fri, 11 Jul 2025 21:14:00 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=B9=B2=E7=89=A9=E8=B4=A8=E7=B3=BB?= =?UTF-8?q?=E6=95=B0=E5=89=8D=E7=AB=AF=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dryMatterCorrection.js | 46 +++ .../dryMatterCorrection/index.vue | 311 ++++++++++++++++++ 2 files changed, 357 insertions(+) create mode 100644 src/api/dryMatterCorrection/dryMatterCorrection.js create mode 100644 src/views/dryMatterCorrection/dryMatterCorrection/index.vue diff --git a/src/api/dryMatterCorrection/dryMatterCorrection.js b/src/api/dryMatterCorrection/dryMatterCorrection.js new file mode 100644 index 0000000..9018311 --- /dev/null +++ b/src/api/dryMatterCorrection/dryMatterCorrection.js @@ -0,0 +1,46 @@ +import request from '@/utils/request' + +// 查询干物质校正列表 +export function listDryMatterCorrection(query) { + return request({ + url: '/dryMatterCorrection/dryMatterCorrection/list', + method: 'get', + params: { + datetime: query.datetime // 只传递年月参数 + } + }) +} + +// 查询干物质校正详细 +export function getDryMatterCorrection(id) { + return request({ + url: '/dryMatterCorrection/dryMatterCorrection/' + id, + method: 'get' + }) +} + +// 新增干物质校正 +export function addDryMatterCorrection(data) { + return request({ + url: '/dryMatterCorrection/dryMatterCorrection', + method: 'post', + data: data + }) +} + +// 修改干物质校正 +export function updateDryMatterCorrection(data) { + return request({ + url: '/dryMatterCorrection/dryMatterCorrection', + method: 'put', + data: data + }) +} + +// 删除干物质校正 +export function delDryMatterCorrection(id) { + return request({ + url: '/dryMatterCorrection/dryMatterCorrection/' + id, + method: 'delete' + }) +} \ No newline at end of file diff --git a/src/views/dryMatterCorrection/dryMatterCorrection/index.vue b/src/views/dryMatterCorrection/dryMatterCorrection/index.vue new file mode 100644 index 0000000..fedf5dc --- /dev/null +++ b/src/views/dryMatterCorrection/dryMatterCorrection/index.vue @@ -0,0 +1,311 @@ + + + \ No newline at end of file From b8b83d74a1895e5de6bc52b355631390f5503963 Mon Sep 17 00:00:00 2001 From: piaobo <1913856125@qq.com> Date: Sat, 12 Jul 2025 12:15:47 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=A4=84=E6=96=B9=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/biosafety/prescription.js | 44 ++ src/api/biosafety/unit.js | 44 ++ src/views/biosafety/medicine/unit.vue | 187 ++++++++ src/views/biosafety/prescription/index.vue | 513 +++++++++++++++++++++ 4 files changed, 788 insertions(+) create mode 100644 src/api/biosafety/prescription.js create mode 100644 src/api/biosafety/unit.js create mode 100644 src/views/biosafety/medicine/unit.vue create mode 100644 src/views/biosafety/prescription/index.vue diff --git a/src/api/biosafety/prescription.js b/src/api/biosafety/prescription.js new file mode 100644 index 0000000..5c5bdab --- /dev/null +++ b/src/api/biosafety/prescription.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询处方列表 +export function listPrescription(query) { + return request({ + url: '/biosafety/prescription/list', + method: 'get', + params: query + }) +} + +// 查询处方详细 +export function getPrescription(id) { + return request({ + url: '/biosafety/prescription/' + id, + method: 'get' + }) +} + +// 新增处方 +export function addPrescription(data) { + return request({ + url: '/biosafety/prescription', + method: 'post', + data: data + }) +} + +// 修改处方 +export function updatePrescription(data) { + return request({ + url: '/biosafety/prescription', + method: 'put', + data: data + }) +} + +// 删除处方 +export function delPrescription(id) { + return request({ + url: '/biosafety/prescription/' + id, + method: 'delete' + }) +} diff --git a/src/api/biosafety/unit.js b/src/api/biosafety/unit.js new file mode 100644 index 0000000..a2a72c4 --- /dev/null +++ b/src/api/biosafety/unit.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询药品单位列表 +export function listUnit(query) { + return request({ + url: '/biosafety/unit/list', + method: 'get', + params: query + }) +} + +// 查询药品单位详细 +export function getUnit(id) { + return request({ + url: '/biosafety/unit/' + id, + method: 'get' + }) +} + +// 新增药品单位 +export function addUnit(data) { + return request({ + url: '/biosafety/unit', + method: 'post', + data: data + }) +} + +// 修改药品单位 +export function updateUnit(data) { + return request({ + url: '/biosafety/unit', + method: 'put', + data: data + }) +} + +// 删除药品单位 +export function delUnit(id) { + return request({ + url: '/biosafety/unit/' + id, + method: 'delete' + }) +} diff --git a/src/views/biosafety/medicine/unit.vue b/src/views/biosafety/medicine/unit.vue new file mode 100644 index 0000000..518da8c --- /dev/null +++ b/src/views/biosafety/medicine/unit.vue @@ -0,0 +1,187 @@ + + + diff --git a/src/views/biosafety/prescription/index.vue b/src/views/biosafety/prescription/index.vue new file mode 100644 index 0000000..9cb3399 --- /dev/null +++ b/src/views/biosafety/prescription/index.vue @@ -0,0 +1,513 @@ + + + \ No newline at end of file From ea1f9e316c4045d7a1f61d3bd8e3d0c942c5c01f Mon Sep 17 00:00:00 2001 From: piaobo <1913856125@qq.com> Date: Sat, 12 Jul 2025 17:52:08 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E8=8D=AF=E5=93=81=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/biosafety/usageInfo.js | 44 +++ src/views/biosafety/prescription/index.vue | 2 +- src/views/biosafety/usageInfo/index.vue | 298 +++++++++++++++++++++ 3 files changed, 343 insertions(+), 1 deletion(-) create mode 100644 src/api/biosafety/usageInfo.js create mode 100644 src/views/biosafety/usageInfo/index.vue diff --git a/src/api/biosafety/usageInfo.js b/src/api/biosafety/usageInfo.js new file mode 100644 index 0000000..6bf9e1f --- /dev/null +++ b/src/api/biosafety/usageInfo.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询药品使用记录列表 +export function listUsageInfo(query) { + return request({ + url: '/biosafety/usageInfo/list', + method: 'get', + params: query + }) +} + +// 查询药品使用记录详细 +export function getUsageInfo(id) { + return request({ + url: '/biosafety/usageInfo/' + id, + method: 'get' + }) +} + +// 新增药品使用记录 +export function addUsageInfo(data) { + return request({ + url: '/biosafety/usageInfo', + method: 'post', + data: data + }) +} + +// 修改药品使用记录 +export function updateUsageInfo(data) { + return request({ + url: '/biosafety/usageInfo', + method: 'put', + data: data + }) +} + +// 删除药品使用记录 +export function delUsageInfo(id) { + return request({ + url: '/biosafety/usageInfo/' + id, + method: 'delete' + }) +} diff --git a/src/views/biosafety/prescription/index.vue b/src/views/biosafety/prescription/index.vue index 9cb3399..82ac02e 100644 --- a/src/views/biosafety/prescription/index.vue +++ b/src/views/biosafety/prescription/index.vue @@ -409,7 +409,7 @@ function handleStatus(row) { const _id = row.id || ids.value const newStatus = row.status ? 0 : 1 // 切换状态 - proxy.$modal.confirm(`是否确认将 ${row.name} 处方${row.status ? '禁用' : '启用'}?`).then(() => { + proxy.$modal.confirm(`是否确认将 ${row.name }处方${row.status ? '禁用' : '启用'}?`).then(() => { return updatePrescription({ id: _id, status: newStatus }) }).then(() => { proxy.$modal.msgSuccess(`处方${row.status ? '禁用' : '启用'}成功`) diff --git a/src/views/biosafety/usageInfo/index.vue b/src/views/biosafety/usageInfo/index.vue new file mode 100644 index 0000000..eb06c75 --- /dev/null +++ b/src/views/biosafety/usageInfo/index.vue @@ -0,0 +1,298 @@ + + + + + \ No newline at end of file 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 4/5] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BE=8A=E5=8F=AA?= =?UTF-8?q?=EF=BC=8C=E8=BD=AC=E5=9C=BA=EF=BC=8C=E8=BD=AC=E7=BE=A4=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=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 @@ + + + From 0ae58dff21226347c547d38883d7f7568d62921f Mon Sep 17 00:00:00 2001 From: zyh <2066096076@qq.com> Date: Sat, 12 Jul 2025 18:00:00 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8E=BB=E5=8A=BF?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/produce/other/castrate/index.vue | 29 +++++++++++++--------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/src/views/produce/other/castrate/index.vue b/src/views/produce/other/castrate/index.vue index bfb81a5..3c6ea8b 100644 --- a/src/views/produce/other/castrate/index.vue +++ b/src/views/produce/other/castrate/index.vue @@ -4,8 +4,10 @@ - - + + + + - + @@ -92,7 +94,7 @@