liuzhihui il y a 2 ans
Parent
commit
94f18dc168

+ 145 - 111
CallCenterWeb.UI/RMYYAPP/pages/myTask/comDispatch/addComDispatch/addComDispatch.vue

10
 				</uni-forms-item>
10
 				</uni-forms-item>
11
 				<uni-forms-item label="申请科室" required name="ApplicationDept">
11
 				<uni-forms-item label="申请科室" required name="ApplicationDept">
12
 					<uni-data-picker :readonly="true" placeholder="请选择申请科室" :localdata="deptDataTree"
12
 					<uni-data-picker :readonly="true" placeholder="请选择申请科室" :localdata="deptDataTree"
13
-						v-model="valiFormData.ApplicationDept" @nodeclick="deptNodeclick" :showSearch="showSearch" @popupclosed="popupclosedDept" @searchTrue="departSearchTrue">
13
+						v-model="valiFormData.ApplicationDept" @nodeclick="deptNodeclick" :showSearch="showSearch"
14
+						@popupclosed="popupclosedDept" @searchTrue="departSearchTrue">
14
 					</uni-data-picker>
15
 					</uni-data-picker>
15
 				</uni-forms-item>
16
 				</uni-forms-item>
16
 				<uni-forms-item label="科室电话" required name="DeptPhone">
17
 				<uni-forms-item label="科室电话" required name="DeptPhone">
17
 					<uni-easyinput v-model="valiFormData.DeptPhone" placeholder="请输入联系电话" />
18
 					<uni-easyinput v-model="valiFormData.DeptPhone" placeholder="请输入联系电话" />
18
 				</uni-forms-item>
19
 				</uni-forms-item>
19
 				<uni-forms-item label="申请人" required name="ApplicantName">
20
 				<uni-forms-item label="申请人" required name="ApplicantName">
20
-					<uni-combox :candidates="candidates" placeholder="输入搜索内容"  @input="handleInput" v-model="valiFormData.ApplicantName"></uni-combox>
21
+					<uni-combox :candidates="candidates" placeholder="输入搜索内容" @input="handleInput"
22
+						v-model="valiFormData.ApplicantName"></uni-combox>
21
 				</uni-forms-item>
23
 				</uni-forms-item>
22
-				
24
+
23
 				<uni-forms-item label="联系电话" required name="Phone">
25
 				<uni-forms-item label="联系电话" required name="Phone">
24
 					<uni-easyinput v-model="valiFormData.Phone" placeholder="请输入联系电话" />
26
 					<uni-easyinput v-model="valiFormData.Phone" placeholder="请输入联系电话" />
25
 				</uni-forms-item>
27
 				</uni-forms-item>
28
 				</uni-forms-item>
30
 				</uni-forms-item>
29
 				<view style="margin: 15px 0;" v-show="valiFormData.WorkOrderCategory && flag[flaginfo]">
31
 				<view style="margin: 15px 0;" v-show="valiFormData.WorkOrderCategory && flag[flaginfo]">
30
 					<view style="margin-bottom: 15px;">
32
 					<view style="margin-bottom: 15px;">
31
-						<text class="infoTittle"><text v-show="flaginfo==='2001' || flaginfo==='2003'|| flaginfo==='127548'|| flaginfo==='10617' || flaginfo==='9129'|| flaginfo==='9130' || flaginfo==='2007'" style="color: red;">*</text>{{flagName[flaginfo]}}</text>
33
+						<text class="infoTittle"><text
34
+								v-show="flaginfo==='2001' || flaginfo==='2003'|| flaginfo==='127548'|| flaginfo==='10617' || flaginfo==='9129'|| flaginfo==='9130' || flaginfo==='2007'"
35
+								style="color: red;">*</text>{{flagName[flaginfo]}}</text>
32
 						<uni-icons type="plus" size="30" color="#007aff" @click="plusClck()"></uni-icons>
36
 						<uni-icons type="plus" size="30" color="#007aff" @click="plusClck()"></uni-icons>
33
 						<uni-icons type="minus" size="30" color="#007aff" @click="minusClck()"></uni-icons>
37
 						<uni-icons type="minus" size="30" color="#007aff" @click="minusClck()"></uni-icons>
34
 					</view>
38
 					</view>
35
 					<view style="width: 100%;height: 85px;" v-for="(item, index) in dicList">
39
 					<view style="width: 100%;height: 85px;" v-for="(item, index) in dicList">
36
 						<view class="dicSelect" v-if="identification==='JC' || identification==='FJ'">
40
 						<view class="dicSelect" v-if="identification==='JC' || identification==='FJ'">
37
-							<uni-data-picker class="uni_item" placeholder="请选择标本信息" :localdata="dataOrderType" @nodeclick="(e)=>nodeclickMuter(e,index)">
41
+							<uni-data-picker class="uni_item" placeholder="请选择标本信息" :localdata="dataOrderType"
42
+								@nodeclick="(e)=>nodeclickMuter(e,index)">
38
 							</uni-data-picker>
