pengjun 23 hours ago
parent
commit
3eec609ca4
  1. 5
      src/components/doctorCheck/CheckItemList.vue
  2. 18
      src/components/doctorCheck/PatientRegisterBase2.vue

5
src/components/doctorCheck/CheckItemList.vue

@ -754,7 +754,7 @@ export default {
this.moreResult.result = row.result; this.moreResult.result = row.result;
this.moreResult.defaultResult = row.defaultResult; this.moreResult.defaultResult = row.defaultResult;
this.moreResult.index = index; this.moreResult.index = index;
if(!row.result){
if(!row?.result){
this.selection.start = 0 this.selection.start = 0
this.selection.end = 0 this.selection.end = 0
}else{ }else{
@ -1118,8 +1118,9 @@ export default {
let input = document.getElementById("resultBox"); let input = document.getElementById("resultBox");
this.selection.start = input.selectionStart; this.selection.start = input.selectionStart;
this.selection.end = input.selectionEnd; this.selection.end = input.selectionEnd;
//console.log('',this.selection)
console.log('点击后光标',this.selection)
}, },
watchSelection() { watchSelection() {
this.$nextTick(() => { this.$nextTick(() => {
let that = this; let that = this;

18
src/components/doctorCheck/PatientRegisterBase2.vue

@ -256,7 +256,7 @@ export default {
postapi('/api/app/PatientRegister/GetPatientRegisterNoByCheckRequestNo', { checkRequestNo }).then(res => { postapi('/api/app/PatientRegister/GetPatientRegisterNoByCheckRequestNo', { checkRequestNo }).then(res => {
if (res.code > 0) { if (res.code > 0) {
this.prBase.patientRegisterNo = res.data.patientRegisterNo this.prBase.patientRegisterNo = res.data.patientRegisterNo
this.onQueryByOnlyNo('patientRegisterNo')
this.onQueryByOnlyNo('patientRegisterNo', 'pacsNo')
} }
}) })
}, },
@ -266,27 +266,30 @@ export default {
postapi('/api/app/PatientRegister/GetPatientRegisterNoByLisRequestNo', { lisRequestNo }).then(res => { postapi('/api/app/PatientRegister/GetPatientRegisterNoByLisRequestNo', { lisRequestNo }).then(res => {
if (res.code > 0) { if (res.code > 0) {
this.prBase.patientRegisterNo = res.data.patientRegisterNo this.prBase.patientRegisterNo = res.data.patientRegisterNo
this.onQueryByOnlyNo('patientRegisterNo')
this.onQueryByOnlyNo('patientRegisterNo', 'lisNo')
} }
}) })
}, },
// //
onQueryByOnlyNo(noType) {
// noType --
// storeCol --
onQueryByOnlyNo(noType, storeCol) {
let noVal = this.prBase[noType] // let noVal = this.prBase[noType] //
if (!noVal) return if (!noVal) return
let body = {} let body = {}
if (noType == 'idNo') noVal = noVal.toUpperCase() if (noType == 'idNo') noVal = noVal.toUpperCase()
body[noType] = noVal body[noType] = noVal
let storeObj = {}
let patientRegister = { id: '' } let patientRegister = { id: '' }
if (storeCol) storeObj[storeCol] = this.prBase[storeCol]
patientRegister[noType] = noVal patientRegister[noType] = noVal
this.prBase = deepCopy(patientRegister) this.prBase = deepCopy(patientRegister)
postapi('/api/app/patientregister/GetAlreadyRegisterPatientRegisterByNo', body) postapi('/api/app/patientregister/GetAlreadyRegisterPatientRegisterByNo', body)
.then((res) => { .then((res) => {
if (res.code > -1) { if (res.code > -1) {
this.prBase = res.data
this.prBase = Object.assign({},this.prBase, res.data, storeObj)
// ---------- // ----------
if (this.prBase.completeFlag != '3') this.prBase.summaryDoctorId = this.prBase.summaryDoctorId || this.userId if (this.prBase.completeFlag != '3') this.prBase.summaryDoctorId = this.prBase.summaryDoctorId || this.userId
@ -294,8 +297,9 @@ export default {
this.prBase.auditDoctorId = this.prBase.auditDoctorId || this.userId this.prBase.auditDoctorId = this.prBase.auditDoctorId || this.userId
} }
// ---------- // ----------
// console.log('res.data',res.data)
// console.log('this.prBase',this.prBase)
console.log('res.data',res.data)
console.log('this.prBase',this.prBase)
console.log('storeObj',storeObj)
} }
this.afterFind(this.prBase) this.afterFind(this.prBase)

Loading…
Cancel
Save