diff --git a/src/components/doctorCheck/PatientRegisterBase.vue b/src/components/doctorCheck/PatientRegisterBase.vue index 08a49d3..80658cb 100644 --- a/src/components/doctorCheck/PatientRegisterBase.vue +++ b/src/components/doctorCheck/PatientRegisterBase.vue @@ -190,8 +190,6 @@ export default { if (res.code > 0) { this.prBase.patientRegisterNo = res.data.patientRegisterNo this.onQueryByPatientRegisterNo() - } else { - this.$message.warning({ showClose: true, message: '没有查询到人员信息!' }) } }) }, @@ -202,8 +200,6 @@ export default { if (res.code > 0) { this.prBase.patientRegisterNo = res.data.patientRegisterNo this.onQueryByPatientRegisterNo() - } else { - this.$message.warning({ showClose: true, message: '没有查询到人员信息!' }) } }) }, @@ -211,6 +207,7 @@ export default { //按条码号查个人数据 onQueryByPatientRegisterNo() { let patientRegisterNo = this.prBase.patientRegisterNo + if(!patientRegisterNo) return let body = { // sType: 1, patientRegisterNo, diff --git a/src/components/doctorCheck/PatientRegisterList.vue b/src/components/doctorCheck/PatientRegisterList.vue index bd33626..753d154 100644 --- a/src/components/doctorCheck/PatientRegisterList.vue +++ b/src/components/doctorCheck/PatientRegisterList.vue @@ -1,7 +1,7 @@ - + - - + + - + @@ -154,6 +157,17 @@ export default { methods: { checkPagePriv, + btnClear(){ + this.patientRegister.query.patientRegisterNo = '' + this.patientRegister.query.patientNo = '' + this.patientRegister.query.patientName = '' + this.patientRegister.query.pacsNo = '' + this.patientRegister.query.lisNo = '' + this.patientRegister.query.sex = '' + this.patientRegister.query.phone = '' + this.patientRegister.query.idCardNo = '' + }, + init(customerOrgId) { if (!customerOrgId || customerOrgId == this.dict.personOrgId) { this.patientRegister.query.customerOrgRegister = null @@ -241,8 +255,6 @@ export default { if (res.code > 0) { this.patientRegister.query.patientRegisterNo = res.data.patientRegisterNo this.patientRegister.query.times++; - } else { - this.$message.warning({ showClose: true, message: '没有查询到人员信息!' }) } }) }, @@ -253,8 +265,6 @@ export default { if (res.code > 0) { this.patientRegister.query.patientRegisterNo = res.data.patientRegisterNo this.patientRegister.query.times++; - } else { - this.$message.warning({ showClose: true, message: '没有查询到人员信息!' }) } }) }, diff --git a/src/components/report/PatientRegisterQueryNobtn.vue b/src/components/report/PatientRegisterQueryNobtn.vue index f7ba650..4bbbd22 100644 --- a/src/components/report/PatientRegisterQueryNobtn.vue +++ b/src/components/report/PatientRegisterQueryNobtn.vue @@ -160,48 +160,67 @@ export default { v.beginTime, v.isComplete == 'N' ? new Date() : v.endTime ]; - } - }, - // 根据pacs条码查询 - onQueryByPacsNo(checkRequestNo) { - postapi('/api/app/PatientRegister/GetPatientRegisterNoByCheckRequestNo', {checkRequestNo}).then(res => { - if (res.code > 0) { - this.patientRegister.query.patientRegisterNo = res.data.patientRegisterNo - this.patientRegister.query.times++; - } else { - this.$message.warning({ showClose: true, message: '没有查询到人员信息!' }) - } - }) - }, + }, - // 根据lis条码查询 - onQueryByLisNo(lisRequestNo) { - postapi('/api/app/PatientRegister/GetPatientRegisterNoByLisRequestNo', {lisRequestNo}).then(res => { - if (res.code > 0) { - this.patientRegister.query.patientRegisterNo = res.data.patientRegisterNo - this.patientRegister.query.times++; - } else { - this.$message.warning({ showClose: true, message: '没有查询到人员信息!' }) - } - }) - }, + // 根据pacs条码查询 + onQueryByPacsNo(checkRequestNo) { + postapi('/api/app/PatientRegister/GetPatientRegisterNoByCheckRequestNo', { checkRequestNo }).then(res => { + if (res.code > 0) { + this.patientRegister.query.patientRegisterNo = res.data.patientRegisterNo + this.patientRegister.query.times++; + } + }) + }, + + // 根据lis条码查询 + onQueryByLisNo(lisRequestNo) { + postapi('/api/app/PatientRegister/GetPatientRegisterNoByLisRequestNo', { lisRequestNo }).then(res => { + if (res.code > 0) { + this.patientRegister.query.patientRegisterNo = res.data.patientRegisterNo + this.patientRegister.query.times++; + } + }) + }, - //回车替代查询 - enterToQuery() { - // console.log('enterToTab'); - this.$nextTick(() => { - let inputs = document.querySelectorAll(["input"]); //用数组可以读取多个标签的元素 //.inline-input + //回车替代查询 + enterToQuery() { + // console.log('enterToTab'); + this.$nextTick(() => { + let inputs = document.querySelectorAll(["input"]); //用数组可以读取多个标签的元素 //.inline-input - // 为每个输入框添加键盘事件监听器 - inputs.forEach((input, i) => { - // console.log('input',input); - input.addEventListener('keydown', (event) => { - if (event.keyCode === 13) { - // 阻止回车键的默认行为(换行) - event.preventDefault(); + // 为每个输入框添加键盘事件监听器 + inputs.forEach((input, i) => { + // console.log('input',input); + input.addEventListener('keydown', (event) => { + if (event.keyCode === 13) { + // 阻止回车键的默认行为(换行) + event.preventDefault(); - // 如果按下的是回车查询 - // console.log(input.getAttribute('placeholder'),input.value) + // 如果按下的是回车查询 + // console.log(input.getAttribute('placeholder'),input.value) + let placeholder = input.getAttribute('placeholder') + switch (placeholder) { + case '条码号': + case '档案号': + case '姓名': + case '预约手机号': + case '身份证号': + if (input.value) this.patientRegister.query.times++; + input.select() + break; + case '检查条码': + if (input.value) this.onQueryByPacsNo(input.value) + input.select() + break; + case '检验条码': + if (input.value) this.onQueryByLisNo(input.value) + input.select() + break; + } + } + }); + + input.addEventListener('click', (event) => { let placeholder = input.getAttribute('placeholder') switch (placeholder) { case '条码号': @@ -209,37 +228,15 @@ export default { case '姓名': case '预约手机号': case '身份证号': - if (input.value) this.patientRegister.query.times++; - input.select() - break; case '检查条码': - if (input.value) this.onQueryByPacsNo(input.value) - input.select() - break; case '检验条码': - if (input.value) this.onQueryByLisNo(input.value) input.select() break; } - } - }); - - input.addEventListener('click', (event) => { - let placeholder = input.getAttribute('placeholder') - switch (placeholder) { - case '条码号': - case '档案号': - case '姓名': - case '预约手机号': - case '身份证号': - case '检查条码': - case '检验条码': - input.select() - break; - } + }); }); }); - }); + }, }, }; diff --git a/src/components/sumDoctorCheck/ButtonList.vue b/src/components/sumDoctorCheck/ButtonList.vue index aa98b57..d885a3a 100644 --- a/src/components/sumDoctorCheck/ButtonList.vue +++ b/src/components/sumDoctorCheck/ButtonList.vue @@ -107,7 +107,6 @@ export default { computed: { ...mapState(["window", "dict", "dataTransOpts", "patientRegister", "doctorCheck", "sumDoctorCheck"]), - }, methods: { diff --git a/src/store/index.js b/src/store/index.js index 006212d..8006c38 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -135,6 +135,9 @@ export default new Vuex.Store({ customerOrgFlag: true, //单位作为查询条件 customerOrgRegister: { id: '' }, //单位体检次数 checkAsbs: null, + patientRegisterNo:'', + pacsNo:'', + lisNo:'', patientName: '', //姓名 sex: '', //性别 idCardNo: '', //身份证号