diff --git a/pages-order/orderDetail/orderDetail.vue b/pages-order/orderDetail/orderDetail.vue
index 3d3e99f..2ba4804 100644
--- a/pages-order/orderDetail/orderDetail.vue
+++ b/pages-order/orderDetail/orderDetail.vue
@@ -175,27 +175,7 @@
维修进度记录表
-
- - 待维修
- ○ 维修中
- √ 已完成
-
-
-
- 序号
- 维修项目
- -
- ○
- √
-
-
- {{ index+1 }}
- {{ item.itemName }}
- -
- ○
- √
-
-
+
@@ -258,6 +238,8 @@
imgUrlPrex:config.baseImageUrl,
//维修项目进度记录表
tableData:[],
+ active: 1,
+ list2: [],
};
},
onLoad(data){
@@ -316,7 +298,21 @@
tenantIdFlag:false
}).then((res)=>{
if(res.code==200){
- this.tableData = res.data
+ this.list2 = []
+ //当前在修的项目
+ let endIndex = -1
+ for (let i = 0; i < res.data.length; i++) {
+ let thisObj = res.data[i]
+ thisObj.title = thisObj.itemName
+ if(thisObj.itemStatus=='03'){
+ //这个项目已处理完毕,维修完成的项目设置为这个
+ endIndex = i
+ thisObj.desc = formatTimestamp(thisObj.updateTime)
+ }
+ this.list2.push(thisObj)
+ }
+ this.active = endIndex
+ console.log(this.list2,"thisObj.itemStatus=='02'")
}
})
},
diff --git a/uni_modules/uni-steps/components/uni-steps/uni-steps.vue b/uni_modules/uni-steps/components/uni-steps/uni-steps.vue
new file mode 100644
index 0000000..11fb29c
--- /dev/null
+++ b/uni_modules/uni-steps/components/uni-steps/uni-steps.vue
@@ -0,0 +1,280 @@
+
+
+
+
+
+ {{item.title}}
+ {{item.desc}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+