seimin 4 月之前
父節點
當前提交
c59d228c9a
共有 1 個文件被更改,包括 59 次插入60 次删除
  1. 59 60
      pages/repair/rapidRepNext.vue

+ 59 - 60
pages/repair/rapidRepNext.vue

@@ -17,7 +17,7 @@
17
 				</view>
17
 				</view>
18
 <!--        <view class="form_item">
18
 <!--        <view class="form_item">
19
           <view class="title select"><text class="required newicon newicon-bitian"></text>报修科室:</view>
19
           <view class="title select"><text class="required newicon newicon-bitian"></text>报修科室:</view>
20
-        	<uni-data-picker class="value" placeholder="请选择报修科室" 
20
+        	<uni-data-picker class="value" placeholder="请选择报修科室"
21
         		v-model="dataInfo.department" :localdata="dataInfo.repairTypeList"
21
         		v-model="dataInfo.department" :localdata="dataInfo.repairTypeList"
22
         		:clear-icon="false" :class="{formRed: isSubmit && !dataInfo.department}">
22
         		:clear-icon="false" :class="{formRed: isSubmit && !dataInfo.department}">
23
         	</uni-data-picker>
23
         	</uni-data-picker>
@@ -32,7 +32,7 @@
32
 				<view class="candidate" v-if="itemUser">
32
 				<view class="candidate" v-if="itemUser">
33
 					<view class="candidate-item" v-for="(item, index) in itemUser.commonDeptDTO" :key="item" @click="itemCandidate(item)">{{item.dept}}</view>
33
 					<view class="candidate-item" v-for="(item, index) in itemUser.commonDeptDTO" :key="item" @click="itemCandidate(item)">{{item.dept}}</view>
34
 				</view>
34
 				</view>
35
-				
35
+
36
 				<view class="form_item column">
36
 				<view class="form_item column">
37
 					<view class="title"><text class="required newicon newicon-bitian"></text>详细地址:</view>
37
 					<view class="title"><text class="required newicon newicon-bitian"></text>详细地址:</view>
38
 					<uni-easyinput class="value" type="textarea" v-model="dataInfo.address" placeholder="请输入详细地址"  :class="{formRed: isSubmit && !dataInfo.address }" />
38
 					<uni-easyinput class="value" type="textarea" v-model="dataInfo.address" placeholder="请输入详细地址"  :class="{formRed: isSubmit && !dataInfo.address }" />
@@ -40,12 +40,12 @@
40
 				<view class="candidate">
40
 				<view class="candidate">
41
 					<view class="candidate-item" v-for="item in dataInfo.addressList" :key="item.id" @click="itemAddres(item)">{{item.name}}</view>
41
 					<view class="candidate-item" v-for="item in dataInfo.addressList" :key="item.id" @click="itemAddres(item)">{{item.name}}</view>
42
 				</view>
42
 				</view>
43
-				
43
+
44
 				<view class="form_item" :class="{formRed: isSubmit && !dataInfo.contacts}">
44
 				<view class="form_item" :class="{formRed: isSubmit && !dataInfo.contacts}">
45
 					<view class="title select"><text class="required newicon newicon-bitian"></text>联系人:</view>
45
 					<view class="title select"><text class="required newicon newicon-bitian"></text>联系人:</view>
46
 					<input class="item-input" placeholder="请输入联系人" v-model="dataInfo.contacts" />
46
 					<input class="item-input" placeholder="请输入联系人" v-model="dataInfo.contacts" />
47
 				</view>
47
 				</view>
48
-				
48
+
49
 				<view class="form_item" :class="{formRed: isSubmit && !dataInfo.contactsInformation}">
49
 				<view class="form_item" :class="{formRed: isSubmit && !dataInfo.contactsInformation}">
50
 					<view class="title select"><text class="required newicon newicon-bitian"></text>联系电话:</view>
50
 					<view class="title select"><text class="required newicon newicon-bitian"></text>联系电话:</view>
51
 					<input class="item-input" placeholder="请输入联系电话" v-model="dataInfo.contactsInformation"/>
51
 					<input class="item-input" placeholder="请输入联系电话" v-model="dataInfo.contactsInformation"/>
