Bladeren bron

预约bug修复

miaofuhao 11 maanden geleden
bovenliggende
commit
c3600ad768

BIN
CallCenterWeb.UI/RMYY/0304-1.zip


BIN
CallCenterWeb.UI/RMYY/0304-2dist.zip


BIN
CallCenterWeb.UI/RMYY/0307dist.zip


BIN
CallCenterWeb.UI/RMYY/0312-1dist.zip


+ 0 - 4
CallCenterWeb.UI/RMYY/debug.log

@@ -1,4 +0,0 @@
1
-[0811/162409.052:ERROR:process_info.cc(329)] VirtualQueryEx: 拒绝访问。 (0x5)
2
-[0811/162409.056:ERROR:process_info.cc(556)] ReadMemoryInfo failed
3
-[0811/162409.056:ERROR:scoped_process_suspend.cc(40)] NtResumeProcess: 已尝试访问正在退出的过程。 (0xc000010a)
4
-[1015/091639.060:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3)

+ 0 - 0
CallCenterWeb.UI/RMYY/dist.zip


+ 3 - 3
CallCenterWeb.UI/RMYY/src/views/callScreen/components/NoRegList.vue

@@ -34,9 +34,9 @@
34 34
         <div class="itemLine2">
35 35
           <div class="lineSpan1">{{item.F_Hospital}}</div>
36 36
           <div class="lineSpan2">{{item.F_Dept}}</div>
37
-          <div class="lineSpan3">急诊医生:{{item.F_Doctor}}</div>
38
-          <div class="lineSpan3">预约时间:{{item.F_RegisterDate}}</div>
39
-          <div class="lineSpan4">挂号费用:{{item.F_Price}}</div>
37
+          <div class="lineSpan3">医生:{{item.F_Doctor}}</div>
38
+          <div class="lineSpan3">预约时间:{{item.F_RegisterDate}}   {{item.F_RegisterTimeRange}}</div>
39
+          <!-- <div class="lineSpan4">挂号费用:{{item.F_RegisterTimeRange}}</div> -->
40 40
           <div class="lineSpan4">
41 41
             <el-button class="btn" size="small" type="primary" @click="handleReg(item)">取消预约</el-button>
42 42
           </div>

+ 41 - 51
CallCenterWeb.UI/RMYY/src/views/callScreen/components/RegList.vue

@@ -1,21 +1,21 @@
1 1
 <template>
2 2
   <div class="app-container">
3 3
     <div class="filter-container" style="margin-top: 10px">
4
-      <el-date-picker v-model="searchData.searchTime" type="date" class="filter-item" value-format="yyyy-MM-dd"
5
-        size="medium" style="width: 150px;" clearable placeholder="选择日期" />
6
-      <el-select v-model="searchData.hosid" size="medium" class="filter-item" style="width: 150px;" clearable
4
+      <el-date-picker v-model="searchData.searchTime" type="date" class="search-item" value-format="yyyy-MM-dd"
5
+        size="medium" clearable placeholder="选择日期" />
6
+      <el-select v-model="searchData.hosid" size="medium" class="search-item" clearable
7 7
         placeholder="请选择院区" @change="handleHospital">
8 8
         <el-option v-for="(item, index) in hosarr" :key="index" :label="item.yymc" :value="item.yydm" />
9 9
       </el-select>
10
-      <el-select v-model="searchData.deptid" size="medium" class="filter-item" style="width: 150px;" clearable
10
+      <el-select v-model="searchData.deptid" size="medium" class="search-item" clearable filterable
11 11
         placeholder="请选择科室" @change="handleDept">
12
-        <el-option v-for="(item, index) in deptarr" :key="index" :label="item.yjksmc" :value="item.yjksdm" />
12
+        <el-option v-for="(item, index) in deptarr" :key="index" :label="item.ksmc+'-'+rankidObj[item.czlx]" :value="item.ksdm +'_'+ item.czlx" />
13 13
       </el-select>
