|
|
@ -312,7 +312,7 @@
|
|
|
|
<span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
<span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column width="180" label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
|
|
|
|
<el-table-column width="180" label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
@ -348,72 +348,76 @@
|
|
|
|
<el-tabs type="border-card">
|
|
|
|
<el-tabs type="border-card">
|
|
|
|
<el-tab-pane label="基础信息">
|
|
|
|
<el-tab-pane label="基础信息">
|
|
|
|
<el-descriptions title="">
|
|
|
|
<el-descriptions title="">
|
|
|
|
<el-descriptions-item label="计划编码">{{this.form.planCode}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="计划编码">{{ this.form.planCode }}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="计划名称">{{this.form.planName}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="计划名称">{{ this.form.planName }}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="循环周期">{{this.form.planLoop}}{{this.form.planLoopType}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="循环周期">{{ this.form.planLoop }}{{ this.form.planLoopType }}
|
|
|
|
<el-descriptions-item label="工单编码">{{this.form.orderCode}}</el-descriptions-item>
|
|
|
|
</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="车间编码">{{this.form.planWorkshop}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="工单编码">{{ this.form.orderCode }}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="工作中心">{{this.form.workCenterName}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="车间编码">{{ this.form.planWorkshop }}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="工作中心">{{ this.form.workCenterName }}</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="记录">
|
|
|
|
<el-tab-pane label="记录">
|
|
|
|
<!-- 设备 -->
|
|
|
|
<!-- 设备 -->
|
|
|
|
<div v-for="(equ , equIndex) in this.form.equList" :key="equIndex">
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :offset="9" :span="6">
|
|
|
|
|
|
|
|
<el-form-item label="设备名称:">
|
|
|
|
|
|
|
|
{{ this.form.equ.equipmentName }}
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<div v-for="(detail,detailIndex) in form.equ.detailList" :key="detailIndex">
|
|
|
|
|
|
|
|
<!-- 检查项 -->
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :offset="9" :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label="设备名称">
|
|
|
|
<el-form-item label="检查项:">
|
|
|
|
{{equ.equipmentName}}
|
|
|
|
{{ detail.itemName }}
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<!-- 检查项 -->
|
|
|
|
<div v-for="(standard,standardIndex) in detail.standardList" :key="standardIndex">
|
|
|
|
<div v-for="(detail,detailIndex) in equ.detailList" :key="detailIndex">
|
|
|
|
<div v-if="standard.standardType == 'qualitative' ">
|
|
|
|
<el-row>
|
|
|
|
<!-- 标准 -->
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-row>
|
|
|
|
<el-form-item label="检查项:">
|
|
|
|
|
|
|
|
{{detail.itemName}}
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<!-- 标准 -->
|
|
|
|
|
|
|
|
<div v-for="(standard,standardIndex) in detail.standardList" :key="standardIndex">
|
|
|
|
|
|
|
|
<el-row v-if="standard.standardType == 'qualitative' ">
|
|
|
|
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label="标准:">
|
|
|
|
<el-form-item label="标准:">
|
|
|
|
{{standard.standardName}}
|
|
|
|
{{ standard.standardName }}
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="9">
|
|
|
|
<el-form-item label="是否达标">
|
|
|
|
<el-form-item label="是否达标:">
|
|
|
|
<el-radio v-model="standard.detailReach" label="0">达标</el-radio>
|
|
|
|
<el-radio v-model="standard.detailReach" label="0">达标</el-radio>
|
|
|
|
<el-radio v-model="standard.detailReach" label="1">未达标</el-radio>
|
|
|
|
<el-radio v-model="standard.detailReach" label="1">未达标</el-radio>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-row>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row v-else>
|
|
|
|
</div>
|
|
|
|
<el-col :span="6">
|
|
|
|
<div v-else>
|
|
|
|
|
|
|
|
<!-- 标准 -->
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="5">
|
|
|
|
<el-form-item label="标准:">
|
|
|
|
<el-form-item label="标准:">
|
|
|
|
{{standard.standardName}}
|
|
|
|
{{ standard.standardName }}
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="4">
|
|
|
|
<el-col :span="4">
|
|
|
|
<el-form-item label-width="50px" label="上限:">
|
|
|
|
<el-form-item label="上限:">
|
|
|
|
{{standard.detailUpLimit}}
|
|
|
|
{{ standard.detailUpLimit }}
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="4">
|
|
|
|
<el-col :span="4">
|
|
|
|
<el-form-item label-width="50px" label="下限:">
|
|
|
|
<el-form-item label="下限:">
|
|
|
|
{{standard.detailDownLimit}}
|
|
|
|
{{ standard.detailDownLimit }}
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="4">
|
|
|
|
<el-col :span="4">
|
|
|
|
<el-form-item label-width="50px" label="单位:">
|
|
|
|
<el-form-item label="单位:">
|
|
|
|
{{standard.detailUnit}}
|
|
|
|
{{ standard.detailUnit }}
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="4">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label-width="50px" label="实际值:">
|
|
|
|
<el-form-item label="实际值:">
|
|
|
|
<el-input v-model="standard.actualValue" placeholder="请输入值"></el-input>
|
|
|
|
<el-input v-model="standard.actualValue" placeholder="请输入实际值"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
@ -470,7 +474,7 @@ import {
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "DeviceOrder",
|
|
|
|
name: "DeviceOrder",
|
|
|
|
dicts: ['device_order_status','device_loop_type'],
|
|
|
|
dicts: ['device_order_status', 'device_loop_type'],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
// 遮罩层
|
|
|
|
// 遮罩层
|
|
|
@ -524,7 +528,9 @@ export default {
|
|
|
|
updateTime: null
|
|
|
|
updateTime: null
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
form: {
|
|
|
|
|
|
|
|
equ: {equipmentName: null},
|
|
|
|
|
|
|
|
},
|
|
|
|
// 表单校验
|
|
|
|
// 表单校验
|
|
|
|
rules: {}
|
|
|
|
rules: {}
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -577,7 +583,8 @@ export default {
|
|
|
|
createBy: null,
|
|
|
|
createBy: null,
|
|
|
|
createTime: null,
|
|
|
|
createTime: null,
|
|
|
|
updateBy: null,
|
|
|
|
updateBy: null,
|
|
|
|
updateTime: null
|
|
|
|
updateTime: null,
|
|
|
|
|
|
|
|
equ: {equipmentName: null},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.resetForm("form");
|
|
|
|
this.resetForm("form");
|
|
|
|
},
|
|
|
|
},
|
|
|
|