@@ -68,7 +68,7 @@
68
        		:clear-icon="false" :class="{formRed: isSubmit && !dataInfo.areaId}">
68
        		:clear-icon="false" :class="{formRed: isSubmit && !dataInfo.areaId}">
69
        	</uni-data-picker>
69
        	</uni-data-picker>
70
        </view>
70
        </view>
71
-       
71
+
72
 			 <view class="form_item" v-if="isRepair.valueconfig==1">
72
 			 <view class="form_item" v-if="isRepair.valueconfig==1">
73
 			   <view class="title select"><text class="required newicon newicon-bitian"></text>楼层:</view>
73
 			   <view class="title select"><text class="required newicon newicon-bitian"></text>楼层:</view>
74
 			 	<uni-data-picker class="value" placeholder="请选择楼层"
74
 			 	<uni-data-picker class="value" placeholder="请选择楼层"
@@ -76,17 +76,17 @@
76
 			 		:clear-icon="false" :class="{formRed: isSubmit && !dataInfo.placeId}">
76
 			 		:clear-icon="false" :class="{formRed: isSubmit && !dataInfo.placeId}">
77
 			 	</uni-data-picker>
77
 			 	</uni-data-picker>
78
 			 </view>
78
 			 </view>
79
-			 
79
+
80
        <view class="form_item column" v-if="isRepair.valueconfig==1">
80
        <view class="form_item column" v-if="isRepair.valueconfig==1">
81
        	<view class="title"><text class="required newicon newicon-bitian"></text>详细地址:</view>
81
        	<view class="title"><text class="required newicon newicon-bitian"></text>详细地址:</view>
82
        	<uni-easyinput class="value" type="textarea" v-model="dataInfo.address" placeholder="请输入详细地址" :class="{formRed: isSubmit && !dataInfo.address}" />
82
        	<uni-easyinput class="value" type="textarea" v-model="dataInfo.address" placeholder="请输入详细地址" :class="{formRed: isSubmit && !dataInfo.address}" />
83
        </view>
83
        </view>
84
-       
84
+
85
        <view class="form_item" :class="{formRed: isSubmit && !dataInfo.contacts}">
85
        <view class="form_item" :class="{formRed: isSubmit && !dataInfo.contacts}">
86
        	<view class="title select"><text class="required newicon newicon-bitian"></text>联系人:</view>
86
        	<view class="title select"><text class="required newicon newicon-bitian"></text>联系人:</view>
87
        	<input class="item-input value" placeholder="请输入联系人" v-model="dataInfo.contacts"/>
87
        	<input class="item-input value" placeholder="请输入联系人" v-model="dataInfo.contacts"/>
88
        </view>
88
        </view>
89
-       
89
+
90
        <view class="form_item" :class="{formRed: isSubmit && !dataInfo.contactsInformation}">
90
        <view class="form_item" :class="{formRed: isSubmit && !dataInfo.contactsInformation}">
91
        	<view class="title select"><text class="required newicon newicon-bitian"></text>联系电话:</view>
91
        	<view class="title select"><text class="required newicon newicon-bitian"></text>联系电话:</view>
92
        	<input class="item-input value" placeholder="请输入联系电话" v-model="dataInfo.contactsInformation"/>
92
        	<input class="item-input value" placeholder="请输入联系电话" v-model="dataInfo.contactsInformation"/>
@@ -98,7 +98,7 @@
98
       <button @click="submit" type="default" class="primaryButton btn">提交</button>
98
       <button @click="submit" type="default" class="primaryButton btn">提交</button>
99
     </view>
99
     </view>
100
     <NumberModal v-if="dataInfo.isNumber" @cancelEmit="cancelNumber" @confirmEmit="conformNumber" @removeEmit="removeNumber" :selectData="dataInfo.selectData" :selectType="dataInfo.selectType" :evtNumber="dataInfo.evtNumber" showRemove></NumberModal>
100
     <NumberModal v-if="dataInfo.isNumber" @cancelEmit="cancelNumber" @confirmEmit="conformNumber" @removeEmit="removeNumber" :selectData="dataInfo.selectData" :selectType="dataInfo.selectType" :evtNumber="dataInfo.evtNumber" showRemove></NumberModal>
101
-		
101
+
102
 	</view>
102
 	</view>
103
 </template>
103
 </template>
