|
|
|
@ -6,10 +6,10 @@ |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">登记日期:</span> |
|
|
|
<el-date-picker v-model="patientRegister.query.startDate" type="date" placeholder="起始日期" size="small" |
|
|
|
style="width:90px;" value-format="yyyy-MM-dd"/> |
|
|
|
style="width:90px;" value-format="yyyy-MM-dd" /> |
|
|
|
<span class="spanClass">至</span> |
|
|
|
<el-date-picker v-model="patientRegister.query.endDate" type="date" placeholder="截止日期" size="small" |
|
|
|
style="width:90px;" value-format="yyyy-MM-dd"/> |
|
|
|
style="width:90px;" value-format="yyyy-MM-dd" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span class="spanClass">条码号:</span> |
|
|
|
@ -114,7 +114,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
...mapState(["window", "dict","dataTransOpts", "patientRegister", "customerOrg"]), |
|
|
|
...mapState(["window", "dict", "dataTransOpts", "patientRegister", "customerOrg"]), |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
checkPagePriv, |
|
|
|
@ -123,7 +123,7 @@ export default { |
|
|
|
if (!customerOrgId || customerOrgId == this.dict.personOrgId) { |
|
|
|
this.patientRegister.query.customerOrgRegister = null |
|
|
|
this.customerOrgRegisterList = [] |
|
|
|
if(customerOrgId == this.dict.personOrgId){ |
|
|
|
if (customerOrgId == this.dict.personOrgId) { |
|
|
|
let today = new Date() |
|
|
|
this.patientRegister.query.startDate = today |
|
|
|
this.patientRegister.query.endDate = today |
|
|
|
@ -167,13 +167,13 @@ export default { |
|
|
|
//读身份证 |
|
|
|
readIdCard() { |
|
|
|
if (!this.$peisAPI) { |
|
|
|
this.$message.info("此功能,需要在壳客户端才可运行!") |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }) |
|
|
|
return |
|
|
|
} |
|
|
|
this.$peisAPI.peopleIcCard().then(res => { |
|
|
|
console.log('peopleIcCard', res) |
|
|
|
let lres = JSON.parse(res) |
|
|
|
if (lres.code >= 0) { |
|
|
|
if (lres.code > -1) { |
|
|
|
let idNos = parsIcCardtoLocal(lres.data, this.dict.sex, this.dict.nation) |
|
|
|
// this.form.patientName = idNos.Name |
|
|
|
// this.form.birthDate = idNos.birthDate |
|
|
|
@ -186,8 +186,13 @@ export default { |
|
|
|
this.patientRegister.query.patientName = idNos.Name |
|
|
|
this.patientRegister.query.sex = idNos.sexId |
|
|
|
this.patientRegister.query.idCardNo = idNos.IDCode |
|
|
|
} else { |
|
|
|
this.$message.error({ showClose: true, message: lres.message }) |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
this.$message.error({ showClose: true, message: `读取身份证失败,原因:${err}` }) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
@ -197,9 +202,9 @@ export default { |
|
|
|
// immediate: true, |
|
|
|
handler(newVal, oldVal) { |
|
|
|
console.log(`watch 体检单位切换 newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.patientRegister.query.customerOrgId}`); |
|
|
|
if(newVal != oldVal) this.init(this.patientRegister.query.customerOrgId) |
|
|
|
if (newVal != oldVal) this.init(this.patientRegister.query.customerOrgId) |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|
|