Selaa lähdekoodia

预约 bug fix

miaofuhao 11 kuukautta sitten
vanhempi
commit
0ae4000866

+ 21 - 2
CallCenterWeb.UI/RMYY/src/views/callScreen/components/RegList.vue

@@ -365,6 +365,13 @@ export default {
365 365
     },
366 366
     // 获取部门数据,院区改变时触发
367 367
     handleHospital(e) {
368
+      this.searchData.deptid = ''
369
+      this.searchData.doctorid = ''
370
+      this.searchData.hyId = ''
371
+      this.tableData = []
372
+      if (!e) {
373
+        return
374
+      }
368 375
       this.tableObj.hosName = this.findNameById(e, this.hosarr, 'yymc', 'yydm')
369 376
       this.tableObj.yydm = e
370 377
       const params = {
@@ -382,6 +389,12 @@ export default {
382 389
     },
383 390
     // 获取医生数据,部门改变时触发
384 391
     handleDept(e) {
392
+      this.searchData.doctorid = ''
393
+      this.searchData.hyId = ''
394
+      this.tableData = []
395
+      if (!e) {
396
+        return
397
+      }
385 398
       console.log(e)
386 399
       const newValue = e.split('_')[0]
387 400
       this.tableObj.deptName = this.findNameById(newValue, this.deptarr, 'ksmc', 'ksdm')
@@ -399,12 +412,15 @@ export default {
399 412
     },
400 413
     // 获取号源数据,医生改变时触发
401 414
     handleDoctor(e) {
415
+      this.searchData.hyId = ''
416
+      this.tableData = []
417
+      if (!e) {
418
+        return
419
+      }
402 420
       const resultItem = this.findItemById(e, this.doctorarr, 'ysdm')   
403 421
       this.tableObj.doctorName = resultItem.ysmc
404 422
       this.tableObj.yszc = resultItem.yszc
405 423
       this.tableObj.czlx = this.rankidObj[resultItem.czlx]  
406
-      
407
-
408 424
       const params = {
409 425
         ysdm: e,
410 426
         ksrq: this.searchData.searchTime,
@@ -419,6 +435,9 @@ export default {
419 435
     },
420 436
     // 获取号序数据,号源改变时触发
421 437
     handleHy(e) {
438
+      if (!e) {
439
+        return
440
+      }
422 441
       const resultItem = this.findItemById(e, this.hytarr, 'pbxh')
423 442
       this.hyName = e
424 443
       // this.tableObj.ghf = resultItem.ghf