104
 
104
 
@@ -115,17 +115,17 @@
115
   import { useGoBack } from '@/share/useGoBack.js'
115
   import { useGoBack } from '@/share/useGoBack.js'
116
   import { useLoginUserStore } from '@/stores/loginUser'
116
   import { useLoginUserStore } from '@/stores/loginUser'
117
   import { useHandlerStore } from '@/stores/handler'
117
   import { useHandlerStore } from '@/stores/handler'
118
-  
118
+
119
   useSetTitle();
119
   useSetTitle();
120
   const loginUserStore = useLoginUserStore();
120
   const loginUserStore = useLoginUserStore();
121
   const handlerStore = useHandlerStore();
121
   const handlerStore = useHandlerStore();
122
   const { makePhoneCall }  = useMakePhoneCall();
122
   const { makePhoneCall }  = useMakePhoneCall();
123
   const { uploadFile }  = useUploadFile();
123
   const { uploadFile }  = useUploadFile();
124
   const { goBack }  = useGoBack();
124
   const { goBack }  = useGoBack();
125
-  
125
+
126
   // 主题颜色
126
   // 主题颜色
127
   const primaryColor = ref(defaultColor)
127
   const primaryColor = ref(defaultColor)
128
-  
128
+
129
 	// 备用机选项
129
 	// 备用机选项
130
 	const machineData = ref([
130
 	const machineData = ref([
131
 		{
131
 		{
@@ -137,14 +137,14 @@
137
 			value:0
137
 			value:0
138
 		},
138
 		},
139
 	])
139
 	])
140
-	
140
+
141
 	const isDept = ref({})
141
 	const isDept = ref({})
142
 	const isRepair = ref({})
142
 	const isRepair = ref({})
143
 	const branchData = ref([])
143
 	const branchData = ref([])
144
 	const candidateData = ref(loginUserStore.loginUser.user)
144
 	const candidateData = ref(loginUserStore.loginUser.user)
145
-	
145
+
146
 	const repairIncident = ref(null)
146
 	const repairIncident = ref(null)
147
-	
147
+
148
   // 数据
148
   // 数据
149
   const dataInfo = reactive({
149
   const dataInfo = reactive({
150
     tabs: [
150
     tabs: [
@@ -174,28 +174,28 @@
174
 		branch:'', //院区
174
 		branch:'', //院区
175
 		addressList: [], //科室地点
175
 		addressList: [], //科室地点
176
   })
176
   })
177
-  
178
-	
177
+
178
+
179
 	// 故障处理用是否提供备用机
179
 	// 故障处理用是否提供备用机
180
 	const newProvideBackupMachine = ref(0)
180
 	const newProvideBackupMachine = ref(0)
181
-	
181
+
182
 	// 知识库id
182
 	// 知识库id
183
 	const solutionId = ref(null)
183
 	const solutionId = ref(null)
184
-	
184
+
185
   // 是否提交
185
   // 是否提交
186
   const isSubmit = ref(false)
186
   const isSubmit = ref(false)
187
-  
187
+
188
   // 处理图片
188
   // 处理图片
189
   const handlerImgRef = ref(null)
189
   const handlerImgRef = ref(null)
190
-  
190
+
191
 	// 用户信息
191
 	// 用户信息
192
 	const itemUser = ref(null)
192
 	const itemUser = ref(null)
193
-		
193
+
194
   // 是否进入汇总单
194
   // 是否进入汇总单
195
   const isInSummaryOrder = computed(() => {
195
   const isInSummaryOrder = computed(() => {
196
     return dataInfo.tabActiveValue === 'doing' && dataInfo.incidentData.duty && dataInfo.incidentData.duty.addSummary == 1 && (dataInfo.incidentData.handlingPersonnelUser.id == loginUserStore.loginUser.user.id);
196
     return dataInfo.tabActiveValue === 'doing' && dataInfo.incidentData.duty && dataInfo.incidentData.duty.addSummary == 1 && (dataInfo.incidentData.handlingPersonnelUser.id == loginUserStore.loginUser.user.id);
197
   })
197
   })
198
-  
198
+
199
   // 上一步或者返回列表
199
   // 上一步或者返回列表
200
   function goBackOrToList(){
200
   function goBackOrToList(){
201
 		uni.setStorageSync('rapidRepNext',JSON.stringify(dataInfo))
201
 		uni.setStorageSync('rapidRepNext',JSON.stringify(dataInfo))
@@ -203,7 +203,7 @@
203
 		  url: `/pages/repair/rapidRep`
203
 		  url: `/pages/repair/rapidRep`
204
 		})
204
 		})
