|
|
@@ -41,7 +41,92 @@
|
|
|
>
|
|
|
</div>
|
|
|
|
|
|
-
|
|
|
+ <el-form ref="form" style="width: 100%">
|
|
|
+ <el-table
|
|
|
+ style="margin-top: 15px"
|
|
|
+ :data="item.qualityStandard.parameterStandards"
|
|
|
+ border
|
|
|
+
|
|
|
+ >
|
|
|
+ <el-table-column
|
|
|
+ :label="item.qualityStandard.singleWeightDivision"
|
|
|
+ align="center"
|
|
|
+ >
|
|
|
+ <el-table-column
|
|
|
+ label="参数上限"
|
|
|
+ align="center"
|
|
|
+ v-if="item.qualityStandard.parameterType == 3"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-form-item label-width="0" prop="finalValue">
|
|
|
+ <el-input
|
|
|
+ clearable
|
|
|
+ :disabled="type == 'detail'"
|
|
|
+ v-model="scope.row.finalValue"
|
|
|
+ placeholder="请输入"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="参数下限"
|
|
|
+ align="center"
|
|
|
+ v-if="item.qualityStandard.parameterType == 3"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-form-item label-width="0" prop="initialValue">
|
|
|
+ <el-input
|
|
|
+ clearable
|
|
|
+ v-model="scope.row.initialValue"
|
|
|
+ placeholder="请输入"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="默认值"
|
|
|
+ align="center"
|
|
|
+ v-if="item.qualityStandard.parameterType != 3"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-form-item label-width="0" prop="defaultValue">
|
|
|
+ <el-input
|
|
|
+ clearable
|
|
|
+ v-model="scope.row.defaultValue"
|
|
|
+ placeholder="请输入"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column
|
|
|
+ :label="item.qualityStandard.tolerance"
|
|
|
+ align="center"
|
|
|
+ >
|
|
|
+ <el-table-column label="质检标准" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-form-item label-width="0" prop="inspectionStandard">
|
|
|
+ <el-input
|
|
|
+ clearable
|
|
|
+ v-model="scope.row.toleranceValue"
|
|
|
+ placeholder="请输入"
|
|
|
+ >
|
|
|
+ <DictSelection
|
|
|
+ style="width: 100px"
|
|
|
+ slot="prepend"
|
|
|
+ clearable
|
|
|
+ dictName="数学字符"
|
|
|
+ v-model="scope.row.symbol"
|
|
|
+ ></DictSelection>
|
|
|
+ </el-input>
|
|
|
+ <!-- </el-form-item> -->
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-form>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -62,7 +147,6 @@
|
|
|
|
|
|
created() {
|
|
|
EventBus.$on('inspectionSelection', (data) => {
|
|
|
- console.log(data.message);
|
|
|
|
|
|
let _arr = this.updateOrCreateObjectInArray(this.list, data.message);
|
|
|
this.list = JSON.parse(JSON.stringify(_arr));
|
|
|
@@ -93,23 +177,26 @@
|
|
|
.content_box {
|
|
|
width: 100%;
|
|
|
margin-top: 12px;
|
|
|
+ max-height: 42vh;
|
|
|
+ overflow-y: scroll;
|
|
|
}
|
|
|
|
|
|
- .content_box_list{
|
|
|
- display: flex;
|
|
|
- flex-wrap: wrap;
|
|
|
+ .content_box_list {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ margin-bottom: 30px;
|
|
|
}
|
|
|
|
|
|
- .content_ll{
|
|
|
+ .content_ll {
|
|
|
width: 50%;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
margin-top: 4px;
|
|
|
|
|
|
- .name{
|
|
|
- width: 130px;
|
|
|
- color: #000;
|
|
|
- font-weight: 700;
|
|
|
+ .name {
|
|
|
+ width: 130px;
|
|
|
+ color: #000;
|
|
|
+ font-weight: 700;
|
|
|
}
|
|
|
}
|
|
|
</style>
|