43
 							</uni-data-picker>
39
 						</view>
44
 						</view>
40
 						<view style="margin-bottom: 2px;width: 100%;" v-if="identification==='2007'">
45
 						<view style="margin-bottom: 2px;width: 100%;" v-if="identification==='2007'">
41
-							<uni-data-picker placeholder="请选择科室" v-model="item.F_ToDept" :showSearch="showSearch" :localdata="deptDataTree" @nodeclick="(e)=>nodeclickDept(e,index)">
46
+							<uni-data-picker placeholder="请选择科室" v-model="item.F_ToDept"
47
+								@popupclosed="popupclosedDeptww" :showSearch="showSearch" :localdata="deptDataTree"
48
+								@nodeclick="(e)=>nodeclickDept(e,index)">
42
 							</uni-data-picker>
49
 							</uni-data-picker>
43
 						</view>
50
 						</view>
44
 						<view v-if="identification!=='JC' && identification!=='FJ'" class="dicSelect">
51
 						<view v-if="identification!=='JC' && identification!=='FJ'" class="dicSelect">
45
-							<dictionaries-select v-if="identification!=='2007'" :flag="flag[flaginfo]" :valInfo="index" :val="item.F_DicId + ','+ item.F_DicName"
46
-								@post-select-dic="postSelectDic"></dictionaries-select>
47
-							<luyj-select-lay v-if="identification==='2007'" lay-omit name="name" :options="bloodList" :zindex="1" slabel='text' @selectitem="(e)=>selectitem(e,index)">
52
+							<dictionaries-select v-if="identification!=='2007'" :flag="flag[flaginfo]" :valInfo="index"
53
+								:val="item.F_DicId + ','+ item.F_DicName" @post-select-dic="postSelectDic">
54
+							</dictionaries-select>
55
+							<luyj-select-lay v-if="identification==='2007'" lay-omit name="name" :options="bloodList"
56
+								:zindex="1" slabel='text' @selectitem="(e)=>selectitem(e,index)">
48
 							</luyj-select-lay>
57
 							</luyj-select-lay>
49
 						</view>
58
 						</view>
50
 						<view class="dicNum">
59
 						<view class="dicNum">
51
 							<uni-number-box v-model="item.F_Number" />
60
 							<uni-number-box v-model="item.F_Number" />
52
 						</view>
61
 						</view>
53
-						<view style="display: block;width: 100%;text-align: center;" v-if="identification === '2001' || identification === '2003'|| identification === 'YQT'">
62
+						<view style="display: block;width: 100%;text-align: center;"
63
+							v-if="identification === '2001' || identification === '2003'|| identification === 'YQT'">
54
 							<uni-data-checkbox v-model="item.F_IsBorrow" :localdata="F_IsBorrowTypesList" />
64
 							<uni-data-checkbox v-model="item.F_IsBorrow" :localdata="F_IsBorrowTypesList" />
55
 						</view>
65
 						</view>
56
 					</view>
66
 					</view>
76
 							<button class="mini-btn" type="primary" size="mini" @tap="onUpload">上传</button>
86
 							<button class="mini-btn" type="primary" size="mini" @tap="onUpload">上传</button>
77
 						</view>
87
 						</view>
78
 						<view class="padding">
88
 						<view class="padding">
79
-							<uni-file-picker limit="5" file-mediatype="all" :value="fileLists" @delete="deleteFile"></uni-file-picker>
89
+							<uni-file-picker limit="5" file-mediatype="all" :value="fileLists" @delete="deleteFile">
90
+							</uni-file-picker>
80
 						</view>
91
 						</view>
81
 					</view>
92
 					</view>
82
 				</uni-forms-item>
93
 				</uni-forms-item>
110
 		},
121
 		},
