工单BUG修改

master
wws 10 months ago
parent 692bf0b939
commit 67e18ea1f2

@ -578,12 +578,20 @@
stripe stripe
@selection-change="selectChangeEqu" @selection-change="selectChangeEqu"
style="width: 100%"> style="width: 100%">
<el-table-column width="55" align="center"/>
<el-table-column <el-table-column
prop="itemName" prop="itemName"
label="检查项"> label="部位">
</el-table-column> </el-table-column>
<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" prop="standardName"
label="检查标准"> label="检查标准">
</el-table-column> </el-table-column>
@ -1543,28 +1551,54 @@ export default {
} }
} }
}, },
// - // -
editorTheItem(e) { editorTheItem(e) {
// //
this.itemDetailList = []; this.itemDetailList = [];
let qw = 1;
for (let i = 0; i < this.form.equipmentItem.length; i++) { 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++) { for (let j = 0; j < this.form.equipmentItem[i].equPlanDetailList.length; j++) {
//
var itemName = this.form.equipmentItem[i].equPlanDetailList[j].itemName; var itemName = this.form.equipmentItem[i].equPlanDetailList[j].itemName;
//
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++) { 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].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") { if (this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardType == "qualitative") {
this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardTypeName = "定性"; this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardTypeName = "定性";
} else { } else {
this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardTypeName = "定量"; 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; this.editorItem = true;

Loading…
Cancel
Save