<!-- 核查数据管理详情--核查项---第13套:示波器 --> <script lang="ts" setup name="checkDataDetail"> import { ref, watch } from 'vue' import { ElLoading, ElMessage } from 'element-plus' import saveCheckRecord from '../../dialog/saveCheckRecord.vue' import { clearDateValue, handleDetailTableTableHead, handleSaveDateParams, solveHistoryIndicationTableData } from '../useStabilityCaculate' import type { IList } from './thirteenth-interface' import type { TableColumn } from '@/components/NormalTable/table_interface' import useUserStore from '@/store/modules/user' import type { dictType } from '@/global' import { getDictByCode } from '@/api/system/dict' import { useCheckList } from '@/commonMethods/useCheckList' import multiTable from '@/components/MultiHeaderTable/index.vue' import { addCheckData, calculateHandle, getHistoryIndication, getInfo, updateCheckData } from '@/api/equipment/standard/checkData' import { getCheckItemDetail, getJobInstructionList } from '@/api/equipment/standard/book' import { useGroup } from '@/commonMethods/useGroup' const props = defineProps({ selectStandardId: { // 选择的标准库id type: String, }, pageType: { // 页面类型 type: String, }, checkDate: { // 核查日期 type: String, }, }) const emits = defineEmits(['isConfigCheck']) const user = useUserStore() // 用户信息 const $router = useRouter() // 关闭页面使用 const $route = useRoute() // 路由参数 const infoId = ref('') const belongStandardEquipment = ref('13') const itemCategoryId = ref('') // 核查项分类id const itemCategoryName = ref('') // 核查项分类名称 const form = ref({ remark: '/', // 备注 qualified: '', // 稳定性考核是否合格 }) const equipmentId = ref('') // 智能模型id const dateArrStability = ref<string[]>([]) // 稳定性日期数组 const currentDate = ref('') // 要查询历史稳定性的日期 // ----------------------------------路由参数------------------------------------------------ if ($route.params && $route.params.type) { if ($route.params.id) { infoId.value = $route.params.id as string } } // ----------------------------------------核查数据---------------------------------------------- const radioMenus = ref([ // 标签内容 { name: '重复性', value: 'repeatability' }, { name: '稳定性', value: 'stability' }, ]) const current = ref('repeatability') // 选择的tab 默认基本信息 const columns_repeatability_timeMark = ref<TableColumn[]>([ // 重复性表头--时标、方波电压(50Ω)、方波电压(1Ω)、直流电压(50Ω)、直流电压(1Ω)、输入阻抗 { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '测量值', value: 'indicatingValue', align: 'center', required: false, width: '160', children: [ { text: 'X1', value: 'testValueOne', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: 'X2', value: 'testValueTwo', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: 'X3', value: 'testValueThree', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: 'X4', value: 'testValueFour', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: 'X5', value: 'testValueFive', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: 'X6', value: 'testValueSix', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: 'X7', value: 'testValueSeven', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: 'X8', value: 'testValueEight', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: 'X9', value: 'testValueNine', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: 'X10', value: 'testValueTen', align: 'center', required: true, width: '180', type: 'inputNumber' }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '重复性S(x)', value: 'standardDeviation', align: 'center', required: false, type: 'text' }, ]) const columns_repeatability_voltage_flatness = ref<TableColumn[]>([ // 重复性表头--稳幅正弦信号电压平坦度 { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '类型', value: 'typeValue', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '测量值单位', value: 'testValueUnit', width: '100', align: 'center', required: true, type: 'select', options: [{ text: 'kW', value: 'kW' }, { text: 'W', value: 'W' }, { text: 'mW', value: 'mW' }, { text: 'μW', value: 'μW' }] }, { text: '转换为电压值单位', value: 'convertVoltageUnit', width: '100', align: 'center', required: true, type: 'select', options: [{ text: 'kV', value: 'kV' }, { text: 'V', value: 'V' }, { text: 'mV', value: 'mV' }, { text: 'μV', value: 'μV' }] }, { text: 'X1', value: '-', align: 'center', required: false, width: '180', children: [ { text: '测量值', value: 'testValueOne', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: '转换为电压值', value: 'convertVoltageOne', align: 'center', required: false, width: '180', type: 'text' }, { text: '平坦度/%', value: 'flatnessOne', align: 'center', required: false, width: '180', type: 'text' }, ], }, { text: 'X2', value: '-', align: 'center', required: false, width: '180', children: [ { text: '测量值', value: 'testValueTwo', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: '转换为电压值', value: 'convertVoltageTwo', align: 'center', required: false, width: '180', type: 'text' }, { text: '平坦度/%', value: 'flatnessTwo', align: 'center', required: false, width: '180', type: 'text' }, ], }, { text: 'X3', value: '-', align: 'center', required: false, width: '180', children: [ { text: '测量值', value: 'testValueThree', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: '转换为电压值', value: 'convertVoltageThree', align: 'center', required: false, width: '180', type: 'text' }, { text: '平坦度/%', value: 'flatnessThree', align: 'center', required: false, width: '180', type: 'text' }, ], }, { text: 'X4', value: '-', align: 'center', required: false, width: '180', children: [ { text: '测量值', value: 'testValueFour', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: '转换为电压值', value: 'convertVoltageFour', align: 'center', required: false, width: '180', type: 'text' }, { text: '平坦度/%', value: 'flatnessFour', align: 'center', required: false, width: '180', type: 'text' }, ], }, { text: 'X5', value: '-', align: 'center', required: false, width: '180', children: [ { text: '测量值', value: 'testValueFive', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: '转换为电压值', value: 'convertVoltageFive', align: 'center', required: false, width: '180', type: 'text' }, { text: '平坦度/%', value: 'flatnessFive', align: 'center', required: false, width: '180', type: 'text' }, ], }, { text: 'X6', value: '-', align: 'center', required: false, width: '180', children: [ { text: '测量值', value: 'testValueSix', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: '转换为电压值', value: 'convertVoltageSix', align: 'center', required: false, width: '180', type: 'text' }, { text: '平坦度/%', value: 'flatnessSix', align: 'center', required: false, width: '180', type: 'text' }, ], }, { text: 'X7', value: '-', align: 'center', required: false, width: '180', children: [ { text: '测量值', value: 'testValueSeven', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: '转换为电压值', value: 'convertVoltageSeven', align: 'center', required: false, width: '180', type: 'text' }, { text: '平坦度/%', value: 'flatnessSeven', align: 'center', required: false, width: '180', type: 'text' }, ], }, { text: 'X8', value: '-', align: 'center', required: false, width: '180', children: [ { text: '测量值', value: 'testValueEight', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: '转换为电压值', value: 'convertVoltageEight', align: 'center', required: false, width: '180', type: 'text' }, { text: '平坦度/%', value: 'flatnessEight', align: 'center', required: false, width: '180', type: 'text' }, ], }, { text: 'X9', value: '-', align: 'center', required: false, width: '180', children: [ { text: '测量值', value: 'testValueNine', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: '转换为电压值', value: 'convertVoltageNine', align: 'center', required: false, width: '180', type: 'text' }, { text: '平坦度/%', value: 'flatnessNine', align: 'center', required: false, width: '180', type: 'text' }, ], }, { text: 'X10', value: '-', align: 'center', required: false, width: '180', children: [ { text: '测量值', value: 'testValueTen', align: 'center', required: true, width: '180', type: 'inputNumber' }, { text: '转换为电压值', value: 'convertVoltageTen', align: 'center', required: false, width: '180', type: 'text' }, { text: '平坦度/%', value: 'flatnessTen', align: 'center', required: false, width: '180', type: 'text' }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '重复性S(x)', value: 'standardDeviation', align: 'center', required: false, type: 'text' }, ]) const columns_repeatability_risetime = ref<TableColumn[]>([ // 重复性表头--上升时间 { text: '核查项目', value: 'params', align: 'center', required: false }, { text: '快沿', value: 'checkPointDefineFront', align: 'center', required: false }, { text: '探头出厂编号', value: 'manufactureNo', align: 'center', required: false }, { text: '探头智能模型名称', value: 'equipmentName', align: 'center', required: false }, { text: '探头规格型号', value: 'model', align: 'center', required: false }, { text: '测量值', value: 'testValueOne', align: 'center', required: true, width: '220' }, ]) const columns_stability_timeMark = ref<TableColumn[]>([ // 稳定性表头--时标 { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '核查点均值', value: '-', align: 'center', required: false, width: '180', children: [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: '最大允许误差的绝对值', value: 'maximumErrorAbsoluteDefineFront', align: 'center', required: false, type: 'text' }, { text: '结论', value: 'conclusion', align: 'center', required: false, type: 'text' }, ]) const columns_stability_timeMark_checkDate = ref<TableColumn[]>([ // 稳定性表头--时标 { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '核查点均值', value: '-', align: 'center', required: false, width: '180', children: [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: '最大允许误差的绝对值', value: 'maximumErrorAbsoluteDefineFront', align: 'center', required: false, type: 'text' }, { text: '结论', value: 'conclusion', align: 'center', required: false, type: 'text' }, ]) // 方波电压(50Ω)--稳定性 const columns_stability_squareWaveVoltage50Ω = ref<TableColumn[]>([ { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '核查点均值', value: 'indicatingValue', align: 'center', required: false, width: '180', children: [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: '最大允许误差的绝对值', value: 'maximumErrorAbsoluteDefineFront', align: 'center', required: false, type: 'text' }, { text: '结论', value: 'conclusion', align: 'center', required: false, type: 'text' }, ]) // 方波电压(50Ω)--稳定性 const columns_stability_squareWaveVoltage50Ω_checkDate = ref<TableColumn[]>([ { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '核查点均值', value: 'indicatingValue', align: 'center', required: false, width: '180', children: [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: '最大允许误差的绝对值', value: 'maximumErrorAbsoluteDefineFront', align: 'center', required: false, type: 'text' }, { text: '结论', value: 'conclusion', align: 'center', required: false, type: 'text' }, ]) // 方波电压(1MΩ)--稳定性 const columns_stability_squareWaveVoltage1MΩ = ref<TableColumn[]>([ { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '核查点均值', value: 'indicatingValue', align: 'center', required: false, width: '180', children: [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: '最大允许误差的绝对值', value: 'maximumErrorAbsoluteDefineFront', align: 'center', required: false, type: 'text' }, { text: '结论', value: 'conclusion', align: 'center', required: false, type: 'text' }, ]) const columns_stability_squareWaveVoltage1MΩ_checkDate = ref<TableColumn[]>([ { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '核查点均值', value: 'indicatingValue', align: 'center', required: false, width: '180', children: [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: '最大允许误差的绝对值', value: 'maximumErrorAbsoluteDefineFront', align: 'center', required: false, type: 'text' }, { text: '结论', value: 'conclusion', align: 'center', required: false, type: 'text' }, ]) // 直流电压(50Ω)--稳定性 const columns_stability_directVoltage50Ω = ref<TableColumn[]>([ { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '核查点均值', value: 'indicatingValue', align: 'center', required: false, width: '180', children: [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: '最大允许误差的绝对值', value: 'maximumErrorAbsoluteDefineFront', align: 'center', required: false, type: 'text' }, { text: '结论', value: 'conclusion', align: 'center', required: false, type: 'text' }, ]) const columns_stability_directVoltage50Ω_checkDate = ref<TableColumn[]>([ { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '核查点均值', value: 'indicatingValue', align: 'center', required: false, width: '180', children: [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: '最大允许误差的绝对值', value: 'maximumErrorAbsoluteDefineFront', align: 'center', required: false, type: 'text' }, { text: '结论', value: 'conclusion', align: 'center', required: false, type: 'text' }, ]) // 直流电压(1MΩ)--稳定性 const columns_stability_directVoltage1MΩ = ref<TableColumn[]>([ { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '核查点均值', value: 'indicatingValue', align: 'center', required: false, width: '180', children: [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: '最大允许误差的绝对值', value: 'maximumErrorAbsoluteDefineFront', align: 'center', required: false, type: 'text' }, { text: '结论', value: 'conclusion', align: 'center', required: false, type: 'text' }, ]) const columns_stability_directVoltage1MΩ_checkDate = ref<TableColumn[]>([ { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '核查点均值', value: 'indicatingValue', align: 'center', required: false, width: '180', children: [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: '最大允许误差的绝对值', value: 'maximumErrorAbsoluteDefineFront', align: 'center', required: false, type: 'text' }, { text: '结论', value: 'conclusion', align: 'center', required: false, type: 'text' }, ]) // 输入阻抗--稳定性 const columns_stability_inputImpedance = ref<TableColumn[]>([ { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '核查点均值', value: 'indicatingValue', align: 'center', required: false, width: '180', children: [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: '最大允许误差的绝对值', value: 'maximumErrorAbsoluteDefineFront', align: 'center', required: false, type: 'text' }, { text: '结论', value: 'conclusion', align: 'center', required: false, type: 'text' }, ]) const columns_stability_inputImpedance_checkDate = ref<TableColumn[]>([ { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '核查点均值', value: 'indicatingValue', align: 'center', required: false, width: '180', children: [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: '最大允许误差的绝对值', value: 'maximumErrorAbsoluteDefineFront', align: 'center', required: false, type: 'text' }, { text: '结论', value: 'conclusion', align: 'center', required: false, type: 'text' }, ]) // 稳幅正弦信号电压平坦度--稳定性 const columns_stability_voltage_flatness = ref<TableColumn[]>([ // 稳定性表头--稳幅正弦信号电压平坦度 { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '类型', value: 'typeValue', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '核查点均值', value: '-', align: 'center', required: false, width: '160', children: [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: '最大允许误差的绝对值', value: 'maximumErrorAbsoluteDefineFront', align: 'center', required: false, type: 'text' }, { text: '结论', value: 'conclusion', align: 'center', required: false, type: 'text' }, ]) const columns_stability_voltage_flatness_checkDate = ref<TableColumn[]>([ // 稳定性表头--稳幅正弦信号电压平坦度 { text: '核查项目', value: 'params', align: 'center', required: true, type: 'text' }, { text: '类型', value: 'typeValue', align: 'center', required: true, type: 'text' }, { text: '核查点', value: 'checkPointDefineFront', align: 'center', required: true, type: 'text' }, { text: '核查点均值', value: '-', align: 'center', required: false, width: '160', children: [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ], }, { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: '最大允许误差的绝对值', value: 'maximumErrorAbsoluteDefineFront', align: 'center', required: false, type: 'text' }, { text: '结论', value: 'conclusion', align: 'center', required: false, type: 'text' }, ]) // 上升时间--稳定性 const columns_stability_risetime = ref<TableColumn[]>([ // 稳定性表头--上升时间 { text: '核查项目', value: 'params', align: 'center', required: false, type: 'text' }, { text: '快沿', value: 'checkPointDefineFront', align: 'center', required: false, type: 'text' }, { text: '探头出厂编号', value: 'manufactureNo', align: 'center', required: false, type: 'text' }, { text: '探头智能模型名称', value: 'equipmentName', align: 'center', required: false, type: 'text' }, { text: '探头规格型号', value: 'model', align: 'center', required: false, type: 'text' }, { text: '测量值', value: 'testValueOne', align: 'center', required: false, type: 'text' }, { text: '技术指标', value: 'technicalIndexDefineFront', align: 'center', required: false, type: 'text' }, { text: '结论', value: 'conclusion', align: 'center', required: false, type: 'text' }, ]) const listTimeMarkRepeatability = ref<IList[]>([]) // 时标-重复性 const listSquareWaveVoltage50ΩRepeatability = ref<IList[]>([]) // 方波电压(50Ω)-重复性 const listSquareWaveVoltage1MΩRepeatability = ref<IList[]>([]) // 方波电压(1MΩ)-重复性 const listDirectVoltage50ΩRepeatability = ref<IList[]>([]) // 直流电压(50Ω)-重复性 const listDirectVoltage1MΩRepeatability = ref<IList[]>([]) // 直流电压(1MΩ)-重复性 const listInputImpedanceRepeatability = ref<IList[]>([]) // 输入阻抗-重复性 const listVoltageFlatnessRepeatability = ref<IList[]>([]) // 稳幅正弦信号电压平坦度-重复性 const listRisetimeRepeatability = ref<IList[]>([]) // 上升时间-重复性 const listTimeMarkRepeatabilityLoading = ref(false) // 时标-重复性Loading const listSquareWaveVoltage50ΩRepeatabilityLoading = ref(false) // 方波电压(50Ω)-重复性Loading const listSquareWaveVoltage1MΩRepeatabilityLoading = ref(false) // 方波电压(1MΩ)-重复性Loading const listDirectVoltage50ΩRepeatabilityLoading = ref(false) // 直流电压(50Ω)-重复性Loading const listDirectVoltage1MΩRepeatabilityLoading = ref(false) // 直流电压(1MΩ)-重复性Loading const listInputImpedanceRepeatabilityLoading = ref(false) // 输入阻抗-重复性Loading const listVoltageFlatnessRepeatabilityLoading = ref(false) // 稳幅正弦信号电压平坦度-重复性Loading const listRisetimeRepeatabilityLoading = ref(false) // 上升时间-重复性Loading const listTimeMarkStability = ref<any[]>([]) // 时标-稳定性 const listSquareWaveVoltage50ΩStability = ref<any[]>([]) // 方波电压(50Ω)-稳定性 const listSquareWaveVoltage1MΩStability = ref<any[]>([]) // 方波电压(1MΩ)-稳定性 const listDirectVoltage50ΩStability = ref<any[]>([]) // 直流电压(50Ω)-稳定性 const listDirectVoltage1MΩStability = ref<any[]>([]) // 直流电压(1MΩ)-稳定性 const listInputImpedanceStability = ref<any[]>([]) // 输入阻抗-稳定性 const listVoltageFlatnessStability = ref<any[]>([]) // 稳幅正弦信号电压平坦度-稳定性 const listRisetimeStability = ref<any[]>([]) // 上升时间-稳定性 const listTimeMarkStabilityLoading = ref(false) // 时标-稳定性Loading const listSquareWaveVoltage50ΩStabilityLoading = ref(false) // 方波电压(50Ω)-稳定性Loading const listSquareWaveVoltage1MΩStabilityLoading = ref(false) // 方波电压(1MΩ)-稳定性Loading const listDirectVoltage50ΩStabilityLoading = ref(false) // 直流电压(50Ω)-稳定性Loading const listDirectVoltage1MΩStabilityLoading = ref(false) // 直流电压(1MΩ)-稳定性Loading const listInputImpedanceStabilityLoading = ref(false) // 输入阻抗-稳定性Loading const listVoltageFlatnessStabilityLoading = ref(false) // 稳幅正弦信号电压平坦度-稳定性Loading const listRisetimeStabilityLoading = ref(false) // 上升时间-稳定性Loading const listTimeMarkRepeatabilityCheckDate = ref<IList[]>([]) // 时标-重复性 const listSquareWaveVoltage50ΩRepeatabilityCheckDate = ref<IList[]>([]) // 方波电压(50Ω)-重复性 const listSquareWaveVoltage1MΩRepeatabilityCheckDate = ref<IList[]>([]) // 方波电压(1MΩ)-重复性 const listDirectVoltage50ΩRepeatabilityCheckDate = ref<IList[]>([]) // 直流电压(50Ω)-重复性 const listDirectVoltage1MΩRepeatabilityCheckDate = ref<IList[]>([]) // 直流电压(1MΩ)-重复性 const listInputImpedanceRepeatabilityCheckDate = ref<IList[]>([]) // 输入阻抗-重复性 const listVoltageFlatnessRepeatabilityCheckDate = ref<IList[]>([]) // 稳幅正弦信号电压平坦度-重复性 const listRisetimeRepeatabilityCheckDate = ref<IList[]>([]) // 上升时间-重复性 const listTimeMarkStabilityCheckDate = ref<any[]>([]) // 时标-稳定性 const listSquareWaveVoltage50ΩStabilityCheckDate = ref<any[]>([]) // 方波电压(50Ω)-稳定性 const listSquareWaveVoltage1MΩStabilityCheckDate = ref<any[]>([]) // 方波电压(1MΩ)-稳定性 const listDirectVoltage50ΩStabilityCheckDate = ref<any[]>([]) // 直流电压(50Ω)-稳定性 const listDirectVoltage1MΩStabilityCheckDate = ref<any[]>([]) // 直流电压(1MΩ)-稳定性 const listInputImpedanceStabilityCheckDate = ref<any[]>([]) // 输入阻抗-稳定性 const listVoltageFlatnessStabilityCheckDate = ref<any[]>([]) // 稳幅正弦信号电压平坦度-稳定性 const listRisetimeStabilityCheckDate = ref<any[]>([]) // 上升时间-稳定性 // 获取配置详情 function fetchCheckItemDetail(equipmentId: string, belongStandardEquipmentParam: string, itemCategoryIdParam: string, itemCategoryNameParam: string) { belongStandardEquipment.value = belongStandardEquipmentParam // 检校标准库 itemCategoryId.value = itemCategoryIdParam // 核查分类id itemCategoryName.value = itemCategoryNameParam // 核查分类名称 const loading = ElLoading.service({ lock: true, background: 'rgba(255, 255, 255, 0.8)', }) const params = { equipmentId, // 智能模型id belongStandardEquipment: belongStandardEquipment.value, // 检校标准装置code itemCategoryId: itemCategoryId.value, // 核查项分类id itemCategoryName: itemCategoryName.value, // 核查项分类名称 } getCheckItemDetail(params).then((res) => { loading.close() if (!res.data) { emits('isConfigCheck', false) } else { handleData(res.data.checkItemDataOscilloscopeList) fetchHistoryIndication() // 重新拉取稳定性 } }) } // 初始化数据(查询配置检定项) function handleData(list: any, type = 'edit') { // 时标 listTimeMarkRepeatability.value = list.filter((item: { params: string }) => item.params === '时标') // 时标重复性 listTimeMarkRepeatability.value = listTimeMarkRepeatability.value.map((e: any) => { return { editable: type === 'edit', dataId: e.id, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 checkType: '重复性', dataType: '1', params: e.params, // 核查项目 checkPoint: e.checkPoint, unit: e.unit, // 单位(直接存字典value) checkPointDefineFront: e.checkPoint + e.unit, // 核查点 averageValue: '', // 平均值 standardDeviation: '', // 重复性 maximumErrorAbsolute: e.maximumErrorAbsolute, // 最大允许误差的绝对值 maximumErrorAbsoluteUnit: e.maximumErrorAbsoluteUnit, // 最大允许误差的绝对值单位 maximumErrorAbsoluteUnitDefineFront: e.maximumErrorAbsolute + e.maximumErrorAbsoluteUnit, testValueOne: undefined, // 测量值1/测量值(上升时间) testValueTwo: undefined, // 测量值2(示值) testValueThree: undefined, // 测量值3(示值) testValueFour: undefined, // 测量值4(示值) testValueFive: undefined, // 测量值5(示值) testValueSix: undefined, // 测量值6(本次示值) testValueSeven: undefined, // 测量值7 testValueEight: undefined, // 测量值8 testValueNine: undefined, // 测量值9 testValueTen: undefined, // 测量值10 } }) as any // 时标稳定性 listTimeMarkStability.value = listTimeMarkRepeatability.value.map((e: any) => { return { editable: props.pageType !== 'detail', dataId: e.dataId, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 params: e.params, // 核查项目 dataType: '1', checkPoint: e.checkPoint, unit: e.unit, // 单位(直接存字典value) checkPointDefineFront: e.checkPoint + e.unit, // 核查点 checkType: '稳定性', averageValue: '', // 平均值 stability: '', // 稳定性 maximumErrorAbsolute: e.maximumErrorAbsolute, // 最大允许误差的绝对值 maximumErrorAbsoluteUnit: e.maximumErrorAbsoluteUnit, // 最大允许误差的绝对值单位 maximumErrorAbsoluteUnitDefineFront: e.maximumErrorAbsolute + e.maximumErrorAbsoluteUnit, conclusion: '', // 结论 } }) // 方波电压(50Ω) listSquareWaveVoltage50ΩRepeatability.value = list.filter((item: { params: string }) => item.params === '方波电压(50Ω)') // 方波电压(50Ω)重复性 listSquareWaveVoltage50ΩRepeatability.value = listSquareWaveVoltage50ΩRepeatability.value.map((e: any) => { return { editable: type === 'edit', dataId: e.id, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 checkType: '重复性', dataType: '2', params: e.params, // 核查项目 checkPoint: e.checkPoint, unit: e.unit, // 单位(直接存字典value) checkPointDefineFront: e.checkPoint + e.unit, // 核查点 urel: e.urel, // 扩展不确定度U averageValue: '', // 平均值 standardDeviation: '', // 重复性 maximumErrorAbsolute: e.maximumErrorAbsolute, // 最大允许误差的绝对值 maximumErrorAbsoluteUnit: e.maximumErrorAbsoluteUnit, // 最大允许误差的绝对值单位 maximumErrorAbsoluteUnitDefineFront: e.maximumErrorAbsolute + e.maximumErrorAbsoluteUnit, testValueOne: undefined, // 测量值1/测量值(上升时间) testValueTwo: undefined, // 测量值2(示值) testValueThree: undefined, // 测量值3(示值) testValueFour: undefined, // 测量值4(示值) testValueFive: undefined, // 测量值5(示值) testValueSix: undefined, // 测量值6(本次示值) testValueSeven: undefined, // 测量值7 testValueEight: undefined, // 测量值8 testValueNine: undefined, // 测量值9 testValueTen: undefined, // 测量值10 } }) as any // 方波电压(50Ω)稳定性 listSquareWaveVoltage50ΩStability.value = listSquareWaveVoltage50ΩRepeatability.value.map((e: any) => { return { editable: props.pageType !== 'detail', dataId: e.dataId, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 params: e.params, // 核查项目 checkPoint: e.checkPoint, dataType: '2', unit: e.unit, // 单位(直接存字典value) checkPointDefineFront: e.checkPoint + e.unit, // 核查点 checkType: '稳定性', averageValue: '', // 平均值 stability: '', // 稳定性 maximumErrorAbsolute: e.maximumErrorAbsolute, // 最大允许误差的绝对值 maximumErrorAbsoluteUnit: e.maximumErrorAbsoluteUnit, // 最大允许误差的绝对值单位 maximumErrorAbsoluteUnitDefineFront: e.maximumErrorAbsolute + e.maximumErrorAbsoluteUnit, conclusion: '', // 结论 } }) // 方波电压(1MΩ) listSquareWaveVoltage1MΩRepeatability.value = list.filter((item: { params: string }) => item.params === '方波电压(1MΩ)') // 方波电压(1MΩ)重复性 listSquareWaveVoltage1MΩRepeatability.value = listSquareWaveVoltage1MΩRepeatability.value.map((e: any) => { return { editable: type === 'edit', dataId: e.id, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 checkType: '重复性', dataType: '3', params: e.params, // 核查项目 checkPoint: e.checkPoint, unit: e.unit, // 单位(直接存字典value) checkPointDefineFront: e.checkPoint + e.unit, // 核查点 averageValue: '', // 平均值 standardDeviation: '', // 重复性 maximumErrorAbsolute: e.maximumErrorAbsolute, // 最大允许误差的绝对值 maximumErrorAbsoluteUnit: e.maximumErrorAbsoluteUnit, // 最大允许误差的绝对值单位 maximumErrorAbsoluteUnitDefineFront: e.maximumErrorAbsolute + e.maximumErrorAbsoluteUnit, testValueOne: undefined, // 测量值1/测量值(上升时间) testValueTwo: undefined, // 测量值2(示值) testValueThree: undefined, // 测量值3(示值) testValueFour: undefined, // 测量值4(示值) testValueFive: undefined, // 测量值5(示值) testValueSix: undefined, // 测量值6(本次示值) testValueSeven: undefined, // 测量值7 testValueEight: undefined, // 测量值8 testValueNine: undefined, // 测量值9 testValueTen: undefined, // 测量值10 } }) as any // 方波电压(1MΩ)稳定性 listSquareWaveVoltage1MΩStability.value = listSquareWaveVoltage1MΩRepeatability.value.map((e: any) => { return { editable: props.pageType !== 'detail', dataId: e.dataId, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 params: e.params, // 核查项目 checkPoint: e.checkPoint, dataType: '3', unit: e.unit, // 单位(直接存字典value) checkPointDefineFront: e.checkPoint + e.unit, // 核查点 checkType: '稳定性', averageValue: '', // 平均值 stability: '', // 稳定性 maximumErrorAbsolute: e.maximumErrorAbsolute, // 最大允许误差的绝对值 maximumErrorAbsoluteUnit: e.maximumErrorAbsoluteUnit, // 最大允许误差的绝对值单位 maximumErrorAbsoluteUnitDefineFront: e.maximumErrorAbsolute + e.maximumErrorAbsoluteUnit, conclusion: '', // 结论 } }) // 直流电压(50Ω) listDirectVoltage50ΩRepeatability.value = list.filter((item: { params: string }) => item.params === '直流电压(50Ω)') // 直流电压(50Ω)重复性 listDirectVoltage50ΩRepeatability.value = listDirectVoltage50ΩRepeatability.value.map((e: any) => { return { editable: type === 'edit', dataId: e.id, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 checkType: '重复性', dataType: '4', params: e.params, // 核查项目 checkPoint: e.checkPoint, unit: e.unit, // 单位(直接存字典value) checkPointDefineFront: e.checkPoint + e.unit, // 核查点 averageValue: '', // 平均值 standardDeviation: '', // 重复性 maximumErrorAbsolute: e.maximumErrorAbsolute, // 最大允许误差的绝对值 maximumErrorAbsoluteUnit: e.maximumErrorAbsoluteUnit, // 最大允许误差的绝对值单位 maximumErrorAbsoluteUnitDefineFront: e.maximumErrorAbsolute + e.maximumErrorAbsoluteUnit, testValueOne: undefined, // 测量值1/测量值(上升时间) testValueTwo: undefined, // 测量值2(示值) testValueThree: undefined, // 测量值3(示值) testValueFour: undefined, // 测量值4(示值) testValueFive: undefined, // 测量值5(示值) testValueSix: undefined, // 测量值6(本次示值) testValueSeven: undefined, // 测量值7 testValueEight: undefined, // 测量值8 testValueNine: undefined, // 测量值9 testValueTen: undefined, // 测量值10 } }) as any // 直流电压(50Ω)稳定性 listDirectVoltage50ΩStability.value = listDirectVoltage50ΩRepeatability.value.map((e: any) => { return { editable: props.pageType !== 'detail', dataId: e.dataId, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 params: e.params, // 核查项目 checkPoint: e.checkPoint, dataType: '4', unit: e.unit, // 单位(直接存字典value) checkPointDefineFront: e.checkPoint + e.unit, // 核查点 checkType: '稳定性', averageValue: '', // 平均值 stability: '', // 稳定性 maximumErrorAbsolute: e.maximumErrorAbsolute, // 最大允许误差的绝对值 maximumErrorAbsoluteUnit: e.maximumErrorAbsoluteUnit, // 最大允许误差的绝对值单位 maximumErrorAbsoluteUnitDefineFront: e.maximumErrorAbsolute + e.maximumErrorAbsoluteUnit, conclusion: '', // 结论 } }) // 直流电压(1MΩ) listDirectVoltage1MΩRepeatability.value = list.filter((item: { params: string }) => item.params === '直流电压(1MΩ)') // 直流电压(1MΩ)重复性 listDirectVoltage1MΩRepeatability.value = listDirectVoltage1MΩRepeatability.value.map((e: any) => { return { editable: type === 'edit', dataId: e.id, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 checkType: '重复性', dataType: '5', params: e.params, // 核查项目 checkPoint: e.checkPoint, unit: e.unit, // 单位(直接存字典value) checkPointDefineFront: e.checkPoint + e.unit, // 核查点 averageValue: '', // 平均值 standardDeviation: '', // 重复性 maximumErrorAbsolute: e.maximumErrorAbsolute, // 最大允许误差的绝对值 maximumErrorAbsoluteUnit: e.maximumErrorAbsoluteUnit, // 最大允许误差的绝对值单位 maximumErrorAbsoluteUnitDefineFront: e.maximumErrorAbsolute + e.maximumErrorAbsoluteUnit, testValueOne: undefined, // 测量值1/测量值(上升时间) testValueTwo: undefined, // 测量值2(示值) testValueThree: undefined, // 测量值3(示值) testValueFour: undefined, // 测量值4(示值) testValueFive: undefined, // 测量值5(示值) testValueSix: undefined, // 测量值6(本次示值) testValueSeven: undefined, // 测量值7 testValueEight: undefined, // 测量值8 testValueNine: undefined, // 测量值9 testValueTen: undefined, // 测量值10 } }) as any // 直流电压(1MΩ)稳定性 listDirectVoltage1MΩStability.value = listDirectVoltage1MΩRepeatability.value.map((e: any) => { return { editable: props.pageType !== 'detail', dataId: e.dataId, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 params: e.params, // 核查项目 checkPoint: e.checkPoint, dataType: '5', unit: e.unit, // 单位(直接存字典value) checkPointDefineFront: e.checkPoint + e.unit, // 核查点 checkType: '稳定性', averageValue: '', // 平均值 stability: '', // 稳定性 maximumErrorAbsolute: e.maximumErrorAbsolute, // 最大允许误差的绝对值 maximumErrorAbsoluteUnit: e.maximumErrorAbsoluteUnit, // 最大允许误差的绝对值单位 maximumErrorAbsoluteUnitDefineFront: e.maximumErrorAbsolute + e.maximumErrorAbsoluteUnit, conclusion: '', // 结论 } }) // 输入阻抗 listInputImpedanceRepeatability.value = list.filter((item: { params: string }) => item.params === '输入阻抗') // 输入阻抗重复性 listInputImpedanceRepeatability.value = listInputImpedanceRepeatability.value.map((e: any) => { return { editable: type === 'edit', dataId: e.id, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 checkType: '重复性', dataType: '6', params: e.params, // 核查项目 checkPoint: e.checkPoint, unit: e.unit, // 单位(直接存字典value) checkPointDefineFront: e.checkPoint + e.unit, // 核查点 averageValue: '', // 平均值 standardDeviation: '', // 重复性 maximumErrorAbsolute: e.maximumErrorAbsolute, // 最大允许误差的绝对值 maximumErrorAbsoluteUnit: e.maximumErrorAbsoluteUnit, // 最大允许误差的绝对值单位 maximumErrorAbsoluteUnitDefineFront: e.maximumErrorAbsolute + e.maximumErrorAbsoluteUnit, testValueOne: undefined, // 测量值1/测量值(上升时间) testValueTwo: undefined, // 测量值2(示值) testValueThree: undefined, // 测量值3(示值) testValueFour: undefined, // 测量值4(示值) testValueFive: undefined, // 测量值5(示值) testValueSix: undefined, // 测量值6(本次示值) testValueSeven: undefined, // 测量值7 testValueEight: undefined, // 测量值8 testValueNine: undefined, // 测量值9 testValueTen: undefined, // 测量值10 } }) as any // 输入阻抗稳定性 listInputImpedanceStability.value = listInputImpedanceRepeatability.value.map((e: any) => { return { editable: props.pageType !== 'detail', dataId: e.dataId, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 params: e.params, // 核查项目 checkPoint: e.checkPoint, dataType: '6', unit: e.unit, // 单位(直接存字典value) checkPointDefineFront: e.checkPoint + e.unit, // 核查点 checkType: '稳定性', averageValue: '', // 平均值 stability: '', // 稳定性 maximumErrorAbsolute: e.maximumErrorAbsolute, // 最大允许误差的绝对值 maximumErrorAbsoluteUnit: e.maximumErrorAbsoluteUnit, // 最大允许误差的绝对值单位 maximumErrorAbsoluteUnitDefineFront: e.maximumErrorAbsolute + e.maximumErrorAbsoluteUnit, conclusion: '', // 结论 } }) // 稳幅正弦信号电压平坦度 listVoltageFlatnessRepeatability.value = list.filter((item: { params: string }) => item.params === '稳幅正弦信号电压平坦度') // 稳幅正弦信号电压平坦度重复性 listVoltageFlatnessRepeatability.value = listVoltageFlatnessRepeatability.value.map((e: any) => { let tempCheckPoint = e.checkPoint + e.unit if (`${e.referencePoint}` === '1') { tempCheckPoint = `${tempCheckPoint}(参考)` } return { editable: type === 'edit', dataId: e.id, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 checkType: '重复性', dataType: '7', params: e.params, // 核查项目 typeValue: e.typeValue, // 类型 testValueUnit: 'mW', // 测量值单位 convertVoltageUnit: 'V', // 转换为电压值单位 checkPoint: e.checkPoint, // 核查点 unit: e.unit, // 单位(直接存字典value) checkPointDefineFront: tempCheckPoint, // 核查点 referencePoint: e.referencePoint, // 是否为参考点 flatnessOne: `${e.referencePoint}` === '1' ? '/' : '', // 平坦度1/% flatnessTwo: `${e.referencePoint}` === '1' ? '/' : '', // 平坦度2/% flatnessThree: `${e.referencePoint}` === '1' ? '/' : '', // 平坦度3/% flatnessFour: `${e.referencePoint}` === '1' ? '/' : '', // 平坦度4/% flatnessFive: `${e.referencePoint}` === '1' ? '/' : '', // 平坦度5/% flatnessSix: `${e.referencePoint}` === '1' ? '/' : '', // 平坦度6/% flatnessSeven: `${e.referencePoint}` === '1' ? '/' : '', // 平坦度7/% flatnessEight: `${e.referencePoint}` === '1' ? '/' : '', // 平坦度8/% flatnessNine: `${e.referencePoint}` === '1' ? '/' : '', // 平坦度9/% flatnessTen: `${e.referencePoint}` === '1' ? '/' : '', // 平坦度10/% averageValue: '', // 平均值 standardDeviation: '', // 重复性 testValueOne: undefined, // 测量值1/测量值(上升时间) testValueTwo: undefined, // 测量值2(示值) testValueThree: undefined, // 测量值3(示值) testValueFour: undefined, // 测量值4(示值) testValueFive: undefined, // 测量值5(示值) testValueSix: undefined, // 测量值6(本次示值) testValueSeven: undefined, // 测量值7 testValueEight: undefined, // 测量值8 testValueNine: undefined, // 测量值9 testValueTen: undefined, // 测量值10 } }) as any // 稳幅正弦信号电压平坦度稳定性 listVoltageFlatnessStability.value = listVoltageFlatnessRepeatability.value.map((e: any) => { return { editable: props.pageType !== 'detail', dataId: e.dataId, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 params: e.params, // 核查项目 checkPoint: e.checkPoint, // 核查点 unit: e.unit, // 单位(直接存字典value) checkPointDefineFront: e.checkPointDefineFront, // 核查点 referencePoint: e.referencePoint, // 是否为参考点 checkType: '稳定性', dataType: '7', typeValue: e.typeValue, // 类型 averageValue: '', // 平均值 stability: '', // 稳定性 maximumErrorAbsolute: e.maximumErrorAbsolute, // 最大允许误差的绝对值 maximumErrorAbsoluteUnit: e.maximumErrorAbsoluteUnit, // 最大允许误差的绝对值单位 maximumErrorAbsoluteUnitDefineFront: e.maximumErrorAbsolute + e.maximumErrorAbsoluteUnit, conclusion: '', // 结论 } }) // 数据根据类型分组 listVoltageFlatnessRepeatability.value = useGroup(listVoltageFlatnessRepeatability.value, 'typeValue') listVoltageFlatnessStability.value = useGroup(listVoltageFlatnessStability.value, 'typeValue') // 上升时间 listRisetimeRepeatability.value = list.filter((item: { params: string }) => item.params === '上升时间') // 上升时间重复性 listRisetimeRepeatability.value = listRisetimeRepeatability.value.map((e: any) => { return { editable: type === 'edit', dataId: e.id, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 checkType: '重复性', dataType: '8', params: e.params, // 核查项目 typeValue: e.typeValue, // 类型 checkPoint: e.checkPoint, // 快沿 unit: e.unit, // 快沿单位(直接存字典value) checkPointDefineFront: e.checkPoint + e.unit, // 快沿 manufactureNo: e.manufactureNo, // 探头出厂编号 equipmentName: e.equipmentName, // 探头智能模型名称 model: e.model, // 探头规格型号 testValueOne: '', // 测量值 testValueUnit: e.unit, // 测量值单位 technicalIndex: e.technicalIndex, // 技术指标 technicalIndexSymbol: e.technicalIndexSymbol, // 技术指标前符号 technicalIndexUnit: e.technicalIndexUnit, // 技术指标单位 } }) // 上升时间稳定性 listRisetimeStability.value = listRisetimeRepeatability.value.map((e: any) => { return { editable: props.pageType !== 'detail', dataId: e.dataId, // 核查数据管理基础信息表id id: '', // id,更新/删除使用参数 params: e.params, // 核查项目 checkPoint: e.checkPoint, // 快沿 unit: e.unit, // 单位(直接存字典value) checkPointDefineFront: e.checkPoint + e.unit, // 快沿 checkType: '稳定性', dataType: '8', manufactureNo: e.manufactureNo, // 探头出厂编号 equipmentName: e.equipmentName, // 探头智能模型名称 model: e.model, // 探头规格型号 testValueOne: e.testValueOne, // 测量值 testValueUnit: e.unit, // 测量值单位 technicalIndex: e.technicalIndex, // 技术指标 technicalIndexSymbol: e.technicalIndexSymbol, // 技术指标前符号 technicalIndexUnit: e.technicalIndexUnit, // 技术指标单位 conclusion: '', // 结论 technicalIndexDefineFront: e.technicalIndexSymbol + e.technicalIndex + e.technicalIndexUnit, } }) } // 点击计算结果 const createResult = (type: string) => { let checkDataOscilloscopeListParams: any // 要传的重复或者稳定性参数 if (current.value === 'stability') { // 计算稳定性先校验重复性 if (!checkList()) { return false } const tempList = [] as any checkDataOscilloscopeListParams = tempList.concat( listTimeMarkStability.value, listSquareWaveVoltage50ΩStability.value, listSquareWaveVoltage1MΩStability.value, listDirectVoltage50ΩStability.value, listDirectVoltage1MΩStability.value, listInputImpedanceStability.value, listVoltageFlatnessStability.value, listRisetimeStability.value, ) } if (current.value === 'repeatability') { switch (type) { case '时标': if (!useCheckList(listTimeMarkRepeatability.value, columns_repeatability_timeMark.value, `${type}-重复性`)) { return false } checkDataOscilloscopeListParams = listTimeMarkRepeatability.value break case '方波电压(50Ω)': if (!useCheckList(listSquareWaveVoltage50ΩRepeatability.value, columns_repeatability_timeMark.value, `${type}-重复性`)) { return false } checkDataOscilloscopeListParams = listSquareWaveVoltage50ΩRepeatability.value break case '方波电压(1MΩ)': if (!useCheckList(listSquareWaveVoltage1MΩRepeatability.value, columns_repeatability_timeMark.value, `${type}-重复性`)) { return false } checkDataOscilloscopeListParams = listSquareWaveVoltage1MΩRepeatability.value break case '直流电压(50Ω)': if (!useCheckList(listDirectVoltage50ΩRepeatability.value, columns_repeatability_timeMark.value, `${type}-重复性`)) { return false } checkDataOscilloscopeListParams = listDirectVoltage50ΩRepeatability.value break case '直流电压(1MΩ)': if (!useCheckList(listDirectVoltage1MΩRepeatability.value, columns_repeatability_timeMark.value, `${type}-重复性`)) { return false } checkDataOscilloscopeListParams = listDirectVoltage1MΩRepeatability.value break case '输入阻抗': if (!useCheckList(listInputImpedanceRepeatability.value, columns_repeatability_timeMark.value, `${type}-重复性`)) { return false } checkDataOscilloscopeListParams = listInputImpedanceRepeatability.value break case '稳幅正弦信号电压平坦度': if (!useCheckList(listVoltageFlatnessRepeatability.value, columns_repeatability_voltage_flatness.value, `${type}-重复性`)) { return false } checkDataOscilloscopeListParams = listVoltageFlatnessRepeatability.value break case '上升时间': if (!useCheckList(listRisetimeRepeatability.value, columns_repeatability_risetime.value, `${type}-重复性`)) { return false } checkDataOscilloscopeListParams = listRisetimeRepeatability.value break default: break } } const params = { belongStandardEquipment: belongStandardEquipment.value, // 检校标准库 checkDataOscilloscopeList: checkDataOscilloscopeListParams.map((item: { conclusion: string }) => { return { ...item, conclusion: '', } }), itemCategoryId: itemCategoryId.value, // 核查项分类id itemCategoryName: itemCategoryName.value, // 核查项分类id } // 重复性Loading listTimeMarkRepeatabilityLoading.value = type === '时标' && current.value === 'repeatability' listSquareWaveVoltage50ΩRepeatabilityLoading.value = type === '方波电压(50Ω)' && current.value === 'repeatability' listSquareWaveVoltage1MΩRepeatabilityLoading.value = type === '方波电压(1MΩ)' && current.value === 'repeatability' listDirectVoltage50ΩRepeatabilityLoading.value = type === '直流电压(50Ω)' && current.value === 'repeatability' listDirectVoltage1MΩRepeatabilityLoading.value = type === '直流电压(1MΩ)' && current.value === 'repeatability' listInputImpedanceRepeatabilityLoading.value = type === '输入阻抗' && current.value === 'repeatability' listVoltageFlatnessRepeatabilityLoading.value = type === '稳幅正弦信号电压平坦度' && current.value === 'repeatability' listRisetimeRepeatabilityLoading.value = type === '上升时间' && current.value === 'repeatability' // 稳定性loading listTimeMarkStabilityLoading.value = true listSquareWaveVoltage50ΩStabilityLoading.value = true listSquareWaveVoltage1MΩStabilityLoading.value = true listDirectVoltage50ΩStabilityLoading.value = true listDirectVoltage1MΩStabilityLoading.value = true listInputImpedanceStabilityLoading.value = true listVoltageFlatnessStabilityLoading.value = true listRisetimeStabilityLoading.value = true calculateHandle(params).then((res) => { const result = res.data.filter((item: { params: string }) => item.params === type).map((item: any) => { return { ...item, checkPointDefineFront: item.checkPoint + item.unit, // 核查点 editable: props.pageType !== 'detail', } }) if (current.value === 'repeatability') { // 重复性 switch (type) { case '时标': listTimeMarkRepeatability.value = result // 填充稳定性最后一列的日期和数值 listTimeMarkStability.value = listTimeMarkStability.value.map((item, index: number) => { return { ...item, testValueSix: listTimeMarkRepeatability.value[index].averageValue, // 测量差值 testValueSixDate: props.checkDate, // 核查读数6日期(本次核查日期) } }) break case '方波电压(50Ω)': listSquareWaveVoltage50ΩRepeatability.value = result // 填充稳定性最后一列的日期和数值 listSquareWaveVoltage50ΩStability.value = listSquareWaveVoltage50ΩStability.value.map((item, index: number) => { return { ...item, testValueSix: listSquareWaveVoltage50ΩRepeatability.value[index].averageValue, // 测量差值 testValueSixDate: props.checkDate, // 核查读数6日期(本次核查日期) } }) break case '方波电压(1MΩ)': listSquareWaveVoltage1MΩRepeatability.value = result // 填充稳定性最后一列的日期和数值 listSquareWaveVoltage1MΩStability.value = listSquareWaveVoltage1MΩStability.value.map((item, index: number) => { return { ...item, testValueSix: listSquareWaveVoltage1MΩRepeatability.value[index].averageValue, // 测量差值 testValueSixDate: props.checkDate, // 核查读数6日期(本次核查日期) } }) break case '直流电压(50Ω)': listDirectVoltage50ΩRepeatability.value = result // 填充稳定性最后一列的日期和数值 listDirectVoltage50ΩStability.value = listDirectVoltage50ΩStability.value.map((item, index: number) => { return { ...item, testValueSix: listDirectVoltage50ΩRepeatability.value[index].averageValue, // 测量差值 testValueSixDate: props.checkDate, // 核查读数6日期(本次核查日期) } }) break case '直流电压(1MΩ)': listDirectVoltage1MΩRepeatability.value = result // 填充稳定性最后一列的日期和数值 listDirectVoltage1MΩStability.value = listDirectVoltage1MΩStability.value.map((item, index: number) => { return { ...item, testValueSix: listDirectVoltage1MΩRepeatability.value[index].averageValue, // 测量差值 testValueSixDate: props.checkDate, // 核查读数6日期(本次核查日期) } }) break case '输入阻抗': listInputImpedanceRepeatability.value = result // 填充稳定性最后一列的日期和数值 listInputImpedanceStability.value = listInputImpedanceStability.value.map((item, index: number) => { return { ...item, testValueSix: listInputImpedanceRepeatability.value[index].averageValue, // 测量差值 testValueSixDate: props.checkDate, // 核查读数6日期(本次核查日期) } }) break case '稳幅正弦信号电压平坦度': listVoltageFlatnessRepeatability.value = result.map((item: any) => { let tempCheckPoint = item.checkPoint + item.unit if (`${item.referencePoint}` === '1') { tempCheckPoint = `${tempCheckPoint}(参考)` } return { ...item, checkPointDefineFront: tempCheckPoint, // 核查点 } }) // 填充稳定性最后一列的日期和数值 listVoltageFlatnessStability.value = listVoltageFlatnessStability.value.map((item, index: number) => { return { ...item, testValueSix: listVoltageFlatnessRepeatability.value[index].averageValue, // 测量差值 testValueSixDate: props.checkDate, // 核查读数6日期(本次核查日期) testValueUnit: listVoltageFlatnessRepeatability.value[index].testValueUnit, // 测量值单位 convertVoltageUnit: listVoltageFlatnessRepeatability.value[index].convertVoltageUnit, // 转换为电压值单位 } }) break case '上升时间': listRisetimeRepeatability.value = result // 填充稳定性最后一列的日期和数值 listRisetimeStability.value = listRisetimeStability.value.map((item, index: number) => { return { ...item, testValueSix: listRisetimeRepeatability.value[index].averageValue, // 测量差值 testValueSixDate: props.checkDate, // 核查读数6日期(本次核查日期) } }) break default: break } } else if (current.value === 'stability') { // 稳定性 const resultList = res.data.map((item: any) => { let tempCheckPoint = item.checkPoint + item.unit if (item.params === '稳幅正弦信号电压平坦度' && `${item.referencePoint}` === '1') { tempCheckPoint = `${tempCheckPoint}(参考)` } return { ...item, conclusion: (`${item.conclusion}` === '1' || `${item.conclusion}` === '') ? '合格' : '不合格', checkPointDefineFront: tempCheckPoint, // 核查点 editable: props.pageType !== 'detail', technicalIndexDefineFront: item.technicalIndexSymbol + item.technicalIndex + item.technicalIndexUnit, } }) listTimeMarkStability.value = resultList.filter((item: { params: string }) => item.params === '时标') listSquareWaveVoltage50ΩStability.value = resultList.filter((item: { params: string }) => item.params === '方波电压(50Ω)') listSquareWaveVoltage1MΩStability.value = resultList.filter((item: { params: string }) => item.params === '方波电压(1MΩ)') listDirectVoltage50ΩStability.value = resultList.filter((item: { params: string }) => item.params === '直流电压(50Ω)') listDirectVoltage1MΩStability.value = resultList.filter((item: { params: string }) => item.params === '直流电压(1MΩ)') listInputImpedanceStability.value = resultList.filter((item: { params: string }) => item.params === '输入阻抗') listVoltageFlatnessStability.value = resultList.filter((item: { params: string }) => item.params === '稳幅正弦信号电压平坦度') listRisetimeStability.value = resultList.filter((item: { params: string }) => item.params === '上升时间') // 计算稳定性考核是否合格 if (resultList.every((item: { conclusion: string | number }) => item.conclusion === '合格')) { form.value.qualified = '合格' } else { form.value.qualified = '不合格' } } listTimeMarkRepeatabilityLoading.value = false // 时标-重复性Loading listSquareWaveVoltage50ΩRepeatabilityLoading.value = false // 方波电压(50Ω)-重复性Loading listSquareWaveVoltage1MΩRepeatabilityLoading.value = false // 方波电压(1MΩ)-重复性Loading listDirectVoltage50ΩRepeatabilityLoading.value = false // 直流电压(50Ω)-重复性Loading listDirectVoltage1MΩRepeatabilityLoading.value = false // 直流电压(1MΩ)-重复性Loading listInputImpedanceRepeatabilityLoading.value = false // 输入阻抗-重复性Loading listVoltageFlatnessRepeatabilityLoading.value = false // 稳幅正弦信号电压平坦度-重复性Loading listRisetimeRepeatabilityLoading.value = false // 上升时间-重复性Loading listTimeMarkStabilityLoading.value = false // 时标-稳定性Loading listSquareWaveVoltage50ΩStabilityLoading.value = false // 方波电压(50Ω)-稳定性Loading listSquareWaveVoltage1MΩStabilityLoading.value = false // 方波电压(1MΩ)-稳定性Loading listDirectVoltage50ΩStabilityLoading.value = false // 直流电压(50Ω)-稳定性Loading listDirectVoltage1MΩStabilityLoading.value = false // 直流电压(1MΩ)-稳定性Loading listInputImpedanceStabilityLoading.value = false // 输入阻抗-稳定性Loading listVoltageFlatnessStabilityLoading.value = false // 稳幅正弦信号电压平坦度-稳定性Loading listRisetimeStabilityLoading.value = false // 上升时间-稳定性Loading }).catch(() => { listTimeMarkRepeatabilityLoading.value = false // 时标-重复性Loading listSquareWaveVoltage50ΩRepeatabilityLoading.value = false // 方波电压(50Ω)-重复性Loading listSquareWaveVoltage1MΩRepeatabilityLoading.value = false // 方波电压(1MΩ)-重复性Loading listDirectVoltage50ΩRepeatabilityLoading.value = false // 直流电压(50Ω)-重复性Loading listDirectVoltage1MΩRepeatabilityLoading.value = false // 直流电压(1MΩ)-重复性Loading listInputImpedanceRepeatabilityLoading.value = false // 输入阻抗-重复性Loading listVoltageFlatnessRepeatabilityLoading.value = false // 稳幅正弦信号电压平坦度-重复性Loading listRisetimeRepeatabilityLoading.value = false // 上升时间-重复性Loading listTimeMarkStabilityLoading.value = false // 时标-稳定性Loading listSquareWaveVoltage50ΩStabilityLoading.value = false // 方波电压(50Ω)-稳定性Loading listSquareWaveVoltage1MΩStabilityLoading.value = false // 方波电压(1MΩ)-稳定性Loading listDirectVoltage50ΩStabilityLoading.value = false // 直流电压(50Ω)-稳定性Loading listDirectVoltage1MΩStabilityLoading.value = false // 直流电压(1MΩ)-稳定性Loading listInputImpedanceStabilityLoading.value = false // 输入阻抗-稳定性Loading listVoltageFlatnessStabilityLoading.value = false // 稳幅正弦信号电压平坦度-稳定性Loading listRisetimeStabilityLoading.value = false // 上升时间-稳定性Loading }) } // ------------------------------------------------------------------------------------------ // 处理详情数据 const solveGetDetailData = (responseList: any) => { console.log('处理详情数据', props.pageType) // form.value.qualified = responseList[0].qualified === 1 ? '合格' : '不合格' const list = responseList.map((item: any) => { let tempCheckPoint = item.checkPoint + item.unit if (`${item.referencePoint}` === '1') { tempCheckPoint = `${tempCheckPoint}(参考)` } return { ...item, editable: props.pageType !== 'detail', checkPointDefineFront: tempCheckPoint, // 核查点 conclusion: `${item.conclusion}` !== '' ? `${item.conclusion}` === '1' ? '合格' : '不合格' : item.conclusion, testValueOne: item.checkType === '稳定性' ? item.testValueOne : (item.checkType === '重复性' && `${item.testValueOne}` === '') ? undefined : Number(item.testValueOne), // 测量值1/测量值(上升时间) testValueTwo: item.checkType === '稳定性' ? item.testValueTwo : (item.checkType === '重复性' && `${item.testValueTwo}` === '') ? undefined : Number(item.testValueTwo), // 测量值2(示值) testValueThree: item.checkType === '稳定性' ? item.testValueThree : (item.checkType === '重复性' && `${item.testValueThree}` === '') ? undefined : Number(item.testValueThree), // 测量值3(示值) testValueFour: item.checkType === '稳定性' ? item.testValueFour : (item.checkType === '重复性' && `${item.testValueFour}` === '') ? undefined : Number(item.testValueFour), // 测量值4(示值) testValueFive: item.checkType === '稳定性' ? item.testValueFive : (item.checkType === '重复性' && `${item.testValueFive}` === '') ? undefined : Number(item.testValueFive), // 测量值5(示值) testValueSix: item.checkType === '稳定性' ? item.testValueSix : (item.checkType === '重复性' && `${item.testValueSix}` === '') ? undefined : Number(item.testValueSix), // 测量值6(本次示值) testValueSeven: item.checkType === '稳定性' ? item.testValueSeven : (item.checkType === '重复性' && `${item.testValueSeven}` === '') ? undefined : Number(item.testValueSeven), // 测量值7 testValueEight: item.checkType === '稳定性' ? item.testValueEight : (item.checkType === '重复性' && `${item.testValueEight}` === '') ? undefined : Number(item.testValueEight), // 测量值8 testValueNine: item.checkType === '稳定性' ? item.testValueNine : (item.checkType === '重复性' && `${item.testValueNine}` === '') ? undefined : Number(item.testValueNine), // 测量值9 testValueTen: item.checkType === '稳定性' ? item.testValueTen : (item.checkType === '重复性' && `${item.testValueTen}` === '') ? undefined : Number(item.testValueTen), // 测量值10 technicalIndexDefineFront: item.technicalIndexSymbol + item.technicalIndex + item.technicalIndexUnit, // 技术指标 } }) // 稳定性考核是否合格 let tempStabilityList = [] tempStabilityList = list.filter((item: { checkType: string }) => item.checkType === '稳定性') if (tempStabilityList.length && tempStabilityList[0].qualified !== '') { form.value.qualified = tempStabilityList[0].qualified === 1 ? '合格' : '不合格' } const listTimeMarkRepeatability = list.filter((item: { params: string; checkType: string }) => item.checkType === '重复性' && item.params === '时标') // 时标-重复性 const listSquareWaveVoltage50ΩRepeatability = list.filter((item: { params: string; checkType: string }) => item.checkType === '重复性' && item.params === '方波电压(50Ω)') // 方波电压(50Ω)-重复性 const listSquareWaveVoltage1MΩRepeatability = list.filter((item: { params: string; checkType: string }) => item.checkType === '重复性' && item.params === '方波电压(1MΩ)') // 方波电压(1MΩ)-重复性 const listDirectVoltage50ΩRepeatability = list.filter((item: { params: string; checkType: string }) => item.checkType === '重复性' && item.params === '直流电压(50Ω)') // 直流电压(50Ω)-重复性 const listDirectVoltage1MΩRepeatability = list.filter((item: { params: string; checkType: string }) => item.checkType === '重复性' && item.params === '直流电压(1MΩ)') // 直流电压(1MΩ)-重复性 const listInputImpedanceRepeatability = list.filter((item: { params: string; checkType: string }) => item.checkType === '重复性' && item.params === '输入阻抗') // 输入阻抗-重复性 const listVoltageFlatnessRepeatability = list.filter((item: { params: string; checkType: string }) => item.checkType === '重复性' && item.params === '稳幅正弦信号电压平坦度') // 稳幅正弦信号电压平坦度-重复性 const listRisetimeRepeatability = list.filter((item: { params: string; checkType: string }) => item.checkType === '重复性' && item.params === '上升时间') // 上升时间-重复性 const listTimeMarkStability = list.filter((item: { params: string; checkType: string }) => item.checkType === '稳定性' && item.params === '时标') // 时标-稳定性 const listSquareWaveVoltage50ΩStability = list.filter((item: { params: string; checkType: string }) => item.checkType === '稳定性' && item.params === '方波电压(50Ω)') // 方波电压(50Ω)-稳定性 const listSquareWaveVoltage1MΩStability = list.filter((item: { params: string; checkType: string }) => item.checkType === '稳定性' && item.params === '方波电压(1MΩ)') // 方波电压(1MΩ)-稳定性 const listDirectVoltage50ΩStability = list.filter((item: { params: string; checkType: string }) => item.checkType === '稳定性' && item.params === '直流电压(50Ω)') // 直流电压(50Ω)-稳定性 const listDirectVoltage1MΩStability = list.filter((item: { params: string; checkType: string }) => item.checkType === '稳定性' && item.params === '直流电压(1MΩ)') // 直流电压(1MΩ)-稳定性 const listInputImpedanceStability = list.filter((item: { params: string; checkType: string }) => item.checkType === '稳定性' && item.params === '输入阻抗') // 输入阻抗-稳定性 const listVoltageFlatnessStability = list.filter((item: { params: string; checkType: string }) => item.checkType === '稳定性' && item.params === '稳幅正弦信号电压平坦度') // 稳幅正弦信号电压平坦度-稳定性 const listRisetimeStability = list.filter((item: { params: string; checkType: string }) => item.checkType === '稳定性' && item.params === '上升时间') // 上升时间-稳定性 return { templistTimeMarkRepeatability: listTimeMarkRepeatability, templistSquareWaveVoltage50ΩRepeatability: listSquareWaveVoltage50ΩRepeatability, templistSquareWaveVoltage1MΩRepeatability: listSquareWaveVoltage1MΩRepeatability, templistDirectVoltage50ΩRepeatability: listDirectVoltage50ΩRepeatability, templistDirectVoltage1MΩRepeatability: listDirectVoltage1MΩRepeatability, templistInputImpedanceRepeatability: listInputImpedanceRepeatability, templistVoltageFlatnessRepeatability: listVoltageFlatnessRepeatability, templistRisetimeRepeatability: listRisetimeRepeatability, templistTimeMarkStability: listTimeMarkStability, templistSquareWaveVoltage50ΩStability: listSquareWaveVoltage50ΩStability, templistSquareWaveVoltage1MΩStability: listSquareWaveVoltage1MΩStability, templistDirectVoltage50ΩStability: listDirectVoltage50ΩStability, templistDirectVoltage1MΩStability: listDirectVoltage1MΩStability, templistInputImpedanceStability: listInputImpedanceStability, templistVoltageFlatnessStability: listVoltageFlatnessStability, templistRisetimeStability: listRisetimeStability, } } // 获取详情 function fetchInfo(id = '') { const loading = ElLoading.service({ lock: true, background: 'rgba(255, 255, 255, 0.8)', }) getInfo({ id: id || infoId.value }).then((res) => { form.value = { ...res.data } equipmentId.value = res.data.equipmentId const { templistTimeMarkRepeatability, templistSquareWaveVoltage50ΩRepeatability, templistSquareWaveVoltage1MΩRepeatability, templistDirectVoltage50ΩRepeatability, templistDirectVoltage1MΩRepeatability, templistInputImpedanceRepeatability, templistVoltageFlatnessRepeatability, templistRisetimeRepeatability, templistTimeMarkStability, templistSquareWaveVoltage50ΩStability, templistSquareWaveVoltage1MΩStability, templistDirectVoltage50ΩStability, templistDirectVoltage1MΩStability, templistInputImpedanceStability, templistVoltageFlatnessStability, templistRisetimeStability, } = solveGetDetailData(res.data.checkDataOscilloscopeList) if (id !== '') { // 查询的日期获得的数据 listTimeMarkRepeatabilityCheckDate.value = templistTimeMarkRepeatability listSquareWaveVoltage50ΩRepeatabilityCheckDate.value = templistSquareWaveVoltage50ΩRepeatability listSquareWaveVoltage1MΩRepeatabilityCheckDate.value = templistSquareWaveVoltage1MΩRepeatability listDirectVoltage50ΩRepeatabilityCheckDate.value = templistDirectVoltage50ΩRepeatability listDirectVoltage1MΩRepeatabilityCheckDate.value = templistDirectVoltage1MΩRepeatability listInputImpedanceRepeatabilityCheckDate.value = templistInputImpedanceRepeatability listVoltageFlatnessRepeatabilityCheckDate.value = templistVoltageFlatnessRepeatability // 数据根据类型分组 listVoltageFlatnessRepeatabilityCheckDate.value = useGroup(listVoltageFlatnessRepeatabilityCheckDate.value, 'typeValue') listRisetimeRepeatabilityCheckDate.value = templistRisetimeRepeatability listTimeMarkStabilityCheckDate.value = templistTimeMarkStability listSquareWaveVoltage50ΩStabilityCheckDate.value = templistSquareWaveVoltage50ΩStability listSquareWaveVoltage1MΩStabilityCheckDate.value = templistSquareWaveVoltage1MΩStability listDirectVoltage50ΩStabilityCheckDate.value = templistDirectVoltage50ΩStability listDirectVoltage1MΩStabilityCheckDate.value = templistDirectVoltage1MΩStability listInputImpedanceStabilityCheckDate.value = templistInputImpedanceStability listVoltageFlatnessStabilityCheckDate.value = templistVoltageFlatnessStability // 数据根据类型分组 listVoltageFlatnessStabilityCheckDate.value = useGroup(listVoltageFlatnessStabilityCheckDate.value, 'typeValue') listRisetimeStabilityCheckDate.value = templistRisetimeStability } else { listTimeMarkRepeatability.value = templistTimeMarkRepeatability listSquareWaveVoltage50ΩRepeatability.value = templistSquareWaveVoltage50ΩRepeatability listSquareWaveVoltage1MΩRepeatability.value = templistSquareWaveVoltage1MΩRepeatability listDirectVoltage50ΩRepeatability.value = templistDirectVoltage50ΩRepeatability listDirectVoltage1MΩRepeatability.value = templistDirectVoltage1MΩRepeatability listInputImpedanceRepeatability.value = templistInputImpedanceRepeatability listVoltageFlatnessRepeatability.value = templistVoltageFlatnessRepeatability // 数据根据类型分组 listVoltageFlatnessRepeatability.value = useGroup(listVoltageFlatnessRepeatability.value, 'typeValue') listRisetimeRepeatability.value = templistRisetimeRepeatability listTimeMarkStability.value = templistTimeMarkStability listSquareWaveVoltage50ΩStability.value = templistSquareWaveVoltage50ΩStability listSquareWaveVoltage1MΩStability.value = templistSquareWaveVoltage1MΩStability listDirectVoltage50ΩStability.value = templistDirectVoltage50ΩStability listDirectVoltage1MΩStability.value = templistDirectVoltage1MΩStability listInputImpedanceStability.value = templistInputImpedanceStability listVoltageFlatnessStability.value = templistVoltageFlatnessStability listVoltageFlatnessStability.value = useGroup(listVoltageFlatnessStability.value, 'typeValue') listRisetimeStability.value = templistRisetimeStability } nextTick(() => { if (id !== '') { // 稳定性表头---查询历史的稳定性日期数据 const tempColumn = [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ] as any if (listTimeMarkRepeatability.value && listTimeMarkRepeatability.value.length) { columns_stability_timeMark_checkDate.value[2].children = [...tempColumn] } if (listSquareWaveVoltage50ΩRepeatability.value && listSquareWaveVoltage50ΩRepeatability.value.length) { columns_stability_squareWaveVoltage50Ω_checkDate.value[2].children = [...tempColumn] } if (listSquareWaveVoltage1MΩRepeatability.value && listSquareWaveVoltage1MΩRepeatability.value.length) { columns_stability_squareWaveVoltage1MΩ_checkDate.value[2].children = [...tempColumn] } if (listDirectVoltage50ΩRepeatability.value && listDirectVoltage50ΩRepeatability.value.length) { columns_stability_directVoltage50Ω_checkDate.value[2].children = [...tempColumn] } if (listDirectVoltage1MΩRepeatability.value && listDirectVoltage1MΩRepeatability.value.length) { columns_stability_directVoltage1MΩ_checkDate.value[2].children = [...tempColumn] } if (listInputImpedanceRepeatability.value && listInputImpedanceRepeatability.value.length) { columns_stability_inputImpedance_checkDate.value[2].children = [...tempColumn] } if (listVoltageFlatnessRepeatability.value && listVoltageFlatnessRepeatability.value.length) { columns_stability_voltage_flatness_checkDate.value[3].children = [...tempColumn] } fetchHistoryIndication(currentDate.value) // 获取稳定性 } else { // 正常核查数据处理表头 columns_stability_timeMark.value = handleDetailTableTableHead(columns_stability_timeMark.value, listTimeMarkStability.value, 2) columns_stability_squareWaveVoltage50Ω.value = handleDetailTableTableHead(columns_stability_squareWaveVoltage50Ω.value, listSquareWaveVoltage50ΩStability.value, 2) columns_stability_squareWaveVoltage1MΩ.value = handleDetailTableTableHead(columns_stability_squareWaveVoltage1MΩ.value, listSquareWaveVoltage1MΩStability.value, 2) columns_stability_directVoltage50Ω.value = handleDetailTableTableHead(columns_stability_directVoltage50Ω.value, listDirectVoltage50ΩStability.value, 2) columns_stability_directVoltage1MΩ.value = handleDetailTableTableHead(columns_stability_directVoltage1MΩ.value, listDirectVoltage1MΩStability.value, 2) columns_stability_inputImpedance.value = handleDetailTableTableHead(columns_stability_inputImpedance.value, listInputImpedanceStability.value, 2) columns_stability_voltage_flatness.value = handleDetailTableTableHead(columns_stability_voltage_flatness.value, listVoltageFlatnessStability.value, 3) } }) if (props.pageType === 'edit' || props.pageType === 'detail') { fetchHistoryIndication() // 重新拉取稳定性日期 } loading.close() }) } /** * 获取稳定性示值 * @param date 查询日期 */ function fetchHistoryIndication(date = '') { if (!equipmentId.value || !props.selectStandardId) { return false } const params = { belongStandardEquipment: belongStandardEquipment.value, // 检校标准库(字典code) checkDate: date || props.checkDate!, // 核查日期 checkParam: '', // 核查参数((直流稳压电源-直接电流(间接测量)) conclusion: '合格', // 结论 equipmentId: equipmentId.value, // 被核查智能模型id params: '', // 核查项目 stabilityExamine: '1', // 是否用于稳定性考核(1/0) standardEquipmentId: props.selectStandardId!, // 被核查标准库id } if (props.selectStandardId && equipmentId.value) { listTimeMarkStabilityLoading.value = true listSquareWaveVoltage50ΩStabilityLoading.value = true listSquareWaveVoltage1MΩStabilityLoading.value = true listDirectVoltage50ΩStabilityLoading.value = true listDirectVoltage1MΩStabilityLoading.value = true listInputImpedanceStabilityLoading.value = true listVoltageFlatnessStabilityLoading.value = true listRisetimeStabilityLoading.value = true } getHistoryIndication(params).then((res) => { if (date === '') { // 正常核查数据 const num = (props.pageType === 'edit' || props.pageType === 'detail') ? 5 : 4 // '时标': listTimeMarkStability.value = listTimeMarkStability.value.map((item) => { const { itemData, columnsData } = solveHistoryIndicationTableData(res.data.data.filter((item: { params: string }) => item.params === '时标'), item, columns_stability_timeMark.value, num, 2, '13') console.log('columnsData', columnsData[2]) columns_stability_timeMark.value = columnsData return item = itemData }) listTimeMarkStability.value = handleSaveDateParams(columns_stability_timeMark.value, listTimeMarkStability.value, 2) // '方波电压(50Ω)': listSquareWaveVoltage50ΩStability.value = listSquareWaveVoltage50ΩStability.value.map((item) => { const { itemData, columnsData } = solveHistoryIndicationTableData(res.data.data.filter((item: { params: string }) => item.params === '方波电压(50Ω)'), item, columns_stability_squareWaveVoltage50Ω.value, num, 2, '13') columns_stability_squareWaveVoltage50Ω.value = columnsData return item = itemData }) listSquareWaveVoltage50ΩStability.value = handleSaveDateParams(columns_stability_squareWaveVoltage50Ω.value, listSquareWaveVoltage50ΩStability.value, 2) // '方波电压(1MΩ)': listSquareWaveVoltage1MΩStability.value = listSquareWaveVoltage1MΩStability.value.map((item) => { const { itemData, columnsData } = solveHistoryIndicationTableData(res.data.data.filter((item: { params: string }) => item.params === '方波电压(1MΩ)'), item, columns_stability_squareWaveVoltage1MΩ.value, num, 2, '13') columns_stability_squareWaveVoltage1MΩ.value = columnsData return item = itemData }) listSquareWaveVoltage1MΩStability.value = handleSaveDateParams(columns_stability_squareWaveVoltage1MΩ.value, listSquareWaveVoltage1MΩStability.value, 2) // '直流电压(50Ω)': listDirectVoltage50ΩStability.value = listDirectVoltage50ΩStability.value.map((item) => { const { itemData, columnsData } = solveHistoryIndicationTableData(res.data.data.filter((item: { params: string }) => item.params === '直流电压(50Ω)'), item, columns_stability_directVoltage50Ω.value, num, 2, '13') columns_stability_directVoltage50Ω.value = columnsData return item = itemData }) listDirectVoltage50ΩStability.value = handleSaveDateParams(columns_stability_directVoltage50Ω.value, listDirectVoltage50ΩStability.value, 2) // '直流电压(1MΩ)': listDirectVoltage1MΩStability.value = listDirectVoltage1MΩStability.value.map((item) => { const { itemData, columnsData } = solveHistoryIndicationTableData(res.data.data.filter((item: { params: string }) => item.params === '直流电压(1MΩ)'), item, columns_stability_directVoltage1MΩ.value, num, 2, '13') columns_stability_directVoltage1MΩ.value = columnsData return item = itemData }) listDirectVoltage1MΩStability.value = handleSaveDateParams(columns_stability_directVoltage1MΩ.value, listDirectVoltage1MΩStability.value, 2) // '输入阻抗': listInputImpedanceStability.value = listInputImpedanceStability.value.map((item) => { const { itemData, columnsData } = solveHistoryIndicationTableData(res.data.data.filter((item: { params: string }) => item.params === '输入阻抗'), item, columns_stability_inputImpedance.value, num, 2, '13') columns_stability_inputImpedance.value = columnsData return item = itemData }) listInputImpedanceStability.value = handleSaveDateParams(columns_stability_inputImpedance.value, listInputImpedanceStability.value, 2) // '稳幅正弦信号电压平坦度': listVoltageFlatnessStability.value = listVoltageFlatnessStability.value.map((item) => { const { itemData, columnsData } = solveHistoryIndicationTableData(res.data.data.filter((item: { params: string }) => item.params === '稳幅正弦信号电压平坦度'), item, columns_stability_voltage_flatness.value, num, 3, '13') columns_stability_voltage_flatness.value = columnsData return item = itemData }) listVoltageFlatnessStability.value = handleSaveDateParams(columns_stability_voltage_flatness.value, listVoltageFlatnessStability.value, 3) } else { initColumnsCheckDate() const num = 5 if (listTimeMarkRepeatability.value && listTimeMarkRepeatability.value.length) { // '时标': listTimeMarkStabilityCheckDate.value = listTimeMarkStabilityCheckDate.value.map((item) => { clearDateValue(item) const { itemData, columnsData } = solveHistoryIndicationTableData(res.data.data.filter((item: { params: string }) => item.params === '时标'), item, columns_stability_timeMark_checkDate.value, num, 2, '13') columns_stability_timeMark_checkDate.value = columnsData return item = itemData }) listTimeMarkStabilityCheckDate.value = handleSaveDateParams(columns_stability_timeMark_checkDate.value, listTimeMarkStabilityCheckDate.value, 2) } // '方波电压(50Ω)': if (listSquareWaveVoltage50ΩRepeatability.value && listSquareWaveVoltage50ΩRepeatability.value.length) { listSquareWaveVoltage50ΩStabilityCheckDate.value = listSquareWaveVoltage50ΩStabilityCheckDate.value.map((item) => { clearDateValue(item) const { itemData, columnsData } = solveHistoryIndicationTableData(res.data.data.filter((item: { params: string }) => item.params === '方波电压(50Ω)'), item, columns_stability_squareWaveVoltage50Ω_checkDate.value, num, 2, '13') columns_stability_squareWaveVoltage50Ω_checkDate.value = columnsData return item = itemData }) listSquareWaveVoltage50ΩStabilityCheckDate.value = handleSaveDateParams(columns_stability_squareWaveVoltage50Ω_checkDate.value, listSquareWaveVoltage50ΩStabilityCheckDate.value, 2) } // '方波电压(1MΩ)': if (listSquareWaveVoltage1MΩRepeatability.value && listSquareWaveVoltage1MΩRepeatability.value.length) { listSquareWaveVoltage1MΩStabilityCheckDate.value = listSquareWaveVoltage1MΩStabilityCheckDate.value.map((item) => { clearDateValue(item) const { itemData, columnsData } = solveHistoryIndicationTableData(res.data.data.filter((item: { params: string }) => item.params === '方波电压(1MΩ)'), item, columns_stability_squareWaveVoltage1MΩ_checkDate.value, num, 2, '13') columns_stability_squareWaveVoltage1MΩ_checkDate.value = columnsData return item = itemData }) listSquareWaveVoltage1MΩStabilityCheckDate.value = handleSaveDateParams(columns_stability_squareWaveVoltage1MΩ_checkDate.value, listSquareWaveVoltage1MΩStabilityCheckDate.value, 2) } // '直流电压(50Ω)': if (listDirectVoltage50ΩRepeatability.value && listDirectVoltage50ΩRepeatability.value.length) { listDirectVoltage50ΩStabilityCheckDate.value = listDirectVoltage50ΩStabilityCheckDate.value.map((item) => { clearDateValue(item) const { itemData, columnsData } = solveHistoryIndicationTableData(res.data.data.filter((item: { params: string }) => item.params === '直流电压(50Ω)'), item, columns_stability_directVoltage50Ω_checkDate.value, num, 2, '13') columns_stability_directVoltage50Ω_checkDate.value = columnsData return item = itemData }) listDirectVoltage50ΩStabilityCheckDate.value = handleSaveDateParams(columns_stability_directVoltage50Ω_checkDate.value, listDirectVoltage50ΩStabilityCheckDate.value, 2) } // '直流电压(1MΩ)': if (listDirectVoltage1MΩRepeatability.value && listDirectVoltage1MΩRepeatability.value.length) { listDirectVoltage1MΩStabilityCheckDate.value = listDirectVoltage1MΩStabilityCheckDate.value.map((item) => { clearDateValue(item) const { itemData, columnsData } = solveHistoryIndicationTableData(res.data.data.filter((item: { params: string }) => item.params === '直流电压(1MΩ)'), item, columns_stability_directVoltage1MΩ_checkDate.value, num, 2, '13') columns_stability_directVoltage1MΩ_checkDate.value = columnsData return item = itemData }) listDirectVoltage1MΩStabilityCheckDate.value = handleSaveDateParams(columns_stability_directVoltage1MΩ_checkDate.value, listDirectVoltage1MΩStabilityCheckDate.value, 2) } // '输入阻抗': if (listInputImpedanceRepeatability.value && listInputImpedanceRepeatability.value.length) { listInputImpedanceStabilityCheckDate.value = listInputImpedanceStabilityCheckDate.value.map((item) => { clearDateValue(item) const { itemData, columnsData } = solveHistoryIndicationTableData(res.data.data.filter((item: { params: string }) => item.params === '输入阻抗'), item, columns_stability_inputImpedance_checkDate.value, num, 2, '13') columns_stability_inputImpedance_checkDate.value = columnsData return item = itemData }) listInputImpedanceStabilityCheckDate.value = handleSaveDateParams(columns_stability_inputImpedance_checkDate.value, listInputImpedanceStabilityCheckDate.value, 2) } // '稳幅正弦信号电压平坦度': if (listVoltageFlatnessRepeatability.value && listVoltageFlatnessRepeatability.value.length) { listVoltageFlatnessStabilityCheckDate.value = listVoltageFlatnessStabilityCheckDate.value.map((item) => { clearDateValue(item) const { itemData, columnsData } = solveHistoryIndicationTableData(res.data.data.filter((item: { params: string }) => item.params === '稳幅正弦信号电压平坦度'), item, columns_stability_voltage_flatness_checkDate.value, num, 3, '13') columns_stability_voltage_flatness_checkDate.value = columnsData return item = itemData }) listVoltageFlatnessStabilityCheckDate.value = handleSaveDateParams(columns_stability_voltage_flatness_checkDate.value, listVoltageFlatnessStabilityCheckDate.value, 3) } } listTimeMarkStabilityLoading.value = false // 时标-稳定性Loading listSquareWaveVoltage50ΩStabilityLoading.value = false // 方波电压(50Ω)-稳定性Loading listSquareWaveVoltage1MΩStabilityLoading.value = false // 方波电压(1MΩ)-稳定性Loading listDirectVoltage50ΩStabilityLoading.value = false // 直流电压(50Ω)-稳定性Loading listDirectVoltage1MΩStabilityLoading.value = false // 直流电压(1MΩ)-稳定性Loading listInputImpedanceStabilityLoading.value = false // 输入阻抗-稳定性Loading listVoltageFlatnessStabilityLoading.value = false // 稳幅正弦信号电压平坦度-稳定性Loading listRisetimeStabilityLoading.value = false // 上升时间-稳定性Loading }).catch(() => { listTimeMarkStabilityLoading.value = false // 时标-稳定性Loading listSquareWaveVoltage50ΩStabilityLoading.value = false // 方波电压(50Ω)-稳定性Loading listSquareWaveVoltage1MΩStabilityLoading.value = false // 方波电压(1MΩ)-稳定性Loading listDirectVoltage50ΩStabilityLoading.value = false // 直流电压(50Ω)-稳定性Loading listDirectVoltage1MΩStabilityLoading.value = false // 直流电压(1MΩ)-稳定性Loading listInputImpedanceStabilityLoading.value = false // 输入阻抗-稳定性Loading listVoltageFlatnessStabilityLoading.value = false // 稳幅正弦信号电压平坦度-稳定性Loading listRisetimeStabilityLoading.value = false // 上升时间-稳定性Loading }) } /** * 保存之前的校验 */ function checkList() { // 新建核查数据的时候,在保存之前要先校验一下本次核查日期有没有数据,没有不允许保存 if (listTimeMarkRepeatability.value.length && `${listTimeMarkRepeatability.value[0].averageValue}` === '') { ElMessage.warning('请先计算 时标 的重复性') return false } if (listSquareWaveVoltage50ΩRepeatability.value.length && `${listSquareWaveVoltage50ΩRepeatability.value[0].averageValue}` === '') { ElMessage.warning('请先计算 方波电压(50Ω) 重复性') return false } if (listSquareWaveVoltage1MΩRepeatability.value.length && `${listSquareWaveVoltage1MΩRepeatability.value[0].averageValue}` === '') { ElMessage.warning('请先计算 方波电压(1MΩ) 重复性') return false } if (listDirectVoltage50ΩRepeatability.value.length && `${listDirectVoltage50ΩRepeatability.value[0].averageValue}` === '') { ElMessage.warning('请先计算 直流电压(50Ω) 重复性') return false } if (listDirectVoltage1MΩRepeatability.value.length && `${listDirectVoltage1MΩRepeatability.value[0].averageValue}` === '') { ElMessage.warning('请先计算 直流电压(1MΩ) 重复性') return false } if (listInputImpedanceRepeatability.value.length && `${listInputImpedanceRepeatability.value[0].averageValue}` === '') { ElMessage.warning('请先计算 输入阻抗 重复性') return false } if (listVoltageFlatnessRepeatability.value.length && `${listVoltageFlatnessRepeatability.value[0].averageValue}` === '') { ElMessage.warning('请先计算 稳幅正弦信号电压平坦度 重复性') return false } return true } // 保存之前处理数据 const solveDataBeforeSave = () => { // 数据处理 let tempList = [] as any tempList = tempList.concat( listTimeMarkRepeatability.value, // 时标-重复性 listSquareWaveVoltage50ΩRepeatability.value, // 方波电压(50Ω)-重复性 listSquareWaveVoltage1MΩRepeatability.value, // 方波电压(1MΩ)-重复性 listDirectVoltage50ΩRepeatability.value, // 直流电压(50Ω)-重复性 listDirectVoltage1MΩRepeatability.value, // 直流电压(1MΩ)-重复性 listInputImpedanceRepeatability.value, // 输入阻抗-重复性 listVoltageFlatnessRepeatability.value, // 稳幅正弦信号电压平坦度-重复性 listRisetimeRepeatability.value, // 上升时间-重复性 listTimeMarkStability.value, // 时标-稳定性 listSquareWaveVoltage50ΩStability.value, // 方波电压(50Ω)-稳定性 listSquareWaveVoltage1MΩStability.value, // 方波电压(1MΩ)-稳定性 listDirectVoltage50ΩStability.value, // 直流电压(50Ω)-稳定性 listDirectVoltage1MΩStability.value, // 直流电压(1MΩ)-稳定性 listInputImpedanceStability.value, // 输入阻抗-稳定性 listVoltageFlatnessStability.value, // 稳幅正弦信号电压平坦度-稳定性 listRisetimeStability.value, // 上升时间-稳定性 ) return tempList } // 点击表头日期查询历史稳定性数据 const handleClickHeader = (val: any, checkDateDetailId: string) => { dateArrStability.value = ['核查数据', val.label] fetchInfo(checkDateDetailId) // 获取此次历史日期的详情 } // 日期变化 const handleChangeRadio = (date: string) => { currentDate.value = date } // 上升时间测量值变化 const changeTestValueOne = (val: number, index: number) => { listRisetimeStability.value[index].testValueOne = listRisetimeRepeatability.value[index].testValueOne } // -------------------------------------钩子----------------------------------------------------- // 统计日期 const dateCount = (columns: TableColumn[]) => { let dateNum = 0 // 稳定性表格有几个日期 // 统计有几个日期 columns[3].children?.forEach((item) => { if (item.text !== '-' && item.text !== '') { dateNum += 1 } }) return dateNum } watch(() => props.pageType, (newValue) => { if (newValue === 'detail') { listTimeMarkRepeatability.value = listTimeMarkRepeatability.value.map((item) => { item.editable = false; return item }) listSquareWaveVoltage50ΩRepeatability.value = listSquareWaveVoltage50ΩRepeatability.value.map((item) => { item.editable = false; return item }) listSquareWaveVoltage1MΩRepeatability.value = listSquareWaveVoltage1MΩRepeatability.value.map((item) => { item.editable = false; return item }) listDirectVoltage50ΩRepeatability.value = listDirectVoltage50ΩRepeatability.value.map((item) => { item.editable = false; return item }) listDirectVoltage1MΩRepeatability.value = listDirectVoltage1MΩRepeatability.value.map((item) => { item.editable = false; return item }) listInputImpedanceRepeatability.value = listInputImpedanceRepeatability.value.map((item) => { item.editable = false; return item }) listVoltageFlatnessRepeatability.value = listVoltageFlatnessRepeatability.value.map((item) => { item.editable = false; return item }) listRisetimeRepeatability.value = listRisetimeRepeatability.value.map((item) => { item.editable = false; return item }) } }) /** * 初始化表头 * @param soveLastColumnDate 是否处理最后一列 */ function initColumns() { const tempColumn = [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ] as any if (listTimeMarkRepeatability.value && listTimeMarkRepeatability.value.length) { columns_stability_timeMark.value[2].children = [...tempColumn] } if (listSquareWaveVoltage50ΩRepeatability.value && listSquareWaveVoltage50ΩRepeatability.value.length) { columns_stability_squareWaveVoltage50Ω.value[2].children = [...tempColumn] } if (listSquareWaveVoltage1MΩRepeatability.value && listSquareWaveVoltage1MΩRepeatability.value.length) { columns_stability_squareWaveVoltage1MΩ.value[2].children = [...tempColumn] } if (listDirectVoltage50ΩRepeatability.value && listDirectVoltage50ΩRepeatability.value.length) { columns_stability_directVoltage50Ω.value[2].children = [...tempColumn] } if (listDirectVoltage1MΩRepeatability.value && listDirectVoltage1MΩRepeatability.value.length) { columns_stability_directVoltage1MΩ.value[2].children = [...tempColumn] } if (listInputImpedanceRepeatability.value && listInputImpedanceRepeatability.value.length) { columns_stability_inputImpedance.value[2].children = [...tempColumn] } if (listVoltageFlatnessRepeatability.value && listVoltageFlatnessRepeatability.value.length) { columns_stability_voltage_flatness.value[3].children = [...tempColumn] } if (props.pageType === 'add') { columns_stability_timeMark.value[2].children![5].text = props.checkDate! // 最后一列的表头日期 columns_stability_squareWaveVoltage50Ω.value[2].children![5].text = props.checkDate! // 最后一列的表头日期 columns_stability_squareWaveVoltage1MΩ.value[2].children![5].text = props.checkDate! columns_stability_directVoltage50Ω.value[2].children![5].text = props.checkDate! columns_stability_directVoltage1MΩ.value[2].children![5].text = props.checkDate! columns_stability_inputImpedance.value[2].children![5].text = props.checkDate! columns_stability_voltage_flatness.value[3].children![5].text = props.checkDate! } } /** * 初始化表头 */ function initColumnsCheckDate() { const tempColumn = [ { width: '180', text: '-', value: 'testValueOne', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueTwo', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueThree', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFour', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueFive', align: 'center', required: false, type: 'text', customHeader: true }, { width: '180', text: '-', value: 'testValueSix', align: 'center', required: false, type: 'text', customHeader: true }, ] as any if (listTimeMarkRepeatability.value && listTimeMarkRepeatability.value.length) { columns_stability_timeMark_checkDate.value[2].children = [...tempColumn] } if (listSquareWaveVoltage50ΩRepeatability.value && listSquareWaveVoltage50ΩRepeatability.value.length) { columns_stability_squareWaveVoltage50Ω_checkDate.value[2].children = [...tempColumn] } if (listSquareWaveVoltage1MΩRepeatability.value && listSquareWaveVoltage1MΩRepeatability.value.length) { columns_stability_squareWaveVoltage1MΩ_checkDate.value[2].children = [...tempColumn] } if (listDirectVoltage50ΩRepeatability.value && listDirectVoltage50ΩRepeatability.value.length) { columns_stability_directVoltage50Ω_checkDate.value[2].children = [...tempColumn] } if (listDirectVoltage1MΩRepeatability.value && listDirectVoltage1MΩRepeatability.value.length) { columns_stability_directVoltage1MΩ_checkDate.value[2].children = [...tempColumn] } if (listInputImpedanceRepeatability.value && listInputImpedanceRepeatability.value.length) { columns_stability_inputImpedance_checkDate.value[2].children = [...tempColumn] } if (listVoltageFlatnessRepeatability.value && listVoltageFlatnessRepeatability.value.length) { columns_stability_voltage_flatness_checkDate.value[3].children = [...tempColumn] } } // 监听核查日期变化 watch(() => props.checkDate, (newValue) => { initColumns() nextTick(() => { fetchHistoryIndication() // 重新拉取稳定性日期 }) }, { immediate: true }) onMounted(async () => { belongStandardEquipment.value = $route.query.belongStandardEquipment as string // 检校标准库 itemCategoryId.value = $route.query.itemCategoryId as string // 核查项分类id itemCategoryName.value = $route.query.itemCategoryName as string // 核查项分类名称 if (props.pageType !== 'add') { fetchInfo() } }) defineExpose({ fetchCheckItemDetail, checkList, solveDataBeforeSave, form }) </script> <template> <!-- 核查数据 --> <detail-block :title="dateArrStability.length > 1 ? ' ' : '核查数据'" :title-menus="dateArrStability" @handle-change-radio="handleChangeRadio"> <div style="display: flex;justify-content: space-between;"> <el-radio-group v-model="current" style="margin-bottom: 20px;"> <el-radio-button v-for="item in radioMenus" :key="item.value" :label="item.value"> {{ item.name }} </el-radio-button> </el-radio-group> </div> <div style="display: flex;justify-content: space-between;align-items: center; position: absolute; right: 20px;"> <div /> <el-button v-if="pageType !== 'detail' && current === 'stability'" type="primary" @click="createResult('stability')" > 计算结果 </el-button> </div> <!-- 时标 --> <div style="display: flex;justify-content: space-between;align-items: center;"> <h5 v-if="listTimeMarkRepeatability.length"> 时标 </h5> <div v-if="!listTimeMarkRepeatability.length" /> <el-button v-if="pageType !== 'detail' && current === 'repeatability' && listTimeMarkRepeatability.length" type="primary" @click="createResult('时标')"> 计算结果 </el-button> <!-- <el-button v-if="pageType !== 'detail' && current === 'stability'" type="primary" @click="createResult('stability')"> 计算结果 </el-button> --> </div> <multi-table v-show="current === 'repeatability' && (currentDate === '核查数据' || currentDate === '') && listTimeMarkRepeatability.length" v-loading="listTimeMarkRepeatabilityLoading" :table-data="listTimeMarkRepeatability" :table-header="columns_repeatability_timeMark" :merge-rows="[]" :need-index="true" max-height="300" /> <!-- 历史日期重复性数据 --> <multi-table v-show="current === 'repeatability' && (currentDate !== '核查数据' && currentDate !== '') && listTimeMarkRepeatabilityCheckDate.length" v-loading="listTimeMarkRepeatabilityLoading" :table-data="listTimeMarkRepeatabilityCheckDate" :table-header="columns_repeatability_timeMark" :merge-rows="[]" :need-index="true" max-height="300" /> <!-- 时标稳定性 --> <multi-table v-show="current === 'stability' && (currentDate === '核查数据' || currentDate === '') && listTimeMarkStability.length" v-loading="listTimeMarkStabilityLoading" :table-data="listTimeMarkStability" :table-header="columns_stability_timeMark" :merge-rows="[]" :need-index="true" max-height="500" @handle-click-header="handleClickHeader" /> <!-- 历史日期稳定性数据 --> <multi-table v-show="current === 'stability' && (currentDate !== '核查数据' && currentDate !== '') && listTimeMarkStabilityCheckDate.length" v-loading="listTimeMarkStabilityLoading" :table-data="listTimeMarkStabilityCheckDate" :table-header="columns_stability_timeMark_checkDate" :merge-rows="[]" :need-index="true" max-height="500" @handle-click-header="handleClickHeader" /> <!-- 方波电压(50Ω) --> <div v-if="listSquareWaveVoltage50ΩRepeatability.length" style="display: flex;justify-content: space-between;align-items: center;"> <h5>方波电压(50Ω)</h5> <el-button v-if="pageType !== 'detail' && current === 'repeatability'" type="primary" @click="createResult('方波电压(50Ω)')"> 计算结果 </el-button> </div> <multi-table v-show="current === 'repeatability' && (currentDate === '核查数据' || currentDate === '') && listSquareWaveVoltage50ΩRepeatability.length" v-loading="listSquareWaveVoltage50ΩRepeatabilityLoading" :table-data="listSquareWaveVoltage50ΩRepeatability" :table-header="columns_repeatability_timeMark" :merge-rows="[]" :need-index="true" max-height="300" /> <!-- 历史日期重复性数据 --> <multi-table v-show="current === 'repeatability' && (currentDate !== '核查数据' && currentDate !== '') && listSquareWaveVoltage50ΩRepeatabilityCheckDate.length" v-loading="listSquareWaveVoltage50ΩRepeatabilityLoading" :table-data="listSquareWaveVoltage50ΩRepeatabilityCheckDate" :table-header="columns_repeatability_timeMark" :merge-rows="[]" :need-index="true" max-height="300" /> <!-- 方波电压(50Ω)稳定性 --> <multi-table v-show="current === 'stability' && (currentDate === '核查数据' || currentDate === '') && listSquareWaveVoltage50ΩStability.length" v-loading="listSquareWaveVoltage50ΩStabilityLoading" :table-data="listSquareWaveVoltage50ΩStability" :table-header="columns_stability_squareWaveVoltage50Ω" :merge-rows="[]" :need-index="true" max-height="500" @handle-click-header="handleClickHeader" /> <!-- 历史日期稳定性数据 --> <multi-table v-show="current === 'stability' && (currentDate !== '核查数据' && currentDate !== '') && listSquareWaveVoltage50ΩStabilityCheckDate.length" v-loading="listSquareWaveVoltage50ΩStabilityLoading" :table-data="listSquareWaveVoltage50ΩStabilityCheckDate" :table-header="columns_stability_squareWaveVoltage50Ω_checkDate" :merge-rows="[]" :need-index="true" max-height="500" @handle-click-header="handleClickHeader" /> <!-- 方波电压(1MΩ) --> <div v-if="listSquareWaveVoltage1MΩRepeatability.length" style="display: flex;justify-content: space-between;align-items: center;"> <h5>方波电压(1MΩ)</h5> <el-button v-if="pageType !== 'detail' && current === 'repeatability'" type="primary" @click="createResult('方波电压(1MΩ)')"> 计算结果 </el-button> </div> <multi-table v-show="current === 'repeatability' && (currentDate === '核查数据' || currentDate === '') && listSquareWaveVoltage1MΩRepeatability.length" v-loading="listSquareWaveVoltage1MΩRepeatabilityLoading" :table-data="listSquareWaveVoltage1MΩRepeatability" :table-header="columns_repeatability_timeMark" :merge-rows="[]" :need-index="true" max-height="300" /> <!-- 历史日期重复性数据 --> <multi-table v-show="current === 'repeatability' && (currentDate !== '核查数据' && currentDate !== '') && listSquareWaveVoltage1MΩRepeatabilityCheckDate.length" v-loading="listSquareWaveVoltage1MΩRepeatabilityLoading" :table-data="listSquareWaveVoltage1MΩRepeatabilityCheckDate" :table-header="columns_repeatability_timeMark" :merge-rows="[]" :need-index="true" max-height="300" /> <!-- 稳定性 --> <multi-table v-show="current === 'stability' && (currentDate === '核查数据' || currentDate === '') && listSquareWaveVoltage1MΩStability.length" v-loading="listSquareWaveVoltage1MΩStabilityLoading" :table-data="listSquareWaveVoltage1MΩStability" :table-header="columns_stability_squareWaveVoltage1MΩ" :merge-rows="[]" :need-index="true" max-height="500" @handle-click-header="handleClickHeader" /> <!-- 历史日期稳定性数据 --> <multi-table v-show="current === 'stability' && (currentDate !== '核查数据' && currentDate !== '') && listSquareWaveVoltage1MΩStabilityCheckDate.length" v-loading="listSquareWaveVoltage1MΩStabilityLoading" :table-data="listSquareWaveVoltage1MΩStabilityCheckDate" :table-header="columns_stability_squareWaveVoltage1MΩ_checkDate" :merge-rows="[]" :need-index="true" max-height="500" @handle-click-header="handleClickHeader" /> <!-- 直流电压(50Ω) --> <div v-if="listDirectVoltage50ΩRepeatability.length" style="display: flex;justify-content: space-between;align-items: center;"> <h5>直流电压(50Ω)</h5> <el-button v-if="pageType !== 'detail' && current === 'repeatability'" type="primary" @click="createResult('直流电压(50Ω)')"> 计算结果 </el-button> </div> <multi-table v-show="current === 'repeatability' && (currentDate === '核查数据' || currentDate === '') && listDirectVoltage50ΩRepeatability.length" v-loading="listDirectVoltage50ΩRepeatabilityLoading" :table-data="listDirectVoltage50ΩRepeatability" :table-header="columns_repeatability_timeMark" :merge-rows="[]" :need-index="true" max-height="300" /> <!-- 历史日期重复性数据 --> <multi-table v-show="current === 'repeatability' && (currentDate !== '核查数据' && currentDate !== '') && listDirectVoltage50ΩRepeatabilityCheckDate.length" v-loading="listDirectVoltage50ΩRepeatabilityLoading" :table-data="listDirectVoltage50ΩRepeatabilityCheckDate" :table-header="columns_repeatability_timeMark" :merge-rows="[]" :need-index="true" max-height="300" /> <!-- 稳定性 --> <multi-table v-show="current === 'stability' && (currentDate === '核查数据' || currentDate === '') && listDirectVoltage50ΩStability.length" v-loading="listDirectVoltage50ΩStabilityLoading" :table-data="listDirectVoltage50ΩStability" :table-header="columns_stability_directVoltage50Ω" :merge-rows="[]" :need-index="true" max-height="500" @handle-click-header="handleClickHeader" /> <!-- 历史日期稳定性数据 --> <multi-table v-show="current === 'stability' && (currentDate !== '核查数据' && currentDate !== '') && listDirectVoltage50ΩStabilityCheckDate.length" v-loading="listDirectVoltage50ΩStabilityLoading" :table-data="listDirectVoltage50ΩStabilityCheckDate" :table-header="columns_stability_directVoltage50Ω_checkDate" :merge-rows="[]" :need-index="true" max-height="500" @handle-click-header="handleClickHeader" /> <!-- 直流电压(1MΩ) --> <div v-if="listDirectVoltage1MΩRepeatability.length" style="display: flex;justify-content: space-between;align-items: center;"> <h5>直流电压(1MΩ)</h5> <el-button v-if="pageType !== 'detail' && current === 'repeatability'" type="primary" @click="createResult('直流电压(1MΩ)')"> 计算结果 </el-button> </div> <multi-table v-show="current === 'repeatability' && (currentDate === '核查数据' || currentDate === '') && listDirectVoltage1MΩRepeatability.length" v-loading="listDirectVoltage1MΩRepeatabilityLoading" :table-data="listDirectVoltage1MΩRepeatability" :table-header="columns_repeatability_timeMark" :merge-rows="[]" :need-index="true" max-height="300" /> <!-- 历史日期重复性数据 --> <multi-table v-show="current === 'repeatability' && (currentDate !== '核查数据' && currentDate !== '') && listDirectVoltage1MΩRepeatabilityCheckDate.length" v-loading="listDirectVoltage1MΩRepeatabilityLoading" :table-data="listDirectVoltage1MΩRepeatabilityCheckDate" :table-header="columns_repeatability_timeMark" :merge-rows="[]" :need-index="true" max-height="300" /> <!-- 稳定性 --> <multi-table v-show="current === 'stability' && (currentDate === '核查数据' || currentDate === '') && listDirectVoltage1MΩStability.length" v-loading="listDirectVoltage1MΩStabilityLoading" :table-data="listDirectVoltage1MΩStability" :table-header="columns_stability_directVoltage1MΩ" :merge-rows="[]" :need-index="true" max-height="500" @handle-click-header="handleClickHeader" /> <!-- 历史日期稳定性数据 --> <multi-table v-show="current === 'stability' && (currentDate !== '核查数据' && currentDate !== '') && listDirectVoltage1MΩStabilityCheckDate.length" v-loading="listDirectVoltage1MΩStabilityLoading" :table-data="listDirectVoltage1MΩStabilityCheckDate" :table-header="columns_stability_directVoltage1MΩ_checkDate" :merge-rows="[]" :need-index="true" max-height="500" @handle-click-header="handleClickHeader" /> <!-- 输入阻抗 --> <div v-if="listInputImpedanceRepeatability.length" style="display: flex;justify-content: space-between;align-items: center;"> <h5>输入阻抗</h5> <el-button v-if="pageType !== 'detail' && current === 'repeatability'" type="primary" @click="createResult('输入阻抗')"> 计算结果 </el-button> </div> <multi-table v-show="current === 'repeatability' && (currentDate === '核查数据' || currentDate === '') && listInputImpedanceRepeatability.length" v-loading="listInputImpedanceRepeatabilityLoading" :table-data="listInputImpedanceRepeatability" :table-header="columns_repeatability_timeMark" :merge-rows="[]" :need-index="true" max-height="300" /> <!-- 历史日期重复性数据 --> <multi-table v-show="current === 'repeatability' && (currentDate !== '核查数据' && currentDate !== '') && listInputImpedanceRepeatabilityCheckDate.length" v-loading="listInputImpedanceRepeatabilityLoading" :table-data="listInputImpedanceRepeatabilityCheckDate" :table-header="columns_repeatability_timeMark" :merge-rows="[]" :need-index="true" max-height="300" /> <!-- 稳定性 --> <multi-table v-show="current === 'stability' && (currentDate === '核查数据' || currentDate === '') && listInputImpedanceStability.length" v-loading="listInputImpedanceStabilityLoading" :table-data="listInputImpedanceStability" :table-header="columns_stability_inputImpedance" :merge-rows="[]" :need-index="true" max-height="500" @handle-click-header="handleClickHeader" /> <!-- 历史日期稳定性数据 --> <multi-table v-show="current === 'stability' && (currentDate !== '核查数据' && currentDate !== '') && listInputImpedanceStabilityCheckDate.length" v-loading="listInputImpedanceStabilityLoading" :table-data="listInputImpedanceStabilityCheckDate" :table-header="columns_stability_inputImpedance_checkDate" :merge-rows="[]" :need-index="true" max-height="500" @handle-click-header="handleClickHeader" /> <!-- 稳幅正弦信号电压平坦度 --> <div v-if="listVoltageFlatnessRepeatability.length" style="display: flex;justify-content: space-between;align-items: center;"> <h5>稳幅正弦信号电压平坦度</h5> <el-button v-if="pageType !== 'detail' && current === 'repeatability'" type="primary" @click="createResult('稳幅正弦信号电压平坦度')"> 计算结果 </el-button> </div> <multi-table v-show="current === 'repeatability' && (currentDate === '核查数据' || currentDate === '') && listVoltageFlatnessRepeatability.length" v-loading="listVoltageFlatnessRepeatabilityLoading" :table-data="listVoltageFlatnessRepeatability" :table-header="columns_repeatability_voltage_flatness" :merge-rows="['typeValue']" :need-index="true" max-height="300" :min="0" /> <!-- 历史日期重复性数据 --> <multi-table v-show="current === 'repeatability' && (currentDate !== '核查数据' && currentDate !== '') && listVoltageFlatnessRepeatabilityCheckDate.length" v-loading="listVoltageFlatnessRepeatabilityLoading" :table-data="listVoltageFlatnessRepeatabilityCheckDate" :table-header="columns_repeatability_voltage_flatness" :merge-rows="['typeValue']" :need-index="true" max-height="300" /> <!-- 稳定性 --> <multi-table v-show="current === 'stability' && (currentDate === '核查数据' || currentDate === '') && listVoltageFlatnessStability.length" v-loading="listVoltageFlatnessStabilityLoading" :table-data="listVoltageFlatnessStability" :table-header="columns_stability_voltage_flatness" :merge-rows="['typeValue']" :need-index="true" max-height="500" @handle-click-header="handleClickHeader" /> <!-- 历史日期稳定性数据 --> <multi-table v-show="current === 'stability' && (currentDate !== '核查数据' && currentDate !== '') && listVoltageFlatnessStabilityCheckDate.length" v-loading="listVoltageFlatnessStabilityLoading" :table-data="listVoltageFlatnessStabilityCheckDate" :table-header="columns_stability_voltage_flatness_checkDate" :merge-rows="['typeValue']" :need-index="true" max-height="500" @handle-click-header="handleClickHeader" /> <!-- 上升时间 --> <div v-if="listRisetimeRepeatability.length" style="display: flex;justify-content: space-between;align-items: center;"> <h5>上升时间</h5> </div> <!-- 重复性 --> <el-table v-if="current === 'repeatability' && listRisetimeRepeatability.length" ref="tableRef" v-loading="listRisetimeRepeatabilityLoading" :data="listRisetimeRepeatability" border style="width: 100%;" > <el-table-column align="center" label="序号" width="80" type="index" /> <el-table-column v-for="item in columns_repeatability_risetime" :key="item.value" :prop="item.value" :label="item.text" :width="item.width" align="center" > <template #header> <span v-show="item.required" style="color: red;">*</span><span>{{ item.text }}</span> </template> <template #default="scope"> <div v-if="item.value === 'testValueOne'" style="display: flex; justify-content: center; align-items: center;"> <!-- 测量值 --> <precision-input-number v-if="props.pageType !== 'detail'" v-model="scope.row[item.value]" clearable placeholder="测量值" class="full-width-input" @change="(val: any) => changeTestValueOne(val, scope.$index)" /> <span v-if="props.pageType === 'detail'">{{ scope.row[item.value] }}</span> <!-- 测量值单位 --> <span style="margin-left: 10px;white-space: nowrap;"> {{ scope.row.unit }}</span> </div> </template> </el-table-column> </el-table> <!-- 稳定性 --> <el-table v-if="current === 'stability' && listRisetimeStability.length" ref="tableRef" v-loading="listRisetimeStabilityLoading" :data="listRisetimeStability" border style="width: 100%;" > <el-table-column align="center" label="序号" width="80" type="index" /> <el-table-column v-for="item in columns_stability_risetime" :key="item.value" :prop="item.value" :label="item.text" :width="item.width" align="center" > <template #header> <span v-show="item.required" style="color: red;">*</span><span>{{ item.text }}</span> </template> </el-table-column> </el-table> </detail-block> <el-form v-if="current === 'stability'" style="margin-top: 20px;" :model="form" label-width="160" label-position="right" > <el-row :gutter="24"> <el-col :span="12"> <el-form-item label="稳定性考核是否合格:"> <el-input v-model="form.qualified" class="full-width-input" disabled :placeholder="pageType === 'detail' ? ' ' : '稳定性考核是否合格'" /> </el-form-item> </el-col> <el-col :span="12"> <el-form-item label="备注:" prop="remark"> <el-input v-model="form.remark" autosize type="textarea" :disabled="pageType === 'detail'" /> </el-form-item> </el-col> </el-row> </el-form> <!-- 保存核查记录 --> <save-check-record ref="saveCheckRecordRef" /> </template> <style lang="scss" scoped> .link { text-decoration: underline; color: #3d7eff; cursor: pointer; } .file-area { display: flex; align-items: center; font-size: 14px; color: #60627f; margin-bottom: 10px; margin-left: 40px; white-space: nowrap; .tech-file { display: flex; align-items: center; margin-left: 20px; .file-text { margin-right: 10px; } } } </style>