生物安全导出修改
This commit is contained in:
@@ -769,7 +769,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleExport() {
|
function handleExport() {
|
||||||
|
queryParams.ids = ids.value;
|
||||||
|
try {
|
||||||
proxy.download('biosafety/deworm/export', { ...queryParams }, `驱虫_${Date.now()}.xlsx`)
|
proxy.download('biosafety/deworm/export', { ...queryParams }, `驱虫_${Date.now()}.xlsx`)
|
||||||
|
} finally {
|
||||||
|
queryParams.ids = null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------ 药品/处方/下拉 ------------------ */
|
/* ------------------ 药品/处方/下拉 ------------------ */
|
||||||
|
|||||||
@@ -325,6 +325,7 @@ const daterangeDatetime = ref([]) // 日期区间
|
|||||||
const queryParams = ref({
|
const queryParams = ref({
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
|
ids: null,
|
||||||
sheepNo: null,
|
sheepNo: null,
|
||||||
allEarNumbers: null,
|
allEarNumbers: null,
|
||||||
datetime: null,
|
datetime: null,
|
||||||
@@ -632,11 +633,13 @@ function handleDelete(row) {
|
|||||||
|
|
||||||
/* ---------- 导出 ---------- */
|
/* ---------- 导出 ---------- */
|
||||||
function handleExport() {
|
function handleExport() {
|
||||||
proxy.download(
|
queryParams.value.ids = ids.value;;
|
||||||
'diagnosis/diagnosis/export',
|
try {
|
||||||
{ ...queryParams.value },
|
proxy.download('diagnosis/diagnosis/export',{ ...queryParams.value },`诊疗_${new Date().getTime()}.xlsx`)
|
||||||
`diagnosis_${new Date().getTime()}.xlsx`
|
} finally {
|
||||||
)
|
queryParams.ids = null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------- 弹窗取消 / 重置 ---------- */
|
/* ---------- 弹窗取消 / 重置 ---------- */
|
||||||
|
|||||||
@@ -18,15 +18,13 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="技术员" prop="technician">
|
<el-form-item label="技术员" prop="technician">
|
||||||
<el-form-item label="技术员">
|
<el-select v-model="queryParams.technician" filterable clearable placeholder="请输入技术员姓名" style="width: 100%"
|
||||||
<el-select v-model="queryParams.technical" filterable clearable placeholder="请输入技术员姓名" style="width: 100%"
|
|
||||||
@change="handleTechnicalChange">
|
@change="handleTechnicalChange">
|
||||||
<el-option v-for="item in technicalOptions" :key="item.value" :label="item.label" :value="item.value">
|
<el-option v-for="item in technicalOptions" :key="item.value" :label="item.label" :value="item.value">
|
||||||
<span style="float: left">{{ item.label }}</span>
|
<span style="float: left">{{ item.label }}</span>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="消毒方式" prop="way">
|
<el-form-item label="消毒方式" prop="way">
|
||||||
<el-select v-model="queryParams.way" clearable placeholder="请选择消毒方式" filterable style="width: 200px">
|
<el-select v-model="queryParams.way" clearable placeholder="请选择消毒方式" filterable style="width: 200px">
|
||||||
<el-option v-for="item in disinfect_type" :key="item.value" :label="item.label" :value="item.value" />
|
<el-option v-for="item in disinfect_type" :key="item.value" :label="item.label" :value="item.value" />
|
||||||
@@ -108,15 +106,13 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="技术员" prop="technician">
|
<el-form-item label="技术员" prop="technician">
|
||||||
<el-form-item label="技术员">
|
<el-select v-model="form.technician" filterable clearable placeholder="请输入技术员姓名" style="width: 100%"
|
||||||
<el-select v-model="form.technical" filterable clearable placeholder="请输入技术员姓名" style="width: 100%"
|
|
||||||
@change="handleTechnicalChange">
|
@change="handleTechnicalChange">
|
||||||
<el-option v-for="item in technicalOptions" :key="item.value" :label="item.label" :value="item.value">
|
<el-option v-for="item in technicalOptions" :key="item.value" :label="item.label" :value="item.value">
|
||||||
<span style="float: left">{{ item.label }}</span>
|
<span style="float: left">{{ item.label }}</span>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
@@ -213,15 +209,13 @@
|
|||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="技术员">
|
<el-form-item label="技术员">
|
||||||
<el-form-item label="技术员">
|
<el-select v-model="editForm.technician" filterable clearable placeholder="请输入技术员姓名" style="width: 100%"
|
||||||
<el-select v-model="editForm.technical" filterable clearable placeholder="请输入技术员姓名" style="width: 100%"
|
|
||||||
@change="handleTechnicalChange">
|
@change="handleTechnicalChange">
|
||||||
<el-option v-for="item in technicalOptions" :key="item.value" :label="item.label" :value="item.value">
|
<el-option v-for="item in technicalOptions" :key="item.value" :label="item.label" :value="item.value">
|
||||||
<span style="float: left">{{ item.label }}</span>
|
<span style="float: left">{{ item.label }}</span>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
@@ -517,7 +511,13 @@ function handleDelete(row) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleExport() {
|
function handleExport() {
|
||||||
|
queryParams.ids = ids.value;
|
||||||
|
try {
|
||||||
proxy.download('biosafety/disinfect/export', { ...queryParams }, `消毒_${Date.now()}.xlsx`)
|
proxy.download('biosafety/disinfect/export', { ...queryParams }, `消毒_${Date.now()}.xlsx`)
|
||||||
|
} finally {
|
||||||
|
queryParams.ids = null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------- 下拉数据 ---------- */
|
/* ---------- 下拉数据 ---------- */
|
||||||
|
|||||||
@@ -801,7 +801,12 @@ function handleDelete(row) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleExport() {
|
function handleExport() {
|
||||||
|
queryParams.ids = ids.value;
|
||||||
|
try {
|
||||||
proxy.download('biosafety/health/export', { ...queryParams }, `保健_${Date.now()}.xlsx`)
|
proxy.download('biosafety/health/export', { ...queryParams }, `保健_${Date.now()}.xlsx`)
|
||||||
|
} finally {
|
||||||
|
queryParams.ids = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------ 药品/处方/下拉 ------------------ */
|
/* ------------------ 药品/处方/下拉 ------------------ */
|
||||||
|
|||||||
@@ -420,7 +420,8 @@ const queryParams = reactive({
|
|||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
sheepNo: null,
|
sheepNo: null,
|
||||||
allEarNumbers: [], // 修改:改为数组,支持多耳号
|
allEarNumbers: [], // 修改:改为数组,支持多耳号
|
||||||
technical: null,
|
technician: null,
|
||||||
|
ids: null,
|
||||||
orderByColumn: null, // 新增
|
orderByColumn: null, // 新增
|
||||||
isAsc: null // 新增
|
isAsc: null // 新增
|
||||||
})
|
})
|
||||||
@@ -797,7 +798,12 @@ function handleDelete(row) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleExport() {
|
function handleExport() {
|
||||||
proxy.download('biosafety/immunity/export', { ...queryParams }, `免疫_${Date.now()}.xlsx`)
|
queryParams.ids = ids.value;
|
||||||
|
try {
|
||||||
|
proxy.download('biosafety/immunity/export', { ...queryParams }, `免疫_${Date.now()}.xlsx`);
|
||||||
|
} finally {
|
||||||
|
queryParams.ids = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------ 药品/处方/下拉 ------------------ */
|
/* ------------------ 药品/处方/下拉 ------------------ */
|
||||||
|
|||||||
@@ -269,7 +269,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<!-- <el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="检疫结果" prop="result">
|
<el-form-item label="检疫结果" prop="result">
|
||||||
<el-select v-model="addForm.result" placeholder="检疫结果">
|
<el-select v-model="addForm.result" placeholder="检疫结果">
|
||||||
@@ -277,7 +277,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row> -->
|
</el-row>
|
||||||
|
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="22">
|
<el-col :span="22">
|
||||||
@@ -428,7 +428,7 @@ const technicalOptions = ref([]) //自定义技术员数组变量
|
|||||||
|
|
||||||
// 获取技术员列表
|
// 获取技术员列表
|
||||||
const fetchTechnicalList = () => {
|
const fetchTechnicalList = () => {
|
||||||
getUserByPost({ postCode: "" })
|
getUserByPost({ postCode: '' })
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === 200 && Array.isArray(res.data)) {
|
if (res.code === 200 && Array.isArray(res.data)) {
|
||||||
technicalOptions.value = res.data.map(item => ({
|
technicalOptions.value = res.data.map(item => ({
|
||||||
@@ -867,11 +867,12 @@ function handleDelete(row) {
|
|||||||
|
|
||||||
/* 导出 */
|
/* 导出 */
|
||||||
function handleExport() {
|
function handleExport() {
|
||||||
proxy.download(
|
queryParams.ids = ids.value;
|
||||||
'/biosafety/quarantine/export',
|
try {
|
||||||
queryParams,
|
proxy.download('/biosafety/quarantine/export', queryParams, `检疫_${Date.now()}.xlsx`)
|
||||||
`检疫_${Date.now()}.xlsx`
|
} finally {
|
||||||
)
|
queryParams.ids = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 跳转治疗 */
|
/* 跳转治疗 */
|
||||||
|
|||||||
@@ -1028,7 +1028,13 @@ function handleDelete(row) {
|
|||||||
.then(() => { getList(); proxy.$modal.msgSuccess('删除成功') })
|
.then(() => { getList(); proxy.$modal.msgSuccess('删除成功') })
|
||||||
}
|
}
|
||||||
function handleExport() {
|
function handleExport() {
|
||||||
|
queryParams.ids = ids.value;
|
||||||
|
try {
|
||||||
proxy.download('treatment/treatment/export', { ...queryParams }, `治疗记录_${Date.now()}.xlsx`)
|
proxy.download('treatment/treatment/export', { ...queryParams }, `治疗记录_${Date.now()}.xlsx`)
|
||||||
|
} finally {
|
||||||
|
queryParams.ids = null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
function resetForm(formObj) {
|
function resetForm(formObj) {
|
||||||
Object.assign(formObj, {
|
Object.assign(formObj, {
|
||||||
|
|||||||
@@ -109,6 +109,7 @@
|
|||||||
|
|
||||||
<!-- 数据表格 -->
|
<!-- 数据表格 -->
|
||||||
<el-table v-loading="loading" :data="usageList" @selection-change="handleSelectionChange" max-height="650px">
|
<el-table v-loading="loading" :data="usageList" @selection-change="handleSelectionChange" max-height="650px">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column label="使用时间" align="center" prop="datetime" width="180">
|
<el-table-column label="使用时间" align="center" prop="datetime" width="180">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span>{{ parseTime(scope.row.datetime, '{y}-{m}-{d}') }}</span>
|
<span>{{ parseTime(scope.row.datetime, '{y}-{m}-{d}') }}</span>
|
||||||
@@ -210,6 +211,7 @@ import { searchEarNumbers } from '@/api/common/sheep'
|
|||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
const { pres_type } = proxy.useDict('pres_type')
|
const { pres_type } = proxy.useDict('pres_type')
|
||||||
|
|
||||||
|
const ids = ref([]) // 选中项ID列表
|
||||||
const usageList = ref([])
|
const usageList = ref([])
|
||||||
const swMedicineUsageDetailsList = ref([])
|
const swMedicineUsageDetailsList = ref([])
|
||||||
const open = ref(false)
|
const open = ref(false)
|
||||||
@@ -473,11 +475,13 @@ function rowSwMedicineUsageDetailsIndex({ rowIndex }) {
|
|||||||
return `row-${rowIndex}`
|
return `row-${rowIndex}`
|
||||||
}
|
}
|
||||||
function handleExport() {
|
function handleExport() {
|
||||||
proxy.download(
|
queryParams.value.ids = ids.value;
|
||||||
'biosafety/usageInfo/export',
|
try {
|
||||||
{ ...queryParams.value },
|
proxy.download('biosafety/usageInfo/export',{ ...queryParams.value },`药品使用记录_${new Date().getTime()}.xlsx`)
|
||||||
`药品使用记录_${new Date().getTime()}.xlsx`
|
} finally {
|
||||||
)
|
queryParams.ids = null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 初始化 */
|
/* 初始化 */
|
||||||
|
|||||||
Reference in New Issue
Block a user