手持接口-巡检工单

yangwl
wws 11 months ago
parent 3f7054cd78
commit 377ce2bdb2

@ -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-row>
<el-col :offset="9" :span="6"> <el-col :offset="9" :span="6">
<el-form-item label="设备名称"> <el-form-item label="设备名称:">
{{equ.equipmentName}} {{ this.form.equ.equipmentName }}
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<div v-for="(detail,detailIndex) in form.equ.detailList" :key="detailIndex">
<!-- 检查项 --> <!-- 检查项 -->
<div v-for="(detail,detailIndex) in equ.detailList" :key="detailIndex">
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="检查项:"> <el-form-item label="检查项:">
{{detail.itemName}} {{ 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="(standard,standardIndex) in detail.standardList" :key="standardIndex">
<el-row v-if="standard.standardType == 'qualitative' "> <div v-if="standard.standardType == 'qualitative' ">
<!-- 标准 -->
<el-row>
<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-col>
</el-row> </el-row>
</el-row> </div>
<el-row v-else> <div v-else>
<el-col :span="6"> <!-- 标准 -->
<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");
}, },

Loading…
Cancel
Save