- 现场步骤分析
+ 现场步骤分析
@@ -124,11 +124,6 @@
-
-
-
-
-
@@ -164,7 +159,6 @@
m_ascription:1, // 1 旧部件 2 新部件
part_mpn: "",
part_sn: "",
- sla: "",
sla_non_compliance_reason: "",
confirmed_defects: "",
analysis_steps: "",
@@ -174,7 +168,6 @@
m_ascription:2,
part_mpn: "",
part_sn: "",
- sla: "",
sla_non_compliance_reason: "",
confirmed_defects: "",
analysis_steps: "",
@@ -228,7 +221,6 @@
m_ascription:2,
part_mpn: "",
part_sn: "",
- sla: "",
sla_non_compliance_reason: "",
confirmed_defects: "",
analysis_steps: "",
@@ -258,15 +250,26 @@
if (item.repair_action === 3) {
delete item.part_mpn
delete item.part_sn
- delete item.sla
delete item.confirmed_defects
delete item.sla_non_compliance_reason
delete item.analysis_steps
}
});
+ const row = data.repair_info.find(em=>em.m_ascription === 1);
+ if(row && row.repair_action===1){
+ if(row.confirmed_defects == ''){
+ this.$message.warning('不良现象不能为空');
+ return
+ }
+ if(row.analysis_steps == ''){
+ this.$message.warning('现场步骤分析不能为空');
+ return
+ }
+ }
const res = await this.$API.orders.order.repair.submit.post(data);
if (res.code === 200) {
- this.$message.success('操作成功')
+ this.$message.success('操作成功');
+ await this.getInfo();
}
},
@@ -312,6 +315,17 @@
display: inline-block;
margin-bottom: 6px;
}
+ .required{
+ position: relative;
+ padding-left: 10px;
+ }
+ .required:after{
+ content: "*";
+ position: absolute;
+ left: 0;
+ top: 0;
+ color: var(--el-color-danger);
+ }
}
.btnBox {