省级平台在正式检测时增加温度、相对湿度参数

This commit is contained in:
caozehui
2025-05-15 08:57:24 +08:00
parent 2a53f577aa
commit 098ab3a41d
5 changed files with 161 additions and 17 deletions

View File

@@ -3,6 +3,7 @@ import {CHECK_STORE_KEY} from "@/stores/constant";
import type {CheckData} from "@/api/check/interface";
import type {Plan} from '@/api/plan/interface'
import {useAppSceneStore} from "@/stores/modules/mode";
import { set } from "lodash";
const AppSceneStore = useAppSceneStore()
export const useCheckStore = defineStore("check", {
@@ -14,7 +15,9 @@ export const useCheckStore = defineStore("check", {
selectTestItems: Object<CheckData.SelectTestItem>({preTest: true, timeTest: false, channelsTest: false, test: true}),
checkType:1, // 0:手动检测 1:自动检测
reCheckType: 1, // 0:不合格项复检 1:全部复检
showDetailType: 0 // 0:数据查询 1:误差体系跟换 2正式检测
showDetailType: 0 ,// 0:数据查询 1:误差体系跟换 2正式检测
temperature: 0,
humidity: 0
}),
getters: {},
@@ -49,6 +52,12 @@ export const useCheckStore = defineStore("check", {
},
setShowDetailType(showDetailType: number) {
this.showDetailType = showDetailType
},
setTemperature(temperature: number) {
this.temperature = temperature
},
setHumidity(humidity: number) {
this.humidity = humidity
}
}
});