diff --git a/.eslintrc b/.eslintrc index 8c5add6..ea88115 100644 --- a/.eslintrc +++ b/.eslintrc @@ -2,20 +2,23 @@ "extends": "@antfu", "rules": { "curly": ["error", "all"], - "no-tabs":"off", + "no-tabs": "off", "no-const-assign": "off", "no-console": "off", "eqeqeq": "off", - "vars-on-top":"off", - "no-var":"off", - "array-callback-return":"off", + "vars-on-top": "off", + "no-var": "off", + "array-callback-return": "off", "@typescript-eslint/no-this-alias": "off", - "no-unused-expressions":"off", + "no-unused-expressions": "off", "vue/no-mutating-props": "off", - "no-constant-condition": "off", //禁止在条件中使用常量表达式 if(true) if(1) - "vue/component-name-in-template-casing": ["error", "kebab-case", { - "registeredComponentsOnly": false, - "ignores": [] - }] + "vue/component-name-in-template-casing": [ + "error", + "kebab-case", + { + "registeredComponentsOnly": false, + "ignores": [] + } + ] } } diff --git a/.eslintrc b/.eslintrc index 8c5add6..ea88115 100644 --- a/.eslintrc +++ b/.eslintrc @@ -2,20 +2,23 @@ "extends": "@antfu", "rules": { "curly": ["error", "all"], - "no-tabs":"off", + "no-tabs": "off", "no-const-assign": "off", "no-console": "off", "eqeqeq": "off", - "vars-on-top":"off", - "no-var":"off", - "array-callback-return":"off", + "vars-on-top": "off", + "no-var": "off", + "array-callback-return": "off", "@typescript-eslint/no-this-alias": "off", - "no-unused-expressions":"off", + "no-unused-expressions": "off", "vue/no-mutating-props": "off", - "no-constant-condition": "off", //禁止在条件中使用常量表达式 if(true) if(1) - "vue/component-name-in-template-casing": ["error", "kebab-case", { - "registeredComponentsOnly": false, - "ignores": [] - }] + "vue/component-name-in-template-casing": [ + "error", + "kebab-case", + { + "registeredComponentsOnly": false, + "ignores": [] + } + ] } } diff --git a/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts b/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts index 94ba5cd..7662387 100644 --- a/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts +++ b/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts @@ -26,8 +26,15 @@ bandWidth?: string // 频带宽度 bandWidthUnit?: string // 频带宽度单位 + triggerType?: string // 触发类型(字典value) + signalFrequency?: string // 信号频率 + signalFrequencyUnit?: string // 信号频率单位 + nominalValue?: string // 标称值 + nominalValueUnit?: string // 标称值单位 + amplitude?: string // 幅度 amplitudeUnit?: string // 幅度单位 + frequency?: string // 频率(模拟示波器) frequencyUnit?: string // 频率单位(模拟示波器) frequencyUpper?: string // 频率上限(模拟示波器) @@ -39,19 +46,14 @@ nominalAmplitudeValueUnit?: string // 幅度标称值单位(模拟示波器) nominalFrequencyValue?: string // 频率标称值(模拟示波器) nominalFrequencyValueUnit?: string // 频率标称值单位(模拟示波器) - nominalValue?: string // 标称值 - nominalValueUnit?: string // 标称值单位 referenceAmplitude?: string // 基准幅度(模拟示波器) referenceAmplitudeUnit?: string // 基准幅度单位(模拟示波器) referenceFrequency?: string // 基准频率(模拟示波器) referenceFrequencyUnit?: string // 基准频率单位(模拟示波器) scanType?: string // 扫描方式(模拟示波器)(字典value) - signalFrequency?: string // 信号频率 - signalFrequencyUnit?: string // 信号频率单位 signalType?: string // 信号类型(模拟示波器)(字典value) stepFrequency?: string // 步进频率(模拟示波器) stepFrequencyUnit?: string // 步进频率单位(模拟示波器) - triggerType?: string // 触发类型(字典value) verticalDeflectionGear?: string // 低电平测量时垂直偏转档位 verticalDeflectionGearUnit?: string // 低电平测量时垂直偏转档位单位 verticalGearStep?: string // 垂直档位步进(模拟示波器) diff --git a/.eslintrc b/.eslintrc index 8c5add6..ea88115 100644 --- a/.eslintrc +++ b/.eslintrc @@ -2,20 +2,23 @@ "extends": "@antfu", "rules": { "curly": ["error", "all"], - "no-tabs":"off", + "no-tabs": "off", "no-const-assign": "off", "no-console": "off", "eqeqeq": "off", - "vars-on-top":"off", - "no-var":"off", - "array-callback-return":"off", + "vars-on-top": "off", + "no-var": "off", + "array-callback-return": "off", "@typescript-eslint/no-this-alias": "off", - "no-unused-expressions":"off", + "no-unused-expressions": "off", "vue/no-mutating-props": "off", - "no-constant-condition": "off", //禁止在条件中使用常量表达式 if(true) if(1) - "vue/component-name-in-template-casing": ["error", "kebab-case", { - "registeredComponentsOnly": false, - "ignores": [] - }] + "vue/component-name-in-template-casing": [ + "error", + "kebab-case", + { + "registeredComponentsOnly": false, + "ignores": [] + } + ] } } diff --git a/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts b/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts index 94ba5cd..7662387 100644 --- a/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts +++ b/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts @@ -26,8 +26,15 @@ bandWidth?: string // 频带宽度 bandWidthUnit?: string // 频带宽度单位 + triggerType?: string // 触发类型(字典value) + signalFrequency?: string // 信号频率 + signalFrequencyUnit?: string // 信号频率单位 + nominalValue?: string // 标称值 + nominalValueUnit?: string // 标称值单位 + amplitude?: string // 幅度 amplitudeUnit?: string // 幅度单位 + frequency?: string // 频率(模拟示波器) frequencyUnit?: string // 频率单位(模拟示波器) frequencyUpper?: string // 频率上限(模拟示波器) @@ -39,19 +46,14 @@ nominalAmplitudeValueUnit?: string // 幅度标称值单位(模拟示波器) nominalFrequencyValue?: string // 频率标称值(模拟示波器) nominalFrequencyValueUnit?: string // 频率标称值单位(模拟示波器) - nominalValue?: string // 标称值 - nominalValueUnit?: string // 标称值单位 referenceAmplitude?: string // 基准幅度(模拟示波器) referenceAmplitudeUnit?: string // 基准幅度单位(模拟示波器) referenceFrequency?: string // 基准频率(模拟示波器) referenceFrequencyUnit?: string // 基准频率单位(模拟示波器) scanType?: string // 扫描方式(模拟示波器)(字典value) - signalFrequency?: string // 信号频率 - signalFrequencyUnit?: string // 信号频率单位 signalType?: string // 信号类型(模拟示波器)(字典value) stepFrequency?: string // 步进频率(模拟示波器) stepFrequencyUnit?: string // 步进频率单位(模拟示波器) - triggerType?: string // 触发类型(字典value) verticalDeflectionGear?: string // 低电平测量时垂直偏转档位 verticalDeflectionGearUnit?: string // 低电平测量时垂直偏转档位单位 verticalGearStep?: string // 垂直档位步进(模拟示波器) diff --git a/src/views/business/measure/item/components/thirteenth/templateDetail.vue b/src/views/business/measure/item/components/thirteenth/templateDetail.vue index e34d5ae..cb67fcf 100644 --- a/src/views/business/measure/item/components/thirteenth/templateDetail.vue +++ b/src/views/business/measure/item/components/thirteenth/templateDetail.vue @@ -116,35 +116,39 @@ ]) const columns_trigger_sensitivity = ref([ // 触发灵敏度 - { text: '检定项目', value: 'params', align: 'center', required: true }, - { text: '通道', value: 'nominalValue', align: 'center', required: true }, - { text: '触发类型', value: 'nominalValue', align: 'center', required: true }, - { text: '信号频率', value: 'nominalValue', align: 'center', required: true }, - { text: '信号频率单位', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)单位', value: 'nominalValue', align: 'center', required: true }, - { text: '标称值', value: 'nominalValue', align: 'center', required: true }, - { text: '标称值单位', value: 'nominalValue', align: 'center', required: true }, + { text: '检定项目', value: 'params', align: 'center', required: true, width: 110 }, + { text: '通道', value: 'thoroughfare', align: 'center', required: true, width: 100 }, + { text: '触发类型', value: 'triggerType', align: 'center', required: true, width: 120 }, + { text: '信号频率', value: 'signalFrequency', align: 'center', required: true, width: 180 }, + { text: '信号频率单位', value: 'signalFrequencyUnit', align: 'center', required: true, width: 100 }, + { text: '垂直偏转系数(/div)', value: 'verticalDeflectCoefficient', align: 'center', required: true, width: 180 }, + { text: '垂直偏转系数(/div)单位', value: 'verticalDeflectCoefficientUnit', align: 'center', required: true, width: 100 }, + { text: '标称值', value: 'nominalValue', align: 'center', required: true, width: 180 }, + { text: '标称值单位', value: 'nominalValueUnit', align: 'center', required: true, width: 100 }, ]) const columns_risetime = ref([ // 上升时间(数字示波器) - { text: '检定项目', value: 'params', align: 'center', required: true }, - { text: '阻抗', value: 'nominalValue', align: 'center', required: true }, - { text: '阻抗单位', value: 'nominalValue', align: 'center', required: true }, - { text: '通道', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)单位', value: 'nominalValue', align: 'center', required: true }, - { text: '技术指标', value: 'nominalValue', align: 'center', required: true }, + { text: '检定项目', value: 'params', align: 'center', required: true, width: 90 }, + { text: '阻抗', value: 'impedance', align: 'center', required: true, width: 180 }, + { text: '阻抗单位', value: 'impedanceUnit', align: 'center', required: true, width: 100 }, + { text: '通道', value: 'thoroughfare', align: 'center', required: true, width: 100 }, + { text: '垂直偏转系数(/div)', value: 'verticalDeflectCoefficient', align: 'center', required: true, width: 180 }, + { text: '垂直偏转系数(/div)单位', value: 'verticalDeflectCoefficientUnit', align: 'center', required: true, width: 100 }, + { text: '幅度', value: 'amplitude', align: 'center', required: true, width: 180 }, + { text: '幅度单位', value: 'amplitudeUnit', align: 'center', required: true, width: 100 }, + { text: '水平偏转系数', value: 'horizontalDeflectCoefficient', align: 'center', required: true, width: 180 }, + { text: '水平偏转系数单位', value: 'horizontalDeflectCoefficientUnit', align: 'center', required: true, width: 100 }, + { text: '技术指标', value: 'technicalIndex', align: 'center', required: true, width: 340 }, ]) const columns_input_resistance = ref([ // 输入电阻(数字示波器) { text: '检定项目', value: 'params', align: 'center', required: true }, - { text: '通道', value: 'nominalValue', align: 'center', required: true }, - { text: '标准值', value: 'nominalValue', align: 'center', required: true }, - { text: '标准值单位', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)单位', value: 'nominalValue', align: 'center', required: true }, - { text: '技术指标', value: 'nominalValue', align: 'center', required: true }, + { text: '通道', value: 'thoroughfare', align: 'center', required: true, width: 100 }, + { text: '标准值', value: 'standardValue', align: 'center', required: true, width: 180 }, + { text: '标准值单位', value: 'standardValueUnit', align: 'center', required: true, width: 100 }, + { text: '垂直偏转系数(/div)', value: 'verticalDeflectCoefficient', align: 'center', required: true, width: 180 }, + { text: '垂直偏转系数(/div)单位', value: 'verticalDeflectCoefficientUnit', align: 'center', required: true, width: 100 }, + { text: '技术指标', value: 'technicalIndex', align: 'center', required: true, width: 300 }, ]) const columns_calibrating_signal = ref([ // 校准信号(数字示波器) @@ -357,23 +361,70 @@ thoroughfare: 'CH1', // 通道 verticalDeflectCoefficient: '', // 垂直偏转系数 verticalDeflectCoefficientUnit: 'V', // 垂直偏转系数单位 + horizontalDeflectCoefficient: '', // 水平偏转系数 + horizontalDeflectCoefficientUnit: 'ns', // 水平偏转系数单位 referencePointFrequency: '', // 参考点频率 - referencePointFrequencyUnit: 'V', // 参考点频率单位 + referencePointFrequencyUnit: 'Hz', // 参考点频率单位 bandWidth: '', // 频带宽度 - bandWidthUnit: 'V', // 频带宽度单位 + bandWidthUnit: 'Hz', // 频带宽度单位 technicalIndex: '', // 技术指标 technicalIndexSymbol: '±', // 技术指标前符号 technicalIndexUnit: 'dB', // 技术指标单位 }) break case '触发灵敏度': - + list.push({ + id: '', // id,更新/删除使用参数 + dataType: '5', // 检定项数据类型(一个检定项中区分两个表格)(字典code) + itemId: props.itemId, // 检定项id + params: title, // 检定项目 + thoroughfare: 'CH1', // 通道 + triggerType: '内触发', // 触发类型 + signalFrequency: '', // 信号频率 + signalFrequencyUnit: 'V', // 信号频率单位 + verticalDeflectCoefficient: '', // 垂直偏转系数 + verticalDeflectCoefficientUnit: 'V', // 垂直偏转系数单位 + nominalValue: '', // 标称值 + nominalValueUnit: 'div', // 标称值单位 + technicalIndex: '', // 技术指标 + technicalIndexSymbol: '±', // 技术指标前符号 + technicalIndexUnit: 'dB', // 技术指标单位 + }) break case '上升时间': - + list.push({ + id: '', // id,更新/删除使用参数 + dataType: '5', // 检定项数据类型(一个检定项中区分两个表格)(字典code) + itemId: props.itemId, // 检定项id + params: title, // 检定项目 + impedance: '', // 阻抗, + impedanceUnit: 'Ω', // 阻抗单位 + thoroughfare: 'CH1', // 通道 + verticalDeflectCoefficient: '', // 垂直偏转系数 + verticalDeflectCoefficientUnit: 'V', // 垂直偏转系数单位 + amplitude: '', // 幅度 + amplitudeUnit: 'V', // 幅度单位 + horizontalDeflectCoefficient: '', // 水平偏转系数单位 + horizontalDeflectCoefficientUnit: 'ns', // 水平偏转系数单位 + technicalIndex: '', // 技术指标 + technicalIndexSymbol: '±', // 技术指标前符号 + technicalIndexUnit: 'ns', // 技术指标单位 + }) break case '输入电阻': - + list.push({ + id: '', // id,更新/删除使用参数 + dataType: '5', // 检定项数据类型(一个检定项中区分两个表格)(字典code) + itemId: props.itemId, // 检定项id + params: title, // 检定项目 + thoroughfare: 'CH1', // 通道 + verticalDeflectCoefficient: '', // 垂直偏转系数 + verticalDeflectCoefficientUnit: 'V', // 垂直偏转系数单位 + standardValue: '', // 标准值 + technicalIndex: '', // 技术指标 + technicalIndexSymbol: '±', // 技术指标前符号 + technicalIndexUnit: '%', // 技术指标单位 + }) break case '校准信号': @@ -536,7 +587,7 @@ 上升时间
- + 增加行 @@ -544,7 +595,7 @@
- + @@ -554,7 +605,7 @@ 输入电阻
- + 增加行 @@ -562,7 +613,7 @@
- + @@ -688,7 +739,7 @@ - + diff --git a/.eslintrc b/.eslintrc index 8c5add6..ea88115 100644 --- a/.eslintrc +++ b/.eslintrc @@ -2,20 +2,23 @@ "extends": "@antfu", "rules": { "curly": ["error", "all"], - "no-tabs":"off", + "no-tabs": "off", "no-const-assign": "off", "no-console": "off", "eqeqeq": "off", - "vars-on-top":"off", - "no-var":"off", - "array-callback-return":"off", + "vars-on-top": "off", + "no-var": "off", + "array-callback-return": "off", "@typescript-eslint/no-this-alias": "off", - "no-unused-expressions":"off", + "no-unused-expressions": "off", "vue/no-mutating-props": "off", - "no-constant-condition": "off", //禁止在条件中使用常量表达式 if(true) if(1) - "vue/component-name-in-template-casing": ["error", "kebab-case", { - "registeredComponentsOnly": false, - "ignores": [] - }] + "vue/component-name-in-template-casing": [ + "error", + "kebab-case", + { + "registeredComponentsOnly": false, + "ignores": [] + } + ] } } diff --git a/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts b/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts index 94ba5cd..7662387 100644 --- a/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts +++ b/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts @@ -26,8 +26,15 @@ bandWidth?: string // 频带宽度 bandWidthUnit?: string // 频带宽度单位 + triggerType?: string // 触发类型(字典value) + signalFrequency?: string // 信号频率 + signalFrequencyUnit?: string // 信号频率单位 + nominalValue?: string // 标称值 + nominalValueUnit?: string // 标称值单位 + amplitude?: string // 幅度 amplitudeUnit?: string // 幅度单位 + frequency?: string // 频率(模拟示波器) frequencyUnit?: string // 频率单位(模拟示波器) frequencyUpper?: string // 频率上限(模拟示波器) @@ -39,19 +46,14 @@ nominalAmplitudeValueUnit?: string // 幅度标称值单位(模拟示波器) nominalFrequencyValue?: string // 频率标称值(模拟示波器) nominalFrequencyValueUnit?: string // 频率标称值单位(模拟示波器) - nominalValue?: string // 标称值 - nominalValueUnit?: string // 标称值单位 referenceAmplitude?: string // 基准幅度(模拟示波器) referenceAmplitudeUnit?: string // 基准幅度单位(模拟示波器) referenceFrequency?: string // 基准频率(模拟示波器) referenceFrequencyUnit?: string // 基准频率单位(模拟示波器) scanType?: string // 扫描方式(模拟示波器)(字典value) - signalFrequency?: string // 信号频率 - signalFrequencyUnit?: string // 信号频率单位 signalType?: string // 信号类型(模拟示波器)(字典value) stepFrequency?: string // 步进频率(模拟示波器) stepFrequencyUnit?: string // 步进频率单位(模拟示波器) - triggerType?: string // 触发类型(字典value) verticalDeflectionGear?: string // 低电平测量时垂直偏转档位 verticalDeflectionGearUnit?: string // 低电平测量时垂直偏转档位单位 verticalGearStep?: string // 垂直档位步进(模拟示波器) diff --git a/src/views/business/measure/item/components/thirteenth/templateDetail.vue b/src/views/business/measure/item/components/thirteenth/templateDetail.vue index e34d5ae..cb67fcf 100644 --- a/src/views/business/measure/item/components/thirteenth/templateDetail.vue +++ b/src/views/business/measure/item/components/thirteenth/templateDetail.vue @@ -116,35 +116,39 @@ ]) const columns_trigger_sensitivity = ref([ // 触发灵敏度 - { text: '检定项目', value: 'params', align: 'center', required: true }, - { text: '通道', value: 'nominalValue', align: 'center', required: true }, - { text: '触发类型', value: 'nominalValue', align: 'center', required: true }, - { text: '信号频率', value: 'nominalValue', align: 'center', required: true }, - { text: '信号频率单位', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)单位', value: 'nominalValue', align: 'center', required: true }, - { text: '标称值', value: 'nominalValue', align: 'center', required: true }, - { text: '标称值单位', value: 'nominalValue', align: 'center', required: true }, + { text: '检定项目', value: 'params', align: 'center', required: true, width: 110 }, + { text: '通道', value: 'thoroughfare', align: 'center', required: true, width: 100 }, + { text: '触发类型', value: 'triggerType', align: 'center', required: true, width: 120 }, + { text: '信号频率', value: 'signalFrequency', align: 'center', required: true, width: 180 }, + { text: '信号频率单位', value: 'signalFrequencyUnit', align: 'center', required: true, width: 100 }, + { text: '垂直偏转系数(/div)', value: 'verticalDeflectCoefficient', align: 'center', required: true, width: 180 }, + { text: '垂直偏转系数(/div)单位', value: 'verticalDeflectCoefficientUnit', align: 'center', required: true, width: 100 }, + { text: '标称值', value: 'nominalValue', align: 'center', required: true, width: 180 }, + { text: '标称值单位', value: 'nominalValueUnit', align: 'center', required: true, width: 100 }, ]) const columns_risetime = ref([ // 上升时间(数字示波器) - { text: '检定项目', value: 'params', align: 'center', required: true }, - { text: '阻抗', value: 'nominalValue', align: 'center', required: true }, - { text: '阻抗单位', value: 'nominalValue', align: 'center', required: true }, - { text: '通道', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)单位', value: 'nominalValue', align: 'center', required: true }, - { text: '技术指标', value: 'nominalValue', align: 'center', required: true }, + { text: '检定项目', value: 'params', align: 'center', required: true, width: 90 }, + { text: '阻抗', value: 'impedance', align: 'center', required: true, width: 180 }, + { text: '阻抗单位', value: 'impedanceUnit', align: 'center', required: true, width: 100 }, + { text: '通道', value: 'thoroughfare', align: 'center', required: true, width: 100 }, + { text: '垂直偏转系数(/div)', value: 'verticalDeflectCoefficient', align: 'center', required: true, width: 180 }, + { text: '垂直偏转系数(/div)单位', value: 'verticalDeflectCoefficientUnit', align: 'center', required: true, width: 100 }, + { text: '幅度', value: 'amplitude', align: 'center', required: true, width: 180 }, + { text: '幅度单位', value: 'amplitudeUnit', align: 'center', required: true, width: 100 }, + { text: '水平偏转系数', value: 'horizontalDeflectCoefficient', align: 'center', required: true, width: 180 }, + { text: '水平偏转系数单位', value: 'horizontalDeflectCoefficientUnit', align: 'center', required: true, width: 100 }, + { text: '技术指标', value: 'technicalIndex', align: 'center', required: true, width: 340 }, ]) const columns_input_resistance = ref([ // 输入电阻(数字示波器) { text: '检定项目', value: 'params', align: 'center', required: true }, - { text: '通道', value: 'nominalValue', align: 'center', required: true }, - { text: '标准值', value: 'nominalValue', align: 'center', required: true }, - { text: '标准值单位', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)单位', value: 'nominalValue', align: 'center', required: true }, - { text: '技术指标', value: 'nominalValue', align: 'center', required: true }, + { text: '通道', value: 'thoroughfare', align: 'center', required: true, width: 100 }, + { text: '标准值', value: 'standardValue', align: 'center', required: true, width: 180 }, + { text: '标准值单位', value: 'standardValueUnit', align: 'center', required: true, width: 100 }, + { text: '垂直偏转系数(/div)', value: 'verticalDeflectCoefficient', align: 'center', required: true, width: 180 }, + { text: '垂直偏转系数(/div)单位', value: 'verticalDeflectCoefficientUnit', align: 'center', required: true, width: 100 }, + { text: '技术指标', value: 'technicalIndex', align: 'center', required: true, width: 300 }, ]) const columns_calibrating_signal = ref([ // 校准信号(数字示波器) @@ -357,23 +361,70 @@ thoroughfare: 'CH1', // 通道 verticalDeflectCoefficient: '', // 垂直偏转系数 verticalDeflectCoefficientUnit: 'V', // 垂直偏转系数单位 + horizontalDeflectCoefficient: '', // 水平偏转系数 + horizontalDeflectCoefficientUnit: 'ns', // 水平偏转系数单位 referencePointFrequency: '', // 参考点频率 - referencePointFrequencyUnit: 'V', // 参考点频率单位 + referencePointFrequencyUnit: 'Hz', // 参考点频率单位 bandWidth: '', // 频带宽度 - bandWidthUnit: 'V', // 频带宽度单位 + bandWidthUnit: 'Hz', // 频带宽度单位 technicalIndex: '', // 技术指标 technicalIndexSymbol: '±', // 技术指标前符号 technicalIndexUnit: 'dB', // 技术指标单位 }) break case '触发灵敏度': - + list.push({ + id: '', // id,更新/删除使用参数 + dataType: '5', // 检定项数据类型(一个检定项中区分两个表格)(字典code) + itemId: props.itemId, // 检定项id + params: title, // 检定项目 + thoroughfare: 'CH1', // 通道 + triggerType: '内触发', // 触发类型 + signalFrequency: '', // 信号频率 + signalFrequencyUnit: 'V', // 信号频率单位 + verticalDeflectCoefficient: '', // 垂直偏转系数 + verticalDeflectCoefficientUnit: 'V', // 垂直偏转系数单位 + nominalValue: '', // 标称值 + nominalValueUnit: 'div', // 标称值单位 + technicalIndex: '', // 技术指标 + technicalIndexSymbol: '±', // 技术指标前符号 + technicalIndexUnit: 'dB', // 技术指标单位 + }) break case '上升时间': - + list.push({ + id: '', // id,更新/删除使用参数 + dataType: '5', // 检定项数据类型(一个检定项中区分两个表格)(字典code) + itemId: props.itemId, // 检定项id + params: title, // 检定项目 + impedance: '', // 阻抗, + impedanceUnit: 'Ω', // 阻抗单位 + thoroughfare: 'CH1', // 通道 + verticalDeflectCoefficient: '', // 垂直偏转系数 + verticalDeflectCoefficientUnit: 'V', // 垂直偏转系数单位 + amplitude: '', // 幅度 + amplitudeUnit: 'V', // 幅度单位 + horizontalDeflectCoefficient: '', // 水平偏转系数单位 + horizontalDeflectCoefficientUnit: 'ns', // 水平偏转系数单位 + technicalIndex: '', // 技术指标 + technicalIndexSymbol: '±', // 技术指标前符号 + technicalIndexUnit: 'ns', // 技术指标单位 + }) break case '输入电阻': - + list.push({ + id: '', // id,更新/删除使用参数 + dataType: '5', // 检定项数据类型(一个检定项中区分两个表格)(字典code) + itemId: props.itemId, // 检定项id + params: title, // 检定项目 + thoroughfare: 'CH1', // 通道 + verticalDeflectCoefficient: '', // 垂直偏转系数 + verticalDeflectCoefficientUnit: 'V', // 垂直偏转系数单位 + standardValue: '', // 标准值 + technicalIndex: '', // 技术指标 + technicalIndexSymbol: '±', // 技术指标前符号 + technicalIndexUnit: '%', // 技术指标单位 + }) break case '校准信号': @@ -536,7 +587,7 @@ 上升时间
- + 增加行 @@ -544,7 +595,7 @@
- + @@ -554,7 +605,7 @@ 输入电阻
- + 增加行 @@ -562,7 +613,7 @@
- + @@ -688,7 +739,7 @@ - + diff --git a/src/views/business/measure/item/components/thirteenth/templateTable.vue b/src/views/business/measure/item/components/thirteenth/templateTable.vue index 367538c..a210821 100644 --- a/src/views/business/measure/item/components/thirteenth/templateTable.vue +++ b/src/views/business/measure/item/components/thirteenth/templateTable.vue @@ -48,6 +48,10 @@ const standard13VerticalDeflectCoefficientList = ref([]) // 垂直偏转系数(/div) const standardVoltageList = ref([]) // 垂直偏转系数(/div)单位\电压单位--公用 const standardResistanceList = ref([]) // 电阻单位公用 +const standard13TriggerTypeList = ref([]) // 触发特性 +const standard13NominalValueUnitList = ref([]) // 标称值单位 +const standardAmplitudeUnitList = ref([]) // 幅度单位 + /** * 获取字典 */ @@ -76,6 +80,23 @@ getDictByCode('standardResistance').then((response) => { standardResistanceList.value = response.data }) + // 触发特性 + getDictByCode('standard13TriggerType').then((response) => { + standard13TriggerTypeList.value = response.data + }) + // 标称值单位 + getDictByCode('standard13NominalValueUnit').then((response) => { + standard13NominalValueUnitList.value = response.data + }) + // 幅度单位 + getDictByCode('standardAmplitudeUnit').then((response) => { + standardAmplitudeUnitList.value = response.data + }) + // 幅度单位 + getDictByCode('standardAmplitudeUnit').then((response) => { + standardAmplitudeUnitList.value = response.data + }) + // standard13Item } getDict() @@ -188,26 +209,38 @@ :disabled="props.pageType === 'detail'" />
{{ scope.row.technicalIndexUnit }}
- + + + + + - + + + + + + + + + + + + + + + + diff --git a/.eslintrc b/.eslintrc index 8c5add6..ea88115 100644 --- a/.eslintrc +++ b/.eslintrc @@ -2,20 +2,23 @@ "extends": "@antfu", "rules": { "curly": ["error", "all"], - "no-tabs":"off", + "no-tabs": "off", "no-const-assign": "off", "no-console": "off", "eqeqeq": "off", - "vars-on-top":"off", - "no-var":"off", - "array-callback-return":"off", + "vars-on-top": "off", + "no-var": "off", + "array-callback-return": "off", "@typescript-eslint/no-this-alias": "off", - "no-unused-expressions":"off", + "no-unused-expressions": "off", "vue/no-mutating-props": "off", - "no-constant-condition": "off", //禁止在条件中使用常量表达式 if(true) if(1) - "vue/component-name-in-template-casing": ["error", "kebab-case", { - "registeredComponentsOnly": false, - "ignores": [] - }] + "vue/component-name-in-template-casing": [ + "error", + "kebab-case", + { + "registeredComponentsOnly": false, + "ignores": [] + } + ] } } diff --git a/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts b/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts index 94ba5cd..7662387 100644 --- a/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts +++ b/src/views/business/measure/item/components/thirteenth/templateDetail-interface.ts @@ -26,8 +26,15 @@ bandWidth?: string // 频带宽度 bandWidthUnit?: string // 频带宽度单位 + triggerType?: string // 触发类型(字典value) + signalFrequency?: string // 信号频率 + signalFrequencyUnit?: string // 信号频率单位 + nominalValue?: string // 标称值 + nominalValueUnit?: string // 标称值单位 + amplitude?: string // 幅度 amplitudeUnit?: string // 幅度单位 + frequency?: string // 频率(模拟示波器) frequencyUnit?: string // 频率单位(模拟示波器) frequencyUpper?: string // 频率上限(模拟示波器) @@ -39,19 +46,14 @@ nominalAmplitudeValueUnit?: string // 幅度标称值单位(模拟示波器) nominalFrequencyValue?: string // 频率标称值(模拟示波器) nominalFrequencyValueUnit?: string // 频率标称值单位(模拟示波器) - nominalValue?: string // 标称值 - nominalValueUnit?: string // 标称值单位 referenceAmplitude?: string // 基准幅度(模拟示波器) referenceAmplitudeUnit?: string // 基准幅度单位(模拟示波器) referenceFrequency?: string // 基准频率(模拟示波器) referenceFrequencyUnit?: string // 基准频率单位(模拟示波器) scanType?: string // 扫描方式(模拟示波器)(字典value) - signalFrequency?: string // 信号频率 - signalFrequencyUnit?: string // 信号频率单位 signalType?: string // 信号类型(模拟示波器)(字典value) stepFrequency?: string // 步进频率(模拟示波器) stepFrequencyUnit?: string // 步进频率单位(模拟示波器) - triggerType?: string // 触发类型(字典value) verticalDeflectionGear?: string // 低电平测量时垂直偏转档位 verticalDeflectionGearUnit?: string // 低电平测量时垂直偏转档位单位 verticalGearStep?: string // 垂直档位步进(模拟示波器) diff --git a/src/views/business/measure/item/components/thirteenth/templateDetail.vue b/src/views/business/measure/item/components/thirteenth/templateDetail.vue index e34d5ae..cb67fcf 100644 --- a/src/views/business/measure/item/components/thirteenth/templateDetail.vue +++ b/src/views/business/measure/item/components/thirteenth/templateDetail.vue @@ -116,35 +116,39 @@ ]) const columns_trigger_sensitivity = ref([ // 触发灵敏度 - { text: '检定项目', value: 'params', align: 'center', required: true }, - { text: '通道', value: 'nominalValue', align: 'center', required: true }, - { text: '触发类型', value: 'nominalValue', align: 'center', required: true }, - { text: '信号频率', value: 'nominalValue', align: 'center', required: true }, - { text: '信号频率单位', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)单位', value: 'nominalValue', align: 'center', required: true }, - { text: '标称值', value: 'nominalValue', align: 'center', required: true }, - { text: '标称值单位', value: 'nominalValue', align: 'center', required: true }, + { text: '检定项目', value: 'params', align: 'center', required: true, width: 110 }, + { text: '通道', value: 'thoroughfare', align: 'center', required: true, width: 100 }, + { text: '触发类型', value: 'triggerType', align: 'center', required: true, width: 120 }, + { text: '信号频率', value: 'signalFrequency', align: 'center', required: true, width: 180 }, + { text: '信号频率单位', value: 'signalFrequencyUnit', align: 'center', required: true, width: 100 }, + { text: '垂直偏转系数(/div)', value: 'verticalDeflectCoefficient', align: 'center', required: true, width: 180 }, + { text: '垂直偏转系数(/div)单位', value: 'verticalDeflectCoefficientUnit', align: 'center', required: true, width: 100 }, + { text: '标称值', value: 'nominalValue', align: 'center', required: true, width: 180 }, + { text: '标称值单位', value: 'nominalValueUnit', align: 'center', required: true, width: 100 }, ]) const columns_risetime = ref([ // 上升时间(数字示波器) - { text: '检定项目', value: 'params', align: 'center', required: true }, - { text: '阻抗', value: 'nominalValue', align: 'center', required: true }, - { text: '阻抗单位', value: 'nominalValue', align: 'center', required: true }, - { text: '通道', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)单位', value: 'nominalValue', align: 'center', required: true }, - { text: '技术指标', value: 'nominalValue', align: 'center', required: true }, + { text: '检定项目', value: 'params', align: 'center', required: true, width: 90 }, + { text: '阻抗', value: 'impedance', align: 'center', required: true, width: 180 }, + { text: '阻抗单位', value: 'impedanceUnit', align: 'center', required: true, width: 100 }, + { text: '通道', value: 'thoroughfare', align: 'center', required: true, width: 100 }, + { text: '垂直偏转系数(/div)', value: 'verticalDeflectCoefficient', align: 'center', required: true, width: 180 }, + { text: '垂直偏转系数(/div)单位', value: 'verticalDeflectCoefficientUnit', align: 'center', required: true, width: 100 }, + { text: '幅度', value: 'amplitude', align: 'center', required: true, width: 180 }, + { text: '幅度单位', value: 'amplitudeUnit', align: 'center', required: true, width: 100 }, + { text: '水平偏转系数', value: 'horizontalDeflectCoefficient', align: 'center', required: true, width: 180 }, + { text: '水平偏转系数单位', value: 'horizontalDeflectCoefficientUnit', align: 'center', required: true, width: 100 }, + { text: '技术指标', value: 'technicalIndex', align: 'center', required: true, width: 340 }, ]) const columns_input_resistance = ref([ // 输入电阻(数字示波器) { text: '检定项目', value: 'params', align: 'center', required: true }, - { text: '通道', value: 'nominalValue', align: 'center', required: true }, - { text: '标准值', value: 'nominalValue', align: 'center', required: true }, - { text: '标准值单位', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)', value: 'nominalValue', align: 'center', required: true }, - { text: '垂直偏转系数(/div)单位', value: 'nominalValue', align: 'center', required: true }, - { text: '技术指标', value: 'nominalValue', align: 'center', required: true }, + { text: '通道', value: 'thoroughfare', align: 'center', required: true, width: 100 }, + { text: '标准值', value: 'standardValue', align: 'center', required: true, width: 180 }, + { text: '标准值单位', value: 'standardValueUnit', align: 'center', required: true, width: 100 }, + { text: '垂直偏转系数(/div)', value: 'verticalDeflectCoefficient', align: 'center', required: true, width: 180 }, + { text: '垂直偏转系数(/div)单位', value: 'verticalDeflectCoefficientUnit', align: 'center', required: true, width: 100 }, + { text: '技术指标', value: 'technicalIndex', align: 'center', required: true, width: 300 }, ]) const columns_calibrating_signal = ref([ // 校准信号(数字示波器) @@ -357,23 +361,70 @@ thoroughfare: 'CH1', // 通道 verticalDeflectCoefficient: '', // 垂直偏转系数 verticalDeflectCoefficientUnit: 'V', // 垂直偏转系数单位 + horizontalDeflectCoefficient: '', // 水平偏转系数 + horizontalDeflectCoefficientUnit: 'ns', // 水平偏转系数单位 referencePointFrequency: '', // 参考点频率 - referencePointFrequencyUnit: 'V', // 参考点频率单位 + referencePointFrequencyUnit: 'Hz', // 参考点频率单位 bandWidth: '', // 频带宽度 - bandWidthUnit: 'V', // 频带宽度单位 + bandWidthUnit: 'Hz', // 频带宽度单位 technicalIndex: '', // 技术指标 technicalIndexSymbol: '±', // 技术指标前符号 technicalIndexUnit: 'dB', // 技术指标单位 }) break case '触发灵敏度': - + list.push({ + id: '', // id,更新/删除使用参数 + dataType: '5', // 检定项数据类型(一个检定项中区分两个表格)(字典code) + itemId: props.itemId, // 检定项id + params: title, // 检定项目 + thoroughfare: 'CH1', // 通道 + triggerType: '内触发', // 触发类型 + signalFrequency: '', // 信号频率 + signalFrequencyUnit: 'V', // 信号频率单位 + verticalDeflectCoefficient: '', // 垂直偏转系数 + verticalDeflectCoefficientUnit: 'V', // 垂直偏转系数单位 + nominalValue: '', // 标称值 + nominalValueUnit: 'div', // 标称值单位 + technicalIndex: '', // 技术指标 + technicalIndexSymbol: '±', // 技术指标前符号 + technicalIndexUnit: 'dB', // 技术指标单位 + }) break case '上升时间': - + list.push({ + id: '', // id,更新/删除使用参数 + dataType: '5', // 检定项数据类型(一个检定项中区分两个表格)(字典code) + itemId: props.itemId, // 检定项id + params: title, // 检定项目 + impedance: '', // 阻抗, + impedanceUnit: 'Ω', // 阻抗单位 + thoroughfare: 'CH1', // 通道 + verticalDeflectCoefficient: '', // 垂直偏转系数 + verticalDeflectCoefficientUnit: 'V', // 垂直偏转系数单位 + amplitude: '', // 幅度 + amplitudeUnit: 'V', // 幅度单位 + horizontalDeflectCoefficient: '', // 水平偏转系数单位 + horizontalDeflectCoefficientUnit: 'ns', // 水平偏转系数单位 + technicalIndex: '', // 技术指标 + technicalIndexSymbol: '±', // 技术指标前符号 + technicalIndexUnit: 'ns', // 技术指标单位 + }) break case '输入电阻': - + list.push({ + id: '', // id,更新/删除使用参数 + dataType: '5', // 检定项数据类型(一个检定项中区分两个表格)(字典code) + itemId: props.itemId, // 检定项id + params: title, // 检定项目 + thoroughfare: 'CH1', // 通道 + verticalDeflectCoefficient: '', // 垂直偏转系数 + verticalDeflectCoefficientUnit: 'V', // 垂直偏转系数单位 + standardValue: '', // 标准值 + technicalIndex: '', // 技术指标 + technicalIndexSymbol: '±', // 技术指标前符号 + technicalIndexUnit: '%', // 技术指标单位 + }) break case '校准信号': @@ -536,7 +587,7 @@ 上升时间
- + 增加行 @@ -544,7 +595,7 @@
- + @@ -554,7 +605,7 @@ 输入电阻
- + 增加行 @@ -562,7 +613,7 @@
- + @@ -688,7 +739,7 @@ - + diff --git a/src/views/business/measure/item/components/thirteenth/templateTable.vue b/src/views/business/measure/item/components/thirteenth/templateTable.vue index 367538c..a210821 100644 --- a/src/views/business/measure/item/components/thirteenth/templateTable.vue +++ b/src/views/business/measure/item/components/thirteenth/templateTable.vue @@ -48,6 +48,10 @@ const standard13VerticalDeflectCoefficientList = ref([]) // 垂直偏转系数(/div) const standardVoltageList = ref([]) // 垂直偏转系数(/div)单位\电压单位--公用 const standardResistanceList = ref([]) // 电阻单位公用 +const standard13TriggerTypeList = ref([]) // 触发特性 +const standard13NominalValueUnitList = ref([]) // 标称值单位 +const standardAmplitudeUnitList = ref([]) // 幅度单位 + /** * 获取字典 */ @@ -76,6 +80,23 @@ getDictByCode('standardResistance').then((response) => { standardResistanceList.value = response.data }) + // 触发特性 + getDictByCode('standard13TriggerType').then((response) => { + standard13TriggerTypeList.value = response.data + }) + // 标称值单位 + getDictByCode('standard13NominalValueUnit').then((response) => { + standard13NominalValueUnitList.value = response.data + }) + // 幅度单位 + getDictByCode('standardAmplitudeUnit').then((response) => { + standardAmplitudeUnitList.value = response.data + }) + // 幅度单位 + getDictByCode('standardAmplitudeUnit').then((response) => { + standardAmplitudeUnitList.value = response.data + }) + // standard13Item } getDict() @@ -188,26 +209,38 @@ :disabled="props.pageType === 'detail'" />
{{ scope.row.technicalIndexUnit }}
- + + + + + - + + + + + + + + + + + + + + + + diff --git a/src/views/business/taskMeasure/measureData/detail.vue b/src/views/business/taskMeasure/measureData/detail.vue index b1e8f29..22fb203 100644 --- a/src/views/business/taskMeasure/measureData/detail.vue +++ b/src/views/business/taskMeasure/measureData/detail.vue @@ -340,6 +340,7 @@ dataId: solvedParams.dataId, // 检定数据管理基础信息表id id: '', appearance: `${solvedParams.appearance}` === '1' ? '合格' : `${solvedParams.appearance}` === '0' ? '不合格' : '', + equipmentList: templateDetailRef.value.templateFormAndTableRef.measureEquipmentList, } } else { @@ -350,6 +351,7 @@ certificateName: `${solvedParams.sampleName}-${solvedParams.traceDate}`, // 检定审批报告名称 dataId: solvedParams.dataId, // 检定数据管理基础信息表id id: '', + equipmentList: templateDetailRef.value.templateFormAndTableRef.measureEquipmentList, } } if (belongStandardEquipment.value === '6') {