From ff1562b3738dda6636291410f7d3a7d22bf857ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com>
Date: Mon, 16 Jun 2025 16:20:21 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=B9=E9=87=8F=E6=A3=80?=
=?UTF-8?q?=E7=B4=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/herderMultipleInput.vue | 9 +++++---
src/views/order/repair-action.vue | 22 +++++++++----------
2 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/src/components/scTable/components/herderMultipleInput.vue b/src/components/scTable/components/herderMultipleInput.vue
index d596ea6..0538c94 100644
--- a/src/components/scTable/components/herderMultipleInput.vue
+++ b/src/components/scTable/components/herderMultipleInput.vue
@@ -44,7 +44,7 @@ export default {
}
this.fieldsList = list;
if(this.fieldsList && this.fieldsList.length>0){
- this.params.type = this.fieldsList[0].prop;
+ this.params.type = this.params.type===""?this.fieldsList[0].prop:this.params.type;
}
},
immediate:true,
@@ -87,9 +87,12 @@ export default {
reset(){
this.params.message = "";
if(this.fieldsList && this.fieldsList.length>0){
- this.fieldsList.forEach(item=>{
+ this.fieldsList.forEach((item,index)=>{
+ if(index===0){
+ this.params.type = item.prop;
+ }
if(this.fieldsData[item.prop]){
- this.fieldsData[item.prop].value = []
+ this.fieldsData[item.prop].value = [];
}
})
}
diff --git a/src/views/order/repair-action.vue b/src/views/order/repair-action.vue
index 5f0642b..5981924 100644
--- a/src/views/order/repair-action.vue
+++ b/src/views/order/repair-action.vue
@@ -73,8 +73,8 @@
维修动作
- 更换
- 修复
+ 修复
+ 更换
无需修复
@@ -82,14 +82,14 @@
- 不良现象
+ 不良现象
- SLA不达标原因
+ SLA不达标原因
@@ -98,7 +98,7 @@
- 现场步骤分析
+ 现场步骤分析
@@ -117,7 +117,7 @@
- *
+ *
@@ -125,7 +125,7 @@
- *
+ *
@@ -221,7 +221,7 @@
await this.$API.orders.order.repair.repairing.post(params);
},
repairAction(e){
- if(e===1){
+ if(e===2){
const un_repair_action = this.params.repair_info.find(em=>em.m_ascription===2);
if(!un_repair_action){
this.params.repair_info.push({
@@ -234,7 +234,7 @@
repair_action: 3
})
}
- }else if(e===2){
+ }else if(e===1){
this.params.repair_info = this.params.repair_info.filter(em=>em.m_ascription===1);
}
},
@@ -251,7 +251,7 @@
})
const repair_action_num = data.repair_info[0].repair_action;
data.repair_info.forEach((item,index) => {
- if(repair_action_num!=1 && index!==0){
+ if(repair_action_num===1 && index===0){
data.repair_info.splice(index,1);
}
if (item.repair_action === 3) {
@@ -263,7 +263,7 @@
}
});
const row = data.repair_info.find(em=>em.m_ascription === 1);
- if(row && row.repair_action===1){
+ if(row && row.repair_action===2){
if(row.confirmed_defects == ''){
this.$message.warning('不良现象不能为空');
return