From 923f336a92a5d1ac3265a21d913d7b64af283206 Mon Sep 17 00:00:00 2001 From: wyt <414651037@qq.com> Date: Thu, 24 Jul 2025 16:56:23 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E7=BE=8A=E7=BE=A4=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/fileManagement/sheep_file.js | 22 +++ .../fileManagement/sheep_structure/index.vue | 172 ++++++++++++++++++ 2 files changed, 194 insertions(+) create mode 100644 src/views/fileManagement/sheep_structure/index.vue diff --git a/src/api/fileManagement/sheep_file.js b/src/api/fileManagement/sheep_file.js index 892580a..c0bb7f1 100644 --- a/src/api/fileManagement/sheep_file.js +++ b/src/api/fileManagement/sheep_file.js @@ -25,3 +25,25 @@ export function delSheep_file(id) { method: 'delete' }) } + + + +// 在群总数 +export const getInGroupCount = () => + request({ url: '/sheep_file/sheep_file/stat/inGroupCount', method: 'get' }) + +export function getSheepTypeStat() { + return request({ url: '/sheep_file/sheep_file/stat/sheepType', method: 'get' }) +} + +export function getBreedStatusStat() { + return request({ url: '/sheep_file/sheep_file/stat/breedStatus', method: 'get' }) +} + +export function getVarietyStat() { + return request({ url: '/sheep_file/sheep_file/stat/variety', method: 'get' }) +} + +export function getLactationParityStat() { + return request({ url: '/sheep_file/sheep_file/stat/lactationParity', method: 'get' }) +} diff --git a/src/views/fileManagement/sheep_structure/index.vue b/src/views/fileManagement/sheep_structure/index.vue new file mode 100644 index 0000000..bb72b4d --- /dev/null +++ b/src/views/fileManagement/sheep_structure/index.vue @@ -0,0 +1,172 @@ + + + + + \ No newline at end of file From 28d42663e0e557cc2a7aa6b900d4772b7870dcaa Mon Sep 17 00:00:00 2001 From: ll <1079863556@qq.com> Date: Tue, 29 Jul 2025 22:30:56 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E7=8F=AD=E6=AC=A1=E5=A5=B6=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../milkProdclasses/milkProdclasses.js | 33 ++++ .../parityCorrection/parityCorrection.js | 12 +- src/api/dairyProducts/ranch/ranch.js | 8 + src/api/system/dict/data.js | 3 + .../milkProdclasses/milkProdclasses/index.vue | 161 ++++++++++++++++++ .../dairyProducts/parityCorrection/index.vue | 48 ++---- 6 files changed, 231 insertions(+), 34 deletions(-) create mode 100644 src/api/dairyProducts/milkProdclasses/milkProdclasses.js create mode 100644 src/api/dairyProducts/ranch/ranch.js create mode 100644 src/views/dairyProducts/milkProdclasses/milkProdclasses/index.vue diff --git a/src/api/dairyProducts/milkProdclasses/milkProdclasses.js b/src/api/dairyProducts/milkProdclasses/milkProdclasses.js new file mode 100644 index 0000000..96d7b6d --- /dev/null +++ b/src/api/dairyProducts/milkProdclasses/milkProdclasses.js @@ -0,0 +1,33 @@ +import request from '@/utils/request' + +export function listMilkProdclasses(query) { + return request({ + url: '/milkProdclasses/milkProdclasses/list', + method: 'get', + params: query + }) +} + +export function importMilkProdclasses(data) { + return request({ + url: '/milkProdclasses/milkProdclasses/import', + method: 'post', + data: data, + headers: { 'Content-Type': 'multipart/form-data' } + }) +} + +export function exportMilkProdclasses(query) { + return request({ + url: '/milkProdclasses/milkProdclasses/export', + method: 'post', + responseType: 'blob', + params: query + }) +} +export function getRanchList() { + return request({ + url: '/system/ranch/list', + method: 'get' + }) +} \ No newline at end of file diff --git a/src/api/dairyProducts/parityCorrection/parityCorrection.js b/src/api/dairyProducts/parityCorrection/parityCorrection.js index 788539b..0d2488b 100644 --- a/src/api/dairyProducts/parityCorrection/parityCorrection.js +++ b/src/api/dairyProducts/parityCorrection/parityCorrection.js @@ -43,4 +43,14 @@ // }) // } // 可以保留空文件或删除此文件 -// 因为前端不再需要调用后端API \ No newline at end of file +// 因为前端不再需要调用后端API +import request from '@/utils/request' + +// 查询胎次校正列表 +export function listParityCorrection(query) { + return request({ + url: '/parityCorrection/parityCorrection/listAll', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/dairyProducts/ranch/ranch.js b/src/api/dairyProducts/ranch/ranch.js new file mode 100644 index 0000000..b5f64bd --- /dev/null +++ b/src/api/dairyProducts/ranch/ranch.js @@ -0,0 +1,8 @@ +import request from '@/utils/request' + +export function getRanchList() { + return request({ + url: '/dairyProducts/ranch/list', + method: 'get' + }) +} \ No newline at end of file diff --git a/src/api/system/dict/data.js b/src/api/system/dict/data.js index 6c9eb79..28b2e23 100644 --- a/src/api/system/dict/data.js +++ b/src/api/system/dict/data.js @@ -50,3 +50,6 @@ export function delData(dictCode) { method: 'delete' }) } + +// 兼容旧写法 +export { getDicts as listDictDataByType } \ No newline at end of file diff --git a/src/views/dairyProducts/milkProdclasses/milkProdclasses/index.vue b/src/views/dairyProducts/milkProdclasses/milkProdclasses/index.vue new file mode 100644 index 0000000..ec8acd0 --- /dev/null +++ b/src/views/dairyProducts/milkProdclasses/milkProdclasses/index.vue @@ -0,0 +1,161 @@ + + + + diff --git a/src/views/dairyProducts/parityCorrection/index.vue b/src/views/dairyProducts/parityCorrection/index.vue index 846c373..201d3ea 100644 --- a/src/views/dairyProducts/parityCorrection/index.vue +++ b/src/views/dairyProducts/parityCorrection/index.vue @@ -1,54 +1,36 @@ From 6a128239cc62e513e4c2750e8baf3f36c710cfd9 Mon Sep 17 00:00:00 2001 From: ll <1079863556@qq.com> Date: Thu, 31 Jul 2025 23:15:10 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E7=BE=8A=E5=A5=B6=E5=87=BA=E5=85=A5?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../milkInOutStore/milkInOutStore.js | 33 +++ .../sheepMilkAnalysis/sheepMilkAnalysis.js | 44 ++++ .../milkInOutStore/milkInOutStore/index.vue | 157 ++++++++++++++ .../dairyProducts/sheepMilkAnalysis/index.vue | 194 ++++++++++++++++++ 4 files changed, 428 insertions(+) create mode 100644 src/api/dairyProducts/milkInOutStore/milkInOutStore.js create mode 100644 src/api/dairyProducts/sheepMilkAnalysis/sheepMilkAnalysis.js create mode 100644 src/views/dairyProducts/milkInOutStore/milkInOutStore/index.vue create mode 100644 src/views/dairyProducts/sheepMilkAnalysis/index.vue diff --git a/src/api/dairyProducts/milkInOutStore/milkInOutStore.js b/src/api/dairyProducts/milkInOutStore/milkInOutStore.js new file mode 100644 index 0000000..fd5f947 --- /dev/null +++ b/src/api/dairyProducts/milkInOutStore/milkInOutStore.js @@ -0,0 +1,33 @@ +import request from '@/utils/request' + +export function getList(params) { + return request({ + url: '/milkInOutStore/list', + method: 'get', + params + }) +} + +export function importExcel(file) { + const data = new FormData() + data.append('file', file) + return request({ + url: '/milkInOutStore/import', + method: 'post', + data, + headers: { 'Content-Type': 'multipart/form-data' } + }) +} + +export function exportExcel(params) { + return request({ + url: '/milkInOutStore/export', + method: 'post', + params, + responseType: 'blob' + }) +} + +export function getColumns() { + return request({ url: '/milkInOutStore/columns', method: 'get' }) +} diff --git a/src/api/dairyProducts/sheepMilkAnalysis/sheepMilkAnalysis.js b/src/api/dairyProducts/sheepMilkAnalysis/sheepMilkAnalysis.js new file mode 100644 index 0000000..8e90017 --- /dev/null +++ b/src/api/dairyProducts/sheepMilkAnalysis/sheepMilkAnalysis.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询羊奶出入库列表 +export function listMilkInOutStore(query) { + return request({ + url: '/milkInOutStore/milkInOutStore/list', + method: 'get', + params: query + }) +} + +// 查询羊奶出入库详细 +export function getMilkInOutStore(id) { + return request({ + url: '/milkInOutStore/milkInOutStore/' + id, + method: 'get' + }) +} + +// 新增羊奶出入库 +export function addMilkInOutStore(data) { + return request({ + url: '/milkInOutStore/milkInOutStore', + method: 'post', + data: data + }) +} + +// 修改羊奶出入库 +export function updateMilkInOutStore(data) { + return request({ + url: '/milkInOutStore/milkInOutStore', + method: 'put', + data: data + }) +} + +// 删除羊奶出入库 +export function delMilkInOutStore(id) { + return request({ + url: '/milkInOutStore/milkInOutStore/' + id, + method: 'delete' + }) +} diff --git a/src/views/dairyProducts/milkInOutStore/milkInOutStore/index.vue b/src/views/dairyProducts/milkInOutStore/milkInOutStore/index.vue new file mode 100644 index 0000000..07c6d59 --- /dev/null +++ b/src/views/dairyProducts/milkInOutStore/milkInOutStore/index.vue @@ -0,0 +1,157 @@ + + + \ No newline at end of file diff --git a/src/views/dairyProducts/sheepMilkAnalysis/index.vue b/src/views/dairyProducts/sheepMilkAnalysis/index.vue new file mode 100644 index 0000000..64bc19b --- /dev/null +++ b/src/views/dairyProducts/sheepMilkAnalysis/index.vue @@ -0,0 +1,194 @@ + + + + +