diff --git a/src/api/Pregnancy_Test/Pregnancy_Test.js b/src/api/Pregnancy_Test/Pregnancy_Test.js new file mode 100644 index 0000000..345608e --- /dev/null +++ b/src/api/Pregnancy_Test/Pregnancy_Test.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询孕检记录列表 +export function listPregnancy_Test(query) { + return request({ + url: '/Pregnancy_Test/Pregnancy_Test/list', + method: 'get', + params: query + }) +} + +// 查询孕检记录详细 +export function getPregnancy_Test(id) { + return request({ + url: '/Pregnancy_Test/Pregnancy_Test/' + id, + method: 'get' + }) +} + +// 新增孕检记录 +export function addPregnancy_Test(data) { + return request({ + url: '/Pregnancy_Test/Pregnancy_Test', + method: 'post', + data: data + }) +} + +// 修改孕检记录 +export function updatePregnancy_Test(data) { + return request({ + url: '/Pregnancy_Test/Pregnancy_Test', + method: 'put', + data: data + }) +} + +// 删除孕检记录 +export function delPregnancy_Test(id) { + return request({ + url: '/Pregnancy_Test/Pregnancy_Test/' + id, + method: 'delete' + }) +} diff --git a/src/api/biosafety/quarantine.js b/src/api/biosafety/quarantine.js index 0580462..5341286 100644 --- a/src/api/biosafety/quarantine.js +++ b/src/api/biosafety/quarantine.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询检疫记录列表 export function listQuarantine(query) { return request({ - url: '/bisosafety/quarantine/list', + url: '/biosafety/quarantine/list', method: 'get', params: query }) @@ -12,7 +12,7 @@ export function listQuarantine(query) { // 查询检疫记录详细 export function getQuarantine(id) { return request({ - url: '/bisosafety/quarantine/' + id, + url: '/biosafety/quarantine/' + id, method: 'get' }) } @@ -20,7 +20,7 @@ export function getQuarantine(id) { // 新增检疫记录 export function addQuarantine(data) { return request({ - url: '/bisosafety/quarantine', + url: '/biosafety/quarantine', method: 'post', data: data }) @@ -29,7 +29,7 @@ export function addQuarantine(data) { // 修改检疫记录 export function updateQuarantine(data) { return request({ - url: '/bisosafety/quarantine', + url: '/biosafety/quarantine', method: 'put', data: data }) @@ -38,7 +38,7 @@ export function updateQuarantine(data) { // 删除检疫记录 export function delQuarantine(id) { return request({ - url: '/bisosafety/quarantine/' + id, + url: '/biosafety/quarantine/' + id, method: 'delete' }) } diff --git a/src/api/dairyProducts/freshMilkTest/freshMilkTest.js b/src/api/dairyProducts/freshMilkTest/freshMilkTest.js new file mode 100644 index 0000000..0781458 --- /dev/null +++ b/src/api/dairyProducts/freshMilkTest/freshMilkTest.js @@ -0,0 +1,45 @@ +import request from '@/utils/request' + +// 查询鲜奶生产,成品检验记录列表 +export function listFreshMilkTest(query) { + return request({ + url: '/freshMilkTest/freshMilkTest/list', + method: 'get', + params: query + }) +} + +// 查询鲜奶生产,成品检验记录详细 +export function getFreshMilkTest(id) { + return request({ + url: '/freshMilkTest/freshMilkTest/' + id, + method: 'get' + }) +} + +// 新增鲜奶生产,成品检验记录 +export function addFreshMilkTest(data) { + return request({ + url: '/freshMilkTest/freshMilkTest', + method: 'post', + data: data + }) +} + +// 修改鲜奶生产,成品检验记录 +export function updateFreshMilkTest(data) { + return request({ + url: '/freshMilkTest/freshMilkTest', + method: 'put', + data: data + }) +} + +// 删除鲜奶生产,成品检验记录 +export function delFreshMilkTest(id) { + return request({ + url: '/freshMilkTest/freshMilkTest/' + id, + method: 'delete' + }) +} + diff --git a/src/api/dairyProducts/yogurtTest/yogurtTest.js b/src/api/dairyProducts/yogurtTest/yogurtTest.js new file mode 100644 index 0000000..0287aa9 --- /dev/null +++ b/src/api/dairyProducts/yogurtTest/yogurtTest.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询酸奶生产,成品检疫记录列表 +export function listYogurtTest(query) { + return request({ + url: '/yogurtTest/yogurtTest/list', + method: 'get', + params: query + }) +} + +// 查询酸奶生产,成品检疫记录详细 +export function getYogurtTest(id) { + return request({ + url: '/yogurtTest/yogurtTest/' + id, + method: 'get' + }) +} + +// 新增酸奶生产,成品检疫记录 +export function addYogurtTest(data) { + return request({ + url: '/yogurtTest/yogurtTest', + method: 'post', + data: data + }) +} + +// 修改酸奶生产,成品检疫记录 +export function updateYogurtTest(data) { + return request({ + url: '/yogurtTest/yogurtTest', + method: 'put', + data: data + }) +} + +// 删除酸奶生产,成品检疫记录 +export function delYogurtTest(id) { + return request({ + url: '/yogurtTest/yogurtTest/' + id, + method: 'delete' + }) +} diff --git a/src/api/drymilk/drymilk.js b/src/api/drymilk/drymilk.js new file mode 100644 index 0000000..da043a8 --- /dev/null +++ b/src/api/drymilk/drymilk.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' + +// 查询干奶记录列表 +export function listDrymilk(query) { + return request({ + url: '/drymilk/drymilk/list', + method: 'get', + params: query + }) +} + +// 查询干奶记录详细 +export function getDrymilk(id) { + return request({ + url: '/drymilk/drymilk/' + id, + method: 'get' + }) +} + +// 根据耳号查询羊只ID +export function getSheepIdByManageTags(manageTags) { + return request({ + url: '/drymilk/drymilk/sheep/' + manageTags, + method: 'get' + }) +} + +// 新增干奶记录 +export function addDrymilk(data) { + return request({ + url: '/drymilk/drymilk', + method: 'post', + data: data + }) +} + +// 修改干奶记录 +export function updateDrymilk(data) { + return request({ + url: '/drymilk/drymilk', + method: 'put', + data: data + }) +} + +// 删除干奶记录 +export function delDrymilk(id) { + return request({ + url: '/drymilk/drymilk/' + id, + method: 'delete' + }) +} \ No newline at end of file diff --git a/src/api/fileManagement/sheep_grouping.js b/src/api/fileManagement/sheep_grouping.js index 2af0cba..fb7d871 100644 --- a/src/api/fileManagement/sheep_grouping.js +++ b/src/api/fileManagement/sheep_grouping.js @@ -9,6 +9,16 @@ export function listSheep_grouping(query) { }) } + +// 查询羊只分组关联列表(联表) +export function listSheep_grouping_join(query) { + return request({ + url: '/sheep_grouping/sheep_grouping/listJoin', + method: 'get', + params: query + }) +} + // 查询羊只分组关联详细 export function getSheep_grouping(id) { return request({ @@ -42,3 +52,12 @@ export function delSheep_grouping(id) { method: 'delete' }) } + +// 根据耳号批量新增分组映射 +export function addByEarTags(data) { + return request({ + url: '/sheep_grouping/sheep_grouping/addByEarTags', + method: 'post', + data + }) +} diff --git a/src/api/mating_plan/generate.js b/src/api/mating_plan/generate.js new file mode 100644 index 0000000..c224fbb --- /dev/null +++ b/src/api/mating_plan/generate.js @@ -0,0 +1,85 @@ +import request from '@/utils/request' + +// 查询配种计划生成列表 +export function listBreedPlanGenerate(query) { + return request({ + url: '/mating_plan/generate/list', + method: 'get', + params: query + }) +} + +// 查询配种计划生成详细 +export function getBreedPlanGenerate(id) { + return request({ + url: '/mating_plan/generate/' + id, + method: 'get' + }) +} + +// 筛选符合条件的母羊 +export function selectEligibleEwe() { + return request({ + url: '/mating_plan/generate/selectEwe', + method: 'get' + }) +} + +// 筛选符合条件的公羊 +export function selectEligibleRam() { + return request({ + url: '/mating_plan/generate/selectRam', + method: 'get' + }) +} + +// 自动生成配种计划 +export function autoGenerateBreedPlan(data) { + return request({ + url: '/mating_plan/generate/auto', + method: 'post', + data: data + }) +} + +// 新增配种计划生成 +export function addBreedPlanGenerate(data) { + return request({ + url: '/mating_plan/generate', + method: 'post', + data: data + }) +} + +// 修改配种计划生成 +export function updateBreedPlanGenerate(data) { + return request({ + url: '/mating_plan/generate', + method: 'put', + data: data + }) +} + +// 审批配种计划 +export function approveBreedPlan(id) { + return request({ + url: '/mating_plan/generate/approve/' + id, + method: 'put' + }) +} + +// 查看配种计划详情 +export function viewBreedPlan(id) { + return request({ + url: '/mating_plan/generate/view/' + id, + method: 'get' + }) +} + +// 删除配种计划生成 +export function delBreedPlanGenerate(id) { + return request({ + url: '/mating_plan/generate/' + id, + method: 'delete' + }) +} \ No newline at end of file diff --git a/src/api/mating_plan/mating_plan.js b/src/api/mating_plan/mating_plan.js new file mode 100644 index 0000000..f856817 --- /dev/null +++ b/src/api/mating_plan/mating_plan.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询配种计划列表 +export function listMating_plan(query) { + return request({ + url: '/mating_plan/mating_plan/list', + method: 'get', + params: query + }) +} + +// 查询配种计划详细 +export function getMating_plan(id) { + return request({ + url: '/mating_plan/mating_plan/' + id, + method: 'get' + }) +} + +// 新增配种计划 +export function addMating_plan(data) { + return request({ + url: '/mating_plan/mating_plan', + method: 'post', + data: data + }) +} + +// 修改配种计划 +export function updateMating_plan(data) { + return request({ + url: '/mating_plan/mating_plan', + method: 'put', + data: data + }) +} + +// 删除配种计划 +export function delMating_plan(id) { + return request({ + url: '/mating_plan/mating_plan/' + id, + method: 'delete' + }) +} diff --git a/src/api/produce/manage_sheep/add_sheep/add_sheep.js b/src/api/produce/manage_sheep/add_sheep.js similarity index 100% rename from src/api/produce/manage_sheep/add_sheep/add_sheep.js rename to src/api/produce/manage_sheep/add_sheep.js diff --git a/src/api/produce/manage_sheep/trans_group/trans_group.js b/src/api/produce/manage_sheep/trans_group.js similarity index 100% rename from src/api/produce/manage_sheep/trans_group/trans_group.js rename to src/api/produce/manage_sheep/trans_group.js diff --git a/src/api/produce/manage_sheep/transition_info/transition_info.js b/src/api/produce/manage_sheep/transition_info.js similarity index 100% rename from src/api/produce/manage_sheep/transition_info/transition_info.js rename to src/api/produce/manage_sheep/transition_info.js diff --git a/src/api/produce/other/castrate/castrate.js b/src/api/produce/other/castrate.js similarity index 100% rename from src/api/produce/other/castrate/castrate.js rename to src/api/produce/other/castrate.js diff --git a/src/api/produce/other/fixHoof/fixHoof.js b/src/api/produce/other/fixHoof.js similarity index 100% rename from src/api/produce/other/fixHoof/fixHoof.js rename to src/api/produce/other/fixHoof.js diff --git a/src/views/Pregnancy_Test/Pregnancy_Test/index.vue b/src/views/Pregnancy_Test/Pregnancy_Test/index.vue new file mode 100644 index 0000000..989d52f --- /dev/null +++ b/src/views/Pregnancy_Test/Pregnancy_Test/index.vue @@ -0,0 +1,294 @@ + + + diff --git a/src/views/biosafety/quarantine/index.vue b/src/views/biosafety/quarantine/index.vue index 5d603c5..b0ad772 100644 --- a/src/views/biosafety/quarantine/index.vue +++ b/src/views/biosafety/quarantine/index.vue @@ -1,49 +1,42 @@ \ No newline at end of file diff --git a/src/views/biosafety/treatment/add.vue b/src/views/biosafety/treatment/add.vue index a1756bb..1fd2571 100644 --- a/src/views/biosafety/treatment/add.vue +++ b/src/views/biosafety/treatment/add.vue @@ -29,7 +29,7 @@
- 羊只类别:{{ sheepInfo.name || '–' }} + 羊只类别:{{ sheepInfo.sheepType || '–' }}
@@ -52,12 +52,12 @@
- 怀孕天数:{{ sheepInfo.gestationDay ?? '–' }}  天 + 怀孕天数:{{ sheepInfo.gestDay ?? '–' }}  天
- 泌乳天数:{{ sheepInfo.lactationDay ?? '–' }}  天 + 泌乳天数:{{ sheepInfo.lactDay ?? '–' }}  天
@@ -67,8 +67,8 @@ class="treatment-form"> - - + + @@ -218,12 +218,12 @@ const sheepInfo = ref({ sheepNo: null, gender: '', variety: '', - name: '', + sheepType: '', monthAge: null, parity: null, breed: '', - lactationDay: null, - gestationDay: null + lactDay: null, + gestDay: null }) const units = ref([]) // 单位下拉选项 @@ -265,12 +265,12 @@ function getSheepInfo() { sheepNo: data.bsManageTags, gender: data.gender, variety: data.variety, - name: data.name, + sheepType: data.name, monthAge: data.monthAge, parity: data.parity, breed: data.breed, - lactationDay: data.lactationDay, - gestationDay: data.gestationDay, + lactDay: data.lactationDay, + gestDay: data.gestationDay, } }) } @@ -332,7 +332,7 @@ function handleDiseaseTypeChange(parentId) { const form = reactive({ eventType: '诊疗', - eventDate: new Date(), // 默认今天 + datetime: new Date(), // 默认今天 diseaseParentId: null, // 疾病大类 diseaseSubtype: null, // 疾病子类型 veterinarian: '', @@ -374,7 +374,7 @@ function submitForm() { const submitData = { ...sheepInfo.value, ...form, - eventDate: form.eventDate ? new Date(form.eventDate).getTime() : null, + datetime: form.datetime ? new Date(form.datetime).getTime() : null, usageDetails: swPresDetailList.value.map(item => ({ mediId: item.mediId, dosage: item.dosage, diff --git a/src/views/biosafety/treatment/index.vue b/src/views/biosafety/treatment/index.vue index 05a7c38..a72e76f 100644 --- a/src/views/biosafety/treatment/index.vue +++ b/src/views/biosafety/treatment/index.vue @@ -1,31 +1,16 @@ - - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + +
+ + {{ item.sheepNo }}({{ item.barnName }}) + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 治疗记录 +
+ 添加药品 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + {{ editForm.sheepNo }} + + + + + {{ editForm.gender }} + + + + + {{ editForm.variety }} + + + + + {{ editForm.sheepType }} + + + + + + + {{ editForm.monthAge }} + + + + + {{ editForm.parity }} + + + + + {{ editForm.breed }} + + + + + {{ editForm.lactDay }}天 + + + + + + + {{ editForm.gestDay }}天 + + + + + + 治疗记录 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 添加药品 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ - + diff --git a/src/views/dairyProducts/freshMilkTest/freshMilkTest/index.vue b/src/views/dairyProducts/freshMilkTest/freshMilkTest/index.vue new file mode 100644 index 0000000..4db694e --- /dev/null +++ b/src/views/dairyProducts/freshMilkTest/freshMilkTest/index.vue @@ -0,0 +1,577 @@ + + + + + \ No newline at end of file diff --git a/src/views/dairyProducts/yogurtTest/yogurtTest/index.vue b/src/views/dairyProducts/yogurtTest/yogurtTest/index.vue new file mode 100644 index 0000000..39f3898 --- /dev/null +++ b/src/views/dairyProducts/yogurtTest/yogurtTest/index.vue @@ -0,0 +1,575 @@ + + + + + \ No newline at end of file diff --git a/src/views/drymilk/drymilk/index.vue b/src/views/drymilk/drymilk/index.vue new file mode 100644 index 0000000..004f40b --- /dev/null +++ b/src/views/drymilk/drymilk/index.vue @@ -0,0 +1,330 @@ + + + \ No newline at end of file diff --git a/src/views/fileManagement/sheep_file/index.vue b/src/views/fileManagement/sheep_file/index.vue index bfbb700..a2af697 100644 --- a/src/views/fileManagement/sheep_file/index.vue +++ b/src/views/fileManagement/sheep_file/index.vue @@ -318,6 +318,9 @@ +
配种类型 + 是否性控 + 入群来源 +
- + + + - - - - - + + + + - + + + + + + + + + + + + + + + + +