|
@@ -5,7 +5,8 @@ import { getMonthTable, getDeviceList } from '@/api/report/lab';
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
|
|
const queryParams = ref({
|
|
|
- activeRadioName: 'week'
|
|
|
+ activeRadioName: 'week',
|
|
|
+ deviceNo: ''
|
|
|
});
|
|
|
|
|
|
const tableLoading = ref(false);
|
|
@@ -68,17 +69,17 @@ const columns = [
|
|
|
{
|
|
|
label: '亚硝酸盐',
|
|
|
children: [
|
|
|
- { label: "标称值", prop: 'name', width: 100 },
|
|
|
- { label: "化验值", prop: 'name', width: 100 },
|
|
|
- { label: "偏差度", prop: 'name', width: 100 }
|
|
|
+ { label: "标称值", prop: 'yxsyArrayCounts', width: 100 },
|
|
|
+ { label: "化验值", prop: 'yxsyPassedCounts', width: 100 },
|
|
|
+ { label: "偏差度", prop: 'yxsyDeviationRate', width: 100 }
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
label: '正磷酸盐',
|
|
|
children: [
|
|
|
- { label: "质控次数", prop: 'yxsyArrayCounts', width: 100 },
|
|
|
- { label: "质控合格数", prop: 'yxsyPassedCounts', width: 100 },
|
|
|
- { label: "质控合格率", prop: 'yxsyDeviationRate', width: 100 }
|
|
|
+ { label: "质控次数", prop: 'zlsyArrayCounts', width: 100 },
|
|
|
+ { label: "质控合格数", prop: 'zlsyPassedCounts', width: 100 },
|
|
|
+ { label: "质控合格率", prop: 'zlsyDeviationRate', width: 100 }
|
|
|
]
|
|
|
},
|
|
|
]
|
|
@@ -129,7 +130,8 @@ const handlerQuery = () => {
|
|
|
|
|
|
const handlerReset = () => {
|
|
|
datePickerValue.value = new Date();
|
|
|
- queryParams.value.activeRadioName = 'week'
|
|
|
+ queryParams.value.activeRadioName = 'week';
|
|
|
+ queryParams.value.deviceNo = ''
|
|
|
}
|
|
|
|
|
|
const handleExport = () => {
|
|
@@ -138,11 +140,12 @@ const handleExport = () => {
|
|
|
|
|
|
proxy.getDownload("/business/exportAssayCountListByDates", {
|
|
|
...dateResult,
|
|
|
+ deviceNo: queryParams.value.deviceNo
|
|
|
}, `${new Date().getTime()}.xlsx`);
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
|
- getDeviceList().then(({ data }) => {
|
|
|
+ getDeviceList({type: 1}).then(({ data }) => {
|
|
|
options.value = data
|
|
|
});
|
|
|
initPageData();
|
|
@@ -161,7 +164,7 @@ onMounted(() => {
|
|
|
<el-row class="pt-[5px]" justify="space-between" :gutter="20">
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="设备编号">
|
|
|
- <el-select v-model="queryParams.deviceNo" placeholder="请选择" filterable>
|
|
|
+ <el-select v-model="queryParams.deviceNo" placeholder="请选择" filterable clearable>
|
|
|
<el-option v-for="item in options" :key="item.deviceNo" :label="item.deviceName" :value="item.deviceNo" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|