diff --git a/src/api/feed/FeedList.js b/src/api/feed/FeedList.js
new file mode 100644
index 0000000..50e8a9d
--- /dev/null
+++ b/src/api/feed/FeedList.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询配料清单列表
+export function listFeedList(query) {
+ return request({
+ url: '/feed/FeedList/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询配料清单详细
+export function getFeedList(id) {
+ return request({
+ url: '/feed/FeedList/' + id,
+ method: 'get'
+ })
+}
+
+// 新增配料清单
+export function addFeedList(data) {
+ return request({
+ url: '/feed/FeedList',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改配料清单
+export function updateFeedList(data) {
+ return request({
+ url: '/feed/FeedList',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除配料清单
+export function delFeedList(id) {
+ return request({
+ url: '/feed/FeedList/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/views/biosafety/deworm/index.vue b/src/views/biosafety/deworm/index.vue
index 5ef0111..bda6153 100644
--- a/src/views/biosafety/deworm/index.vue
+++ b/src/views/biosafety/deworm/index.vue
@@ -2,13 +2,13 @@
-
-
-
+
+
+
@@ -29,6 +29,9 @@
+
+ {{ parseTime(scope.row.datetime, '{y}-{m}-{d}') }}
+
@@ -40,9 +43,6 @@
-
- {{ parseTime(scope.row.datetime, '{y}-{m}-{d}') }}
-
@@ -191,7 +191,7 @@
-
+
@@ -225,7 +225,7 @@
-
+
diff --git a/src/views/biosafety/diagnosis/index.vue b/src/views/biosafety/diagnosis/index.vue
index b31e92a..21decfb 100644
--- a/src/views/biosafety/diagnosis/index.vue
+++ b/src/views/biosafety/diagnosis/index.vue
@@ -2,14 +2,13 @@
-
-
-
-
-
+
+
+
+
-
+
{{ parseTime(scope.row.datetime, '{y}-{m}-{d}') }}
@@ -127,8 +126,7 @@
-
+
diff --git a/src/views/biosafety/disease/index.vue b/src/views/biosafety/disease/index.vue
index 0138522..28a3979 100644
--- a/src/views/biosafety/disease/index.vue
+++ b/src/views/biosafety/disease/index.vue
@@ -82,6 +82,7 @@ const title = ref("")
const isExpandAll = ref(true)
const refreshTable = ref(true)
+
const data = reactive({
form: {},
queryParams: {
@@ -99,6 +100,7 @@ const { queryParams, form, rules } = toRefs(data)
function getList() {
loading.value = true
listDisease(queryParams.value).then(response => {
+
diseaseList.value = proxy.handleTree(response.data, "id", "pid")
loading.value = false
})
@@ -107,10 +109,7 @@ function getList() {
/** 查询疾病下拉树结构 */
function getTreeselect() {
listDisease().then(response => {
- diseaseOptions.value = []
- const data = { id: 0, name: '疾病', children: [] }
- data.children = proxy.handleTree(response.data, "id", "pid")
- diseaseOptions.value.push(data)
+ diseaseOptions.value = response.data.filter(item => item.pid === 0)
})
}
diff --git a/src/views/biosafety/disinfect/index.vue b/src/views/biosafety/disinfect/index.vue
index fe5cabe..6064be9 100644
--- a/src/views/biosafety/disinfect/index.vue
+++ b/src/views/biosafety/disinfect/index.vue
@@ -2,17 +2,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
@@ -34,13 +43,21 @@
-
- {{ parseTime(scope.row.datetime, '{y}-{m}-{d}') }}
+
+
+ {{ parseTime(scope.row.datetime, '{y}-{m}-{d}') }}
+
+
-
+
+
+
+
+
+
@@ -66,8 +83,10 @@
+
-
+
@@ -82,7 +101,7 @@
-
+
@@ -90,8 +109,10 @@
-
-
+
+
+
+
@@ -169,8 +190,10 @@
+
-
+
@@ -186,7 +209,9 @@
-
+
+
+
@@ -214,14 +239,14 @@
-
+
-
+
@@ -267,8 +292,9 @@ import request from '@/utils/request'
import { parseTime } from '@/utils/ruoyi'
const { proxy } = getCurrentInstance()
+const { disinfect_type } = proxy.useDict('disinfect_type')
-/* ------------------ 列表 ------------------ */
+/* ---------- 列表 ---------- */
const loading = ref(true)
const showSearch = ref(true)
const total = ref(0)
@@ -318,13 +344,25 @@ function resetQuery() {
handleQuery()
}
-/* ------------------ 新增弹窗 ------------------ */
+/* ---------- 新增弹窗 ---------- */
const openAdd = ref(false)
const titleAdd = ref('新增消毒记录')
+
+// 5️⃣ 默认当前分钟
+const nowMinute = () => {
+ const d = new Date()
+ const Y = d.getFullYear()
+ const M = String(d.getMonth() + 1).padStart(2, '0')
+ const D = String(d.getDate()).padStart(2, '0')
+ const h = String(d.getHours()).padStart(2, '0')
+ const m = String(d.getMinutes()).padStart(2, '0')
+ return `${Y}-${M}-${D} ${h}:${m}`
+}
+
const form = reactive({
id: null,
technician: '',
- datetime: new Date().toISOString().split('T')[0],
+ datetime: new Date().toISOString().slice(0, 10),
way: '',
ratio: '',
comment: '',
@@ -337,7 +375,7 @@ function resetAdd() {
Object.assign(form, {
id: null,
technician: '',
- datetime: new Date().toISOString().split('T')[0],
+ datetime: new Date().toISOString().slice(0, 10),
way: '',
ratio: '',
comment: '',
@@ -372,13 +410,13 @@ function submitAdd() {
})
}
-/* ------------------ 修改弹窗 ------------------ */
+/* ---------- 修改弹窗 ---------- */
const openEdit = ref(false)
const titleEdit = ref('修改消毒记录')
const editForm = reactive({
id: null,
technician: '',
- datetime: new Date().toISOString().split('T')[0],
+ datetime: nowMinute(),
way: '',
ratio: '',
comment: '',
@@ -391,7 +429,7 @@ function resetEdit() {
Object.assign(editForm, {
id: null,
technician: '',
- datetime: new Date().toISOString().split('T')[0],
+ datetime: nowMinute(),
way: '',
ratio: '',
comment: '',
@@ -405,6 +443,8 @@ function handleUpdate(row) {
resetEdit()
const id = row.id || ids.value[0]
getDisinfect(id).then(res => {
+ // 后端返回的是时间戳,转成 YYYY-MM-DD HH:mm 字符串方便 el-date-picker 回显
+ editForm.datetime = parseTime(res.data.datetime, '{y}-{m}-{d} {h}:{i}')
Object.assign(editForm, res.data)
editDetails.value = res.data.usageDetails || []
openEdit.value = true
@@ -431,7 +471,7 @@ function submitEdit() {
})
}
-/* ------------------ 功能 ------------------ */
+/* ---------- 功能 ---------- */
function handleDelete(row) {
const _ids = row.id || ids.value
proxy.$modal.confirm('是否确认删除选中的数据?').then(() => delDisinfect(_ids)).then(() => {
@@ -444,7 +484,7 @@ function handleExport() {
proxy.download('biosafety/disinfect/export', { ...queryParams }, `disinfect_${Date.now()}.xlsx`)
}
-/* ------------------ 下拉数据 ------------------ */
+/* ---------- 下拉数据 ---------- */
const barns = ref([])
const presOptions = ref([])
const units = ref([])
@@ -454,10 +494,12 @@ const medicines = ref([])
/* 校验规则 */
const rules = {
sheepfoldIds: [{ required: true, message: '请选择羊舍', trigger: 'change' }],
+ technician: [{ required: true, message: '请输入技术员', trigger: 'blur' }],
+ way: [{ required: true, message: '请选择消毒方式', trigger: 'change' }],
datetime: [{ required: true, message: '请选择日期', trigger: 'change' }]
}
-/* 处方选择事件 - 新增 */
+/* 处方选择事件 */
function handleSelectPrescription(id) {
if (!id) return
getPrescription(id).then(res => {
@@ -469,8 +511,6 @@ function handleSelectPrescription(id) {
})) || []
})
}
-
-/* 处方选择事件 - 修改 */
function handleSelectPrescriptionEdit(id) {
if (!id) return
getPrescription(id).then(res => {
@@ -483,20 +523,18 @@ function handleSelectPrescriptionEdit(id) {
})
}
-/* 明细添加行 - 新增 */
+/* 明细添加行 */
function handleAddDetail() {
usageDetails.value.push({ mediId: null, dosage: 0, unit: null, usageId: null, manufacturer: null, batchNumber: null })
}
-
-/* 明细添加行 - 修改 */
function handleAddDetailEdit() {
editDetails.value.push({ mediId: null, dosage: 0, unit: null, usageId: null, manufacturer: null, batchNumber: null })
}
-/* ------------------ 初始加载 ------------------ */
+/* ---------- 初始加载 ---------- */
onMounted(() => {
getList()
- /* 加载本地羊舍 */
+ /* 本地羊舍下拉 */
request({ url: '/sheepfold_management/sheepfold_management/list', method: 'get' }).then(res => {
barns.value = res.rows
})
diff --git a/src/views/biosafety/health/index.vue b/src/views/biosafety/health/index.vue
index c284e5d..aae4661 100644
--- a/src/views/biosafety/health/index.vue
+++ b/src/views/biosafety/health/index.vue
@@ -2,13 +2,13 @@
-
-
-
+
+
+
@@ -29,6 +29,9 @@
+
+ {{ parseTime(scope.row.datetime, '{y}-{m}-{d}') }}
+
@@ -40,9 +43,7 @@
-
- {{ parseTime(scope.row.datetime, '{y}-{m}-{d}') }}
-
+
@@ -122,7 +123,7 @@
-
+
diff --git a/src/views/biosafety/immunity/index.vue b/src/views/biosafety/immunity/index.vue
index dffa551..d260fe9 100644
--- a/src/views/biosafety/immunity/index.vue
+++ b/src/views/biosafety/immunity/index.vue
@@ -2,13 +2,13 @@
-
-
-
+
+
+
@@ -29,6 +29,9 @@
+
+ {{ parseTime(scope.row.datetime, '{y}-{m}-{d}') }}
+
@@ -40,9 +43,6 @@
-
- {{ parseTime(scope.row.datetime, '{y}-{m}-{d}') }}
-
diff --git a/src/views/biosafety/prescription/index.vue b/src/views/biosafety/prescription/index.vue
index 82ac02e..c9c156f 100644
--- a/src/views/biosafety/prescription/index.vue
+++ b/src/views/biosafety/prescription/index.vue
@@ -51,17 +51,19 @@
+
-
+
详情
修改
- {{ scope.row.status?"禁用":"启用" }}
+ {{
+ scope.row.status?"禁用":"启用" }}
删除
diff --git a/src/views/biosafety/quarantine/index.vue b/src/views/biosafety/quarantine/index.vue
index 5afd0c5..945e4ee 100644
--- a/src/views/biosafety/quarantine/index.vue
+++ b/src/views/biosafety/quarantine/index.vue
@@ -2,13 +2,37 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
搜索
重置
@@ -31,11 +55,13 @@
-
-
-
+
+
+
+
+
@@ -45,19 +71,22 @@
-
+
+
+
-
+
+
+
检疫
-
- 治疗
-
+ 治疗
删除
@@ -70,20 +99,25 @@
-
+
-
-
耳号不存在
-
已添加
-
该羊只已选择
+
+ 耳号不存在
+ 已添加
+ 该羊只已选择
-
- {{ id }}
+ {{ item.ear }}
@@ -121,22 +155,27 @@
-
+
+
+
-
+
+
+
+
-
+
-
+
@@ -153,11 +192,10 @@
+
-
-
-
+
@@ -176,7 +214,7 @@
- {{ editForm.monthAge }}
+ {{ editForm.monthAge }}
@@ -243,7 +281,13 @@
\ No newline at end of file
diff --git a/src/views/biosafety/treatment/index.vue b/src/views/biosafety/treatment/index.vue
index 54fe254..01d46f9 100644
--- a/src/views/biosafety/treatment/index.vue
+++ b/src/views/biosafety/treatment/index.vue
@@ -2,13 +2,13 @@
-
-
-
+
+
+
@@ -38,6 +38,11 @@
+
+
+ {{ parseTime(scope.row.datetime, '{y}-{m}-{d}') }}
+
+
@@ -49,11 +54,6 @@
-
-
- {{ parseTime(scope.row.datetime, '{y}-{m}-{d}') }}
-
-
diff --git a/src/views/biosafety/usageInfo/index.vue b/src/views/biosafety/usageInfo/index.vue
index 2798caf..1382e6c 100644
--- a/src/views/biosafety/usageInfo/index.vue
+++ b/src/views/biosafety/usageInfo/index.vue
@@ -13,7 +13,7 @@
-
@@ -22,7 +22,7 @@
重置
-
+
@@ -35,17 +35,18 @@
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{m}') }}
+
+
-
-
- {{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{m}:{s}') }}
-
-
+
- {{ parseTime(form.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
+ {{ parseTime(form.createTime, '{y}-{m}-{d} {h}:{i}') }}
diff --git a/src/views/feed/FeedList/index.vue b/src/views/feed/FeedList/index.vue
new file mode 100644
index 0000000..5b1f464
--- /dev/null
+++ b/src/views/feed/FeedList/index.vue
@@ -0,0 +1,292 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.deployDate, '{y}-{m}-{d}') }}
+
+
+
+
+ 详情
+ 修改
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ showFeedList.formulaId }}
+ {{ showFeedList.formulaBatchId }}
+ {{ showFeedList.rootFormula.feedStage }}
+
+
+ 配料列表
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (scope.row.ratio / 100 * showFeedList.rootPlan.planMorningSize).toFixed(2) }}
+
+
+
+
+ {{ (scope.row.ratio / 100 * showFeedList.rootPlan.planNoonSize).toFixed(2) }}
+
+
+
+
+ {{ (scope.row.ratio / 100 * showFeedList.rootPlan.planAfternoonSize).toFixed(2) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/produce/bodyManage/body_measure/index.vue b/src/views/produce/bodyManage/body_measure/index.vue
index bca09c7..70e7936 100644
--- a/src/views/produce/bodyManage/body_measure/index.vue
+++ b/src/views/produce/bodyManage/body_measure/index.vue
@@ -4,6 +4,14 @@
+
+
+
+
+
+
@@ -13,24 +21,16 @@
-
+
-
-
-
-
-
-
搜索
重置
@@ -59,17 +59,20 @@
-
-
-
-
-
-
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
+
+
{{ parseTime(scope.row.measureDate, '{y}-{m}-{d}') }}
+
+
+
+
@@ -90,25 +93,21 @@
-
{{ scope.row.breedStatusName || '未设置' }}
-
{{ scope.row.lactationDay || '-' }}
-
{{ scope.row.gestationDay || '-' }}
-
{{ scope.row.postMatingDay || '-' }}
@@ -117,11 +116,6 @@
-
-
- {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
-
-
{
getList()
diff --git a/src/views/produce/bodyManage/body_score/index.vue b/src/views/produce/bodyManage/body_score/index.vue
index 3798777..28a2cd5 100644
--- a/src/views/produce/bodyManage/body_score/index.vue
+++ b/src/views/produce/bodyManage/body_score/index.vue
@@ -4,6 +4,14 @@
+
+
+
+
+
+
@@ -13,26 +21,15 @@
-
-
-
-
+
-
-
-
-
搜索
重置
@@ -63,25 +60,25 @@
-
-
-
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
+
+
{{ parseTime(scope.row.datetime, '{y}-{m}-{d}') }}
+
+
+
-
-
- {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
-
-
+
+
+
+
+
+
@@ -13,25 +21,16 @@
-
-
-
-
-
-
搜索
重置
-
-
-
-
-
-
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
+
+
{{ parseTime(scope.row.eventDate, '{y}-{m}-{d}') }}
+
+
+
@@ -74,11 +76,6 @@
-
-
- {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
-
-
-
-
-
- 将文件拖到此处,或点击上传
-
-
- 下载模板
- 确 定
-
-
+
+
+
+
+ 将文件拖到此处,或点击上传
+
+
+ 下载模板
+ 确 定
+
+
+
\ No newline at end of file
diff --git a/src/views/produce/manage_sheep/transition_info/index.vue b/src/views/produce/manage_sheep/transition_info/index.vue
index 51c4fd2..1ced6d2 100644
--- a/src/views/produce/manage_sheep/transition_info/index.vue
+++ b/src/views/produce/manage_sheep/transition_info/index.vue
@@ -2,14 +2,36 @@
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -25,10 +47,6 @@
-
-
-
搜索
重置
@@ -41,10 +59,10 @@
新增
-
+
删除
@@ -59,9 +77,21 @@
-
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}') }}
+
+
+
+
+ {{ parseTime(scope.row.transitionDate, '{y}-{m}-{d}') }}
+
+
+
+
+
-
+
@@ -69,18 +99,19 @@
-
-
-
-
+
- {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
+ 待审批
+ 审批完成
+ 未知状态
-
+
+
+
审批
+ v-hasPermi="['transition_info:transition_info:approve']" :disabled="scope.row.status !== 0">审批
删除
@@ -94,33 +125,51 @@
-
-
-
+
+
+
+
+
+ 已选 {{ form.manageTags.length }} 个
+
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -143,6 +192,9 @@
+
+
+
@@ -161,6 +213,12 @@
+
+
+
+
+
@@ -174,7 +232,7 @@
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/src/views/produce/other/castrate/index.vue b/src/views/produce/other/castrate/index.vue
index 8d48ff4..873e55b 100644
--- a/src/views/produce/other/castrate/index.vue
+++ b/src/views/produce/other/castrate/index.vue
@@ -2,28 +2,24 @@
+
+
+
-
-
-
-
-
-
-
搜索
重置
@@ -56,17 +52,18 @@
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}') }}
+
+
-
+
+
-
-
- {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
-
-
@@ -85,11 +82,16 @@
-
-
-
+
+
+
+
+
+ 已选 {{ form.manageTags.length }} 个
+
+
@@ -405,7 +407,7 @@ function submitForm() {
//删除
function handleDelete(row) {
const _ids = row.id || ids.value
- proxy.$modal.confirm(`是否确认删除去势编号为"${_ids}"的数据项?`).then(() => {
+ proxy.$modal.confirm(`是否确认删除这条记录数据`).then(() => {
return delCastrate(_ids)
}).then(() => {
getList()
@@ -431,4 +433,14 @@ onMounted(() => {
getVarietyOptions()
getList()
})
-
\ No newline at end of file
+
+
+
\ 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 40da417..bc4c586 100644
--- a/src/views/produce/other/fixHoof/index.vue
+++ b/src/views/produce/other/fixHoof/index.vue
@@ -1,11 +1,14 @@
+
+
+
-
@@ -16,12 +19,6 @@
-
-
-
-
-
搜索
重置
@@ -53,17 +50,18 @@
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}') }}
+
+
-
+
+
-
-
- {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
-
-
@@ -82,11 +80,16 @@
-
-
-
+
+
+
+
+
+ 已选 {{ form.manageTags.length }} 个
+
+
@@ -219,9 +222,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;
}
}
@@ -345,7 +348,7 @@ function submitForm() {
//删除
function handleDelete(row) {
const _ids = row.id || ids.value
- proxy.$modal.confirm(`是否确认删除修蹄编号为"${_ids}"的数据项?`).then(() => {
+ proxy.$modal.confirm(`是否确认删除这条记录数据`).then(() => {
return delFixHoof(_ids)
}).then(() => {
getList()
@@ -371,4 +374,14 @@ onMounted(() => {
getVarietyOptions()
getList()
})
-
\ No newline at end of file
+
+
+
\ No newline at end of file