205
   }
205
   }
206
-  
206
+
207
   // 重置
207
   // 重置
208
   function reset(){
208
   function reset(){
209
 		// dataInfo.department = '',//报修科室
209
 		// dataInfo.department = '',//报修科室
@@ -214,7 +214,7 @@
214
 		dataInfo.placeId = '' //院区
214
 		dataInfo.placeId = '' //院区
215
 		dataInfo.placeTypeList = []
215
 		dataInfo.placeTypeList = []
216
   }
216
   }
217
-  
217
+
218
   // 初始化表单
218
   // 初始化表单
219
   function initForm(){
219
   function initForm(){
220
     if(dataInfo.tabActiveValue === 'doing'){
220
     if(dataInfo.tabActiveValue === 'doing'){
@@ -224,7 +224,7 @@
224
 			getbuildingList()
224
 			getbuildingList()
225
     }
225
     }
226
   }
226
   }
227
-  
227
+
228
 	function itemCandidate(item){
228
 	function itemCandidate(item){
229
 		// console.log(55,index)
229
 		// console.log(55,index)
230
 		// let arr = loginUserStore.loginUser.user.commonDept.split(',')
230
 		// let arr = loginUserStore.loginUser.user.commonDept.split(',')
@@ -232,11 +232,11 @@
232
 		dataInfo.department = item.id
232
 		dataInfo.department = item.id
233
 		dataInfo.departmentName = item.dept
233
 		dataInfo.departmentName = item.dept
234
 	}
234
 	}
235
-	
235
+
236
 	function itemAddres(item){
236
 	function itemAddres(item){
237
 		dataInfo.address = item.name
237
 		dataInfo.address = item.name
238
 	}
238
 	}
239
-	
239
+
240
 	function getUserInfo(){
240
 	function getUserInfo(){
241
 		let user = loginUserStore.loginUser.user
241
 		let user = loginUserStore.loginUser.user
242
 		let postData = {
242
 		let postData = {
@@ -255,7 +255,7 @@
255
 				if(uni.getStorageSync('rapidRepNext')){
255
 				if(uni.getStorageSync('rapidRepNext')){
256
 					let data = JSON.parse(uni.getStorageSync('rapidRepNext'))
256
 					let data = JSON.parse(uni.getStorageSync('rapidRepNext'))
257
 					if(data){
257
 					if(data){
258
-						dataInfo.departmentName = data.departmentName 
258
+						dataInfo.departmentName = data.departmentName
259
 						dataInfo.department = data.department
259
 						dataInfo.department = data.department
260
 					}
260
 					}
261
 				}else{
261
 				}else{
@@ -263,7 +263,7 @@
263
 					dataInfo.department = res.list[0].dept.id
263
 					dataInfo.department = res.list[0].dept.id
264
 				}
264
 				}
265
 		    itemUser.value = res.list.find(i=>i.id==user.id)
265
 		    itemUser.value = res.list.find(i=>i.id==user.id)
266
-				
266
+
267
 		  }else{
267
 		  }else{
268
 		    uni.showToast({
268
 		    uni.showToast({
269
 		      icon: 'none',
269
 		      icon: 'none',
@@ -272,7 +272,7 @@
272
 		  }
272
 		  }
273
 		})
273
 		})
274
 	}
274
 	}
275
-	
275
+
276
   // 点击tab
276
   // 点击tab
277
   function clickTab(tabValue){
277
   function clickTab(tabValue){
278
     if(dataInfo.tabActiveValue == tabValue){
278
     if(dataInfo.tabActiveValue == tabValue){
@@ -294,7 +294,7 @@
294
 		newProvideBackupMachine.value = dataInfo.incidentData.provideBackupMachine
294
 		newProvideBackupMachine.value = dataInfo.incidentData.provideBackupMachine
295
     initForm();
295
     initForm();
296
   }
296
   }
297
-  
297
+
298
   // 获取事件详情
298
   // 获取事件详情
299
   function getIncidentDetail(){
299
   function getIncidentDetail(){
300
 		let user = loginUserStore.loginUser.user
300
 		let user = loginUserStore.loginUser.user
@@ -331,7 +331,7 @@
331
 				dataInfo.assetId = data.assetId
331
 				dataInfo.assetId = data.assetId
332
 			}
332
 			}
333
 		}
333
 		}
