|
|
@@ -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
|
},
|