diff --git a/src/views/equipement/standard/checkData/components/eighteen/checkDataCom.vue b/src/views/equipement/standard/checkData/components/eighteen/checkDataCom.vue index 72ca2f9..249eaad 100644 --- a/src/views/equipement/standard/checkData/components/eighteen/checkDataCom.vue +++ b/src/views/equipement/standard/checkData/components/eighteen/checkDataCom.vue @@ -101,7 +101,7 @@ { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: 'U(k=2)', value: 'urel', align: 'center', required: true, type: 'text' }, - { text: '结论', value: 'lessThan', align: 'center', required: false, type: 'text' }, + { text: '结论', value: 'lessThanValue', align: 'center', required: false, type: 'text' }, ]) const columns_stability_attenuation_amount_checkDate = ref([ // 稳定性表头--失真度 { text: '核查项目', value: 'paramsName', align: 'center', required: false, type: 'text' }, @@ -125,7 +125,7 @@ { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: 'U(k=2)', value: 'urel', align: 'center', required: true, type: 'text' }, - { text: '结论', value: 'lessThan', align: 'center', required: false, type: 'text' }, + { text: '结论', value: 'lessThanValue', align: 'center', required: false, type: 'text' }, ]) // 重复性 @@ -213,6 +213,7 @@ averageValue: '', // 平均值 stability: '', // 稳定性 lessThan: '', // 结论 + lessThanValue: '', // 结论 } }) } @@ -284,14 +285,14 @@ const resultList = res.data.map((item: any) => { return { ...item, - lessThan: (`${item.lessThan}` === '1' || `${item.lessThan}` === '') ? '合格' : '不合格', + lessThanValue: (`${item.lessThan}` === '1' || `${item.lessThan}` === '') ? '合格' : '不合格', editable: props.pageType !== 'detail', } }) listFrequencyStability.value = resultList.filter((item: { params: string }) => item.params === '失真度') // 计算稳定性考核是否合格 - if (resultList.every((item: { lessThan: string | number }) => item.lessThan === '合格')) { + if (resultList.every((item: { lessThanValue: string | number }) => item.lessThanValue === '合格')) { form.value.qualified = '合格' } else { @@ -321,7 +322,7 @@ editable: props.pageType !== 'detail', // checkPointDefineFront: item.checkPoint + item.unit, // 核查点 // powerDefineFront: item.power + item.powerUnit, // 交流电压 - lessThan: `${item.lessThan}` === '1' ? '合格' : '不合格', + lessThanValue: `${item.lessThan}` === '1' ? '合格' : '不合格', testValueOne: item.checkType === '稳定性' ? item.testValueOne : Number(item.testValueOne), // 测量值1/测量值(上升时间) testValueTwo: item.checkType === '稳定性' ? item.testValueTwo : Number(item.testValueTwo), // 测量值2(示值) testValueThree: item.checkType === '稳定性' ? item.testValueThree : Number(item.testValueThree), // 测量值3(示值) diff --git a/src/views/equipement/standard/checkData/components/eighteen/checkDataCom.vue b/src/views/equipement/standard/checkData/components/eighteen/checkDataCom.vue index 72ca2f9..249eaad 100644 --- a/src/views/equipement/standard/checkData/components/eighteen/checkDataCom.vue +++ b/src/views/equipement/standard/checkData/components/eighteen/checkDataCom.vue @@ -101,7 +101,7 @@ { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: 'U(k=2)', value: 'urel', align: 'center', required: true, type: 'text' }, - { text: '结论', value: 'lessThan', align: 'center', required: false, type: 'text' }, + { text: '结论', value: 'lessThanValue', align: 'center', required: false, type: 'text' }, ]) const columns_stability_attenuation_amount_checkDate = ref([ // 稳定性表头--失真度 { text: '核查项目', value: 'paramsName', align: 'center', required: false, type: 'text' }, @@ -125,7 +125,7 @@ { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: 'U(k=2)', value: 'urel', align: 'center', required: true, type: 'text' }, - { text: '结论', value: 'lessThan', align: 'center', required: false, type: 'text' }, + { text: '结论', value: 'lessThanValue', align: 'center', required: false, type: 'text' }, ]) // 重复性 @@ -213,6 +213,7 @@ averageValue: '', // 平均值 stability: '', // 稳定性 lessThan: '', // 结论 + lessThanValue: '', // 结论 } }) } @@ -284,14 +285,14 @@ const resultList = res.data.map((item: any) => { return { ...item, - lessThan: (`${item.lessThan}` === '1' || `${item.lessThan}` === '') ? '合格' : '不合格', + lessThanValue: (`${item.lessThan}` === '1' || `${item.lessThan}` === '') ? '合格' : '不合格', editable: props.pageType !== 'detail', } }) listFrequencyStability.value = resultList.filter((item: { params: string }) => item.params === '失真度') // 计算稳定性考核是否合格 - if (resultList.every((item: { lessThan: string | number }) => item.lessThan === '合格')) { + if (resultList.every((item: { lessThanValue: string | number }) => item.lessThanValue === '合格')) { form.value.qualified = '合格' } else { @@ -321,7 +322,7 @@ editable: props.pageType !== 'detail', // checkPointDefineFront: item.checkPoint + item.unit, // 核查点 // powerDefineFront: item.power + item.powerUnit, // 交流电压 - lessThan: `${item.lessThan}` === '1' ? '合格' : '不合格', + lessThanValue: `${item.lessThan}` === '1' ? '合格' : '不合格', testValueOne: item.checkType === '稳定性' ? item.testValueOne : Number(item.testValueOne), // 测量值1/测量值(上升时间) testValueTwo: item.checkType === '稳定性' ? item.testValueTwo : Number(item.testValueTwo), // 测量值2(示值) testValueThree: item.checkType === '稳定性' ? item.testValueThree : Number(item.testValueThree), // 测量值3(示值) diff --git a/src/views/equipement/standard/checkData/components/twelve/checkDataCom.vue b/src/views/equipement/standard/checkData/components/twelve/checkDataCom.vue index 076e1a0..f0aade7 100644 --- a/src/views/equipement/standard/checkData/components/twelve/checkDataCom.vue +++ b/src/views/equipement/standard/checkData/components/twelve/checkDataCom.vue @@ -107,7 +107,7 @@ { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: 'U(k=2)', value: 'urel', align: 'center', required: true, type: 'text' }, - { text: '结论', value: 'lessThan', align: 'center', required: false, type: 'text' }, + { text: '结论', value: 'lessThanValue', align: 'center', required: false, type: 'text' }, ]) const columns_stability_attenuation_amount_checkDate = ref([ // 稳定性表头--频率稳定度 { text: '核查项目', value: 'params', align: 'center', required: false, type: 'text' }, @@ -134,7 +134,7 @@ { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: 'U(k=2)', value: 'urel', align: 'center', required: true, type: 'text' }, - { text: '结论', value: 'lessThan', align: 'center', required: false, type: 'text' }, + { text: '结论', value: 'lessThanValue', align: 'center', required: false, type: 'text' }, ]) // 重复性 @@ -228,6 +228,7 @@ averageValue: '', // 平均值 stability: '', // 稳定性 lessThan: '', // 结论 + lessThanValue: '', // 结论 } }) } @@ -299,14 +300,14 @@ const resultList = res.data.map((item: any) => { return { ...item, - lessThan: (`${item.lessThan}` === '1' || `${item.lessThan}` === '') ? '合格' : '不合格', + lessThanValue: (`${item.lessThan}` === '1' || `${item.lessThan}` === '') ? '合格' : '不合格', editable: props.pageType !== 'detail', } }) listFrequencyStability.value = resultList.filter((item: { params: string }) => item.params === '频率稳定度') // 计算稳定性考核是否合格 - if (resultList.every((item: { lessThan: string | number }) => item.lessThan === '合格')) { + if (resultList.every((item: { lessThanValue: string | number }) => item.lessThanValue === '合格')) { form.value.qualified = '合格' } else { @@ -336,7 +337,7 @@ editable: props.pageType !== 'detail', // checkPointDefineFront: item.checkPoint + item.unit, // 核查点 // powerDefineFront: item.power + item.powerUnit, // 交流电压 - lessThan: `${item.lessThan}` === '1' ? '合格' : '不合格', + lessThanValue: `${item.lessThan}` === '1' ? '合格' : '不合格', testValueOne: item.checkType === '稳定性' ? item.testValueOne : Number(item.testValueOne), // 测量值1/测量值(上升时间) testValueTwo: item.checkType === '稳定性' ? item.testValueTwo : Number(item.testValueTwo), // 测量值2(示值) testValueThree: item.checkType === '稳定性' ? item.testValueThree : Number(item.testValueThree), // 测量值3(示值) diff --git a/src/views/equipement/standard/checkData/components/eighteen/checkDataCom.vue b/src/views/equipement/standard/checkData/components/eighteen/checkDataCom.vue index 72ca2f9..249eaad 100644 --- a/src/views/equipement/standard/checkData/components/eighteen/checkDataCom.vue +++ b/src/views/equipement/standard/checkData/components/eighteen/checkDataCom.vue @@ -101,7 +101,7 @@ { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: 'U(k=2)', value: 'urel', align: 'center', required: true, type: 'text' }, - { text: '结论', value: 'lessThan', align: 'center', required: false, type: 'text' }, + { text: '结论', value: 'lessThanValue', align: 'center', required: false, type: 'text' }, ]) const columns_stability_attenuation_amount_checkDate = ref([ // 稳定性表头--失真度 { text: '核查项目', value: 'paramsName', align: 'center', required: false, type: 'text' }, @@ -125,7 +125,7 @@ { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: 'U(k=2)', value: 'urel', align: 'center', required: true, type: 'text' }, - { text: '结论', value: 'lessThan', align: 'center', required: false, type: 'text' }, + { text: '结论', value: 'lessThanValue', align: 'center', required: false, type: 'text' }, ]) // 重复性 @@ -213,6 +213,7 @@ averageValue: '', // 平均值 stability: '', // 稳定性 lessThan: '', // 结论 + lessThanValue: '', // 结论 } }) } @@ -284,14 +285,14 @@ const resultList = res.data.map((item: any) => { return { ...item, - lessThan: (`${item.lessThan}` === '1' || `${item.lessThan}` === '') ? '合格' : '不合格', + lessThanValue: (`${item.lessThan}` === '1' || `${item.lessThan}` === '') ? '合格' : '不合格', editable: props.pageType !== 'detail', } }) listFrequencyStability.value = resultList.filter((item: { params: string }) => item.params === '失真度') // 计算稳定性考核是否合格 - if (resultList.every((item: { lessThan: string | number }) => item.lessThan === '合格')) { + if (resultList.every((item: { lessThanValue: string | number }) => item.lessThanValue === '合格')) { form.value.qualified = '合格' } else { @@ -321,7 +322,7 @@ editable: props.pageType !== 'detail', // checkPointDefineFront: item.checkPoint + item.unit, // 核查点 // powerDefineFront: item.power + item.powerUnit, // 交流电压 - lessThan: `${item.lessThan}` === '1' ? '合格' : '不合格', + lessThanValue: `${item.lessThan}` === '1' ? '合格' : '不合格', testValueOne: item.checkType === '稳定性' ? item.testValueOne : Number(item.testValueOne), // 测量值1/测量值(上升时间) testValueTwo: item.checkType === '稳定性' ? item.testValueTwo : Number(item.testValueTwo), // 测量值2(示值) testValueThree: item.checkType === '稳定性' ? item.testValueThree : Number(item.testValueThree), // 测量值3(示值) diff --git a/src/views/equipement/standard/checkData/components/twelve/checkDataCom.vue b/src/views/equipement/standard/checkData/components/twelve/checkDataCom.vue index 076e1a0..f0aade7 100644 --- a/src/views/equipement/standard/checkData/components/twelve/checkDataCom.vue +++ b/src/views/equipement/standard/checkData/components/twelve/checkDataCom.vue @@ -107,7 +107,7 @@ { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: 'U(k=2)', value: 'urel', align: 'center', required: true, type: 'text' }, - { text: '结论', value: 'lessThan', align: 'center', required: false, type: 'text' }, + { text: '结论', value: 'lessThanValue', align: 'center', required: false, type: 'text' }, ]) const columns_stability_attenuation_amount_checkDate = ref([ // 稳定性表头--频率稳定度 { text: '核查项目', value: 'params', align: 'center', required: false, type: 'text' }, @@ -134,7 +134,7 @@ { text: '平均值', value: 'averageValue', align: 'center', required: false, type: 'text' }, { text: '稳定性', value: 'stability', align: 'center', required: false, type: 'text' }, { text: 'U(k=2)', value: 'urel', align: 'center', required: true, type: 'text' }, - { text: '结论', value: 'lessThan', align: 'center', required: false, type: 'text' }, + { text: '结论', value: 'lessThanValue', align: 'center', required: false, type: 'text' }, ]) // 重复性 @@ -228,6 +228,7 @@ averageValue: '', // 平均值 stability: '', // 稳定性 lessThan: '', // 结论 + lessThanValue: '', // 结论 } }) } @@ -299,14 +300,14 @@ const resultList = res.data.map((item: any) => { return { ...item, - lessThan: (`${item.lessThan}` === '1' || `${item.lessThan}` === '') ? '合格' : '不合格', + lessThanValue: (`${item.lessThan}` === '1' || `${item.lessThan}` === '') ? '合格' : '不合格', editable: props.pageType !== 'detail', } }) listFrequencyStability.value = resultList.filter((item: { params: string }) => item.params === '频率稳定度') // 计算稳定性考核是否合格 - if (resultList.every((item: { lessThan: string | number }) => item.lessThan === '合格')) { + if (resultList.every((item: { lessThanValue: string | number }) => item.lessThanValue === '合格')) { form.value.qualified = '合格' } else { @@ -336,7 +337,7 @@ editable: props.pageType !== 'detail', // checkPointDefineFront: item.checkPoint + item.unit, // 核查点 // powerDefineFront: item.power + item.powerUnit, // 交流电压 - lessThan: `${item.lessThan}` === '1' ? '合格' : '不合格', + lessThanValue: `${item.lessThan}` === '1' ? '合格' : '不合格', testValueOne: item.checkType === '稳定性' ? item.testValueOne : Number(item.testValueOne), // 测量值1/测量值(上升时间) testValueTwo: item.checkType === '稳定性' ? item.testValueTwo : Number(item.testValueTwo), // 测量值2(示值) testValueThree: item.checkType === '稳定性' ? item.testValueThree : Number(item.testValueThree), // 测量值3(示值) diff --git a/src/views/equipement/standard/checkData/detail.vue b/src/views/equipement/standard/checkData/detail.vue index e5103ef..87932df 100644 --- a/src/views/equipement/standard/checkData/detail.vue +++ b/src/views/equipement/standard/checkData/detail.vue @@ -526,11 +526,11 @@ standardEquipmentId: selectStandardId.value, // 被核查标准装置id id: infoId.value, belongStandardEquipment: belongStandardEquipment.value, // 检校标准装置 - checkDataFrequencyStabilityList: list.map((item: { id: string; lessThan: string }) => { + checkDataFrequencyStabilityList: list.map((item: { id: string; lessThanValue: string }) => { return { ...item, id: pageType.value === 'add' ? '' : item.id, - lessThan: item.lessThan === '合格' ? 1 : item.lessThan === '不合格' ? 0 : '', + lessThan: item.lessThanValue === '合格' ? 1 : item.lessThanValue === '不合格' ? 0 : '', } }), // 核查数据 conclusion: checkDataRef.value.form.qualified === '合格' ? '合格' : '不合格', // 结论,与稳定性考核相同,后端需要这个字段差稳定性历史数据 @@ -685,11 +685,11 @@ standardEquipmentId: selectStandardId.value, // 被核查标准装置id id: infoId.value, belongStandardEquipment: belongStandardEquipment.value, // 检校标准装置 - checkDataDistortionFactorList: list.map((item: { id: string; lessThan: string }) => { + checkDataDistortionFactorList: list.map((item: { id: string; lessThanValue: string }) => { return { ...item, id: pageType.value === 'add' ? '' : item.id, - lessThan: item.lessThan === '合格' ? 1 : item.lessThan === '不合格' ? 0 : '', + lessThan: item.lessThanValue === '合格' ? 1 : item.lessThanValue === '不合格' ? 0 : '', } }), // 核查数据 conclusion: checkDataRef.value.form.qualified === '合格' ? '合格' : '不合格', // 结论,与稳定性考核相同,后端需要这个字段差稳定性历史数据