|
|
@ -363,76 +363,54 @@
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="记录">
|
|
|
|
<el-tab-pane label="记录">
|
|
|
|
<!-- 设备 -->
|
|
|
|
<el-table
|
|
|
|
<el-row>
|
|
|
|
:data="recordList"
|
|
|
|
<el-col :offset="9" :span="6">
|
|
|
|
border
|
|
|
|
<el-form-item label="设备名称:">
|
|
|
|
style="width: 100%">
|
|
|
|
{{ this.form.equipmentName }}
|
|
|
|
<el-table-column
|
|
|
|
</el-form-item>
|
|
|
|
prop="itemName"
|
|
|
|
</el-col>
|
|
|
|
label="检查项"
|
|
|
|
</el-row>
|
|
|
|
>
|
|
|
|
<div v-for="(detail,detailIndex) in form.detailList" :key="detailIndex">
|
|
|
|
</el-table-column>
|
|
|
|
<!-- 检查项 -->
|
|
|
|
<el-table-column
|
|
|
|
<el-row>
|
|
|
|
prop="standardName"
|
|
|
|
<el-col :span="6">
|
|
|
|
label="标准名称"
|
|
|
|
<el-form-item label="检查项:">
|
|
|
|
>
|
|
|
|
{{ detail.itemName }}
|
|
|
|
</el-table-column>
|
|
|
|
</el-form-item>
|
|
|
|
<el-table-column
|
|
|
|
</el-col>
|
|
|
|
prop="detailReach"
|
|
|
|
</el-row>
|
|
|
|
label="是否达标">
|
|
|
|
<div v-for="(standard,standardIndex) in detail.standardList" :key="standardIndex">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<div v-if="standard.standardType == 'qualitative' ">
|
|
|
|
<el-select v-model="scope.row.detailReach" placeholder="请选择">
|
|
|
|
<!-- 标准 -->
|
|
|
|
<el-option
|
|
|
|
<el-row>
|
|
|
|
v-for="item in dict.type.device_reach_standard"
|
|
|
|
<el-col :span="6">
|
|
|
|
:key="item.value"
|
|
|
|
<el-form-item label="标准:">
|
|
|
|
:label="item.label"
|
|
|
|
{{ standard.standardName }}
|
|
|
|
:value="item.value">
|
|
|
|
</el-form-item>
|
|
|
|
</el-option>
|
|
|
|
</el-col>
|
|
|
|
</el-select>
|
|
|
|
<el-col :span="9">
|
|
|
|
</template>
|
|
|
|
<el-form-item label="是否达标:">
|
|
|
|
</el-table-column>
|
|
|
|
<el-radio v-model="standard.detailReach" label="0">未达标</el-radio>
|
|
|
|
<el-table-column
|
|
|
|
<el-radio v-model="standard.detailReach" label="1">达标</el-radio>
|
|
|
|
prop="detailUpLimit"
|
|
|
|
</el-form-item>
|
|
|
|
label="上限">
|
|
|
|
</el-col>
|
|
|
|
</el-table-column>
|
|
|
|
<el-col v-if="false" :span="2">
|
|
|
|
<el-table-column
|
|
|
|
<el-button type="primary" icon="el-icon-picture" circle @click="imgDialog = true"></el-button>
|
|
|
|
prop="detailDownLimit"
|
|
|
|
</el-col>
|
|
|
|
label="下限">
|
|
|
|
</el-row>
|
|
|
|
</el-table-column>
|
|
|
|
</div>
|
|
|
|
<el-table-column
|
|
|
|
<div v-else>
|
|
|
|
prop="actualValue"
|
|
|
|
<!-- 标准 -->
|
|
|
|
label="实际值">
|
|
|
|
<el-row>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-col :span="5">
|
|
|
|
<el-input v-if="scope.row.standardType == 'quantify' " size="small" v-model="scope.row.actualValue" @change="handleEdit(scope.$index,scope.row)"></el-input>
|
|
|
|
<el-form-item label="标准:">
|
|
|
|
</template>
|
|
|
|
{{ standard.standardName }}
|
|
|
|
</el-table-column>
|
|
|
|
</el-form-item>
|
|
|
|
<el-table-column
|
|
|
|
</el-col>
|
|
|
|
prop="detailUnit"
|
|
|
|
<el-col :span="4">
|
|
|
|
label="单位">
|
|
|
|
<el-form-item label="上限:">
|
|
|
|
</el-table-column>
|
|
|
|
{{ standard.detailUpLimit }}
|
|
|
|
</el-table>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
|
|
|
<el-form-item label="下限:">
|
|
|
|
|
|
|
|
{{ standard.detailDownLimit }}
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
|
|
|
<el-form-item label="单位:">
|
|
|
|
|
|
|
|
{{ standard.detailUnit }}
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
|
|
<el-form-item label="实际值:">
|
|
|
|
|
|
|
|
<el-input v-model="standard.actualValue" placeholder="请输入实际值"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<el-divider></el-divider>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="工单信息修改">
|
|
|
|
<el-tab-pane label="工单信息修改">
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
@ -478,11 +456,13 @@ import {getWorkCenter} from "@/api/device/plan";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "SpotInspectionOrder",
|
|
|
|
name: "SpotInspectionOrder",
|
|
|
|
dicts: ['device_order_status', 'device_loop_type'],
|
|
|
|
dicts: ['device_order_status', 'device_loop_type','device_reach_standard'],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
dialogImageUrl: '',
|
|
|
|
dialogImageUrl: '',
|
|
|
|
dialogVisible: false,
|
|
|
|
dialogVisible: false,
|
|
|
|
|
|
|
|
// 记录
|
|
|
|
|
|
|
|
recordList: [],
|
|
|
|
disabled: false,
|
|
|
|
disabled: false,
|
|
|
|
// 上传图片弹出层
|
|
|
|
// 上传图片弹出层
|
|
|
|
imgDialog: false,
|
|
|
|
imgDialog: false,
|
|
|
@ -654,6 +634,12 @@ export default {
|
|
|
|
if (response.data.timeArray[0] == null) {
|
|
|
|
if (response.data.timeArray[0] == null) {
|
|
|
|
response.data.timeArray = [];
|
|
|
|
response.data.timeArray = [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for (let i = 0; i < this.form.detailList.length; i++) {
|
|
|
|
|
|
|
|
for (let j = 0; j < this.form.detailList[i].standardList.length; j++) {
|
|
|
|
|
|
|
|
this.form.detailList[i].standardList[j].itemName = this.form.detailList[i].itemName;
|
|
|
|
|
|
|
|
this.recordList.push(this.form.detailList[i].standardList[j]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "填写记录";
|
|
|
|
this.title = "填写记录";
|
|
|
|
});
|
|
|
|
});
|
|
|
|