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