|
@@ -320,7 +320,7 @@
|
320
|
320
|
function handlerOrderImg(imgObj){
|
321
|
321
|
return uploadFile(imgObj, 'incident', dataInfo.incidentId)
|
322
|
322
|
}
|
323
|
|
-
|
|
323
|
+
|
324
|
324
|
// 提交
|
325
|
325
|
function submit(){
|
326
|
326
|
isSubmit.value = true;
|
|
@@ -420,9 +420,11 @@
|
420
|
420
|
);
|
421
|
421
|
// 修改报修科室,则回显楼栋,楼层,详细地址,联系电话
|
422
|
422
|
if(incidentBuildStore.incidentBuild.sign === 'department'){
|
423
|
|
- incidentData.place = incidentData.department.place || undefined;
|
424
|
|
- incidentData.houseNumber = incidentData.department.address || '';
|
425
|
|
- incidentData.contactsInformation = incidentData.department.phone ? incidentData.department.phone.split(',')[0] : '';
|
|
423
|
+ if(incidentData.department){
|
|
424
|
+ incidentData.place = incidentData.department.place || undefined;
|
|
425
|
+ incidentData.houseNumber = incidentData.department.address || '';
|
|
426
|
+ incidentData.contactsInformation = incidentData.department.phone ? incidentData.department.phone.split(',')[0] : '';
|
|
427
|
+ }
|
426
|
428
|
}
|
427
|
429
|
}
|
428
|
430
|
getBranchs();
|