334
-		
334
+
335
 		let data = JSON.parse(uni.getStorageSync('sysData'))
335
 		let data = JSON.parse(uni.getStorageSync('sysData'))
336
 		isDept.value = data.find(i=>i.keyconfig=='deptRepair')
336
 		isDept.value = data.find(i=>i.keyconfig=='deptRepair')
337
 		isRepair.value = data.find(i=>i.keyconfig=='publicRepair')
337
 		isRepair.value = data.find(i=>i.keyconfig=='publicRepair')
@@ -354,7 +354,7 @@
354
 			getbuildingList()
354
 			getbuildingList()
355
 		}
355
 		}
356
 
356
 
357
-		
357
+
358
 		let postData = {
358
 		let postData = {
359
 		  "key": 'repair_incident_type',
359
 		  "key": 'repair_incident_type',
360
 		  "type": "list",
360
 		  "type": "list",
@@ -365,7 +365,7 @@
365
 		})
365
 		})
366
 		getBranch()
366
 		getBranch()
367
   }
367
   }
368
-  
368
+
369
 	// 获取院区列表
369
 	// 获取院区列表
370
 	function getBranch(){
370
 	function getBranch(){
371
 		let arr = loginUserStore.loginUser.hospital.filter(i=>i.parent==undefined)
371
 		let arr = loginUserStore.loginUser.hospital.filter(i=>i.parent==undefined)
@@ -374,19 +374,19 @@
374
 		  value: v.id,
374
 		  value: v.id,
375
 		}));
375
 		}));
376
 	}
376
 	}
377
-	
377
+
378
 	// 科内报修选择院区
378
 	// 科内报修选择院区
379
 	function doingDeptChange(){
379
 	function doingDeptChange(){
380
 		dataInfo.department = ''
380
 		dataInfo.department = ''
381
 		dataInfo.departmentName = ''
381
 		dataInfo.departmentName = ''
382
 		// getRepairTypes()
382
 		// getRepairTypes()
383
 	}
383
 	}
384
-	
384
+
385
 	// 公区报修选择院区
385
 	// 公区报修选择院区
386
 	function overDeptChange(){
386
 	function overDeptChange(){
387
 		getbuildingList()
387
 		getbuildingList()
388
 	}
388
 	}
389
-	
389
+
390
 	// 跳转到搜索报修科室
390
 	// 跳转到搜索报修科室
391
 	function selectDepartment(){
391
 	function selectDepartment(){
392
 		uni.setStorageSync('rapidRepNext',JSON.stringify(dataInfo))
392
 		uni.setStorageSync('rapidRepNext',JSON.stringify(dataInfo))
@@ -394,7 +394,7 @@
394
 	    url: `/pages/searchDept/searchDept?type=repair&branchId=${dataInfo.branch}`
394
 	    url: `/pages/searchDept/searchDept?type=repair&branchId=${dataInfo.branch}`
395
 	  })
395
 	  })
396
 	}
396
 	}
397
-	
397
+
398
   // 获取报修科室列表
398
   // 获取报修科室列表
399
   function getRepairTypes(){
399
   function getRepairTypes(){
400
     uni.showLoading({
400
     uni.showLoading({
@@ -422,7 +422,7 @@
422
 			}
422
 			}
423
     })
423
     })
424
   }
424
   }
425
-  
425
+
426
   // 获取楼栋
426
   // 获取楼栋
427
   function getbuildingList(){
427
   function getbuildingList(){
428
     uni.showLoading({
428
     uni.showLoading({
@@ -446,7 +446,7 @@
446
 		    }));
446
 		    }));
447
 		  });
447
 		  });
448
   }
448
   }
449
-  
449
+
450
   // 获取科室地点
450
   // 获取科室地点
