seimin 1 week ago
parent
commit
88bb11f717
1 changed files with 7 additions and 7 deletions
  1. 7 7
      pages/inspection/inspectionValue/inspectionValue.vue

+ 7 - 7
pages/inspection/inspectionValue/inspectionValue.vue

@@ -186,7 +186,7 @@
186 186
       department: res.inspectionForm.repairDeptDTO,
187 187
       priority: res.inspectionForm.priorityDTO,
188 188
       repairImgList,
189
-      inspectionTaskId: res.id,
189
+      inspectionTaskId: inspectionExecuteId.value,
190 190
     }
191 191
     console.log(repairImgList, 'repairImgList')
192 192
     console.log(incidentData, 'incidentData')
@@ -196,12 +196,12 @@
196 196
       url: `/pages/buildIncident/buildIncident?type=inspection`
197 197
     })
198 198
   }
199
-  
199
+
200 200
   // 报修图片
201 201
   function repairOrderImg(imgObj, incidentId){
202 202
     return uploadFile(imgObj, 'wechatRequesterIncident', incidentId, incidentId)
203 203
   }
204
-  
204
+
205 205
   // 保存
206 206
   function submit(){
207 207
     console.log(itemRefs.value);
@@ -227,7 +227,7 @@
227 227
           mask: true,
228 228
         });
229 229
         console.log(formValues);
230
-        
230
+
231 231
         let imgList = Object.values(itemRefs.value).filter(Boolean);
232 232
         let repairImgList = [];
233 233
         if(imgList.length){
@@ -235,7 +235,7 @@
235 235
           let index = imgList.findIndex(v => v.extra == firstOne.id);
236 236
           repairImgList = index > -1 ? imgList[index].baseFormData.handlerImgList : [];
237 237
         }
238
-        
238
+
239 239
         let postData = {
240 240
           account: loginUserStore.loginUser.user.account,
241 241
           valuesList: [],
@@ -289,14 +289,14 @@
289 289
                 		}
290 290
                 	}
291 291
                 });
292
-                
292
+
293 293
                 // 上传图片到故障工单
294 294
                 let requestList = [];
295 295
                 repairImgList.map((imgObj) => {
296 296
                   let repairOrderImg$ = repairOrderImg(imgObj, res.incidentId);
297 297
                   requestList.push(repairOrderImg$);
298 298
                 })
299
-                
299
+
300 300
                 Promise.all(requestList).then(resList => {})
301 301
               } else if(res.inspectionForm.showOrder == 1){
302 302
                 // 是否显示生成维修单