111
 		data() {
122
 		data() {
112
 			return {
123
 			return {
113
-				bloodList:[],
114
-				dataOrderType:[],
124
+				bloodList: [],
125
+				dataOrderType: [],
115
 				identification: '', // 工单标识
126
 				identification: '', // 工单标识
116
-				getFontSizeValue:'1rem',
127
+				getFontSizeValue: '1rem',
117
 				showSearch: true,
128
 				showSearch: true,
118
 				logo: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fbpic.588ku.com%2Felement_origin_min_pic%2F00%2F00%2F07%2F155788a6d8a5c42.jpg&refer=http%3A%2F%2Fbpic.588ku.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1619847627&t=2da40b583002205c204d980b54b35040',
129
 				logo: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fbpic.588ku.com%2Felement_origin_min_pic%2F00%2F00%2F07%2F155788a6d8a5c42.jpg&refer=http%3A%2F%2Fbpic.588ku.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1619847627&t=2da40b583002205c204d980b54b35040',
119
 				isShowIsEnd: false,
130
 				isShowIsEnd: false,
127
 					ApplicantName: '',
138
 					ApplicantName: '',
128
 					Phone: '', //联系电话
139
 					Phone: '', //联系电话
129
 					Location: '', // 科室位置
140
 					Location: '', // 科室位置
130
-					DeptPhone:'',
141
+					DeptPhone: '',
131
 					ToPlace: '', // 送达地点
142
 					ToPlace: '', // 送达地点
132
 					Content: '', // 工单内容
143
 					Content: '', // 工单内容
133
 					DealDept: '', //	维修部门
144
 					DealDept: '', //	维修部门
136
 					opt: 2,
147
 					opt: 2,
137
 					EmergencyTypes: '',
148
 					EmergencyTypes: '',
138
 				},
149
 				},
139
-				F_IsBorrowTypesList:[{
150
+				F_IsBorrowTypesList: [{
140
 					text: '借',
151
 					text: '借',
141
 					value: '1'
152
 					value: '1'
142
-				},{
153
+				}, {
143
 					text: '还',
154
 					text: '还',
144
 					value: '2'
155
 					value: '2'
145
-				}],				
156
+				}],
146
 				EmergencyTypesList: [{
157
 				EmergencyTypesList: [{
147
 					text: '一般',
158
 					text: '一般',
148
 					value: '一般'
159
 					value: '一般'
149
-				},{
160
+				}, {
150
 					text: '紧急',
161
 					text: '紧急',
151
 					value: '紧急'
162
 					value: '紧急'
152
 				}],
163
 				}],
153
-				changeindex:"",
154
-				changedept:"",
155
-				departId:0,
164
+				changeindex: "",
165
+				changedept: "",
166
+				departId: 0,
156
 				redPrescriptionNum: 0, // 红处方数量
167
 				redPrescriptionNum: 0, // 红处方数量
157
 				workorderid: '',
168
 				workorderid: '',
158
 				stepData: pageData.stepData,
169
 				stepData: pageData.stepData,
170
 				typeid: 0,
181
 				typeid: 0,
171
 				candidates: [],
182
 				candidates: [],
172
 				// 标本信息(BBXX),设备信息(SBXX),物资信息(WZXX),病床信息(BCXX),药品信息(YPXX)
183
 				// 标本信息(BBXX),设备信息(SBXX),物资信息(WZXX),病床信息(BCXX),药品信息(YPXX)
173
-				flagid: ["2001","2002","2003","2006","2005","9014","9129","9130",'2007',"127548","10617"],
184
+				flagid: ["2001", "2002", "2003", "2006", "2005", "9014", "9129", "9130", '2007', "127548", "10617"],
174
 				flaginfo: '',
185
 				flaginfo: '',
175
 				fileLists: [],
186
 				fileLists: [],
176
 				flag: {
187
 				flag: {
177
-					"2006": 'BBXX', 
178
-					"2001": 'SBXX', 
188
+					"2006": 'BBXX',
189
+					"2001": 'SBXX',
179
 					"2002": 'WZXX',
190
 					"2002": 'WZXX',
180
-					"2003": 'BCXX', 
191
+					"2003": 'BCXX',
181
 					"2005": 'YPXX',
192
 					"2005": 'YPXX',
182
 					"9014": 'YPXX',
193
 					"9014": 'YPXX',
183
 					"9129": 'BBXX',
194
 					"9129": 'BBXX',
242
 			}
253
 			}
243
 		},
254
 		},
