diff --git a/package.json b/package.json index a50909e..0abbf3b 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@vueuse/core": "10.11.0", "axios": "0.28.1", "clipboard": "2.0.11", + "date-fns": "^4.1.0", "echarts": "5.5.1", "element-plus": "^2.7.6", "file-saver": "2.0.5", diff --git a/src/api/dairyProducts/sheepMilkAnalysis/sheepMilkAnalysis.js b/src/api/dairyProducts/sheepMilkAnalysis/sheepMilkAnalysis.js index 8e90017..d65fbd0 100644 --- a/src/api/dairyProducts/sheepMilkAnalysis/sheepMilkAnalysis.js +++ b/src/api/dairyProducts/sheepMilkAnalysis/sheepMilkAnalysis.js @@ -1,44 +1,29 @@ +// src/api/dairyProducts/sheepMilkAnalysis/sheepMilkAnalysis.js import request from '@/utils/request' -// 查询羊奶出入库列表 -export function listMilkInOutStore(query) { +// 查询羊奶产量分析列表(分页 + 条件) +export function listSheepMilkAnalysis(query) { return request({ - url: '/milkInOutStore/milkInOutStore/list', + url: '/dairyProducts/sheepMilkAnalysis/list', method: 'get', params: query }) } -// 查询羊奶出入库详细 -export function getMilkInOutStore(id) { +// 查询单个羊奶产量分析详细信息 +export function getSheepMilkAnalysis(sheepId) { return request({ - url: '/milkInOutStore/milkInOutStore/' + id, + url: '/dairyProducts/sheepMilkAnalysis/' + sheepId, method: 'get' }) } -// 新增羊奶出入库 -export function addMilkInOutStore(data) { +// 导出羊奶产量分析 Excel +export function exportSheepMilkAnalysis(query) { 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' + url: '/dairyProducts/sheepMilkAnalysis/export', + method: 'get', + params: query, + responseType: 'blob' // 返回二进制流 }) } diff --git a/src/api/feed/FeedPlan.js b/src/api/feed/FeedPlan.js new file mode 100644 index 0000000..b452daa --- /dev/null +++ b/src/api/feed/FeedPlan.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询饲喂计划列表 +export function listFeedPlan(query) { + return request({ + url: '/feed/FeedPlan/list', + method: 'get', + params: query + }) +} + +// 查询饲喂计划详细 +export function getFeedPlan(createDate) { + return request({ + url: '/feed/FeedPlan/' + createDate, + method: 'get' + }) +} + +// 新增饲喂计划 +export function addFeedPlan(data) { + return request({ + url: '/feed/FeedPlan', + method: 'post', + data: data + }) +} + +// 修改饲喂计划 +export function updateFeedPlan(data) { + return request({ + url: '/feed/FeedPlan', + method: 'put', + data: data + }) +} + +// 删除饲喂计划 +export function delFeedPlan(createDate) { + return request({ + url: '/feed/FeedPlan/' + createDate, + method: 'delete' + }) +} diff --git a/src/api/feed/FormulaList.js b/src/api/feed/FormulaList.js new file mode 100644 index 0000000..13621a4 --- /dev/null +++ b/src/api/feed/FormulaList.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询配方列表列表 +export function listFormulaList(query) { + return request({ + url: '/feed/FormulaList/list', + method: 'get', + params: query + }) +} + +// 查询配方列表详细 +export function getFormulaList(code) { + return request({ + url: '/feed/FormulaList/' + code, + method: 'get' + }) +} + +// 新增配方列表 +export function addFormulaList(data) { + return request({ + url: '/feed/FormulaList', + method: 'post', + data: data + }) +} + +// 修改配方列表 +export function updateFormulaList(data) { + return request({ + url: '/feed/FormulaList', + method: 'put', + data: data + }) +} + +// 删除配方列表 +export function delFormulaList(code) { + return request({ + url: '/feed/FormulaList/' + code, + method: 'delete' + }) +} diff --git a/src/api/feed/FormulaManagement.js b/src/api/feed/FormulaManagement.js new file mode 100644 index 0000000..558673b --- /dev/null +++ b/src/api/feed/FormulaManagement.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询配方管理列表 +export function listFormulaManagement(query) { + return request({ + url: '/feed/FormulaManagement/list', + method: 'get', + params: query + }) +} + +// 查询配方管理详细 +export function getFormulaManagement(formulaId) { + return request({ + url: '/feed/FormulaManagement/' + formulaId, + method: 'get' + }) +} + +// 新增配方管理 +export function addFormulaManagement(data) { + return request({ + url: '/feed/FormulaManagement', + method: 'post', + data: data + }) +} + +// 修改配方管理 +export function updateFormulaManagement(data) { + return request({ + url: '/feed/FormulaManagement', + method: 'put', + data: data + }) +} + +// 删除配方管理 +export function delFormulaManagement(formulaIdAndBatchId) { + return request({ + url: '/feed/FormulaManagement/' + formulaIdAndBatchId, + method: 'delete' + }) +} diff --git a/src/api/feed/Material.js b/src/api/feed/Material.js new file mode 100644 index 0000000..b3ec4df --- /dev/null +++ b/src/api/feed/Material.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询原料列表 +export function listMaterial(query) { + return request({ + url: '/feed/material/list', + method: 'get', + params: query + }) +} + +// 查询原料详细 +export function getMaterial(materialId) { + return request({ + url: '/feed/material/' + materialId, + method: 'get' + }) +} + +// 新增原料 +export function addMaterial(data) { + return request({ + url: '/feed/material', + method: 'post', + data: data + }) +} + +// 修改原料 +export function updateMaterial(data) { + return request({ + url: '/feed/material', + method: 'put', + data: data + }) +} + +// 删除原料 +export function delMaterial(materialId) { + return request({ + url: '/feed/material/' + materialId, + method: 'delete' + }) +} diff --git a/src/api/produce/bodyManage/body_measure.js b/src/api/produce/bodyManage/body_measure.js index 66862eb..99226d2 100644 --- a/src/api/produce/bodyManage/body_measure.js +++ b/src/api/produce/bodyManage/body_measure.js @@ -42,3 +42,10 @@ export function delBody_measure(id) { method: 'delete' }) } +//获取羊只类别列表 +export function getSheepTypeList() { + return request({ + url: '/base/base/list', + method: 'get' + }) +} \ No newline at end of file diff --git a/src/api/stock/in.js b/src/api/stock/in.js new file mode 100644 index 0000000..a16d659 --- /dev/null +++ b/src/api/stock/in.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询入库记录列表 +export function listIn(query) { + return request({ + url: '/stock/in/list', + method: 'get', + params: query + }) +} + +// 查询入库记录详细 +export function getIn(stockInCode) { + return request({ + url: '/stock/in/' + stockInCode, + method: 'get' + }) +} + +// 新增入库记录 +export function addIn(data) { + return request({ + url: '/stock/in', + method: 'post', + data: data + }) +} + +// 修改入库记录 +export function updateIn(data) { + return request({ + url: '/stock/in', + method: 'put', + data: data + }) +} + +// 删除入库记录 +export function delIn(stockInCode) { + return request({ + url: '/stock/in/' + stockInCode, + method: 'delete' + }) +} diff --git a/src/api/stock/management.js b/src/api/stock/management.js new file mode 100644 index 0000000..da53806 --- /dev/null +++ b/src/api/stock/management.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询物资管理列表 +export function listManagement(query) { + return request({ + url: '/stock/management/list', + method: 'get', + params: query + }) +} + +// 查询物资管理详细 +export function getManagement(materialManagementCode) { + return request({ + url: '/stock/management/' + materialManagementCode, + method: 'get' + }) +} + +// 新增物资管理 +export function addManagement(data) { + return request({ + url: '/stock/management', + method: 'post', + data: data + }) +} + +// 修改物资管理 +export function updateManagement(data) { + return request({ + url: '/stock/management', + method: 'put', + data: data + }) +} + +// 删除物资管理 +export function delManagement(materialManagementCode) { + return request({ + url: '/stock/management/' + materialManagementCode, + method: 'delete' + }) +} diff --git a/src/api/stock/out.js b/src/api/stock/out.js new file mode 100644 index 0000000..8f78f86 --- /dev/null +++ b/src/api/stock/out.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询出库记录列表 +export function listOut(query) { + return request({ + url: '/stock/out/list', + method: 'get', + params: query + }) +} + +// 查询出库记录详细 +export function getOut(stockOutCode) { + return request({ + url: '/stock/out/' + stockOutCode, + method: 'get' + }) +} + +// 新增出库记录 +export function addOut(data) { + return request({ + url: '/stock/out', + method: 'post', + data: data + }) +} + +// 修改出库记录 +export function updateOut(data) { + return request({ + url: '/stock/out', + method: 'put', + data: data + }) +} + +// 删除出库记录 +export function delOut(stockOutCode) { + return request({ + url: '/stock/out/' + stockOutCode, + method: 'delete' + }) +} diff --git a/src/views/biosafety/diagnosis/index.vue b/src/views/biosafety/diagnosis/index.vue index f1b64c7..b31e92a 100644 --- a/src/views/biosafety/diagnosis/index.vue +++ b/src/views/biosafety/diagnosis/index.vue @@ -68,7 +68,7 @@ - + @@ -83,19 +83,19 @@ - + - + - - + + diff --git a/src/views/produce/bodyManage/body_score/index.vue b/src/views/produce/bodyManage/body_score/index.vue index ea09165..3798777 100644 --- a/src/views/produce/bodyManage/body_score/index.vue +++ b/src/views/produce/bodyManage/body_score/index.vue @@ -8,6 +8,11 @@ + + + + + @@ -17,8 +22,8 @@ style="max-width: 150px;" /> - - + + 删除 @@ -58,27 +63,29 @@ - - + + + + - - + + - + - + @@ -133,8 +140,8 @@ diff --git a/src/views/produce/bodyManage/breast_rating/index.vue b/src/views/produce/bodyManage/breast_rating/index.vue index 28c141f..f10e00d 100644 --- a/src/views/produce/bodyManage/breast_rating/index.vue +++ b/src/views/produce/bodyManage/breast_rating/index.vue @@ -8,6 +8,20 @@ + + + + + + + + + + + + + @@ -23,10 +37,10 @@ 新增 - + 删除 @@ -42,25 +56,33 @@ - + + + + + + + - + - + - + @@ -80,6 +102,11 @@ + + + + @@ -117,7 +144,8 @@ diff --git a/src/views/produce/manage_sheep/changeComment/index.vue b/src/views/produce/manage_sheep/changeComment/index.vue index 775410f..b689ebe 100644 --- a/src/views/produce/manage_sheep/changeComment/index.vue +++ b/src/views/produce/manage_sheep/changeComment/index.vue @@ -36,10 +36,10 @@ 新增 - + 删除 @@ -66,8 +66,8 @@ @@ -90,7 +90,7 @@ - + \ No newline at end of file diff --git a/src/views/produce/other/fixHoof/index.vue b/src/views/produce/other/fixHoof/index.vue index 15b0e4b..40da417 100644 --- a/src/views/produce/other/fixHoof/index.vue +++ b/src/views/produce/other/fixHoof/index.vue @@ -219,9 +219,9 @@ async function loadSheepInfo() { form.value.tagDetails = tagDetails; if (validTags.length > 0) { - const firstValidTag = validTags[0]; 耳号 + const firstValidTag = validTags[0]; const firstSheepfoldId = tagDetails[firstValidTag].sheepfoldId; - form.value.sheepfold = firstSheepfoldId; + form.value.sheepfold = firstSheepfoldId; } } diff --git a/src/views/stock/in/index.vue b/src/views/stock/in/index.vue new file mode 100644 index 0000000..142ff24 --- /dev/null +++ b/src/views/stock/in/index.vue @@ -0,0 +1,314 @@ + + + diff --git a/src/views/stock/management/index.vue b/src/views/stock/management/index.vue new file mode 100644 index 0000000..47009d2 --- /dev/null +++ b/src/views/stock/management/index.vue @@ -0,0 +1,356 @@ + + + diff --git a/src/views/stock/out/index.vue b/src/views/stock/out/index.vue new file mode 100644 index 0000000..4eefd81 --- /dev/null +++ b/src/views/stock/out/index.vue @@ -0,0 +1,330 @@ + + + diff --git a/vite.config.js b/vite.config.js index 6bfc4a7..4f45d0f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,7 +2,7 @@ import path from 'path' import { defineConfig, loadEnv } from 'vite' import createVitePlugins from './vite/plugins' -const baseUrl = 'http://localhost:8080' // 后端接口 +const baseUrl = 'http://127.0.0.1:8080' // 后端接口 // https://vitejs.dev/config/ export default defineConfig(({ mode, command }) => {