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 @@ - + @@ -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() {