|
|
@ -843,12 +843,15 @@ export default { |
|
|
|
|
|
|
|
|
//读取身份证信息 |
|
|
//读取身份证信息 |
|
|
peopleIcCard() { |
|
|
peopleIcCard() { |
|
|
|
|
|
if(!this.$peisAPI) { |
|
|
|
|
|
this.$message.info("此功能,需要在壳客户端才可运行!") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
this.$peisAPI.peopleIcCard().then(res => { |
|
|
this.$peisAPI.peopleIcCard().then(res => { |
|
|
//console.log('peopleIcCard',res) |
|
|
//console.log('peopleIcCard',res) |
|
|
let lres = JSON.parse(res) |
|
|
let lres = JSON.parse(res) |
|
|
if (lres.code && lres.code.toLowerCase() == 'success') { |
|
|
|
|
|
this.projPriv.idNos = lres |
|
|
|
|
|
let idNos = parsIcCardtoLocal(this.projPriv.idNos, this.dict.sex, this.dict.nation) |
|
|
|
|
|
|
|
|
if (lres.code >= 0) { |
|
|
|
|
|
let idNos = parsIcCardtoLocal(lres.data, this.dict.sex, this.dict.nation) |
|
|
this.form.patientName = idNos.Name |
|
|
this.form.patientName = idNos.Name |
|
|
this.form.birthDate = idNos.birthDate |
|
|
this.form.birthDate = idNos.birthDate |
|
|
this.form.sexId = idNos.sexId |
|
|
this.form.sexId = idNos.sexId |
|
|
@ -1191,13 +1194,13 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//拍照(已废弃) |
|
|
//拍照(已废弃) |
|
|
openCamera() { |
|
|
|
|
|
if (!this.form.id) { |
|
|
|
|
|
alert("请先保存人员信息"); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
this.patientRegister.cameraVisble = true; |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// openCamera() { |
|
|
|
|
|
// if (!this.form.id) { |
|
|
|
|
|
// alert("请先保存人员信息"); |
|
|
|
|
|
// return; |
|
|
|
|
|
// } |
|
|
|
|
|
// this.patientRegister.cameraVisble = true; |
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
//拍照(调壳程序) |
|
|
//拍照(调壳程序) |
|
|
photoGrah() { |
|
|
photoGrah() { |
|
|
@ -1205,6 +1208,10 @@ export default { |
|
|
alert("请先保存人员信息"); |
|
|
alert("请先保存人员信息"); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
if(!this.$peisAPI) { |
|
|
|
|
|
this.$message.info("此功能,需要在壳客户端才可运行!") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
this.$peisAPI.photoGrah() |
|
|
this.$peisAPI.photoGrah() |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
console.log(res) |
|
|
console.log(res) |
|
|
@ -1250,6 +1257,10 @@ export default { |
|
|
this.$message.info("人员信息尚未保存,不可执行此操作!"); |
|
|
this.$message.info("人员信息尚未保存,不可执行此操作!"); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
if(!this.$peisAPI) { |
|
|
|
|
|
this.$message.info("此功能,需要在壳客户端才可运行!") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
let token = localStorage.getItem('token'); |
|
|
let token = localStorage.getItem('token'); |
|
|
let user = localStorage.getItem('user'); |
|
|
let user = localStorage.getItem('user'); |
|
|
@ -1290,7 +1301,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
if (res.toLowerCase() == 'success') { |
|
|
|
|
|
|
|
|
if (res.code != -1) { |
|
|
//更新打印次数 |
|
|
//更新打印次数 |
|
|
return postapi('/api/app/patientregister/updatepatientregisterguideprinttimesmany', [this.form.id]) |
|
|
return postapi('/api/app/patientregister/updatepatientregisterguideprinttimesmany', [this.form.id]) |
|
|
} |
|
|
} |
|
|
@ -1363,6 +1374,10 @@ export default { |
|
|
this.$message.info("人员信息尚未保存,不可执行此操作!"); |
|
|
this.$message.info("人员信息尚未保存,不可执行此操作!"); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
if(!this.$peisAPI) { |
|
|
|
|
|
this.$message.info("此功能,需要在壳客户端才可运行!") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
let token = localStorage.getItem('token'); |
|
|
let token = localStorage.getItem('token'); |
|
|
let user = localStorage.getItem('user'); |
|
|
let user = localStorage.getItem('user'); |
|
|
@ -1401,7 +1416,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
if (res.toLowerCase() == 'success') { |
|
|
|
|
|
|
|
|
if (res.code != -1) { |
|
|
//更新打印状态 /api/app/lisrequest/updatelisrequestisprint |
|
|
//更新打印状态 /api/app/lisrequest/updatelisrequestisprint |
|
|
// { |
|
|
// { |
|
|
// "operateType": 0, 操作类型(1.按PatientRegisterId 2.按LisRequestId) |
|
|
// "operateType": 0, 操作类型(1.按PatientRegisterId 2.按LisRequestId) |
|
|
|