瀏覽代碼

优化处理进度

seimin 1 年之前
父節點
當前提交
372825431f
共有 7 個文件被更改,包括 188 次插入105 次删除
  1. 23 17
      src/views/againAssign.vue
  2. 23 17
      src/views/closed.vue
  3. 23 17
      src/views/grabSheet.vue
  4. 23 17
      src/views/order.vue
  5. 16 10
      src/views/processing.vue
  6. 23 17
      src/views/solved.vue
  7. 57 10
      src/views/waitConfirm.vue

+ 23 - 17
src/views/againAssign.vue

@@ -55,26 +55,26 @@
55 55
             :class="{ progress: true, progressHide: !pro_hides }"
56 56
             id="progressBox"
57 57
           >
58
-            <div class="progress_info" v-for="item in progressInfo">
59
-              <div class="progress_info_L">{{ item.activityName }}</div>
58
+            <div class="progress_info" v-for="(item,index) in progressInfo" :key="index">
59
+              <div class="progress_info_L">{{ item.logType ? item.logType.name : '' }}</div>
60 60
               <div class="progress_info_R">
61 61
                 <div class="time">
62 62
                   <i
63 63
                     :class="{
64 64
                       iconfont: true,
65 65
                       'icon-icon_weizuo': item.endTime != '',
66
-                      'icon-icon_zhengzaijinx': item.endTime == '',
66
+                      'icon-icon_zhengzaijinx': item.endTime == ''
67 67
                     }"
68 68
                   ></i>
69 69
                   <span class="text1">
70 70
                     {{ item.startTime | timeFormat("MM-dd HH:mm:ss") }}
71
-                    <template v-if="item.userName">
72
-                      ,{{ item.userName }}
71
+                    <template v-if="item.appointorName">
72
+                      ,{{ item.appointorName }}
73 73
                     </template>
74 74
                   </span>
75 75
                 </div>
76 76
                 <div :class="{ cont: true, blue: item.endTime != '' }">
77
-                  <p class="text2" v-if="item.desc" v-html="item.desc"></p>
77
+                  <p class="text2" v-if="item.logType && item.logType.desc" v-html="item.logType.desc"></p>
78 78
                 </div>
79 79
               </div>
80 80
             </div>