14
-      <el-select v-model="searchData.doctorid" size="medium" class="filter-item" style="width: 150px;" clearable
14
+      <el-select v-model="searchData.doctorid" size="medium" class="search-item" clearable filterable
15 15
         placeholder="请选择医生" @change="handleDoctor">
16 16
         <el-option v-for="(item, index) in doctorarr" :key="index" :label="item.ysmc" :value="item.ysdm" />
17 17
       </el-select>
18
-      <el-select v-model="searchData.hyId" size="medium" class="filter-item" style="width: 150px;" clearable
18
+      <el-select v-model="searchData.hyId" size="medium" class="search-item" clearable filterable
19 19
         placeholder="请选择号源" @change="handleHy">
20 20
         <el-option v-for="(item, index) in hytarr" :key="index" :label="item.zzlxmc" :value="item.pbxh" />
21 21
       </el-select>
@@ -35,7 +35,7 @@
35 35
           <div class="lineSpan1">{{ item.hosName }}</div>
36 36
           <div class="lineSpan2">{{ item.deptName ? item.deptName : '未知' }}</div>
37 37
           <div class="lineSpan3">坐诊时间:{{ item.zzlxmc ? item.zzlxmc : '未知' }}</div>
38
-          <div class="lineSpan4">挂号费用:{{ item.ghf }}</div>
38
+          <!-- <div class="lineSpan4">挂号费用:{{ item.ghf }}</div> -->
39 39
         </div>
40 40
         <div class="itemLine2">
41 41
           <div class="lineSpan1">挂号号序:{{ item.ghhx }}</div>
@@ -63,7 +63,7 @@
63 63
         <el-row>
64 64
           <el-col :span="20">
65 65
             <el-form-item label="患者姓名">
66
-              <el-input v-model="ruleForm.patientName" placeholder="请输入患者姓名" @change="handlePatient($event.target.value, 'patientName')" />
66
+              <el-input v-model="ruleForm.patientName" placeholder="请输入患者姓名" @change="handlePatient($event, 'patientName')" />
67 67
             </el-form-item>
68 68
           </el-col>
69 69
         </el-row>
@@ -71,7 +71,7 @@
71 71
         <el-row>
72 72
           <el-col :span="20">
73 73
             <el-form-item label="身份证号">
74
-              <el-input v-model="ruleForm.identityCard" placeholder="请输入身份证号"  @change="handlePatient($event.target.value, 'identityCard')"/>
74
+              <el-input v-model="ruleForm.identityCard" placeholder="请输入身份证号"  @change="handlePatient($event, 'identityCard')"/>
75 75
             </el-form-item>
76 76
           </el-col>
77 77
         </el-row>
@@ -254,7 +254,6 @@ export default {
254 254
   },
255 255
   methods: {
256 256
     submitForm() {
257
-      console.log(this.ruleForm)
258 257
       const params = this.ruleForm
259 258
       if(!this.ruleForm.patientName){
260 259
         this.$message.error('请填入患者姓名')
@@ -281,11 +280,8 @@ export default {
281 280
           this.$message.error('请填入监护人证件号')
282 281
           return
283 282
         }
284
-      }
285
-      console.log(params)
286
-      
283
+      }      
287 284
       GetYygh(params).then((res) => {
288
-        console.log(res)
289 285
         this.drawer = false
290 286
         this.handleHy(this.hyName)
291 287
         this.$message.success('预约成功')
@@ -298,18 +294,12 @@ export default {
298 294
       this.ruleForm.yyhx = item.ghhx // 预约号序
299 295
       this.ruleForm.pbxh = item.pbxh // 排班序号
300 296
       this.ruleForm.identityCard = decrypt(window.localStorage.getItem('huancardShow')) // 身份证号
301
-      this.ruleForm.identityCard = '411282202009122320'
302
-      if (this.ruleForm.identityCard) {
303
-        this.ruleForm.sex  = this.parseIDCard(this.ruleForm.identityCard).gender
304
-        this.ruleFormAge  = this.parseIDCard(this.ruleForm.identityCard).age
305
-        this.ruleForm.birthday  = this.parseIDCard(this.ruleForm.identityCard).birthDate
306
-      }
307
-      
297
+      // this.ruleForm.identityCard = '411282202009122320'
298
+      this.changeIDcard()
308 299
       this.ruleForm.patientName = window.localStorage.getItem('huanxm') // 患者姓名
309 300
       // this.ruleForm.pid  患者id
310 301
       this.ruleForm.tel = this.callinNum // 患者电话
311 302
       this.ruleForm.yydm = item.yydm // 院区代码
312
-
313 303
       this.getPatient()
314 304
       // 患者部分
315 305
       // this.ruleForm.pid = decrypt(window.localStorage.getItem('huancardShow')
@@ -325,8 +315,10 @@ export default {
325 315
       }
326 316
       if (key === 'identityCard') {
327 317
         this.ruleForm.identityCard = value
318
+        this.changeIDcard()
328 319
       }
329
-      getPatient()
320
+      console.log(value,key)
321
+      // this.getPatient()
330 322
     },
331 323
     // 获取院区数据
332 324
     getPatient() {
@@ -339,28 +331,28 @@ export default {
339 331
         getZLId(params).then((res) => {
340 332
           this.hosarr = []
341 333
           if (res.patinfos.length > 0) {
342
-            
343 334
             const resultData = res.patinfos[0]
344 335
             this.ruleForm.pid = resultData.patid
345 336
             this.ruleForm.identityCard = resultData.zjh
346 337
             this.ruleForm.patientName = resultData.hzxm
347
-            if (this.ruleForm.identityCard) {
348
-              this.ruleForm.sex  = this.parseIDCard(this.ruleForm.identityCard).gender
349
-              this.ruleFormAge  = this.parseIDCard(this.ruleForm.identityCard).age
350
-              this.ruleForm.birthday  = this.parseIDCard(this.ruleForm.identityCard).birthDate
351
-            }
352
-            if (this.ruleFormAge <= 12) {
353
-              this.ruleForm.lxrxm = resultData.lxrxm
354
-              this.ruleForm.lxrdh = resultData.lxrdh
355
-              this.ruleForm.lxrdh = resultData.lxrdh
356
-            }
357
-            
358
-
338
+            this.changeIDcard()
359 339
           }
360 340
         })
361 341
       }
362 342
       
363 343
     },
344
+    changeIDcard() {
345
+      if (this.ruleForm.identityCard) {
346
+        this.ruleForm.sex  = this.parseIDCard(this.ruleForm.identityCard).gender
347
+        this.ruleFormAge  = this.parseIDCard(this.ruleForm.identityCard).age
348
+        this.ruleForm.birthday  = this.parseIDCard(this.ruleForm.identityCard).birthDate
349
+      }
350
+      if (this.ruleFormAge <= 12) {
351
+        this.ruleForm.lxrxm = resultData.lxrxm
352
+        this.ruleForm.lxrdh = resultData.lxrdh
353
+        this.ruleForm.lxrdh = resultData.lxrdh
354
+      }
355
+    },
364 356
     // 获取院区数据
365 357
     getHospital() {
366 358
       const params = {}
@@ -373,7 +365,6 @@ export default {
373 365
     },
374 366
     // 获取部门数据,院区改变时触发
375 367
     handleHospital(e) {
376
-      console.log(e)
377 368
       this.tableObj.hosName = this.findNameById(e, this.hosarr, 'yymc', 'yydm')
378 369
       this.tableObj.yydm = e
379 370
       const params = {
@@ -383,7 +374,6 @@ export default {
383 374
       }
384 375
       GetRegDept(params).then((res) => {
385 376
         this.deptarr = []
386
-        console.log(res)
387 377
         if (res.length > 0) {
388 378
           this.deptarr = res
389 379
         }
@@ -393,9 +383,10 @@ export default {
393 383
     // 获取医生数据,部门改变时触发
394 384
     handleDept(e) {
395 385
       console.log(e)
396
-      this.tableObj.deptName = this.findNameById(e, this.deptarr, 'yjksmc', 'yjksdm')
386
+      const newValue = e.split('_')[0]
387
+      this.tableObj.deptName = this.findNameById(newValue, this.deptarr, 'ksmc', 'ksdm')
397 388
       const params = {
398
-        ksdm: e,
389
+        ksdm: newValue,
399 390
         ksrq: this.searchData.searchTime,
400 391
         jsrq: this.searchData.searchTime,
401 392
         yydm: this.searchData.hosid
@@ -408,11 +399,10 @@ export default {
408 399
     },
409 400
     // 获取号源数据,医生改变时触发
410 401
     handleDoctor(e) {
411
-      console.log(e)
412
-      const resultItem = this.findItemById(e, this.doctorarr, 'ysdm')
402
+      const resultItem = this.findItemById(e, this.doctorarr, 'ysdm')   
413 403
       this.tableObj.doctorName = resultItem.ysmc
414 404
       this.tableObj.yszc = resultItem.yszc
415
-      this.tableObj.czlx = this.rankidObj[resultItem.czlx]
405
+      this.tableObj.czlx = this.rankidObj[resultItem.czlx]  
416 406
       
417 407
 
418 408
       const params = {
@@ -429,7 +419,6 @@ export default {
429 419
     },
430 420
     // 获取号序数据,号源改变时触发
431 421
     handleHy(e) {
432
-      console.log(e)
433 422
       const resultItem = this.findItemById(e, this.hytarr, 'pbxh')
434 423
       this.hyName = e
435 424
       this.tableObj.ghf = resultItem.ghf
@@ -454,8 +443,6 @@ export default {
454 443
             const resultObj = { ...this.tableObj, ...newObj }
455 444
             this.tableData.push(resultObj)
456 445
           });
457
-          console.log(this.tableData)
458
-
459 446
         }
460 447
       })
461 448
     },
@@ -481,9 +468,6 @@ export default {
481 468
         birthDate = `${idCard.slice(6, 10)}-${idCard.slice(10, 12)}-${idCard.slice(12, 14)}`;
482 469
         // 提取第 17 位数字判断性别,奇数为男性,偶数为女性
483 470
         const genderCode = parseInt(idCard[16], 10);
484
-        console.log(idCard)
485
-        console.log(idCard[16])
486
-        console.log(genderCode)
487 471
         gender = genderCode % 2 === 1 ? '男' : '女';
488 472
       } else if (idCard.length === 15) {
489 473
         // 15 位身份证号码解析
@@ -520,7 +504,13 @@ export default {
520 504
 }
521 505
 </script>
522 506
 
523
-<style rel="stylesheet/scss" lang="scss">
507
+<style rel="stylesheet/scss" lang="scss" scoped>
508
+.filter-container .search-item {
509
+  margin-left: 10px;
510
+  margin-bottom: 10px;
511
+  width: 230px;
512
+}
513
+
524 514
 .regList {
525 515
   height: 590px;
526 516
   overflow-y: auto;

+ 1 - 1
CallCenterWeb.UI/RMYY/src/views/callScreen/components/callScreen.vue

@@ -180,7 +180,7 @@ export default {
180 180
       }
181 181
     })
182 182
     this.callinNum = this.telCallNum // 来电号码  $route.params.telInNumber
183
-    this.callinNum = '15638114211' // 来电号码  $route.params.telInNumber
183
+    // this.callinNum = '15638114211' // 来电号码  $route.params.telInNumber
184 184
     this.ldphone = this.$route.params.telInNumber
185 185
     if (this.$route.params.callid) {
186 186
       this.callinCallid = this.$route.params.callid.toString() // 来电callid  $route.params.callid