|
|
@@ -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">
|
|
|
@@ -87,7 +90,12 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="标准器名称:">
|
|
|
- <el-input v-model="formData.StanDevice" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
+ <el-select ref="refDevice" v-model="formData.InstrumentNo" clearable placeholder="请选择"
|
|
|
+ @change="chooseCertify" style="width: 100%">
|
|
|
+ <el-option v-for="item in StanDeviceoptions" :key="item.id" :label="item.name" :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <!-- <el-input v-model="formData.StanDevice" placeholder="请输入" style="width: 100%"></el-input> -->
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
@@ -126,7 +134,12 @@
|
|
|
<el-form label-width="100px" ref="certificateForm" :model="formCertificateData">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="标准器名称:">
|
|
|
- <el-input v-model="formCertificateData.StanDevice" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
+ <el-select ref="refDevice2" v-model="formCertificateData.InstrumentNo" clearable placeholder="请选择"
|
|
|
+ @change="chooseCertify2" style="width: 100%">
|
|
|
+ <el-option v-for="item in StanDeviceoptions2" :key="item.id" :label="item.name" :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <!-- <el-input v-model="formCertificateData.StanDevice" placeholder="请输入" style="width: 100%"></el-input> -->
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
@@ -146,8 +159,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>
|
|
|
@@ -198,23 +211,27 @@
|
|
|
<el-table-column align="center" label="实测报警值(%LEL)">
|
|
|
<el-table-column align="center" label="" prop="Value1">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.1" 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.1" 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.1" 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="ActionValue" align="center" label="报警动作值(%LEL)" min-width="90">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.1" v-model.number="scope.row.ActionValue" style="width: 160px" size="mini"></el-input>
|
|
|
+ <el-input type="number" step="0.1" v-model.number="scope.row.ActionValue" style="width: 160px" size="mini">
|
|
|
+ </el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -227,34 +244,40 @@
|
|
|
<el-table :data="deviationData" border style="width: 100%">
|
|
|
<el-table-column align="center" prop="GasValue" label="标准气体浓度值(%LEL)" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.1" v-model.number="scope.row.GasValue" style="width: 100%" size="mini" :disabled="true"></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="仪器示值(%LEL)" 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.1" v-model.number="scope.row.Value1" style="width: 100%" size="mini"></el-input>
|
|
|
+ <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.1" v-model.number="scope.row.Value2" style="width: 100%" size="mini"></el-input>
|
|
|
+ <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.1" v-model.number="scope.row.Value3" style="width: 100%" size="mini"></el-input>
|
|
|
+ <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.1" v-model.number="scope.row.AvgValue" style="width: 100%" size="mini" :disabled="true"></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.1" v-model.number="scope.row.Deviation" style="width: 100%" size="mini" :disabled="true"></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>
|
|
|
@@ -267,28 +290,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.1" 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.1" 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.1" 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.1" 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.1" 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>
|
|
|
@@ -302,49 +330,58 @@
|
|
|
<el-table :data="RepeatData" border style="width: 100%">
|
|
|
<el-table-column align="center" prop="GasValue" label="标准气体浓度值(%LEL)" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.1" v-model.number="scope.row.GasValue" style="width: 100%" size="mini" :disabled="true"></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="仪器示值(%LEL)" 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.1" v-model.number="scope.row.Value1" style="width: 100%" size="mini"></el-input>
|
|
|
+ <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.1" v-model.number="scope.row.Value2" style="width: 100%" size="mini"></el-input>
|
|
|
+ <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.1" v-model.number="scope.row.Value3" style="width: 100%" size="mini"></el-input>
|
|
|
+ <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.1" v-model.number="scope.row.Value4" style="width: 100%" size="mini"></el-input>
|
|
|
+ <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.1" v-model.number="scope.row.Value5" style="width: 100%" size="mini"></el-input>
|
|
|
+ <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.1" v-model.number="scope.row.Value6" style="width: 100%" size="mini"></el-input>
|
|
|
+ <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.1" v-model.number="scope.row.AvgValue" style="width: 100%" size="mini" :disabled="true"></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.1" v-model.number="scope.row.RepeatValue" style="width: 100%" size="mini" :disabled="true"></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>
|
|
|
@@ -359,53 +396,63 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="value0" align="center" label="0">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.1" 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">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.1" 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">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.1" 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">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.1" 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">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.1" 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">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.1" 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">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.1" 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="零点漂移(%FS)" min-width="150">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.1" 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="量程漂移(%FS)" min-width="150">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" step="0.1" 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" :disabled="DataStatus != 0 && DataStatus != 5&& DataStatus!=3"><i class="el-icon-circle-check"></i>
|
|
|
+ <el-button type="primary" size="small" @click="saveEntity"
|
|
|
+ :disabled="DataStatus != 0 && DataStatus != 5&& DataStatus!=3"><i class="el-icon-circle-check"></i>
|
|
|
保存
|
|
|
</el-button>
|
|
|
</div>
|
|
|
@@ -441,6 +488,7 @@
|
|
|
mapGetters
|
|
|
} from 'vuex'
|
|
|
import api from '@/api/meter/reportalertorkr'
|
|
|
+ import instapi from '@/api/system/instrument'
|
|
|
export default {
|
|
|
computed: {
|
|
|
...mapGetters({
|
|
|
@@ -453,7 +501,11 @@
|
|
|
return {
|
|
|
ProoFreadShow: false,
|
|
|
acceptUsers: [],
|
|
|
+ DeviceList: [],
|
|
|
+ StanDeviceoptions: [],
|
|
|
+ StanDeviceoptions2: [],
|
|
|
serviceId: '',
|
|
|
+ InstrumentNo: '',
|
|
|
DataStatus: '0',
|
|
|
sign: '2',
|
|
|
// 校核提交
|
|
|
@@ -491,6 +543,7 @@
|
|
|
Temperature: '',
|
|
|
StandardDesc: '可燃气体检测报警器检定装置',
|
|
|
StanDevice: '',
|
|
|
+ InstrumentNo: '',
|
|
|
RelativeHumanity: '',
|
|
|
ManuCompany: '',
|
|
|
Spec: '',
|
|
|
@@ -503,7 +556,9 @@
|
|
|
DielecStrength: ''
|
|
|
},
|
|
|
//证书编号
|
|
|
+ formcer: [],
|
|
|
formCertificateData: {
|
|
|
+ Id: 0,
|
|
|
StanDevice: '',
|
|
|
CerNum: '',
|
|
|
StandardUnit: '',
|
|
|
@@ -512,8 +567,40 @@
|
|
|
EffectDate: new Date(),
|
|
|
InstrumentNo: ''
|
|
|
},
|
|
|
+ certificateDataform: [{
|
|
|
+ Id: 0,
|
|
|
+ value: 1,
|
|
|
+ CerNum: '',
|
|
|
+ StandardUnit: '',
|
|
|
+ StandVal: '',
|
|
|
+ Uncertainty: '',
|
|
|
+ EffectDate: new Date(),
|
|
|
+ StanDevice: '',
|
|
|
+ InstrumentNo: ''
|
|
|
+ }, {
|
|
|
+ Id: 0,
|
|
|
+ value: 2,
|
|
|
+ CerNum: '',
|
|
|
+ StandardUnit: '',
|
|
|
+ StandVal: '',
|
|
|
+ Uncertainty: '',
|
|
|
+ EffectDate: new Date(),
|
|
|
+ StanDevice: '',
|
|
|
+ InstrumentNo: ''
|
|
|
+ }, {
|
|
|
+ Id: 0,
|
|
|
+ value: 3,
|
|
|
+ CerNum: '',
|
|
|
+ StandardUnit: '',
|
|
|
+ StandVal: '',
|
|
|
+ Uncertainty: '',
|
|
|
+ EffectDate: new Date(),
|
|
|
+ StanDevice: '',
|
|
|
+ InstrumentNo: ''
|
|
|
+ }],
|
|
|
//certificateDataAll: [],
|
|
|
certificateData: [{
|
|
|
+ Id: 0,
|
|
|
value: 1,
|
|
|
CerNum: '',
|
|
|
StandardUnit: '',
|
|
|
@@ -523,6 +610,7 @@
|
|
|
StanDevice: '',
|
|
|
InstrumentNo: ''
|
|
|
}, {
|
|
|
+ Id: 0,
|
|
|
value: 2,
|
|
|
CerNum: '',
|
|
|
StandardUnit: '',
|
|
|
@@ -532,6 +620,7 @@
|
|
|
StanDevice: '',
|
|
|
InstrumentNo: ''
|
|
|
}, {
|
|
|
+ Id: 0,
|
|
|
value: 3,
|
|
|
CerNum: '',
|
|
|
StandardUnit: '',
|
|
|
@@ -543,6 +632,7 @@
|
|
|
}],
|
|
|
//报警误差
|
|
|
alerValData: [{
|
|
|
+ Id: 0,
|
|
|
AlertFunc: [],
|
|
|
AlertFunction: [],
|
|
|
Value1: '',
|
|
|
@@ -553,6 +643,7 @@
|
|
|
MaxValue: '0',
|
|
|
AllowValue: '0'
|
|
|
}, {
|
|
|
+ Id: 0,
|
|
|
AlertFunc: [],
|
|
|
AlertFunction: [],
|
|
|
Value1: '',
|
|
|
@@ -573,6 +664,7 @@
|
|
|
}],
|
|
|
//示值误差及响应时间
|
|
|
deviationData: [{
|
|
|
+ Id: 0,
|
|
|
GasValue: 10,
|
|
|
Value1: '',
|
|
|
Value2: '',
|
|
|
@@ -582,6 +674,7 @@
|
|
|
DeviationRelative: '0',
|
|
|
Deviation: ''
|
|
|
}, {
|
|
|
+ Id: 0,
|
|
|
GasValue: 40.2,
|
|
|
Value1: '',
|
|
|
Value2: '',
|
|
|
@@ -591,6 +684,7 @@
|
|
|
DeviationRelative: '0',
|
|
|
Deviation: ''
|
|
|
}, {
|
|
|
+ Id: 0,
|
|
|
GasValue: 60.8,
|
|
|
Value1: '',
|
|
|
Value2: '',
|
|
|
@@ -602,6 +696,7 @@
|
|
|
}],
|
|
|
//响应时间
|
|
|
responseTimeForm: {
|
|
|
+ Id: 0,
|
|
|
GasValue: '',
|
|
|
Value1: '',
|
|
|
Value2: '',
|
|
|
@@ -609,6 +704,7 @@
|
|
|
Deviation: ''
|
|
|
},
|
|
|
responseTimeData: [{
|
|
|
+ Id: 0,
|
|
|
GasValue: '',
|
|
|
Value1: '',
|
|
|
Value2: '',
|
|
|
@@ -617,6 +713,7 @@
|
|
|
}],
|
|
|
//重复性
|
|
|
RepeatForm: {
|
|
|
+ Id: 0,
|
|
|
GasValue: '',
|
|
|
Value1: '',
|
|
|
Value2: '',
|
|
|
@@ -628,6 +725,7 @@
|
|
|
RepeatValue: ''
|
|
|
},
|
|
|
RepeatData: [{
|
|
|
+ Id: 0,
|
|
|
GasValue: 40.2,
|
|
|
Value1: '',
|
|
|
Value2: '',
|
|
|
@@ -640,6 +738,7 @@
|
|
|
}],
|
|
|
//漂移
|
|
|
ShiftData: [{
|
|
|
+ Id: 0,
|
|
|
ValueType: '零点示值',
|
|
|
value0: '',
|
|
|
Value1: '',
|
|
|
@@ -651,6 +750,7 @@
|
|
|
ZeroValue: '',
|
|
|
ShowValue: ''
|
|
|
}, {
|
|
|
+ Id: 0,
|
|
|
ValueType: '量程示值',
|
|
|
value0: '',
|
|
|
Value1: '',
|
|
|
@@ -678,8 +778,9 @@
|
|
|
this.formData.DataEntryId = this.queryParams.DataEntryId
|
|
|
this.formData.TaskBalanceId = this.queryParams.TaskBalanceId
|
|
|
this.formData.EId = this.queryParams.EId
|
|
|
- this.initDatas();
|
|
|
+ this.initDatas()
|
|
|
this.getUsersByRole()
|
|
|
+ this.getdevice()
|
|
|
//this.getDictOptions();
|
|
|
// if (this.serviceId != 'add' && this.serviceId > 0) {
|
|
|
// this.formData.Id = this.serviceId;
|
|
|
@@ -696,7 +797,7 @@
|
|
|
this.formData = res.data.mainitem;
|
|
|
this.formData.DetectBasis = 'JJG 693-2011《 可燃气体检测报警器》检定规程'
|
|
|
this.formData.StandardDesc = '可燃气体检测报警器检定装置'
|
|
|
- if (this.formData.CheckDate == "0001-01-01T00:00:00Z"){
|
|
|
+ if (this.formData.CheckDate == "0001-01-01T00:00:00Z") {
|
|
|
this.formData.CheckDate = new Date();
|
|
|
}
|
|
|
if (res.data.ceritem != null) {
|
|
|
@@ -715,8 +816,11 @@
|
|
|
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
|
|
|
+ this.formCertificateData.InstrumentNo = res.data.ceritem[3].StanDevice
|
|
|
+ this.formData.StanDevice = res.data.ceritem[0].StanDevice
|
|
|
+ this.formData.InstrumentNo = res.data.ceritem[0].StanDevice
|
|
|
}
|
|
|
+ console.log("-----this.formData---", this.formData)
|
|
|
if (res.data.alvalitem != null) {
|
|
|
for (var i = 0; i < res.data.alvalitem.length; i++) {
|
|
|
this.alerValData[i] = res.data.alvalitem[i];
|
|
|
@@ -770,6 +874,81 @@
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ getdevice() {
|
|
|
+ let _this = this
|
|
|
+ _this.$axios.get('/instrument/initlistdata', {})
|
|
|
+ .then(function (response) {
|
|
|
+ console.log("jkkfddf", response.data.items)
|
|
|
+ _this.DeviceList = response.data.items
|
|
|
+ console.log("-_this._this.DeviceList------", _this.DeviceList)
|
|
|
+ if (!_this.DeviceList) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ for (var i = 0; i < _this.DeviceList.length; i++) {
|
|
|
+ let devicelist = _this.DeviceList[i]
|
|
|
+ instapi.getList(_this.DeviceList[i].Id, "", _this.$axios).then(res => {
|
|
|
+ if (res.data.currentItemCount === 1) {
|
|
|
+ _this.StanDeviceoptions2.push({
|
|
|
+ id: devicelist.Id,
|
|
|
+ name: devicelist.Name,
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ _this.StanDeviceoptions.push({
|
|
|
+ id: devicelist.Id,
|
|
|
+ name: devicelist.Name,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(function (error) {
|
|
|
+ console.log(error)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ chooseCertify2(value) {
|
|
|
+ let _this = this
|
|
|
+ let obj = {};
|
|
|
+ obj = this.StanDeviceoptions2.find((item) => {
|
|
|
+ return item.id === value;
|
|
|
+ });
|
|
|
+ this.formCertificateData.StanDevice = obj.name
|
|
|
+ let instrumentno = value
|
|
|
+ //访问接口
|
|
|
+ instapi.getList(instrumentno, "", this.$axios).then(res => {
|
|
|
+ this.certificateDataform = res.data.items
|
|
|
+ this.formCertificateData.CerNum = this.certificateDataform[0].CerNum
|
|
|
+ this.formCertificateData.Uncertainty = this.certificateDataform[0].Uncertainty
|
|
|
+ this.formCertificateData.StandVal = this.certificateDataform[0].StandVal
|
|
|
+ this.formCertificateData.EffectDate = this.certificateDataform[0].EffectDate
|
|
|
+
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ chooseCertify(value) {
|
|
|
+ let obj = {};
|
|
|
+ obj = this.StanDeviceoptions.find((item) => {
|
|
|
+ return item.id === value;
|
|
|
+ });
|
|
|
+ this.formData.StanDevice = obj.name
|
|
|
+ console.log(obj.name);
|
|
|
+ let _this = this
|
|
|
+ _this.InstrumentNo = value
|
|
|
+ //访问接口
|
|
|
+ instapi.getList(_this.InstrumentNo, "", this.$axios).then(res => {
|
|
|
+ this.certificateDataform = res.data.items
|
|
|
+ for (var i = 0; i < this.certificateDataform.length; i++) {
|
|
|
+ this.certificateData[i].CerNum = this.certificateDataform[i].CerNum
|
|
|
+ this.certificateData[i].Uncertainty = this.certificateDataform[i].Uncertainty
|
|
|
+ this.certificateData[i].StandVal = this.certificateDataform[i].StandVal
|
|
|
+ this.certificateData[i].EffectDate = this.certificateDataform[i].EffectDate
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取校核人列表
|
|
|
getUsersByRole() {
|
|
|
// request
|
|
|
@@ -879,12 +1058,12 @@
|
|
|
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{
|
|
|
+ } else {
|
|
|
row.RepeatValue = 0
|
|
|
}
|
|
|
},
|
|
|
setProoFreadShow() {
|
|
|
- this.ProoFreadShow = true
|
|
|
+ this.ProoFreadShow = true
|
|
|
},
|
|
|
// 提交校核
|
|
|
makesure() {
|
|
|
@@ -902,7 +1081,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)
|
|
|
@@ -938,7 +1117,6 @@
|
|
|
|
|
|
//保存信息
|
|
|
saveEntity() {
|
|
|
- console.log("------this.formData.Id----", this.formData.Id)
|
|
|
this.$refs['formData'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (!this.formData.Id) {
|
|
|
@@ -955,10 +1133,12 @@
|
|
|
//添加数据
|
|
|
addEntityMain() {
|
|
|
let _this = this
|
|
|
- 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
|
|
|
+ if (this.certificateData[i].StanDevice === "") {
|
|
|
+ this.certificateData[i].InstrumentNo = this.formData.InstrumentNo
|
|
|
+ this.certificateData[i].StanDevice = this.formData.StanDevice
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (this.alerValData != null) {
|
|
|
@@ -1002,9 +1182,9 @@
|
|
|
|
|
|
updateEntity() {
|
|
|
let _this = this
|
|
|
- console.log("------updatethis.formData.Id----", this.formData.Id)
|
|
|
if (this.certificateData != null) {
|
|
|
for (var i = 0; i < this.certificateData.length; i++) {
|
|
|
+ this.certificateData[i].InstrumentNo = this.formData.InstrumentNo
|
|
|
this.certificateData[i].StanDevice = this.formData.StanDevice
|
|
|
}
|
|
|
}
|
|
|
@@ -1025,6 +1205,7 @@
|
|
|
ShiftArrayList: this.ShiftData, //添加漂移数据
|
|
|
}
|
|
|
allform = Object.assign(allform, this.formCertificateData)
|
|
|
+ console.log("-------allform--------", allform)
|
|
|
api.updateEntity(this.formData.DataEntryId, allform, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
//保存成功后,初始化数据,变成修改
|
|
|
@@ -1076,7 +1257,6 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|