244
 		onLoad(option) {
255
 		onLoad(option) {
245
-			this.getFontSizeValue = uni.getStorageSync('fontSizeValue')+'rem'
256
+			this.getFontSizeValue = uni.getStorageSync('fontSizeValue') + 'rem'
246
 			this.workorderid = option.wid
257
 			this.workorderid = option.wid
247
 			// 添加工单,申请人默认当前登录人
258
 			// 添加工单,申请人默认当前登录人
248
-			if(uni.getStorageSync("deptId")){
259
+			if (uni.getStorageSync("deptId")) {
249
 				this.valiFormData.ApplicationDept = uni.getStorageSync("deptId")
260
 				this.valiFormData.ApplicationDept = uni.getStorageSync("deptId")
250
 				this.getDeptLocation(uni.getStorageSync("deptId"))
261
 				this.getDeptLocation(uni.getStorageSync("deptId"))
251
 				pageData.getApplicant(uni.getStorageSync("deptId"), (res, data, candidates) => {
262
 				pageData.getApplicant(uni.getStorageSync("deptId"), (res, data, candidates) => {
252
 					this.candidates = candidates
263
 					this.candidates = candidates
253
 					this.ApplicantData = res
264
 					this.ApplicantData = res
254
 					this.orderApplicantData = data
265
 					this.orderApplicantData = data
255
-					if(uni.getStorageSync("userCode")) {
266
+					if (uni.getStorageSync("userCode")) {
256
 						this.valiFormData.Applicant = uni.getStorageSync("userCode")
267
 						this.valiFormData.Applicant = uni.getStorageSync("userCode")
257
-						this.valiFormData.ApplicantName = this.$mHelper.findUserName(this.ApplicantData, uni.getStorageSync("userCode"))
268
+						this.valiFormData.ApplicantName = this.$mHelper.findUserName(this.ApplicantData, uni
269
+							.getStorageSync("userCode"))
258
 						const user = this.orderApplicantData.find((o) => {
270
 						const user = this.orderApplicantData.find((o) => {
259
 							return o.usercode === this.valiFormData.Applicant.toString()
271
 							return o.usercode === this.valiFormData.Applicant.toString()
260
 						})
272
 						})
272
 				this.deptDataTree = res
284
 				this.deptDataTree = res
273
 				this.assignedDepartData = res
285
 				this.assignedDepartData = res
274
 			})
286
 			})
275
-			if(this.workorderid) {
287
+			if (this.workorderid) {
276
 				this.readonly = true
288
 				this.readonly = true
277
 				this.getDetail()
289
 				this.getDetail()
278
 			}
290
 			}
279
-			window.scrollTo(0,0)
291
+			window.scrollTo(0, 0)
280
 			this.getDicValueList()
292
 			this.getDicValueList()
281
 		},
293
 		},
282
 		watch: {
294
 		watch: {
283
 			'departList': function() {
295
 			'departList': function() {
284
-				this.valiFormData.ApplicationDept = this.$mHelper.findParents(this.departList,this.valiFormData.ApplicationDept).split('/').length + '_'+ this.valiFormData.ApplicationDept
296
+				this.valiFormData.ApplicationDept = this.$mHelper.findParents(this.departList, this.valiFormData
297
+					.ApplicationDept).split('/').length + '_' + this.valiFormData.ApplicationDept
285
 			}
298
 			}
286
 		},
299
 		},
287
 		methods: {
300
 		methods: {
290
 					Flag: 'XYLX',
303
 					Flag: 'XYLX',
291
 					Name: ''
304
 					Name: ''
292
 				}
305
 				}
293
-				this.$http.get("Dictionary/GetDicValueList",params).then((response)=>{
306
+				this.$http.get("Dictionary/GetDicValueList", params).then((response) => {
294
 					let newData = []
307
 					let newData = []
295
 					response.rows.forEach((element, index) => {
308
 					response.rows.forEach((element, index) => {
296
 						const obj = {}
309
 						const obj = {}
304
 					// }
317
 					// }
305
 				})
318
 				})
306
 			},
319
 			},
307
-			selectitem(val,index) {
320
+			selectitem(val, index) {
308
 				var namestr = ''
321
 				var namestr = ''
309
 				var idstr = ''
322
 				var idstr = ''
310
 				if (val) {
323
 				if (val) {
311
-					for(var i=0;i<val.length;i++){
312
-					  namestr += val[i].value.split(',')[1]+','
313
-					  idstr += val[i].value.split(',')[0]+','
324
+					for (var i = 0; i < val.length; i++) {
325
+						namestr += val[i].value.split(',')[1] + ','
326
+						idstr += val[i].value.split(',')[0] + ','
314
 					}
327
 					}
315
-					this.dicList[index].F_DicId = idstr.slice(0,namestr.length-1)
316
-					this.dicList[index].F_DicName = namestr.slice(0,namestr.length-1)
328
+					this.dicList[index].F_DicId = idstr.slice(0, namestr.length - 1)
329
+					this.dicList[index].F_DicName = namestr.slice(0, namestr.length - 1)
317
 				}
330
 				}
318
-				
331
+
319
 			},
332
 			},
320
-			getBBxx(){
333
+			getBBxx() {
321
 				let str
334
 				let str
322
-				if(this.identification == 'JC'){
335
+				if (this.identification == 'JC') {
323
 					str = '急查标本'
336
 					str = '急查标本'
324
 				}
337
 				}
325
-				if(this.identification == 'FJ'){
338
+				if (this.identification == 'FJ') {
326
 					str = '非急查标本'
339
 					str = '非急查标本'
327
 				}
340
 				}
328
-				pageData.getBB(str,(res, data) => {
341
+				pageData.getBB(str, (res, data) => {
329
 					this.dataOrderType = res
342
 					this.dataOrderType = res
330
 				})
343
 				})
331
 			},
344
 			},
332
-			nodeclickMuter(e,index){
345
+			nodeclickMuter(e, index) {
333
 				this.dicList[index].F_DicId = e.value
346
 				this.dicList[index].F_DicId = e.value
334
 				this.dicList[index].F_DicName = e.text
347
 				this.dicList[index].F_DicName = e.text
335
 			},
348
 			},
336
-			nodeclickDept(e,index){	
337
-				this.dicList[index].F_ToDept = e.value
338
-				// if(e.zIndex==0){
339
-				// 	this.changedept = ""
340
-				// 	this.changeindex = ""
341
-				// 	this.dicList[index].F_ToDept = ""
342
-				// }else{
343
-				// 	this.changedept = e.value
344
-				// 	this.changeindex = index
345
-				// 	this.dicList[index].F_ToDept = e.value
346
-				// }			
349
+			nodeclickDept(e, index) {
350
+				if (e.zIndex == 0) {
351
+					this.changedept = ""
352
+					this.changeindex = ""
353
+					this.dicList[index].F_ToDept = ""
354
+				} else {
355
+					this.changedept = e.value
356
+					this.changeindex = index
357
+				}
358
+			},
359
+			popupclosedDeptww() {
360
+				if (this.changeindex) {
361
+					const index = this.changeindex
362
+					this.dicList[index].F_ToDept = this.changedept
363
+				}
364
+				if (this.changeindex === 0) {
365
+					this.dicList = [{
366
+						F_DicId: this.dicList[0].F_DicId,
367
+						F_DicName: this.dicList[0].F_DicName,
368
+						F_Number: this.dicList[0].F_Number,
369
+						F_IsBorrow: this.dicList[0].F_IsBorrow,
370
+						F_ToDept: this.changedept,
371
+					}]
372
+				}
347
 			},
373
 			},
348
 			// 获取科室位置
374
 			// 获取科室位置
349
 			postSelectDicPlace(res) {
375
 			postSelectDicPlace(res) {
355
 				this.fileLists.splice(num, 1)
381
 				this.fileLists.splice(num, 1)
356
 			},
382
 			},
357
 			/* 附件上传 */
383
 			/* 附件上传 */
358
-			onUpload() { 
384
+			onUpload() {
359
 				this.$refs.lFile.upload({
385
 				this.$refs.lFile.upload({
360
 					//替换为你的上传接口地址
386
 					//替换为你的上传接口地址
361
 					url: indexConfig.baseUrl + "/FaultRepair/UploadFile",
387
 					url: indexConfig.baseUrl + "/FaultRepair/UploadFile",
378
 					})
404
 					})
379
 				})
405
 				})
380
 			},
406
 			},
381
-			postImgData(res) {
382
-			},
407
+			postImgData(res) {},
383
 			// 工单类别
408
 			// 工单类别
384
-			postSelectData(e,id,type,ident) {
385
-				console.log(e,ident)
409
+			postSelectData(e, id, type, ident) {
410
+				console.log(e, ident)
386
 				this.identification = ident
411
 				this.identification = ident
387
 				this.flaginfo = String(id)
412
 				this.flaginfo = String(id)
388
 				this.valiFormData.WorkOrderCategory = e
413
 				this.valiFormData.WorkOrderCategory = e
389
-				if(this.flagid.indexOf(this.flaginfo) > -1) {
414
+				if (this.flagid.indexOf(this.flaginfo) > -1) {
390
 					this.dicList = [{
415
 					this.dicList = [{
391
 						F_DicId: 0,
416
 						F_DicId: 0,
392
 						F_DicName: '',
417
 						F_DicName: '',
393
 						F_Number: 0
418
 						F_Number: 0
394
 					}]
419
 					}]
395
-				}else{
420
+				} else {
396
 					this.dicList = 0
421
 					this.dicList = 0
397
 				}
422
 				}
398
 				this.getBBxx()
423
 				this.getBBxx()
399
 			},
424
 			},
400
 			// 综合调度信息
425
 			// 综合调度信息
401
 			postSelectDic(e, index) {
426
 			postSelectDic(e, index) {
402
-				console.log(e,'888999')
427
+				console.log(e, '888999')
403
 				this.dicList[index].F_DicId = e.split(',')[0]
428
 				this.dicList[index].F_DicId = e.split(',')[0]
404
 				this.dicList[index].F_DicName = e.split(',')[1]
429
 				this.dicList[index].F_DicName = e.split(',')[1]
405
 			},
430
 			},
408
 					F_DicId: 0,
433
 					F_DicId: 0,
409
 					F_DicName: '',
434
 					F_DicName: '',
410
 					F_Number: 0,
435
 					F_Number: 0,
411
-					F_ToDept:""
436
+					F_ToDept: ""
412
 				}
437
 				}
