|
|
@@ -20,12 +20,14 @@
|
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="编码:">
|
|
|
- <el-input v-model="formData.DataEntryCode" placeholder="请输入" style="width: 100%" :disabled="true"></el-input>
|
|
|
+ <el-input v-model="formData.DataEntryCode" placeholder="请输入" style="width: 100%" :disabled="true">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="检定地点:">
|
|
|
- <el-input v-model="formData.PositionCheck" placeholder="请输入" style="width: 100%" :disabled="true"></el-input>
|
|
|
+ <el-input v-model="formData.PositionCheck" placeholder="请输入" style="width: 100%" :disabled="true">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
@@ -52,7 +54,8 @@
|
|
|
</el-col>
|
|
|
<el-col :span="16">
|
|
|
<el-form-item label="送检单位:">
|
|
|
- <el-input v-model="formData.CustomerName" placeholder="请输入" style="width: 100%" :disabled="true"></el-input>
|
|
|
+ <el-input v-model="formData.CustomerName" placeholder="请输入" style="width: 100%" :disabled="true">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
@@ -146,8 +149,8 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="有效期至:">
|
|
|
- <el-date-picker style="width: 100%" v-model="formCertificateData.EffectDate" type="date" format="yyyy 年 MM 月 dd 日"
|
|
|
- placeholder="请选择">
|
|
|
+ <el-date-picker style="width: 100%" v-model="formCertificateData.EffectDate" type="date"
|
|
|
+ format="yyyy 年 MM 月 dd 日" placeholder="请选择">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -163,12 +166,17 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="二.绝缘强度:">
|
|
|
+ <el-form-item label="二、通电检查:" label-width="150px">
|
|
|
+ <el-input v-model="formData.ElectrifyCheck" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="三.绝缘强度:">
|
|
|
<el-input v-model="formData.DielecStrength" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="三.绝缘电阻:">
|
|
|
+ <el-form-item label="四.绝缘电阻:">
|
|
|
<el-input v-model="formData.Insulation" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -183,34 +191,40 @@
|
|
|
<el-table :data="alerValData" border style="width: 100%" :header-cell-style="discountHeaderStyle1">
|
|
|
<el-table-column align="center" prop="SureValue" label="仪器设定报警点(×10-6mol/mol)">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.SureValue" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.SureValue" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="实际报警浓度值(×10-6mol/mol)">
|
|
|
<el-table-column align="center" label="" prop="Value1">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.Value1" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.Value1" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="" prop="Value2">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.Value2" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.Value2" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="" prop="Value3">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.Value3" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.Value3" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="MaxValue" align="center" label="报警浓度最大值(×10-6mol/mol)" min-width="90">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.MaxValue" style="width: 160px" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.MaxValue" style="width: 160px" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="AllowValue" align="center" label="报警设置误差(%)" min-width="90">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.AllowValue" style="width: 160px" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.AllowValue" style="width: 160px" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -223,37 +237,40 @@
|
|
|
<el-table :data="deviationData" border style="width: 100%">
|
|
|
<el-table-column align="center" prop="GasValue" label="标准气体浓度值(×10-6 mol/mol)" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.GasValue" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.GasValue" style="width: 100%" size="mini"
|
|
|
+ :disabled="true"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="仪器示值(×10-6mol/mol)" min-width="180">
|
|
|
<el-table-column align="center" prop="Value1" label="1">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input @blur="getDeValueAvg(scope.row)" type="number" step="0.01" v-model.number="scope.row.Value1"
|
|
|
+ <el-input @blur="getDeValueAvg(scope.row)" type="number" step="0.1" v-model.number="scope.row.Value1"
|
|
|
style="width: 100%" size="mini"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="Value2" label="2">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input @blur="getDeValueAvg(scope.row)" type="number" step="0.01" v-model.number="scope.row.Value2"
|
|
|
+ <el-input @blur="getDeValueAvg(scope.row)" type="number" step="0.1" v-model.number="scope.row.Value2"
|
|
|
style="width: 100%" size="mini"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="Value3" label="3">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input @blur="getDeValueAvg(scope.row)" type="number" step="0.01" v-model.number="scope.row.Value3"
|
|
|
+ <el-input @blur="getDeValueAvg(scope.row)" type="number" step="0.1" v-model.number="scope.row.Value3"
|
|
|
style="width: 100%" size="mini"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="AvgValue" label="平均值">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.AvgValue" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.AvgValue" style="width: 100%" size="mini"
|
|
|
+ :disabled="true"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="Deviation" label="示值引用误差 (%FS)" min-width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.Deviation" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.Deviation" style="width: 100%" size="mini"
|
|
|
+ :disabled="true"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -266,28 +283,33 @@
|
|
|
<el-table :data="responseTimeData" border style="width: 100%">
|
|
|
<el-table-column align="center" prop="GasValue" label="标准气体浓度值(×10-6 mol/mol)" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.GasValue" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.GasValue" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="时间" min-width="180">
|
|
|
<el-table-column align="center" prop="Value1" label="1">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.Value1" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.Value1" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="Value2" label="2">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.Value2" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.Value2" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="Value3" label="3">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.Value3" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.Value3" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="Deviation" label="响应时间">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.Deviation" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.Deviation" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
@@ -301,55 +323,58 @@
|
|
|
<el-table :data="RepeatData" border style="width: 100%">
|
|
|
<el-table-column align="center" prop="GasValue" label="标准气体浓度值(×10-6 mol/mol)" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.GasValue" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.GasValue" style="width: 100%" size="mini"
|
|
|
+ :disabled="true"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="name" label="仪器示值(×10-6mol/mol)" min-width="180">
|
|
|
<el-table-column align="center" prop="Value1" label="1">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input @blur="getRepeValueAvg(scope.row)" type="number" step="0.01" v-model.number="scope.row.Value1"
|
|
|
+ <el-input @blur="getRepeValueAvg(scope.row)" type="number" step="0.1" v-model.number="scope.row.Value1"
|
|
|
style="width: 100%" size="mini"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="Value2" label="2">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input @blur="getRepeValueAvg(scope.row)" type="number" step="0.01" v-model.number="scope.row.Value2"
|
|
|
+ <el-input @blur="getRepeValueAvg(scope.row)" type="number" step="0.1" v-model.number="scope.row.Value2"
|
|
|
style="width: 100%" size="mini"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="Value3" label="3">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input @blur="getRepeValueAvg(scope.row)" type="number" step="0.01" v-model.number="scope.row.Value3"
|
|
|
+ <el-input @blur="getRepeValueAvg(scope.row)" type="number" step="0.1" v-model.number="scope.row.Value3"
|
|
|
style="width: 100%" size="mini"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="Value4" label="4">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input @blur="getRepeValueAvg(scope.row)" type="number" step="0.01" v-model.number="scope.row.Value4"
|
|
|
+ <el-input @blur="getRepeValueAvg(scope.row)" type="number" step="0.1" v-model.number="scope.row.Value4"
|
|
|
style="width: 100%" size="mini"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="Value5" label="5">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input @blur="getRepeValueAvg(scope.row)" type="number" step="0.01" v-model.number="scope.row.Value5"
|
|
|
+ <el-input @blur="getRepeValueAvg(scope.row)" type="number" step="0.1" v-model.number="scope.row.Value5"
|
|
|
style="width: 100%" size="mini"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="Value6" label="6">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input @blur="getRepeValueAvg(scope.row)" type="number" step="0.01" v-model.number="scope.row.Value6"
|
|
|
+ <el-input @blur="getRepeValueAvg(scope.row)" type="number" step="0.1" v-model.number="scope.row.Value6"
|
|
|
style="width: 100%" size="mini"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="AvgValue" label="平均值">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.AvgValue" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.AvgValue" style="width: 100%" size="mini"
|
|
|
+ :disabled="true"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="RepeatValue" label="重复性(%)" min-width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.RepeatValue" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.RepeatValue" style="width: 100%" size="mini"
|
|
|
+ :disabled="true"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -362,55 +387,64 @@
|
|
|
<el-table :data="ShiftData" border style="width: 100%">
|
|
|
<el-table-column align="center" prop="ValueType" label="时间">
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="value0" align="center" label="0">
|
|
|
+ <el-table-column prop="Value0" align="center" label="0">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.Value0" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.Value0" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="value1" align="center" label="1h (10min)" min-width="80">
|
|
|
+ <el-table-column prop="Value1" align="center" label="1h (10min)" min-width="80">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.Value1" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.Value1" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="value2" align="center" label="2h (20min)" min-width="80">
|
|
|
+ <el-table-column prop="Value2" align="center" label="2h (20min)" min-width="80">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.Value2" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.Value2" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="value3" align="center" label="3h (30min)" min-width="80">
|
|
|
+ <el-table-column prop="Value3" align="center" label="3h (30min)" min-width="80">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.Value3" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.Value3" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="value4" align="center" label="4h (40min)" min-width="80">
|
|
|
+ <el-table-column prop="Value4" align="center" label="4h (40min)" min-width="80">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.Value4" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.Value4" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="value5" align="center" label="5h (50min)" min-width="80">
|
|
|
+ <el-table-column prop="Value5" align="center" label="5h (50min)" min-width="80">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.Value5" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.Value5" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="value6" align="center" label="6h (60min)" min-width="80">
|
|
|
+ <el-table-column prop="Value6" align="center" label="6h (60min)" min-width="80">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.Value6" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.Value6" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="ZeroValue" label="零点漂移 ×10-6 mol/mol" min-width="150">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.ZeroValue" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.ZeroValue" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="ShowValue" label="示值漂移 ×10-6 mol/mol" min-width="150">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.01" v-model.number="scope.row.ShowValue" style="width: 100%" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.ShowValue" style="width: 100%" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<template>
|
|
|
<div style="text-align: center; margin-top: 15px;">
|
|
|
- <el-button type="primary" size="small" @click="saveEntity"><i class="el-icon-circle-check"></i>
|
|
|
+ <el-button type="primary" size="small" @click="saveEntity" :disabled="this.DataStatus != 0 && this.DataStatus != 5&& this.DataStatus!=3"><i class="el-icon-circle-check"></i>
|
|
|
保存
|
|
|
</el-button>
|
|
|
</div>
|
|
|
@@ -459,7 +493,7 @@
|
|
|
ProoFreadShow: false,
|
|
|
acceptUsers: [],
|
|
|
serviceId: '',
|
|
|
- DataStatus: '0',
|
|
|
+ DataStatus: 0,
|
|
|
sign: '2',
|
|
|
// 校核提交
|
|
|
shenhesubmitForm: {
|
|
|
@@ -481,7 +515,7 @@
|
|
|
MeterRange: '',
|
|
|
DataEntryCode: '',
|
|
|
MeasurementRange: '',
|
|
|
- DetectBasis: '',
|
|
|
+ DetectBasis: 'JJG 695-2003《硫化氢气体检测仪》检定规程',
|
|
|
FaceCheck: '',
|
|
|
FlagCheck: '',
|
|
|
ElectrifyCheck: '',
|
|
|
@@ -494,7 +528,7 @@
|
|
|
TestDepartId: 0,
|
|
|
Instrument1: '',
|
|
|
Temperature: '',
|
|
|
- StandardDesc: '',
|
|
|
+ StandardDesc: '硫化氢气体检测仪检定装置',
|
|
|
StanDevice: '',
|
|
|
RelativeHumanity: '',
|
|
|
ManuCompany: '',
|
|
|
@@ -585,7 +619,7 @@
|
|
|
//示值误差及响应时间
|
|
|
deviationData: [{
|
|
|
Id: 0,
|
|
|
- GasValue: '',
|
|
|
+ GasValue: 20.8,
|
|
|
Value1: '',
|
|
|
Value2: '',
|
|
|
Value3: '',
|
|
|
@@ -595,7 +629,7 @@
|
|
|
Deviation: ''
|
|
|
}, {
|
|
|
Id: 0,
|
|
|
- GasValue: '',
|
|
|
+ GasValue: 52.6,
|
|
|
Value1: '',
|
|
|
Value2: '',
|
|
|
Value3: '',
|
|
|
@@ -605,7 +639,7 @@
|
|
|
Deviation: ''
|
|
|
}, {
|
|
|
Id: 0,
|
|
|
- GasValue: '',
|
|
|
+ GasValue: 82.1,
|
|
|
Value1: '',
|
|
|
Value2: '',
|
|
|
Value3: '',
|
|
|
@@ -626,7 +660,7 @@
|
|
|
//重复性
|
|
|
RepeatData: [{
|
|
|
Id: 0,
|
|
|
- GasValue: '',
|
|
|
+ GasValue: 52.6,
|
|
|
Value1: '',
|
|
|
Value2: '',
|
|
|
Value3: '',
|
|
|
@@ -640,7 +674,7 @@
|
|
|
ShiftData: [{
|
|
|
Id: 0,
|
|
|
ValueType: '零点示值',
|
|
|
- value0: '',
|
|
|
+ Value0: '',
|
|
|
Value1: '',
|
|
|
Value2: '',
|
|
|
Value3: '',
|
|
|
@@ -652,7 +686,7 @@
|
|
|
}, {
|
|
|
Id: 0,
|
|
|
ValueType: '量程示值',
|
|
|
- value0: '',
|
|
|
+ Value0: '',
|
|
|
Value1: '',
|
|
|
Value2: '',
|
|
|
Value3: '',
|
|
|
@@ -678,26 +712,37 @@
|
|
|
this.formData.DataEntryId = this.queryParams.DataEntryId
|
|
|
this.formData.TaskBalanceId = this.queryParams.TaskBalanceId
|
|
|
this.formData.EId = this.queryParams.EId
|
|
|
- console.log("--this.$route.query.tbid--",this.formData.TaskBalanceId)
|
|
|
this.initDatas();
|
|
|
this.getUsersByRole()
|
|
|
- //this.getDictOptions();
|
|
|
- // if (this.serviceId != 'add' && this.serviceId > 0) {
|
|
|
- // this.formData.Id = this.serviceId;
|
|
|
- // this.initDatas();
|
|
|
- // } else {
|
|
|
- // this.formData.Id = 0;
|
|
|
- // }
|
|
|
},
|
|
|
methods: {
|
|
|
initDatas() {
|
|
|
if (this.formData.DataEntryId) {
|
|
|
api.getEntity(this.formData.DataEntryId, this.$axios).then(res => {
|
|
|
this.formData = res.data.mainitem;
|
|
|
- console.log("----this.formData----",this.formData)
|
|
|
- if (this.formData.CheckDate == "0001-01-01T00:00:00Z"){
|
|
|
+ this.formData.DetectBasis = 'JJG 693-2011《 可燃气体检测报警器》检定规程'
|
|
|
+ this.formData.StandardDesc = '可燃气体检测报警器检定装置'
|
|
|
+ if (this.formData.CheckDate == "0001-01-01T00:00:00Z") {
|
|
|
this.formData.CheckDate = new Date();
|
|
|
}
|
|
|
+ if (res.data.ceritem != null) {
|
|
|
+ for (var i = 0; i < res.data.ceritem.length - 1; i++) {
|
|
|
+ this.certificateData[i].Id = res.data.ceritem[i].Id;
|
|
|
+ this.certificateData[i].CerNum = res.data.ceritem[i].CerNum;
|
|
|
+ this.certificateData[i].StandVal = res.data.ceritem[i].StandVal;
|
|
|
+ this.certificateData[i].Uncertainty = res.data.ceritem[i].Uncertainty;
|
|
|
+ this.certificateData[i].EffectDate = res.data.ceritem[i].EffectDate;
|
|
|
+ this.certificateData[i].StanDevice = res.data.ceritem[i].StanDevice;
|
|
|
+
|
|
|
+ }
|
|
|
+ this.formCertificateData.Id = res.data.ceritem[3].Id
|
|
|
+ this.formCertificateData.StanDevice = res.data.ceritem[3].StanDevice
|
|
|
+ this.formCertificateData.StandVal = res.data.ceritem[3].StandVal
|
|
|
+ this.formCertificateData.CerNum = res.data.ceritem[3].CerNum
|
|
|
+ this.formCertificateData.Uncertainty = res.data.ceritem[3].Uncertainty
|
|
|
+ this.formCertificateData.EffectDate = res.data.ceritem[3].EffectDate
|
|
|
+ this.formData.StanDevice = this.certificateData[0].StanDevice
|
|
|
+ }
|
|
|
if (res.data.alvalitem != null) {
|
|
|
for (var i = 0; i < res.data.alvalitem.length; i++) {
|
|
|
this.alerValData[i] = res.data.alvalitem[i];
|
|
|
@@ -706,7 +751,6 @@
|
|
|
if (res.data.deviitem != null) {
|
|
|
for (var i = 0; i < res.data.deviitem.length; i++) {
|
|
|
this.deviationData[i].Id = res.data.deviitem[i].Id;
|
|
|
- this.deviationData[i].GasValue = res.data.deviitem[i].GasValue;
|
|
|
this.deviationData[i].Value1 = res.data.deviitem[i].Value1;
|
|
|
this.deviationData[i].Value2 = res.data.deviitem[i].Value2;
|
|
|
this.deviationData[i].Value3 = res.data.deviitem[i].Value3;
|
|
|
@@ -724,28 +768,25 @@
|
|
|
if (res.data.repeatitem != null) {
|
|
|
for (var i = 0; i < res.data.repeatitem.length; i++) {
|
|
|
this.RepeatData[i] = res.data.repeatitem[i];
|
|
|
+ this.RepeatData[i].AvgValue = res.data.repeatitem[i].AvgValue + ""
|
|
|
+ this.deviationData[i].RepeatValue = res.data.deviitem[i].RepeatValue;
|
|
|
}
|
|
|
}
|
|
|
if (res.data.shiftitem != null) {
|
|
|
for (var i = 0; i < res.data.shiftitem.length; i++) {
|
|
|
- this.ShiftData[i].ValueType = res.data.shiftitem[i].ValueType;
|
|
|
- this.ShiftData[i].value0 = res.data.shiftitem[i].value0;
|
|
|
- this.ShiftData[i].Value1 = res.data.shiftitem[i].Value1;
|
|
|
- this.ShiftData[i].Value2 = res.data.shiftitem[i].Value2;
|
|
|
- this.ShiftData[i].Value3 = res.data.shiftitem[i].Value3;
|
|
|
- this.ShiftData[i].Value4 = res.data.shiftitem[i].Value4;
|
|
|
- this.ShiftData[i].Value5 = res.data.shiftitem[i].Value5;
|
|
|
- this.ShiftData[i].Value6 = res.data.shiftitem[i].Value6;
|
|
|
- this.ShiftData[i].ZeroValue = res.data.shiftitem[i].ZeroValue;
|
|
|
- this.ShiftData[i].ShowValue = res.data.shiftitem[i].ShowValue;
|
|
|
- }
|
|
|
- }
|
|
|
- if (res.data.ceritem != null) {
|
|
|
- for (var i = 0; i < res.data.ceritem.length - 1; i++) {
|
|
|
- this.certificateData[i] = res.data.ceritem[i];
|
|
|
+ this.ShiftData[i] = res.data.shiftitem[i];
|
|
|
+ // this.ShiftData[i].Value0 = res.data.shiftitem[i].Value0;
|
|
|
+ // this.ShiftData[i].Value1 = res.data.shiftitem[i].Value1;
|
|
|
+ // this.ShiftData[i].Value2 = res.data.shiftitem[i].Value2;
|
|
|
+ // this.ShiftData[i].Value3 = res.data.shiftitem[i].Value3;
|
|
|
+ // this.ShiftData[i].Value4 = res.data.shiftitem[i].Value4;
|
|
|
+ // this.ShiftData[i].Value5 = res.data.shiftitem[i].Value5;
|
|
|
+ // this.ShiftData[i].Value6 = res.data.shiftitem[i].Value6;
|
|
|
+ // this.ShiftData[i].ZeroValue = res.data.shiftitem[i].ZeroValue;
|
|
|
+ // this.ShiftData[i].ShowValue = res.data.shiftitem[i].ShowValue;
|
|
|
}
|
|
|
- this.formCertificateData = res.data.ceritem[3]
|
|
|
}
|
|
|
+
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
});
|
|
|
@@ -802,10 +843,15 @@
|
|
|
sum = sum + parseInt(row.Value3)
|
|
|
}
|
|
|
if (divisor !== 0) {
|
|
|
- row.AvgValue = (sum / divisor).toFixed(2)
|
|
|
+ row.AvgValue = (sum / divisor).toFixed(1)
|
|
|
} else {
|
|
|
row.AvgValue = '0'
|
|
|
}
|
|
|
+ if (row.AvgValue !== '' && parseInt(row.AvgValue) !== 0) {
|
|
|
+ row.Deviation = Number((row.AvgValue - row.GasValue).toFixed(1))
|
|
|
+ } else {
|
|
|
+ row.Deviation = 0
|
|
|
+ }
|
|
|
},
|
|
|
getRepeValueAvg(row) {
|
|
|
var divisor = 0
|
|
|
@@ -835,13 +881,32 @@
|
|
|
sum = sum + parseInt(row.Value6)
|
|
|
}
|
|
|
if (divisor !== 0) {
|
|
|
- row.AvgValue = (sum / divisor).toFixed(2)
|
|
|
+ row.AvgValue = (sum / divisor).toFixed(1)
|
|
|
} else {
|
|
|
row.AvgValue = '0'
|
|
|
}
|
|
|
+ if (row.AvgValue !== '' && parseInt(row.AvgValue) !== 0 &&
|
|
|
+ row.Value1 !== '' && parseInt(row.Value1) !== 0 &&
|
|
|
+ row.Value2 !== '' && parseInt(row.Value2) !== 0 &&
|
|
|
+ row.Value3 !== '' && parseInt(row.Value3) !== 0 &&
|
|
|
+ row.Value4 !== '' && parseInt(row.Value4) !== 0 &&
|
|
|
+ row.Value5 !== '' && parseInt(row.Value5) !== 0 &&
|
|
|
+ row.Value6 !== '' && parseInt(row.Value6) !== 0) {
|
|
|
+ var v1 = (row.AvgValue - row.Value1).toFixed(1)
|
|
|
+ var v2 = (row.AvgValue - row.Value2).toFixed(1)
|
|
|
+ var v3 = (row.AvgValue - row.Value3).toFixed(1)
|
|
|
+ var v4 = (row.AvgValue - row.Value4).toFixed(1)
|
|
|
+ var v5 = (row.AvgValue - row.Value5).toFixed(1)
|
|
|
+ var v6 = (row.AvgValue - row.Value6).toFixed(1)
|
|
|
+ var sumsq = v1 * v1 + v2 * v2 + v3 * v3 + v4 * v4 + v5 * v5 + v6 * v6
|
|
|
+ var sqthen = Math.sqrt(sumsq / 5)
|
|
|
+ row.RepeatValue = Number((sqthen / row.AvgValue * 100).toFixed(1))
|
|
|
+ }else{
|
|
|
+ row.RepeatValue = 0
|
|
|
+ }
|
|
|
},
|
|
|
setProoFreadShow() {
|
|
|
- this.ProoFreadShow = true
|
|
|
+ this.ProoFreadShow = true
|
|
|
},
|
|
|
// 提交校核
|
|
|
makesure() {
|
|
|
@@ -859,7 +924,7 @@
|
|
|
},
|
|
|
// 添加运行记录
|
|
|
addRunRecord() {
|
|
|
- this.$axios.post('/limsZuhq/addRunRecord/' + this.formData.DataEntryId,).then(res => {
|
|
|
+ this.$axios.post('/limsZuhq/addRunRecord/' + this.formData.DataEntryId, ).then(res => {
|
|
|
|
|
|
}).catch(error => {
|
|
|
console.log(error)
|
|
|
@@ -895,7 +960,6 @@
|
|
|
|
|
|
//保存信息
|
|
|
saveEntity() {
|
|
|
- console.log("------this.formData.Id----", this.formData.Id)
|
|
|
this.$refs['formData'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (!this.formData.Id) {
|
|
|
@@ -911,37 +975,11 @@
|
|
|
},
|
|
|
//添加数据
|
|
|
addEntityMain() {
|
|
|
- console.log("-------this.formdata---", this.formData)
|
|
|
if (this.certificateData != null) {
|
|
|
for (var i = 0; i < this.certificateData.length; i++) {
|
|
|
this.certificateData[i].StanDevice = this.formData.StanDevice
|
|
|
}
|
|
|
}
|
|
|
- this.deviationData.AvgValue = this.deviationData.AvgValue + ""
|
|
|
- this.RepeatData.AvgValue = this.RepeatData.AvgValue + ""
|
|
|
- // this.alerValData.AllowValue = parseInt(this.alerValData.AllowValue)
|
|
|
- // this.alerValData.MaxValue = parseInt(this.alerValData.MaxValue)
|
|
|
- // this.alerValData.Value1 = parseInt(this.alerValData.Value1)
|
|
|
- // this.alerValData.Value2 = parseInt(this.alerValData.Value2)
|
|
|
- // this.alerValData.Value3 = parseInt(this.alerValData.Value3)
|
|
|
- // this.deviationData.GasValue = parseInt(this.deviationData.GasValue)
|
|
|
- // this.deviationData.Deviation = parseInt(this.deviationData.Deviation)
|
|
|
- // this.responseTimeData.GasValue = parseInt(this.responseTimeData.GasValue)
|
|
|
- // this.responseTimeData.Value1 = parseInt(this.responseTimeData.Value1)
|
|
|
- // this.responseTimeData.Value2 = parseInt(this.responseTimeData.Value2)
|
|
|
- // this.responseTimeData.Value3 = parseInt(this.responseTimeData.Value3)
|
|
|
- // this.responseTimeData.Deviation = parseInt(this.responseTimeData.Deviation)
|
|
|
- // this.RepeatData.GasValue = parseInt(this.RepeatData.GasValue)
|
|
|
- // this.RepeatData.RepeatValue = parseInt(this.RepeatData.RepeatValue)
|
|
|
- // this.ShiftData.Value0 = parseInt(this.ShiftData.Value0)
|
|
|
- // this.ShiftData.Value1 = parseInt(this.ShiftData.Value1)
|
|
|
- // this.ShiftData.Value2 = parseInt(this.ShiftData.Value2)
|
|
|
- // this.ShiftData.Value3 = parseInt(this.ShiftData.Value3)
|
|
|
- // this.ShiftData.Value4 = parseInt(this.ShiftData.Value4)
|
|
|
- // this.ShiftData.Value5 = parseInt(this.ShiftData.Value5)
|
|
|
- // this.ShiftData.Value6 = parseInt(this.ShiftData.Value6)
|
|
|
- // this.ShiftData.ZeroValue = parseInt(this.ShiftData.ZeroValue)
|
|
|
- // this.ShiftData.ShowValue = parseInt(this.ShiftData.ShowValue)
|
|
|
let allform = {
|
|
|
BenMainform: this.formData,
|
|
|
CertiArrayList: this.certificateData, //添加证书数据
|
|
|
@@ -952,7 +990,6 @@
|
|
|
ShiftArrayList: this.ShiftData, //添加漂移数据
|
|
|
}
|
|
|
allform = Object.assign(allform, this.formCertificateData)
|
|
|
- console.log("---------allform", allform)
|
|
|
api.addEntity(allform, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
//保存成功后,初始化数据,变成修改
|
|
|
@@ -975,45 +1012,11 @@
|
|
|
|
|
|
|
|
|
updateEntity() {
|
|
|
- console.log("------updatethis.formData.Id----", this.formData.Id)
|
|
|
if (this.certificateData != null) {
|
|
|
for (var i = 0; i < this.certificateData.length; i++) {
|
|
|
this.certificateData[i].StanDevice = this.formData.StanDevice
|
|
|
}
|
|
|
}
|
|
|
- // if (this.alerValData != null) {
|
|
|
- // this.alerValData.AllowValue = parseInt(this.alerValData.AllowValue)
|
|
|
- // this.alerValData.MaxValue = parseInt(this.alerValData.MaxValue)
|
|
|
- // this.alerValData.Value1 = parseInt(this.alerValData.Value1)
|
|
|
- // this.alerValData.Value2 = parseInt(this.alerValData.Value2)
|
|
|
- // this.alerValData.Value3 = parseInt(this.alerValData.Value3)
|
|
|
- // }
|
|
|
- // if (this.deviationData != null) {
|
|
|
- // this.deviationData.GasValue = parseInt(this.deviationData.GasValue)
|
|
|
- // this.deviationData.Deviation = parseInt(this.deviationData.Deviation)
|
|
|
- // }
|
|
|
-
|
|
|
- // if (this.responseTimeData != null) {
|
|
|
- // this.responseTimeData.GasValue = parseInt(this.responseTimeData.GasValue)
|
|
|
- // this.responseTimeData.Value1 = parseInt(this.responseTimeData.Value1)
|
|
|
- // this.responseTimeData.Value2 = parseInt(this.responseTimeData.Value2)
|
|
|
- // this.responseTimeData.Value3 = parseInt(this.responseTimeData.Value3)
|
|
|
- // this.responseTimeData.Deviation = parseInt(this.responseTimeData.Deviation)
|
|
|
- // }
|
|
|
- // if (this.RepeatData != null) {
|
|
|
- // this.RepeatData.GasValue = parseInt(this.RepeatData.GasValue)
|
|
|
- // this.RepeatData.RepeatValue = parseInt(this.RepeatData.RepeatValue)
|
|
|
- // }
|
|
|
- // if (this.ShiftData != null) {
|
|
|
- // this.ShiftData.Value1 = parseInt(this.ShiftData.Value1)
|
|
|
- // this.ShiftData.Value2 = parseInt(this.ShiftData.Value2)
|
|
|
- // this.ShiftData.Value3 = parseInt(this.ShiftData.Value3)
|
|
|
- // this.ShiftData.Value4 = parseInt(this.ShiftData.Value4)
|
|
|
- // this.ShiftData.Value5 = parseInt(this.ShiftData.Value5)
|
|
|
- // this.ShiftData.Value6 = parseInt(this.ShiftData.Value6)
|
|
|
- // this.ShiftData.ZeroValue = parseInt(this.ShiftData.ZeroValue)
|
|
|
- // this.ShiftData.ShowValue = parseInt(this.ShiftData.ShowValue)
|
|
|
- // }
|
|
|
let allform = {
|
|
|
BenMainform: this.formData,
|
|
|
CertiArrayList: this.certificateData, //添加证书数据
|