451
   function getAddressList(){
451
   function getAddressList(){
452
     uni.showLoading({
452
     uni.showLoading({
@@ -466,11 +466,11 @@
466
   	    dataInfo.addressList = res.list || [];
466
   	    dataInfo.addressList = res.list || [];
467
   	  });
467
   	  });
468
   }
468
   }
469
-  
469
+
470
 	function areaChange(e){
470
 	function areaChange(e){
471
 		getPlaceList(dataInfo.areaId)
471
 		getPlaceList(dataInfo.areaId)
472
 	}
472
 	}
473
-	
473
+
474
 	// 获取楼层
474
 	// 获取楼层
475
 	function getPlaceList(e){
475
 	function getPlaceList(e){
476
 	  let postData = {
476
 	  let postData = {
@@ -481,7 +481,7 @@
481
 				hosId:dataInfo.branch
481
 				hosId:dataInfo.branch
482
 			}
482
 			}
483
 	  };
483
 	  };
484
-		
484
+
485
 		getFetchDataList("simple/data", "floor", postData)
485
 		getFetchDataList("simple/data", "floor", postData)
486
 		  .then((res) => {
486
 		  .then((res) => {
487
 				uni.hideLoading();
487
 				uni.hideLoading();
@@ -492,13 +492,13 @@
492
 		    }));
492
 		    }));
493
 		  });
493
 		  });
494
 	}
494
 	}
495
-	
495
+
496
   // 提交
496
   // 提交
497
   function submit(){
497
   function submit(){
498
 		isSubmit.value = true;
498
 		isSubmit.value = true;
499
     submitHandler()
499
     submitHandler()
500
   }
500
   }
501
-  
501
+
502
   // 处理提交事件
502
   // 处理提交事件
503
    async function handlerOrder(){
503
    async function handlerOrder(){
504
 		let postData = {
504
 		let postData = {
@@ -512,26 +512,25 @@
512
       let result = await api_departmentDetail(dataInfo.department);
512
       let result = await api_departmentDetail(dataInfo.department);
513
       let deptDTO = result.data || {};
513
       let deptDTO = result.data || {};
514
       postData.incident.place.id = deptDTO.floor ? deptDTO.floor.id : undefined;
514
       postData.incident.place.id = deptDTO.floor ? deptDTO.floor.id : undefined;
515
-      postData.incident.houseNumber = deptDTO.address || undefined;
516
 		}else if(dataInfo.tabActiveValue === 'overtime'){
515
 		}else if(dataInfo.tabActiveValue === 'overtime'){
517
 			let data = repairIncident.value.find(i=>i.value=='public')
516
 			let data = repairIncident.value.find(i=>i.value=='public')
518
 			dataInfo.incidentData.repairIncidentType.id = data.id
517
 			dataInfo.incidentData.repairIncidentType.id = data.id
519
 			postData.incident.place.id = dataInfo.placeId;
518
 			postData.incident.place.id = dataInfo.placeId;
520
-      postData.incident.houseNumber = dataInfo.address;
521
 		}
519
 		}
522
     dataInfo.incidentData.department.id = dataInfo.department
520
     dataInfo.incidentData.department.id = dataInfo.department
523
     postData.incident.description = dataInfo.description;
521
     postData.incident.description = dataInfo.description;
524
 		if(dataInfo.serverId){
522
 		if(dataInfo.serverId){
525
 			postData.serverId = dataInfo.serverId;
523
 			postData.serverId = dataInfo.serverId;
526
 		}else{
524
 		}else{
527
-			delete postData.serverId 
525
+			delete postData.serverId
528
 		}
526
 		}
529
     postData.incident.assetId = dataInfo.assetId;
527
     postData.incident.assetId = dataInfo.assetId;
528
+    postData.incident.houseNumber = dataInfo.address;
530
 		postData.incident.contacts = dataInfo.contacts;
529
 		postData.incident.contacts = dataInfo.contacts;
531
 		postData.incident.contactsInformation = dataInfo.contactsInformation;
530
 		postData.incident.contactsInformation = dataInfo.contactsInformation;
532
 		postData.incident.hosId = dataInfo.branch;
531
 		postData.incident.hosId = dataInfo.branch;
533
 		let repairsType = uni.getStorageSync('repairsType')
532
 		let repairsType = uni.getStorageSync('repairsType')
534
-		// postData.incident.buildId = dataInfo.areaId; //areaId:楼栋   
533
+		// postData.incident.buildId = dataInfo.areaId; //areaId:楼栋
535
   //   postData.incident.floorId = dataInfo.placeId;//placeId:楼层
534
   //   postData.incident.floorId = dataInfo.placeId;//placeId:楼层
536
 		// buildId
535
 		// buildId
537
 		// floorId
536
 		// floorId
@@ -619,13 +618,13 @@
619
 		})
