From c44b2da61967e1676f66a03063e0816b50ca4ad9 Mon Sep 17 00:00:00 2001 From: zyh <2066096076@qq.com> Date: Tue, 19 Aug 2025 17:09:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=83=A8=E5=88=86bug=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=EF=BC=8C=E5=88=9B=E5=BB=BA=E6=97=A5=E6=9C=9F=E7=B2=BE=E7=A1=AE?= =?UTF-8?q?=E5=88=B0=E5=87=A0=E7=82=B9=E5=87=A0=E5=88=86=EF=BC=8C=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E6=94=BE=E6=9C=80=E5=89=8D=E9=9D=A2=EF=BC=8C=E8=BD=AC?= =?UTF-8?q?=E5=9C=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../produce/bodyManage/body_measure/index.vue | 44 +-- .../produce/bodyManage/body_score/index.vue | 41 +-- .../bodyManage/breast_rating/index.vue | 37 +- .../produce/manage_sheep/add_sheep/index.vue | 70 ++-- .../manage_sheep/changeComment/index.vue | 44 ++- .../produce/manage_sheep/changeEar/index.vue | 44 ++- .../manage_sheep/changeVariety/index.vue | 43 ++- .../manage_sheep/trans_group/index.vue | 328 +++++++++++------- .../manage_sheep/transition_info/index.vue | 245 ++++++++++--- src/views/produce/other/castrate/index.vue | 54 +-- src/views/produce/other/fixHoof/index.vue | 57 +-- 11 files changed, 655 insertions(+), 352 deletions(-) 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..4c99430 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 From 1fd3521d3492c9cfa6c953efde0232d4ea1995d2 Mon Sep 17 00:00:00 2001 From: zyh <2066096076@qq.com> Date: Tue, 19 Aug 2025 18:00:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=BD=AC=E7=BE=A4=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage_sheep/trans_group/index.vue | 78 +++++++++---------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/src/views/produce/manage_sheep/trans_group/index.vue b/src/views/produce/manage_sheep/trans_group/index.vue index 0589400..d6e517d 100644 --- a/src/views/produce/manage_sheep/trans_group/index.vue +++ b/src/views/produce/manage_sheep/trans_group/index.vue @@ -38,11 +38,11 @@ - + 搜索 重置 @@ -85,20 +85,20 @@ - + - 审批 - + --> 删除 @@ -178,7 +178,7 @@ - + @@ -240,9 +240,9 @@ const title = ref(''); const daterangeTransDate = ref([]); const daterangeCreateTime = ref([]); const eventTypeOptions = trans_group_event_type || []; -const approveDialog = ref(false); -const approveForm = ref({}); -const displayManageTags = ref(''); +// const approveDialog = ref(false); +// const approveForm = ref({}); +// const displayManageTags = ref(''); const sheepOptions = ref([]); const sheepfoldOptions = ref([]); const sheepfoldNameMap = ref({}); @@ -699,38 +699,38 @@ function handleExport() { } // 审核 -function handleApprove(row) { - approveForm.value = { ...row }; - approveDialog.value = true; - displayManageTags.value = row.manageTags; -} +//function handleApprove(row) { +// approveForm.value = { ...row }; +// approveDialog.value = true; +// displayManageTags.value = row.manageTags; +// } // 审批同意 -function handleApproveAgree() { - if (typeof approveForm.value.foldTo !== 'number') { - approveForm.value.foldTo = Number(approveForm.value.foldTo); - } +// function handleApproveAgree() { +// if (typeof approveForm.value.foldTo !== 'number') { +// approveForm.value.foldTo = Number(approveForm.value.foldTo); +// } - approveForm.value.status = 1; - approveScTransGroup(approveForm.value).then(() => { - approveDialog.value = false; - proxy.$modal.msgSuccess('审批通过,羊只所在羊舍已更新'); - getList(); - }).catch(error => { - proxy.$modal.msgError(`审批失败:${error.message}`); - }); -} +// approveForm.value.status = 1; +// approveScTransGroup(approveForm.value).then(() => { +// approveDialog.value = false; +// proxy.$modal.msgSuccess('审批通过,羊只所在羊舍已更新'); +// getList(); +// }).catch(error => { +// proxy.$modal.msgError(`审批失败:${error.message}`); +// }); +// } -function handleApproveReject() { - approveForm.value.status = 2; - approveScTransGroup(approveForm.value).then(() => { - approveDialog.value = false; - proxy.$modal.msgSuccess('审批已驳回'); - getList(); - }).catch(error => { - proxy.$modal.msgError(`审批失败:${error.message}`); - }); -} +// function handleApproveReject() { +// approveForm.value.status = 2; +// approveScTransGroup(approveForm.value).then(() => { +// approveDialog.value = false; +// proxy.$modal.msgSuccess('审批已驳回'); +// getList(); +// }).catch(error => { +// proxy.$modal.msgError(`审批失败:${error.message}`); +// }); +// } //加载羊舍数据 function loadSheepfold() {