@@ -192,27 +192,33 @@ export default {
192 192
       var that = this;
193 193
       that.$http
194 194
         .post(
195
-          "/service/bpm/bpm/flowTracingCustom/" + that.processInstanceId,
196
-          {}
195
+          "/service/simple/data/fetchDataList/incidentLog",
196
+          {
197
+              "idx": 0,
198
+              "sum": 9999,
199
+              "incidentLog": {
200
+                  "incidentId": this.id
201
+              }
202
+          }
197 203
         )
198
-        .then(function (res) {
204
+        .then(function(res) {
199 205
           console.log(res.data);
200
-          that.progressInfo = res.data.data;
206
+          that.progressInfo = res.data.list || [];
201 207
           //维修记录startcaca
202
-          if (that.model.incident.handlerLogs) {
208
+          if (that.modelData.incident.handlerLogs) {
203 209
             //添加日志
204
-            that.model.incident.handlerLogs.forEach((v) => {
210
+            that.modelData.incident.handlerLogs.forEach(v => {
205 211
               that.progressInfo.push({
206 212
                 startTime: v.opTime,
207 213
                 endTime: 1,
208
-                desc: (v.repairType && v.expectedDate) ? `${v.repairType.name} ${formatDate(v.expectedDate, "MM月dd日前完成")}<br>${v.opValue}` : v.opValue,
209
-                userName: v.userName,
210
-                activityName: "事件处理",
214
+                desc: (v.repairType && v.expectedDate) ? `${v.repairType.name} ${formatDate(new Date(v.expectedDate), "MM月dd日前完成")}<br>${v.opValue}` : v.opValue,
215
+                appointorName: v.userName,
216
+                logType: {name: "事件处理"}
211 217
               });
212 218
             });
213 219
           }
214 220
           //处理数据
215
-          that.progressInfo.forEach((v) => {
221
+          that.progressInfo.forEach(v => {
216 222
             if (!v.endTime) {
217 223
               v.endTime = 1;
218 224
             }
@@ -220,7 +226,7 @@ export default {
220 226
           });
221 227
           var kaishi = that.progressInfo.shift();
222 228
           var jiedan = that.progressInfo.shift();
223
-          that.progressInfo.sort(function (o, c) {
229
+          that.progressInfo.sort(function(o, c) {
224 230
             return c.startTime - o.startTime;
225 231
           });
226 232
           that.progressInfo.length && (that.progressInfo[0].endTime = "");

+ 23 - 17
src/views/closed.vue

@@ -127,26 +127,26 @@
127 127
             :class="{ progress: true, progressHide: !pro_hides }"
128 128
             id="progressBox"
129 129
           >
130
-            <div class="progress_info" v-for="item in progressInfo">
131
-              <div class="progress_info_L">{{ item.activityName }}</div>
130
+            <div class="progress_info" v-for="(item,index) in progressInfo" :key="index">
131
+              <div class="progress_info_L">{{ item.logType ? item.logType.name : '' }}</div>
132 132
               <div class="progress_info_R">
133 133
                 <div class="time">
134 134
                   <i
135 135
                     :class="{
136 136
                       iconfont: true,
137 137
                       'icon-icon_weizuo': item.endTime != '',
138
-                      'icon-icon_zhengzaijinx': item.endTime == '',
138
+                      'icon-icon_zhengzaijinx': item.endTime == ''
139 139
                     }"
140 140
                   ></i>
141 141
                   <span class="text1">
142 142
                     {{ item.startTime | timeFormat("MM-dd HH:mm:ss") }}
143
-                    <template v-if="item.userName">
144
-                      ,{{ item.userName }}
143
+                    <template v-if="item.appointorName">
144
+                      ,{{ item.appointorName }}
145 145
                     </template>
146 146
                   </span>
147 147
                 </div>
148 148
                 <div :class="{ cont: true, blue: item.endTime != '' }">
149
-                  <p class="text2" v-if="item.desc" v-html="item.desc"></p>
149
+                  <p class="text2" v-if="item.logType && item.logType.desc" v-html="item.logType.desc"></p>
150 150
                 </div>
151 151
               </div>
152 152
             </div>
@@ -244,27 +244,33 @@ export default {
244 244
       var that = this;
245 245
       that.$http
246 246
         .post(
247
-          "/service/bpm/bpm/flowTracingCustom/" + that.processInstanceId,
248
-          {}
247
+          "/service/simple/data/fetchDataList/incidentLog",
248
+          {
249
+              "idx": 0,
250
+              "sum": 9999,
251
+              "incidentLog": {
252
+                  "incidentId": this.id
253
+              }
254
+          }
249 255
         )
250
-        .then(function (res) {
256
+        .then(function(res) {
251 257
           console.log(res.data);
252
-          that.progressInfo = res.data.data;
258
+          that.progressInfo = res.data.list || [];
253 259
           //维修记录startcaca
254
-          if (that.model.incident.handlerLogs) {
260
+          if (that.modelData.incident.handlerLogs) {
255 261
             //添加日志
256
-            that.model.incident.handlerLogs.forEach((v) => {
262
+            that.modelData.incident.handlerLogs.forEach(v => {
257 263
               that.progressInfo.push({
258 264
                 startTime: v.opTime,
259 265
                 endTime: 1,
260
-                desc: (v.repairType && v.expectedDate) ? `${v.repairType.name} ${formatDate(v.expectedDate, "MM月dd日前完成")}<br>${v.opValue}` : v.opValue,
261
-                userName: v.userName,
262
-                activityName: "事件处理",
266
+                desc: (v.repairType && v.expectedDate) ? `${v.repairType.name} ${formatDate(new Date(v.expectedDate), "MM月dd日前完成")}<br>${v.opValue}` : v.opValue,
267
+                appointorName: v.userName,
268
+                logType: {name: "事件处理"}
263 269
               });
264 270
             });
265 271
           }
266 272
           //处理数据
267
-          that.progressInfo.forEach((v) => {
273
+          that.progressInfo.forEach(v => {
268 274
             if (!v.endTime) {
269 275
               v.endTime = 1;
270 276
             }
@@ -272,7 +278,7 @@ export default {
272 278
           });
273 279
           var kaishi = that.progressInfo.shift();
274 280
           var jiedan = that.progressInfo.shift();
275
-          that.progressInfo.sort(function (o, c) {
281
+          that.progressInfo.sort(function(o, c) {
276 282
             return c.startTime - o.startTime;
277 283
           });
278 284
           that.progressInfo.length && (that.progressInfo[0].endTime = "");

+ 23 - 17
src/views/grabSheet.vue

@@ -41,26 +41,26 @@
41 41
               :class="{ progress: true, progressHide: !pro_hides }"
42 42
               id="progressBox"
43 43
             >
44
-              <div class="progress_info" v-for="item in progressInfo">
45
-                <div class="progress_info_L">{{ item.activityName }}</div>
44
+              <div class="progress_info" v-for="(item,index) in progressInfo" :key="index">
45
+                <div class="progress_info_L">{{ item.logType ? item.logType.name : '' }}</div>
46 46
                 <div class="progress_info_R">
47 47
                   <div class="time">
48 48
                     <i
49 49
                       :class="{
50 50
                         iconfont: true,
51 51
                         'icon-icon_weizuo': item.endTime != '',
52
-                        'icon-icon_zhengzaijinx': item.endTime == '',
52
+                        'icon-icon_zhengzaijinx': item.endTime == ''
53 53
                       }"
54 54
                     ></i>
55 55
                     <span class="text1">
56 56
                       {{ item.startTime | timeFormat("MM-dd HH:mm:ss") }}
57
-                      <template v-if="item.userName">
58
-                        ,{{ item.userName }}
57
+                      <template v-if="item.appointorName">
58
+                        ,{{ item.appointorName }}
59 59
                       </template>
60 60
                     </span>
61 61
                   </div>
62 62
                   <div :class="{ cont: true, blue: item.endTime != '' }">
63
-                    <p class="text2" v-if="item.desc" v-html="item.desc"></p>
63
+                    <p class="text2" v-if="item.logType && item.logType.desc" v-html="item.logType.desc"></p>
64 64
                   </div>
65 65
                 </div>
66 66
               </div>
@@ -153,27 +153,33 @@ export default {
153 153
       var that = this;
154 154
       that.$http
155 155
         .post(
156
-          "/service/bpm/bpm/flowTracingCustom/" + that.processInstanceId,
157
-          {}
156
+          "/service/simple/data/fetchDataList/incidentLog",
157
+          {
158
+              "idx": 0,
159
+              "sum": 9999,
160
+              "incidentLog": {
161
+                  "incidentId": this.id
162
+              }
163
+          }
158 164
         )
159
-        .then(function (res) {
165
+        .then(function(res) {
160 166
           console.log(res.data);
161
-          that.progressInfo = res.data.data;
167
+          that.progressInfo = res.data.list || [];
162 168
           //维修记录startcaca
163
-          if (that.model.incident.handlerLogs) {
169
+          if (that.modelData.incident.handlerLogs) {
164 170
             //添加日志
165
-            that.model.incident.handlerLogs.forEach((v) => {
171
+            that.modelData.incident.handlerLogs.forEach(v => {
166 172
               that.progressInfo.push({
167 173
                 startTime: v.opTime,
168 174
                 endTime: 1,
169
-                desc: (v.repairType && v.expectedDate) ? `${v.repairType.name} ${formatDate(v.expectedDate, "MM月dd日前完成")}<br>${v.opValue}` : v.opValue,
170
-                userName: v.userName,
171
-                activityName: "事件处理",
175
+                desc: (v.repairType && v.expectedDate) ? `${v.repairType.name} ${formatDate(new Date(v.expectedDate), "MM月dd日前完成")}<br>${v.opValue}` : v.opValue,
176
+                appointorName: v.userName,
177
+                logType: {name: "事件处理"}
172 178
               });
173 179
             });
174 180
           }
175 181
           //处理数据
176
-          that.progressInfo.forEach((v) => {
182
+          that.progressInfo.forEach(v => {
177 183
             if (!v.endTime) {
178 184
               v.endTime = 1;
179 185
             }
@@ -181,7 +187,7 @@ export default {
181 187
           });
182 188
           var kaishi = that.progressInfo.shift();
183 189
           var jiedan = that.progressInfo.shift();
184
-          that.progressInfo.sort(function (o, c) {
190
+          that.progressInfo.sort(function(o, c) {
185 191
             return c.startTime - o.startTime;
186 192
           });
187 193
           that.progressInfo.length && (that.progressInfo[0].endTime = "");

+ 23 - 17
src/views/order.vue

@@ -65,26 +65,26 @@
65 65
               :class="{ progress: true, progressHide: !pro_hides }"
66 66
               id="progressBox"
67 67
             >
68
-              <div class="progress_info" v-for="item in progressInfo">
69
-                <div class="progress_info_L">{{ item.activityName }}</div>
68
+              <div class="progress_info" v-for="(item,index) in progressInfo" :key="index">
69
+                <div class="progress_info_L">{{ item.logType ? item.logType.name : '' }}</div>
70 70
                 <div class="progress_info_R">
71 71
                   <div class="time">
72 72
                     <i
73 73
                       :class="{
74 74
                         iconfont: true,
75 75
                         'icon-icon_weizuo': item.endTime != '',
76
-                        'icon-icon_zhengzaijinx': item.endTime == '',
76
+                        'icon-icon_zhengzaijinx': item.endTime == ''
77 77
                       }"
78 78
                     ></i>
79 79
                     <span class="text1">
80 80
                       {{ item.startTime | timeFormat("MM-dd HH:mm:ss") }}
81
-                      <template v-if="item.userName">
82
-                        ,{{ item.userName }}
81
+                      <template v-if="item.appointorName">
82
+                        ,{{ item.appointorName }}
83 83
                       </template>
84 84
                     </span>
85 85
                   </div>
86 86
                   <div :class="{ cont: true, blue: item.endTime != '' }">
87
-                    <p class="text2" v-if="item.desc" v-html="item.desc"></p>
87
+                    <p class="text2" v-if="item.logType && item.logType.desc" v-html="item.logType.desc"></p>
88 88
                   </div>
89 89
                 </div>
90 90
               </div>
@@ -198,27 +198,33 @@ export default {
198 198
       var that = this;
199 199
       that.$http
200 200
         .post(
201
-          "/service/bpm/bpm/flowTracingCustom/" + that.processInstanceId,
202
-          {}
201
+          "/service/simple/data/fetchDataList/incidentLog",
202
+          {
203
+              "idx": 0,
204
+              "sum": 9999,
205
+              "incidentLog": {
206
+                  "incidentId": this.id
207
+              }
208
+          }
203 209
         )
204
-        .then(function (res) {
210
+        .then(function(res) {
205 211
           console.log(res.data);
206
-          that.progressInfo = res.data.data;
212
+          that.progressInfo = res.data.list || [];
207 213
           //维修记录startcaca
208
-          if (that.model.incident.handlerLogs) {
214
+          if (that.modelData.incident.handlerLogs) {
209 215
             //添加日志
210
-            that.model.incident.handlerLogs.forEach((v) => {
216
+            that.modelData.incident.handlerLogs.forEach(v => {
211 217
               that.progressInfo.push({
212 218
                 startTime: v.opTime,
213 219
                 endTime: 1,
214
-                desc: (v.repairType && v.expectedDate) ? `${v.repairType.name} ${formatDate(v.expectedDate, "MM月dd日前完成")}<br>${v.opValue}` : v.opValue,
215
-                userName: v.userName,
216
-                activityName: "事件处理",
220
+                desc: (v.repairType && v.expectedDate) ? `${v.repairType.name} ${formatDate(new Date(v.expectedDate), "MM月dd日前完成")}<br>${v.opValue}` : v.opValue,
221
+                appointorName: v.userName,
222
+                logType: {name: "事件处理"}
217 223
               });
218 224
             });
219 225
           }
220 226
           //处理数据
221
-          that.progressInfo.forEach((v) => {
227
+          that.progressInfo.forEach(v => {
222 228
             if (!v.endTime) {
223 229
               v.endTime = 1;
224 230
             }
@@ -226,7 +232,7 @@ export default {
226 232
           });
227 233
           var kaishi = that.progressInfo.shift();
228 234
           var jiedan = that.progressInfo.shift();
229
-          that.progressInfo.sort(function (o, c) {
235
+          that.progressInfo.sort(function(o, c) {
230 236
             return c.startTime - o.startTime;
231 237
           });
232 238
           that.progressInfo.length && (that.progressInfo[0].endTime = "");

+ 16 - 10
src/views/processing.vue

@@ -68,8 +68,8 @@
68 68
             :class="{ progress: true, progressHide: !pro_hides }"
69 69
             id="progressBox"
70 70
           >
71
-            <div class="progress_info" v-for="item in progressInfo">
72
-              <div class="progress_info_L">{{ item.activityName }}</div>
71
+            <div class="progress_info" v-for="(item,index) in progressInfo" :key="index">
72
+              <div class="progress_info_L">{{ item.logType ? item.logType.name : '' }}</div>
73 73
               <div class="progress_info_R">
74 74
                 <div class="time">
75 75
                   <i
@@ -81,13 +81,13 @@
81 81
                   ></i>
82 82
                   <span class="text1">
83 83
                     {{ item.startTime | timeFormat("MM-dd HH:mm:ss") }}
84
-                    <template v-if="item.userName">
85
-                      ,{{ item.userName }}
84
+                    <template v-if="item.appointorName">
85
+                      ,{{ item.appointorName }}
86 86
                     </template>
87 87
                   </span>
88 88
                 </div>
89 89
                 <div :class="{ cont: true, blue: item.endTime != '' }">
90
-                  <p class="text2" v-if="item.desc" v-html="item.desc"></p>
90
+                  <p class="text2" v-if="item.logType && item.logType.desc" v-html="item.logType.desc"></p>
91 91
                 </div>
92 92
               </div>
93 93
             </div>
@@ -1078,12 +1078,18 @@ export default {
1078 1078
       var that = this;
1079 1079
       that.$http
1080 1080
         .post(
1081
-          "/service/bpm/bpm/flowTracingCustom/" + that.processInstanceId,
1082
-          {}
1081
+          "/service/simple/data/fetchDataList/incidentLog",
1082
+          {
1083
+              "idx": 0,
1084
+              "sum": 9999,
1085
+              "incidentLog": {
1086
+                  "incidentId": this.id
1087
+              }
1088
+          }
1083 1089
         )
1084 1090
         .then(function(res) {
1085 1091
           console.log(res.data);
1086
-          that.progressInfo = res.data.data;
1092
+          that.progressInfo = res.data.list || [];
1087 1093
           //维修记录startcaca
1088 1094
           if (that.modelData.incident.handlerLogs) {
1089 1095
             //添加日志
@@ -1092,8 +1098,8 @@ export default {
1092 1098
                 startTime: v.opTime,
1093 1099
                 endTime: 1,
1094 1100
                 desc: (v.repairType && v.expectedDate) ? `${v.repairType.name} ${formatDate(new Date(v.expectedDate), "MM月dd日前完成")}<br>${v.opValue}` : v.opValue,
1095
-                userName: v.userName,
1096
-                activityName: "事件处理"
1101
+                appointorName: v.userName,
1102
+                logType: {name: "事件处理"}
1097 1103
               });
1098 1104
             });
1099 1105
           }

+ 23 - 17
src/views/solved.vue

@@ -113,26 +113,26 @@
113 113
             :class="{ progress: true, progressHide: !pro_hides }"
114 114
             id="progressBox"
115 115
           >
116
-            <div class="progress_info" v-for="item in progressInfo">
117
-              <div class="progress_info_L">{{ item.activityName }}</div>
116
+            <div class="progress_info" v-for="(item,index) in progressInfo" :key="index">
117
+              <div class="progress_info_L">{{ item.logType ? item.logType.name : '' }}</div>
118 118
               <div class="progress_info_R">
119 119
                 <div class="time">
120 120
                   <i
121 121
                     :class="{
122 122
                       iconfont: true,
123 123
                       'icon-icon_weizuo': item.endTime != '',
124
-                      'icon-icon_zhengzaijinx': item.endTime == '',
124
+                      'icon-icon_zhengzaijinx': item.endTime == ''
125 125
                     }"
126 126
                   ></i>
127 127
                   <span class="text1">
128 128
                     {{ item.startTime | timeFormat("MM-dd HH:mm:ss") }}
129
-                    <template v-if="item.userName">
130
-                      ,{{ item.userName }}
129
+                    <template v-if="item.appointorName">
130
+                      ,{{ item.appointorName }}
131 131
                     </template>
132 132
                   </span>
133 133
                 </div>
134 134
                 <div :class="{ cont: true, blue: item.endTime != '' }">
135
-                  <p class="text2" v-if="item.desc" v-html="item.desc"></p>
135
+                  <p class="text2" v-if="item.logType && item.logType.desc" v-html="item.logType.desc"></p>
136 136
                 </div>
137 137
               </div>
138 138
             </div>
@@ -277,27 +277,33 @@ export default {
277 277
       var that = this;
278 278
       that.$http
279 279
         .post(
280
-          "/service/bpm/bpm/flowTracingCustom/" + that.processInstanceId,
281
-          {}
280
+          "/service/simple/data/fetchDataList/incidentLog",
281
+          {
282
+              "idx": 0,
283
+              "sum": 9999,
284
+              "incidentLog": {
285
+                  "incidentId": this.id
286
+              }
287
+          }
282 288
         )
283
-        .then(function (res) {
289
+        .then(function(res) {
284 290
           console.log(res.data);
285
-          that.progressInfo = res.data.data;
291
+          that.progressInfo = res.data.list || [];
286 292
           //维修记录startcaca
287
-          if (that.model.incident.handlerLogs) {
293
+          if (that.modelData.incident.handlerLogs) {
288 294
             //添加日志
289
-            that.model.incident.handlerLogs.forEach((v) => {
295
+            that.modelData.incident.handlerLogs.forEach(v => {
290 296
               that.progressInfo.push({
291 297
                 startTime: v.opTime,
292 298
                 endTime: 1,
293
-                desc: (v.repairType && v.expectedDate) ? `${v.repairType.name} ${formatDate(v.expectedDate, "MM月dd日前完成")}<br>${v.opValue}` : v.opValue,
294
-                userName: v.userName,
295
-                activityName: "事件处理",
299
+                desc: (v.repairType && v.expectedDate) ? `${v.repairType.name} ${formatDate(new Date(v.expectedDate), "MM月dd日前完成")}<br>${v.opValue}` : v.opValue,
300
+                appointorName: v.userName,
301
+                logType: {name: "事件处理"}
296 302
               });
297 303
             });
298 304
           }
299 305
           //处理数据
300
-          that.progressInfo.forEach((v) => {
306
+          that.progressInfo.forEach(v => {
301 307
             if (!v.endTime) {
302 308
               v.endTime = 1;
303 309
             }
@@ -305,7 +311,7 @@ export default {
305 311
           });
306 312
           var kaishi = that.progressInfo.shift();
307 313
           var jiedan = that.progressInfo.shift();
308
-          that.progressInfo.sort(function (o, c) {
314
+          that.progressInfo.sort(function(o, c) {
309 315
             return c.startTime - o.startTime;
310 316
           });
311 317
           that.progressInfo.length && (that.progressInfo[0].endTime = "");

+ 57 - 10
src/views/waitConfirm.vue

@@ -203,8 +203,8 @@
203 203
 
204 204
           <div class="label" id="progress">处理进度</div>
205 205
           <div class="progress">
206
-            <div class="progress_info" v-for="item in progressInfo">
207
-              <div class="progress_info_L">{{ item.activityName }}</div>
206
+            <div class="progress_info" v-for="(item,index) in progressInfo" :key="index">
207
+              <div class="progress_info_L">{{ item.logType ? item.logType.name : '' }}</div>
208 208
               <div class="progress_info_R">
209 209
                 <div class="time">
210 210
                   <i
@@ -214,10 +214,15 @@
214 214
                       'icon-icon_zhengzaijinx': item.endTime == ''
215 215
                     }"
216 216
                   ></i>
217
-                  <span class="text1">{{ item.startTime }}</span>
217
+                  <span class="text1">
218
+                    {{ item.startTime | timeFormat("MM-dd HH:mm:ss") }}
219
+                    <template v-if="item.appointorName">
220
+                      ,{{ item.appointorName }}
221
+                    </template>
222
+                  </span>
218 223
                 </div>
219 224
                 <div :class="{ cont: true, blue: item.endTime != '' }">
220
-                  <p class="text2" v-if="item.desc" v-html="item.desc"></p>
225
+                  <p class="text2" v-if="item.logType && item.logType.desc" v-html="item.logType.desc"></p>
221 226
                 </div>
222 227
               </div>
223 228
             </div>
@@ -235,6 +240,7 @@ export default {
235 240
       loginUser: JSON.parse(localStorage.getItem("loginUser")),
236 241
       valConfig: JSON.parse(localStorage.getItem("valConfig")) - 0, //报修主体
237 242
       selected: 1,
243
+      id: "",
238 244
       options: [
239 245
         {
240 246
           label: "接单",
@@ -274,17 +280,52 @@ export default {
274 280
         });
275 281
     },
276 282
     // 获取处理进度
277
-    getHandlerInfo() {
283
+    getProgressInfo() {
278 284
       var that = this;
279 285
       that.$http
280 286
         .post(
281
-          "/service/bpm/bpm/flowTracingCustom/" + that.processInstanceId,
282
-          {}
287
+          "/service/simple/data/fetchDataList/incidentLog",
288
+          {
289
+              "idx": 0,
290
+              "sum": 9999,
291
+              "incidentLog": {
292
+                  "incidentId": this.id
293
+              }
294
+          }
283 295
         )
284 296
         .then(function(res) {
285 297
           console.log(res.data);
286
-          that.progressInfo = res.data.data;
287
-          that.progressInfo.reverse();
298
+          that.progressInfo = res.data.list || [];
299
+          //维修记录startcaca
300
+          if (that.modelData.incident.handlerLogs) {
301
+            //添加日志
302
+            that.modelData.incident.handlerLogs.forEach(v => {
303
+              that.progressInfo.push({
304
+                startTime: v.opTime,
305
+                endTime: 1,
306
+                desc: (v.repairType && v.expectedDate) ? `${v.repairType.name} ${formatDate(new Date(v.expectedDate), "MM月dd日前完成")}<br>${v.opValue}` : v.opValue,
307
+                appointorName: v.userName,
308
+                logType: {name: "事件处理"}
309
+              });
310
+            });
311
+          }
312
+          //处理数据
313
+          that.progressInfo.forEach(v => {
314
+            if (!v.endTime) {
315
+              v.endTime = 1;
316
+            }
317
+            v.startTime = new Date(v.startTime).getTime();
318
+          });
319
+          var kaishi = that.progressInfo.shift();
320
+          var jiedan = that.progressInfo.shift();
321
+          that.progressInfo.sort(function(o, c) {
322
+            return c.startTime - o.startTime;
323
+          });
324
+          that.progressInfo.length && (that.progressInfo[0].endTime = "");
325
+          that.progressInfo.push(jiedan);
326
+          that.progressInfo.push(kaishi);
327
+          console.log(that.progressInfo);
328
+          //维修记录end
288 329
         });
289 330
     },
290 331
     //隐藏显示详情
@@ -312,7 +353,13 @@ export default {
312 353
     }
313 354
   },
314 355
   created() {
315
-    this.processInstanceId = this.$route.params.data.processInstanceId;
356
+    this.processInstanceId = this.$route.params.data
357
+      ? this.$route.params.data.processInstanceId
358
+      : JSON.parse(localStorage.getItem("modelData")).incident
359
+          .processInstanceId;
360
+    this.id = this.$route.params.data
361
+      ? this.$route.params.data.id
362
+      : JSON.parse(localStorage.getItem("modelData")).incident.id;
316 363
     this.getParamsData();
317 364
     this.getHandlerInfo();
318 365
   },