618
 		})
620
 
619
 
621
   }
620
   }
622
-  
621
+
623
   // 处理图片
622
   // 处理图片
624
   function handlerOrderImg(imgObj){
623
   function handlerOrderImg(imgObj){
625
 		let allData = null
624
 		let allData = null
626
 		if(imgObj.extname=='mp4' ||
625
 		if(imgObj.extname=='mp4' ||
627
-			imgObj.extname=='avi' || 
628
-			imgObj.extname=='mpeg' || 
626
+			imgObj.extname=='avi' ||
627
+			imgObj.extname=='mpeg' ||
629
 			imgObj.extname=='wmv'){
628
 			imgObj.extname=='wmv'){
630
 				allData = uploadFile(imgObj, 'wechatIncidentVideo', dataInfo.incidentId)
629
 				allData = uploadFile(imgObj, 'wechatIncidentVideo', dataInfo.incidentId)
631
 			}else{
630
 			}else{
@@ -633,7 +632,7 @@
633
 			}
632
 			}
634
 		return allData
633
 		return allData
635
   }
634
   }
636
-  
635
+
637
   // 处理提交
636
   // 处理提交
638
   function submitHandler(){
637
   function submitHandler(){
639
     console.log(dataInfo);
638
     console.log(dataInfo);
@@ -653,7 +652,7 @@
653
 			  });
652
 			  });
654
 			  return;
653
 			  return;
655
 			}
654
 			}
656
-			
655
+
657
 			if(dataInfo.areaId==''){
656
 			if(dataInfo.areaId==''){
658
 			  uni.showToast({
657
 			  uni.showToast({
659
 			  	icon: 'none',
658
 			  	icon: 'none',
@@ -661,7 +660,7 @@
661
 			  });
660
 			  });
662
 			  return;
661
 			  return;
663
 			}
662
 			}
664
-			
663
+
665
 			if(dataInfo.placeId==''){
664
 			if(dataInfo.placeId==''){
666
 			  uni.showToast({
665
 			  uni.showToast({
667
 			  	icon: 'none',
666
 			  	icon: 'none',
@@ -678,7 +677,7 @@
678
       });
677
       });
679
       return;
678
       return;
680
     }
679
     }
681
-    
680
+
682
     if(dataInfo.contacts==''){
681
     if(dataInfo.contacts==''){
683
       uni.showToast({
682
       uni.showToast({
684
       	icon: 'none',
683
       	icon: 'none',
@@ -686,7 +685,7 @@
686
       });
685
       });
687
       return;
686
       return;
688
     }
687
     }
689
-    
688
+
690
     if(dataInfo.contactsInformation==''){
689
     if(dataInfo.contactsInformation==''){
691
       uni.showToast({
690
       uni.showToast({
692
       	icon: 'none',
691
       	icon: 'none',
@@ -701,14 +700,14 @@
701
     });
700
     });
702
 		handlerOrder()
701
 		handlerOrder()
703
   }
702
   }
704
-	
703
+
705
 	// 获取文本内容
704
 	// 获取文本内容
706
 	function getHtml(html) {
705
 	function getHtml(html) {
707
 	  const tempDiv = document.createElement('div');
706
 	  const tempDiv = document.createElement('div');
708
 	  tempDiv.innerHTML = html;
707
 	  tempDiv.innerHTML = html;
709
 	  return tempDiv.textContent || tempDiv.innerText || '';
708
 	  return tempDiv.textContent || tempDiv.innerText || '';
710
 	}
709
 	}
711
-	
710
+
712
   onLoad((option) => {
711
   onLoad((option) => {
713
 		initForm()
712
 		initForm()
714
     getIncidentDetail();
713
     getIncidentDetail();