|
|
|
@ -46,7 +46,7 @@ |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">身份证号</span> |
|
|
|
<el-button type="primary" style="margin-left: 5px;margin-top: 3px; height: 22px;padding: 2px 2px;" @click="readIdCard">读身份证</el-button> |
|
|
|
<el-input placeholder="身份证号" v-model="patientRegister.query.idCardNo" size="small" clearable |
|
|
|
style="width: 150px" /> |
|
|
|
</div> |
|
|
|
@ -121,7 +121,7 @@ |
|
|
|
<script> |
|
|
|
import { mapState } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { arrayExistObj,deepCopy } from "../../utlis/proFunc" |
|
|
|
import { arrayExistObj,deepCopy ,parsIcCardtoLocal} from "../../utlis/proFunc" |
|
|
|
import CusOrgOCX from "./CusOrgOCX.vue" |
|
|
|
|
|
|
|
export default { |
|
|
|
@ -210,6 +210,38 @@ export default { |
|
|
|
]; |
|
|
|
}, |
|
|
|
|
|
|
|
//读身份证 |
|
|
|
readIdCard() { |
|
|
|
if (!this.$peisAPI) { |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
this.$peisAPI.peopleIcCard().then(res => { |
|
|
|
console.log('peopleIcCard', res) |
|
|
|
let lres = JSON.parse(res) |
|
|
|
if (lres.code > -1) { |
|
|
|
let idNos = parsIcCardtoLocal(lres.data, this.dict.sex, this.dict.nation) |
|
|
|
|
|
|
|
this.patientRegister.query.patientRegisterNo = '' |
|
|
|
this.patientRegister.query.patientNo = '' |
|
|
|
this.patientRegister.query.pacsNo = '' |
|
|
|
this.patientRegister.query.lisNo = '' |
|
|
|
|
|
|
|
this.patientRegister.query.patientName = idNos.Name |
|
|
|
this.patientRegister.query.idNo = idNos.IDCode |
|
|
|
this.patientRegister.query.times++; |
|
|
|
} else { |
|
|
|
this.$message.error({ showClose: true, message: lres.message }) |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
this.$message.error({ showClose: true, message: `读取身份证失败,原因:${err}` }) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 体检结论分类 |
|
|
|
medicalConclusionHandle() { |
|
|
|
// <el-option-group |
|
|
|
|