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/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 }}天 + + + + + + 治疗记录 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 添加药品 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ - +