miaofuhao 10 miesięcy temu
rodzic
commit
562bb4e9e4

+ 64 - 9
CallCenterWeb.UI/RMYY/src/components/workOrder/information/addOrEditInfOrder.vue

@@ -462,7 +462,7 @@
462 462
               </el-col>
463 463
               <el-col :span="12">
464 464
                 <el-form-item label="患者电话">
465
-                  <el-input v-model="patientMsgXZ[currentIndexXZ].tel" placeholder="请输入患者电话" />
465
+                  <el-input v-model="patientMsgXZ[currentIndexXZ].tel" placeholder="请输入患者电话" @change="XzPatientTelChange"/>
466 466
                 </el-form-item>
467 467
               </el-col>
468 468
               <el-col :span="12">
@@ -765,7 +765,7 @@ import {
765 765
   getClassByDeptId,
766 766
   GetDicValue
767 767
 } from '@/api/commonAPI'
768
-import { GetPatientModel, GetModelList } from '@/api/callScreen/callScreen'
768
+import { GetPatientModel, GetModelList,GetRcord } from '@/api/callScreen/callScreen'
769 769
 import { GetCompleteCustomer, GetLsyyxxList } from '@/api/customerManagement/customerList'
770 770
 import { addCooperate } from '@/api/systemSetup/roleSetting/hospitalArea'
771 771
 import { encrypt, decrypt } from '@/utils/secretKey'