413
 				this.dicList.push(params)
438
 				this.dicList.push(params)
414
 
439
 
416
 			minusClck() {
441
 			minusClck() {
417
 				this.dicList.splice(this.dicList.length - 1, 1)
442
 				this.dicList.splice(this.dicList.length - 1, 1)
418
 			},
443
 			},
419
-			clearTagAdmin(value){
420
-				this.userListSelect = this.userListSelect.filter(item => item != value); 
444
+			clearTagAdmin(value) {
445
+				this.userListSelect = this.userListSelect.filter(item => item != value);
421
 			},
446
 			},
422
 			// 申请部门
447
 			// 申请部门
423
 			deptNodeclick(e) {
448
 			deptNodeclick(e) {
439
 					this.getDeptLocation(e.value.split('_')[1])
464
 					this.getDeptLocation(e.value.split('_')[1])
440
 				}
465
 				}
441
 			},
466
 			},
442
-			departSearchTrue(e){
467
+			departSearchTrue(e) {
443
 				this.valiFormData.ApplicationDept = e.value
468
 				this.valiFormData.ApplicationDept = e.value
444
 			},
469
 			},
445
 			popupclosedDept(e) {
470
 			popupclosedDept(e) {
453
 			// 	}
478
 			// 	}
454
 			// },
479
 			// },
455
 			//科室位置
480
 			//科室位置
456
-			getDeptLocation(id){
457
-				this.$http.get("Department/GetModel", {deptid:id}).then((response) => {
481
+			getDeptLocation(id) {
482
+				this.$http.get("Department/GetModel", {
483
+					deptid: id
484
+				}).then((response) => {
458
 					if (response.state.toLowerCase() === "success") {
485
 					if (response.state.toLowerCase() === "success") {
459
 						this.valiFormData.Location = response.data.F_Location
486
 						this.valiFormData.Location = response.data.F_Location
460
 						this.valiFormData.ToPlace = response.data.F_Location
487
 						this.valiFormData.ToPlace = response.data.F_Location
461
-						this.valiFormData.DeptPhone =  response.data.F_OfficeTelephone
488
+						this.valiFormData.DeptPhone = response.data.F_OfficeTelephone
462
 					}
489
 					}
463
 				})
490
 				})
464
 			},
491
 			},
465
 			handleInput(res) {
492
 			handleInput(res) {
466
-				let e = this.$mHelper.getValueByText(res,this.ApplicantData)
493
+				let e = this.$mHelper.getValueByText(res, this.ApplicantData)
467
 				this.valiFormData.Applicant = e
494
 				this.valiFormData.Applicant = e
468
 				this.valiFormData.ApplicantName = res
495
 				this.valiFormData.ApplicantName = res
469
 				const user = this.orderApplicantData.find((o) => {
496
 				const user = this.orderApplicantData.find((o) => {
476
 			},
503
 			},
477
 			// 地址
504
 			// 地址
478
 			getLocation(user) {
505
 			getLocation(user) {
479
-				this.$http.get("UserAccount/GetModel", {usercode: user}).then((response) => {
506
+				this.$http.get("UserAccount/GetModel", {
507
+					usercode: user
508
+				}).then((response) => {
480
 					if (response.state.toLowerCase() === "success") {
509
 					if (response.state.toLowerCase() === "success") {
481
 						this.valiFormData.Location = response.data.F_Location
510
 						this.valiFormData.Location = response.data.F_Location
482
 						this.valiFormData.ToPlace = response.data.F_Location
511
 						this.valiFormData.ToPlace = response.data.F_Location
485
 			},
514
 			},
486
 			// 指派部门
515
 			// 指派部门
487
 			maintenanceNodeclick(e) {
516
 			maintenanceNodeclick(e) {
488
-				if(e) {
517
+				if (e) {
489
 					this.departMain = e.value
518
 					this.departMain = e.value
490
 					pageData.getApplicant(e.value, (res) => {
519
 					pageData.getApplicant(e.value, (res) => {
491
 						this.MaintenancerData = res
520
 						this.MaintenancerData = res
504
 			submit(ref) {
533
 			submit(ref) {
505
 				// console.log(this.dicList)
534
 				// console.log(this.dicList)
506
 				// return
535
 				// return
507
-				if(this.identification === '2001' || this.identification === '2003' || this.identification === 'YQT'|| this.identification === 'JC' || this.identification === 'FJ' || this.identification === '2007'){
508
-					if(this.dicList.length == 0 || (this.dicList.length>0 && !this.dicList[0].F_DicName)){
536
+				if (this.identification === '2001' || this.identification === '2003' || this.identification === 'YQT' ||
537
+					this.identification === 'JC' || this.identification === 'FJ' || this.identification === '2007') {
538
+					if (this.dicList.length == 0 || (this.dicList.length > 0 && !this.dicList[0].F_DicName)) {
509
 						this.$mHelper.toast('请选择对应物资信息')
539
 						this.$mHelper.toast('请选择对应物资信息')
510
 						return
540
 						return
511
 					}
541
 					}
512
 				}
542
 				}
513
-				if(this.identification === '2001' || this.identification === '2003'|| this.identification === 'YQT'){
543
+				if (this.identification === '2001' || this.identification === '2003' || this.identification === 'YQT') {
514
 					const index = this.dicList.findIndex((o) => {
544
 					const index = this.dicList.findIndex((o) => {
515
-					  return !o.F_IsBorrow || !o.F_DicName || !o.F_Number;
545
+						return !o.F_IsBorrow || !o.F_DicName || !o.F_Number;
516
 					});
546
 					});
517
 					if (index >= 0) {
547
 					if (index >= 0) {
518
-					  this.$mHelper.toast('请选择对应物资信息')
519
-					  return;
548
+						this.$mHelper.toast('请选择对应物资信息')
549
+						return;
520
 					}
550
 					}
521
 				}
551
 				}
522
-				if(this.identification === '2007'){
552
+				if (this.identification === '2007') {
523
 					const index = this.dicList.findIndex((o) => {
553
 					const index = this.dicList.findIndex((o) => {
524
-					  return !o.F_ToDept || !o.F_DicName || !o.F_Number;
554
+						return !o.F_ToDept || !o.F_DicName || !o.F_Number;
525
 					});
555
 					});
526
 					if (index >= 0) {
556
 					if (index >= 0) {
527
-					  this.$mHelper.toast('请选择对应物资信息')
528
-					  return;
557
+						this.$mHelper.toast('请选择对应物资信息')
558
+						return;
529
 					}
559
 					}
530
 				}
560
 				}
531
-				if(this.identification === 'JC'||this.identification === 'FJ'){
561
+				if (this.identification === 'JC' || this.identification === 'FJ') {
532
 					const index = this.dicList.findIndex((o) => {
562
 					const index = this.dicList.findIndex((o) => {
533
-					  return !o.F_DicName || !o.F_Number;
563
+						return !o.F_DicName || !o.F_Number;
534
 					});
564
 					});
535
 					if (index >= 0) {
565
 					if (index >= 0) {
536
-					  this.$mHelper.toast('请选择对应物资信息')
537
-					  return;
566
+						this.$mHelper.toast('请选择对应物资信息')
567
+						return;
538
 					}
568
 					}
539
 				}
569
 				}
540
-				if(this.dicList.length == 0 || (this.dicList.length>0 && !this.dicList[0].F_DicName)){
570
+				if (this.dicList.length == 0 || (this.dicList.length > 0 && !this.dicList[0].F_DicName)) {
541
 					this.dicList = null
571
 					this.dicList = null
542
 				}
572
 				}
543
 				this.imgIdList = []
573
 				this.imgIdList = []
544
 				this.disabledButton = true
574
 				this.disabledButton = true
545
-				this.fileLists.forEach(v =>{
575
+				this.fileLists.forEach(v => {
546
 					this.imgIdList.push(v.id)
576
 					this.imgIdList.push(v.id)
547
 				})
577
 				})
548
-				for(var i=0;i<this.dicList.length;i++){
549
-					if(this.dicList[i].F_ToDept){
578
+				for (var i = 0; i < this.dicList.length; i++) {
579
+					if (this.dicList[i].F_ToDept) {
550
 						this.dicList[i].F_ToDept = this.dicList[i].F_ToDept.split('_')[1]
580
 						this.dicList[i].F_ToDept = this.dicList[i].F_ToDept.split('_')[1]
551
 					}
581
 					}
552
 				}
582
 				}
557
 						Applicant: this.valiFormData.Applicant, //申请人
587
 						Applicant: this.valiFormData.Applicant, //申请人
558
 						Phone: this.valiFormData.Phone, //联系电话
588
 						Phone: this.valiFormData.Phone, //联系电话
559
 						Location: this.valiFormData.Location, // 科室位置
589
 						Location: this.valiFormData.Location, // 科室位置
560
-						DeptPhone:this.valiFormData.DeptPhone,
590
+						DeptPhone: this.valiFormData.DeptPhone,
561
 						// ToPlace: this.valiFormData.ToPlace, // 送达地点
591
 						// ToPlace: this.valiFormData.ToPlace, // 送达地点
562
 						Content: this.valiFormData.Content, // 工单内容
592
 						Content: this.valiFormData.Content, // 工单内容
563
 						DealDept: this.valiFormData.DealDept, //	维修部门
593
 						DealDept: this.valiFormData.DealDept, //	维修部门
568
 						// EmergencyTypes: this.valiFormData.EmergencyTypes,
598
 						// EmergencyTypes: this.valiFormData.EmergencyTypes,
569
 						cfnum: this.redPrescriptionNum
599
 						cfnum: this.redPrescriptionNum
570
 					}
600
 					}
571
-					if(this.workorderid) {
601
+					if (this.workorderid) {
572
 						params.WorkOrderCode = this.workorderid
602
 						params.WorkOrderCode = this.workorderid
573
 						params.usertype = 1
603
 						params.usertype = 1
574
-						this.$mHelper.httpPost("Scheduling/UpdateSchedulingWorkOrder",  this.serialize(params), 1, res => this.disabledButton = res)
575
-					}else{
576
-						this.$mHelper.httpPost("Scheduling/AddSchedulingWorkOrder",  this.serialize(params), 1, res => this.disabledButton = res)
604
+						this.$mHelper.httpPost("Scheduling/UpdateSchedulingWorkOrder", this.serialize(params), 1,
605
+							res => this.disabledButton = res)
606
+					} else {
607
+						this.$mHelper.httpPost("Scheduling/AddSchedulingWorkOrder", this.serialize(params), 1,
608
+							res => this.disabledButton = res)
577
 					}
609
 					}
578
 				}).catch(err => {
610
 				}).catch(err => {
579
 					this.disabledButton = false
611
 					this.disabledButton = false
593
 							if (v instanceof Date) {
625
 							if (v instanceof Date) {
594
 								v = parseTime(v)
626
 								v = parseTime(v)
595
 							}
627
 							}
596
-							str.push((v !== null && typeof v === 'object') ? this.serialize(v, k) : encodeURIComponent(k) +'=' + encodeURIComponent(v))
628
+							str.push((v !== null && typeof v === 'object') ? this.serialize(v, k) : encodeURIComponent(k) +
629
+								'=' + encodeURIComponent(v))
597
 						}
630
 						}
598
 					}
631
 					}
599
 				}
632
 				}
606
 				}
639
 				}
607
 				this.$http.get("Scheduling/GetWorkOrder", params).then((response) => {
640
 				this.$http.get("Scheduling/GetWorkOrder", params).then((response) => {
608
 					if (response.state.toLowerCase() === "success") {
641
 					if (response.state.toLowerCase() === "success") {
609
-						this.valiFormData.WorkOrderCategory =  response.data[0].F_WorkOrderCategory // 工单类别
610
-						this.valiFormData.Content =  response.data[0].F_Content // 工单内容
611
-						if(response.data[0].F_ApplicationDept) {
612
-							this.valiFormData.ApplicationDept =  response.data[0].F_ApplicationDept.trim() // 申请部门
642
+						this.valiFormData.WorkOrderCategory = response.data[0].F_WorkOrderCategory // 工单类别
643
+						this.valiFormData.Content = response.data[0].F_Content // 工单内容
644
+						if (response.data[0].F_ApplicationDept) {
645
+							this.valiFormData.ApplicationDept = response.data[0].F_ApplicationDept.trim() // 申请部门
613
 							pageData.getApplicant(this.valiFormData.ApplicationDept, (res) => {
646
 							pageData.getApplicant(this.valiFormData.ApplicationDept, (res) => {
614
 								this.ApplicantData = res
647
 								this.ApplicantData = res
615
 							})
648
 							})
616
-							this.valiFormData.ApplicantName = this.$mHelper.findUserName(this.ApplicantData, response.data[0].F_Applicant)
617
-							this.valiFormData.Applicant =  response.data[0].F_Applicant //申请人
649
+							this.valiFormData.ApplicantName = this.$mHelper.findUserName(this.ApplicantData,
650
+								response.data[0].F_Applicant)
651
+							this.valiFormData.Applicant = response.data[0].F_Applicant //申请人
618
 						}
652
 						}
619
-						this.valiFormData.Phone =  response.data[0].F_Phone // 联系电话
653
+						this.valiFormData.Phone = response.data[0].F_Phone // 联系电话
620
 						this.valiFormData.DeptPhone = response.data[0].F_DeptPhone
654
 						this.valiFormData.DeptPhone = response.data[0].F_DeptPhone
621
-						this.valiFormData.Location =  response.data[0].F_Location 
655
+						this.valiFormData.Location = response.data[0].F_Location
622
 						// this.valiFormData.ToPlace =  response.data[0].F_ToPlace 
656
 						// this.valiFormData.ToPlace =  response.data[0].F_ToPlace 
623
-						this.valiFormData.File =  response.data[0].F_File 
657
+						this.valiFormData.File = response.data[0].F_File
624
 						// this.valiFormData.EmergencyTypes = response.data[0].F_EmergencyTypes
658
 						// this.valiFormData.EmergencyTypes = response.data[0].F_EmergencyTypes
625
 						const ps = []
659
 						const ps = []
626
 						response.data[0].PSInfo.forEach(v => {
660
 						response.data[0].PSInfo.forEach(v => {
630
 								F_Number: v.F_Number
664
 								F_Number: v.F_Number
631
 							})
665
 							})
632
 						})
666
 						})
633
-						this.dicList =  ps
667
+						this.dicList = ps
634
 						if (response.data[0].FileUrl) {
668
 						if (response.data[0].FileUrl) {
635
 							response.data[0].FileUrl.forEach((v, n) => {
669
 							response.data[0].FileUrl.forEach((v, n) => {
636
 								//详情图片回显
670
 								//详情图片回显
638
 									url: v.F_FileUrl,
672
 									url: v.F_FileUrl,
639
 									extname: v.F_FileType,
673
 									extname: v.F_FileType,
640
 									name: v.F_FileName.substring(19),
674
 									name: v.F_FileName.substring(19),
641
-									id:v.F_FileId
675
+									id: v.F_FileId
642
 								})
676
 								})
643
 							})
677
 							})
644
 						}
678
 						}
658
 
692
 
659
 <style lang="scss" scoped>
693
 <style lang="scss" scoped>
660
 	@import '@/common/addFormDeep.scss';
694
 	@import '@/common/addFormDeep.scss';
661
-	
695
+
662
 	.wrapper {
696
 	.wrapper {
663
 		padding: 10px 15px;
697
 		padding: 10px 15px;
664
 		background-color: #fff;
698
 		background-color: #fff;