|
|
|
@ -578,12 +578,20 @@
|
|
|
|
|
stripe
|
|
|
|
|
@selection-change="selectChangeEqu"
|
|
|
|
|
style="width: 100%">
|
|
|
|
|
<el-table-column width="55" align="center"/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="itemName"
|
|
|
|
|
label="检查项">
|
|
|
|
|
label="部位">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="itemMethod"
|
|
|
|
|
label="方法">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="itemTools"
|
|
|
|
|
label="工具">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
width="200"
|
|
|
|
|
prop="standardName"
|
|
|
|
|
label="检查标准">
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -1543,28 +1551,54 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 点击编辑设备-巡检项目
|
|
|
|
|
// 点击编辑设备-保养项目
|
|
|
|
|
editorTheItem(e) {
|
|
|
|
|
|
|
|
|
|
// 清除缓存
|
|
|
|
|
this.itemDetailList = [];
|
|
|
|
|
|
|
|
|
|
let qw = 1;
|
|
|
|
|
|
|
|
|
|
for (let i = 0; i < this.form.equipmentItem.length; i++) {
|
|
|
|
|
if (e.code == this.form.equipmentItem[i].code) {
|
|
|
|
|
|
|
|
|
|
if (e.equipmentCode == this.form.equipmentItem[i].equipmentCode) {
|
|
|
|
|
|
|
|
|
|
for (let j = 0; j < this.form.equipmentItem[i].equPlanDetailList.length; j++) {
|
|
|
|
|
|
|
|
|
|
// 部位
|
|
|
|
|
var itemName = this.form.equipmentItem[i].equPlanDetailList[j].itemName;
|
|
|
|
|
for (let k = 0; k < this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList.length; k++){
|
|
|
|
|
this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemName = itemName;
|
|
|
|
|
if (this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardType == "qualitative") {
|
|
|
|
|
this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardTypeName = "定性";
|
|
|
|
|
}else {
|
|
|
|
|
this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardTypeName = "定量";
|
|
|
|
|
// 方法
|
|
|
|
|
var itemMethod = this.form.equipmentItem[i].equPlanDetailList[j].itemMethod;
|
|
|
|
|
// 工具
|
|
|
|
|
var itemTools = this.form.equipmentItem[i].equPlanDetailList[j].itemTools;
|
|
|
|
|
// // 周期
|
|
|
|
|
// var itemLoop = this.form.equipmentItem[i].equPlanDetailList[j].itemLoop;
|
|
|
|
|
// var itemLoopType = this.form.equipmentItem[i].equPlanDetailList[j].itemLoopType;
|
|
|
|
|
|
|
|
|
|
for (let k = 0; k < this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList.length; k++) {
|
|
|
|
|
|
|
|
|
|
if (this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].showFlag == true) {
|
|
|
|
|
|
|
|
|
|
this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemName = itemName;
|
|
|
|
|
this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemMethod = itemMethod;
|
|
|
|
|
this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemTools = itemTools;
|
|
|
|
|
// this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemLoop = itemLoop;
|
|
|
|
|
// this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemLoopType = itemLoopType;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardType == "qualitative") {
|
|
|
|
|
this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardTypeName = "定性";
|
|
|
|
|
} else {
|
|
|
|
|
this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardTypeName = "定量";
|
|
|
|
|
}
|
|
|
|
|
this.itemDetailList.push(this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.itemDetailList.push(this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.editorItem = true;
|
|
|
|
|