@@ -823,6 +823,8 @@ export default {
823 823
   data() {
824 824
     return {
825 825
       // 下转
826
+      hismsg:{},
827
+      zhuyuanArr:[],
826 828
       dynamicTagsXZ: ['患者1'],
827 829
       currentIndexXZ: 0,
828 830
       patientMsgXZ: [
@@ -1305,7 +1307,7 @@ export default {
1305 1307
         this.patientMsgAll[this.currentIndex].F_nl = this.getIdCardAge(e)
1306 1308
         this.patientMsgAll[this.currentIndex].F_Sex = this.getIdCardSex(e)
1307 1309
         this.ruleForm.patientNl = this.getIdCardAge(e)
1308
-        this.ruleForm.F_Sex = this.getIdCardAge(e)
1310
+        this.ruleForm.F_Sex = this.getIdCardSex(e)
1309 1311
         this.getModelData(e)
1310 1312
       } else {
1311 1313
         this.$message.error('身份证号位数不正确')
@@ -1443,6 +1445,54 @@ export default {
1443 1445
     patientGzyqChangeXZ(e) {
1444 1446
       console.log('patientGzyqChangeXZ', e)
1445 1447
     },
1448
+    XzPatientTelChange(e){
1449
+      console.log('XzPatientTelChange',e)
1450
+      // this.getHisInfo(e)
1451
+    },
1452
+    getHisInfo(lxdh){
1453
+      GetModelList({
1454
+          zsyh: window.localStorage.getItem('zsyh'),
1455
+          jzlx: window.localStorage.getItem('jzlx'),
1456
+          lxdh
1457
+      }).then((response) => {
1458
+        this.loading = false
1459
+        if (response.rows.length > 0) {
1460
+          this.hismsg = response.rows[0]
1461
+          this.patientMsgXZ[this.currentIndexXZ].name = this.hismsg.hzxm || ''
1462
+          if (this.hismsg.zjhm) {
1463
+            this.patientMsgXZ[this.currentIndexXZ].F_nl = this.getIdCardAge(this.hismsg.zjhm)
1464
+            this.patientMsgXZ[this.currentIndexXZ].F_Sex = this.getIdCardSex(this.hismsg.zjhm)
1465
+          }
1466
+          console.log(response, 'response')
1467
+          GetRcord({
1468
+              PatientClass: "I",
1469
+              GlobalPID: response.rows[0].zsyh
1470
+          }).then((res) => {
1471
+            if (res.QueryPatientVisitByIDResponse.patientVisits == '') {
1472
+              return
1473
+            }
1474
+            const Obj = res.QueryPatientVisitByIDResponse.patientVisits.patientVisit
1475
+            if (Obj instanceof Array === true) {
1476
+              this.zhuyuanArr =
1477
+                res.QueryPatientVisitByIDResponse.patientVisits.patientVisit
1478
+            } else {
1479
+              this.zhuyuanArr = []
1480
+              this.zhuyuanArr.push(
1481
+                res.QueryPatientVisitByIDResponse.patientVisits.patientVisit
1482
+              )
1483
+            }console.log(this.$store.getters.deptmap)
1484
+            // const getPointOfCare =  this.$store.getters.deptmap[this.zhuyuanArr[0].AssignedPatientLocation.PointOfCare].ids
1485
+            console.log('getPointOfCare',this.zhuyuanArr[0].AssignedPatientLocation.PointOfCare)
1486
+            // this.patientMsgXZ[this.currentIndexXZ].zyks = getPointOfCare // PointOfCareName
1487
+            this.patientMsgXZ[this.currentIndexXZ].inpatientnum = this.zhuyuanArr[0].VisitNumber.CardID
1488
+            this.patientMsgXZ[this.currentIndexXZ].guanchuangyisheng = this.zhuyuanArr[0].AttendingDoctor.FamilyName
1489
+
1490
+          })
1491
+
1492
+        }
1493
+      })
1494
+    },
1495
+    
1446 1496
     addPatientXZ() {
1447 1497
       var item = this.dynamicTagsXZ[this.dynamicTagsXZ.length - 1]
1448 1498
       const index = Number(item.substr(item.length - 1, 1)) + 1
@@ -2275,18 +2325,23 @@ export default {
2275 2325
       this.ruleForm.F_IDNumber = ''
2276 2326
       this.ruleForm.F_AppointmentTime = ''
2277 2327
     },
2278
-    postBlackPhone() {
2328
+    postBlackPhone(e) {
2279 2329
       this.$bus.$emit('hzblackphone', this.ruleForm.F_Phon)
2280
-    },
2281
-    storageIdcard() {
2282
-      this.$bus.$emit('idcard', this.ruleForm.F_IDNumber)
2283
-    },
2284
-    storagephone() {
2330
+      console.log(e,this.ruleForm.F_Phon)
2285 2331
       this.$bus.$emit('hzphone', this.ruleForm.F_Phon)
2286 2332
       if (this.orderTypeSzData.indexOf(this.worktypeInfo3) !== -1 || this.worktypeInfo3 == 'huizhen') {
2287 2333
         this.getYQmsg()
2288 2334
       }
2289 2335
     },
2336
+    storageIdcard() {
2337
+      this.$bus.$emit('idcard', this.ruleForm.F_IDNumber)
2338
+    },
2339
+    storagephone(e,data) {
2340
+      // this.$bus.$emit('hzphone', this.ruleForm.F_Phon)
2341
+      // if (this.orderTypeSzData.indexOf(this.worktypeInfo3) !== -1 || this.worktypeInfo3 == 'huizhen') {
2342
+      //   this.getYQmsg()
2343
+      // }
2344
+    },
2290 2345
     storagename() {
2291 2346
       this.$bus.$emit('hzname', this.ruleForm.F_FullName)
2292 2347
     },

+ 0 - 1
CallCenterWeb.UI/RMYY/src/store/modules/deptment.js

@@ -46,7 +46,6 @@ function getDeptmentMap(depts, pName, deptMap, ids = [], deptcode) {
46 46
     } else {
47 47
       if (!deptMap[element.id]) {
48 48
         const thisName = pName + '/' + element.text
49
-
50 49
         const thisIds = ids.concat([element.id])
51 50
         // debugger
52 51
         // console.log(thisIds, ids);

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

@@ -39,6 +39,7 @@
39 39
         </div>
40 40
         <div class="itemLine2">
41 41
           <div class="lineSpan1">挂号号序:{{ item.ghhx }}</div>
42
+          <div class="lineSpan2">挂号费用:{{ item.zje }}¥</div>
42 43
           <div class="lineSpan2">状态:{{ item.hxzt ? item.hxzt : '未知' }}</div>
43 44
           <div class="lineSpan3">时段: {{ item.kssj ? item.kssj : '未知' }} - {{ item.jssj ? item.jssj : '未知' }}</div>
44 45
           <div class="lineSpan4">
@@ -445,6 +446,8 @@ export default {
445 446
       // this.tableObj.ghf = resultItem.ghf
446 447
       this.tableObj.zzlxmc = resultItem.zzlxmc
447 448
       this.tableObj.pbxh = resultItem.pbxh
449
+      this.tableObj.zje = resultItem.zje
450
+      
448 451
       // this.tableObj.doctorName = this.findItemById(e,this.doctorarr,'ysmc','ysdm')
449 452
       const params = {
450 453
         pbxh: e,

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

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

+ 1 - 1
CallCenterWeb.UI/RMYY/static/config/serverConfig.json

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "NODE_ENV": "development",
3
-  "BASE_API": "https://zyfb.zzrmyy.com/",
3
+  "BASE_API": "http://192.168.1.37:8000/",
4 4
   "TTS_API": "http://39.164.159.192:8000/",
5 5
   "IVR_API":"http://172.16.10.21:9000/",
6 6
   "CORP_ID":"dingbb1314af9ad8e421f2c783f7214b6d69",