From 21490722fafaf77fb169e28d538a00d77d1a3cb2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com>
Date: Thu, 29 May 2025 20:11:07 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=B4=E4=BF=AE=E3=80=81?=
=?UTF-8?q?=E8=AE=A1=E5=88=92=E7=8A=B6=E6=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/order/orderPlan/index.vue | 30 ++++++++++++++++++----------
src/views/order/repair-action.vue | 3 ++-
src/views/order/repairList/index.vue | 18 +++++++++++++----
3 files changed, 36 insertions(+), 15 deletions(-)
diff --git a/src/views/order/orderPlan/index.vue b/src/views/order/orderPlan/index.vue
index 5b13321..38a32ff 100644
--- a/src/views/order/orderPlan/index.vue
+++ b/src/views/order/orderPlan/index.vue
@@ -18,15 +18,15 @@
重置
-
+
{{scope.row.repair_order && scope.row.repair_order.repair_date?scope.row.repair_order.repair_date:''}}
{{scope.row.repair_order && scope.row.repair_order.schedule_date?scope.row.repair_order.schedule_date:''}}
-
-
+
+
{{item.label}}
+ v-if="item.value == scope.row.business_status">{{item.label}}
待确认
@@ -92,7 +92,12 @@ export default {
filterMap:{
data:{}
},
- params: {},
+ params: {
+ business_status:{
+ operator:"in",
+ value:[3]
+ }
+ },
}
},
provide(){
@@ -122,7 +127,7 @@ export default {
},
methods: {
async getStatusList() {
- const res = await this.$API.orders.order.repair.status.post();
+ const res = await this.$API.orders.order.maintenance.status.post();
if (res.code == 200) {
this.setMap.statusList = res.data;
}
@@ -130,7 +135,7 @@ export default {
/** 检索开始 */
columnBack(val){
val.forEach(item=>{
- if(item.prop === "repair_status"){
+ if(item.prop === "business_status"){
item.data = this.setMap.statusList;
}
})
@@ -188,7 +193,7 @@ export default {
if (res.code == 200) {
if (res.data && res.data.length > 0) {
res.data.forEach(item => {
- if (data.prop === 'repair_status') {
+ if (data.prop === 'business_status') {
this.setMap.statusList.forEach(em => {
if (em.value === item[data.prop]) {
item.label = em.label;
@@ -235,11 +240,16 @@ export default {
this.$refs.table.upData(this.params);
},
reset(){
- this.params = {};
+ this.params = {
+ business_status:{
+ operator:"in",
+ value:[3]
+ }
+ };
this.filterMap.data = {};
this.$refs.scSearch.reload();
eventBus.$emit('reset-popovers');
- this.$refs.table.reload();
+ this.$refs.table.reload(this.params);
},
handleSaveSuccess(){
this.$refs.table.refresh();
diff --git a/src/views/order/repair-action.vue b/src/views/order/repair-action.vue
index 256b66f..5f0642b 100644
--- a/src/views/order/repair-action.vue
+++ b/src/views/order/repair-action.vue
@@ -91,7 +91,7 @@
SLA不达标原因
-
@@ -160,6 +160,7 @@
params: {
order_id: Number(this.$route.query.order_id),
repair_id: Number(this.$route.query.id),
+ sla_reason:"",
repair_info: [
{
m_ascription:1, // 1 旧部件 2 新部件
diff --git a/src/views/order/repairList/index.vue b/src/views/order/repairList/index.vue
index d1a38db..b1f983d 100644
--- a/src/views/order/repairList/index.vue
+++ b/src/views/order/repairList/index.vue
@@ -29,7 +29,7 @@
重置
-
+
@@ -101,7 +101,12 @@ export default {
filterMap:{
data:{}
},
- params: {},
+ params: {
+ repair_status:{
+ operator:"in",
+ value:[2,3]
+ }
+ },
countParams:this.$store.state.msg.repair_count
}
},
@@ -316,11 +321,16 @@ export default {
this.$refs.table.upData(this.params);
},
reset(){
- this.params = {};
+ this.params = {
+ repair_status:{
+ operator:"in",
+ value:[2,3]
+ }
+ };
this.filterMap.data = {};
this.$refs.scSearch.reload();
eventBus.$emit('reset-popovers');
- this.$refs.table.reload();
+ this.$refs.table.reload(this.params);
},
handleSaveSuccess(){
this.$refs.table.refresh();