Browse Source

dj22

master
pengjun 2 years ago
parent
commit
593ed9366a
  1. 59
      src/components/doctorCheck/PatientRegisterBase.vue
  2. 63
      src/components/patientRegister/PatientRegisterEditQuery.vue
  3. 33
      src/components/patientRegister/PatientRegisterForChoose.vue
  4. 12
      src/components/patientRegister/PatientRegisterList.vue
  5. 1
      src/store/index.js

59
src/components/doctorCheck/PatientRegisterBase.vue

@ -65,10 +65,11 @@
<el-input :value="prBase.mobileTelephone" style="width: 120px;" size="small" disabled />
</div>
</div>
<!-- 体检人员记录列表 -->
<el-dialog title="体检人员列表" :visible.sync="dialogWin.PatientRegisterForChoose" width="800px" :show-close="false"
:close-on-click-modal="false" :append-to-body="true">
<PatientRegisterForChoose :params="PatientRegisterForChooseParams" />
<PatientRegisterForChoose :params="PatientRegisterList" />
</el-dialog>
</div>
@ -103,8 +104,8 @@ export default {
nationId: '', //
mobileTelephone: '', //
},
prBaseInit:{},
PatientRegisterForChooseParams: {}, //
prBaseInit: {},
PatientRegisterList: [], //
};
},
@ -132,7 +133,7 @@ export default {
afterFind(rd) {
// console.log('rd,this.doctorCheck.prBase',rd.id,this.doctorCheck.prBase.id)
this.prBase = deepCopy(this.prBaseInit)
objCopy(rd,this.prBase)
objCopy(rd, this.prBase)
this.doctorCheck.prBase = Object.assign({}, this.doctorCheck.prBase, rd) //
setTimeout(() => {
//
@ -144,7 +145,7 @@ export default {
}, 10);
//
this.patientRegister.photo = rd.photo
this.patientRegister.photo = rd.photo || ''
},
@ -157,12 +158,11 @@ export default {
isFilterPreRegistration: 'Y' // Y= N= N (CompleteFlag0null)
}
// console.log(`/api/app/patientregister/getpatientregisterorpatient`, body)
this.dataTransOpts.tableS.patient_register = { id: '' }
this.dataTransOpts.tableS.patient_register = { id: '', patientRegisterNo }
postapi('/api/app/patientregister/getpatientregisterorpatient', body)
.then((res) => {
if (res.code != -1) {
this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
if (res.data) this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
}
})
.finally(() => {
@ -179,11 +179,11 @@ export default {
isFilterPreRegistration: 'Y' // Y= N= N (CompleteFlag0null)
}
// console.log(`/api/app/patientregister/getpatientregisterorpatient`, body)
this.dataTransOpts.tableS.patient_register = { id: '' }
this.dataTransOpts.tableS.patient_register = { id: '', patientNo }
postapi('/api/app/patientregister/getpatientregisterorpatient', body)
.then((res) => {
if (res.code != -1) {
this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
if (res.data) this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
}
})
.finally(() => {
@ -197,16 +197,35 @@ export default {
patientName: v,
isFilterPreRegistration: 'Y' // Y= N= N (CompleteFlag0null)
}
this.PatientRegisterForChooseParams = body //
this.dialogWin.PatientRegisterForChoose = true //
setTimeout(() => {
//
this.dataTransOpts.refresh.register_check.M++
//
this.dataTransOpts.refresh.sumDoctor.M++
this.dataTransOpts.refresh.sum_diagnosis.M++
}, 20);
this.dataTransOpts.tableS.patient_register = { id: '', patientName: v }
//
postapi('/api/app/patientregister/getlistinfilter', body)
.then(res => {
if (res.code != -1) {
if (res.data.items.length == 1) {
this.dataTransOpts.tableS.patient_register.id = res.data.items[0].id
setTimeout(() => {
this.dataTransOpts.refresh.patient_register.S++
}, 10);
// this.getPatientRegister(res.data.items[0].id)
} else if (res.data.items.length > 1) {
this.PatientRegisterList = res.data.items
this.dialogWin.PatientRegisterForChoose = true //
this.dataTransOpts.plus.PatientRegisterForChoose++
} else {
this.afterFind(this.dataTransOpts.tableS.patient_register)
}
}
})
// setTimeout(() => {
// //
// this.dataTransOpts.refresh.register_check.M++
// //
// this.dataTransOpts.refresh.sumDoctor.M++
// this.dataTransOpts.refresh.sum_diagnosis.M++
// }, 20);
},
//ID
@ -290,7 +309,7 @@ export default {
handler(newVal, oldVal) {
console.log(`watch 组合项目列表 newVal: ${newVal} oldVal: ${oldVal} patient_register.id: ${this.dataTransOpts.tableS.patient_register.id}`);
this.getPatientRegister(this.dataTransOpts.tableS.patient_register.id)
this.dataTransOpts.refresh.register_check.M++
// this.dataTransOpts.refresh.register_check.M++
}
},
},

63
src/components/patientRegister/PatientRegisterEditQuery.vue

@ -26,7 +26,7 @@
<!-- 体检人员记录列表 -->
<el-dialog title="体检人员列表" :visible.sync="dialogWin.PatientRegisterForChoose" width="800px" :show-close="false" :close-on-click-modal="false"
:append-to-body="true">
<PatientRegisterForChoose :params="PatientRegisterForChooseParams"/>
<PatientRegisterForChoose :params="PatientRegisterList"/>
</el-dialog>
@ -52,7 +52,7 @@ export default {
patientName: '',
tel: ''
},
PatientRegisterForChooseParams:{},
PatientRegisterList:[],
};
},
@ -134,14 +134,14 @@ export default {
body = {
phone:this.query.tel
}
this.getlistinfilter(url2,body);
this.getlistinfilter(body);
break;
case 'patientName':
if(!this.query.patientName) return;
body = {
patientName:this.query.patientName
}
this.getlistinfilter(url2,body);
this.getlistinfilter(body);
break;
default:
return;
@ -159,7 +159,7 @@ export default {
this.dataTransOpts.tableS.patient_register.id = res.data.id
setTimeout(() => {
this.dataTransOpts.refresh.patient_register.S++
}, 20);
}, 10);
// this.patientRegister.patientRegisterId = res.data.id
// this.patientRegister.photo = res.data.photo
// this.getPatientRegisterAbs(res.data.id)
@ -170,35 +170,30 @@ export default {
},
//
getlistinfilter(url,body){
// url = '/api/app/patientregister/getlistinfilter'
// postapi(url, body)
// .then((res) => {
// if (res.code != -1) {
// if(res.data.items.length == 0){
// this.$message.info("")
// }else if(res.data.items.length == 1){
// objCopy(res.data.items[0], this.form)
// this.dataTransOpts.tableS.patient_register.id = res.data.items[0].id
// setTimeout(() => {
// this.dataTransOpts.refresh.register_check_asbitem.M++
// }, 20);
// // objCopy(res.data.items[0], this.patientRegister.patientRegisterRd)
// // this.patientRegister.patientRegisterId = res.data.items[0].id
// // this.patientRegister.photo = res.data.items[0].photo
// // this.getPatientRegisterAbs(res.data.items[0].id)
// }else{
// //
// this.patientRegisters = res.data.items
// this.registerVisible = true
// }
// }
// });
this.PatientRegisterForChooseParams = body
this.dialogWin.PatientRegisterForChoose = true
setTimeout(() => {
this.dataTransOpts.refresh.patient_register.M++
}, 10);
getlistinfilter(body){
postapi('/api/app/patientregister/getlistinfilter', body)
.then(res => {
if (res.code != -1) {
if (res.data.items.length == 1) {
this.dataTransOpts.tableS.patient_register.id = res.data.items[0].id
setTimeout(() => {
this.dataTransOpts.refresh.patient_register.S++
}, 10);
// this.getPatientRegister(res.data.items[0].id)
} else if (res.data.items.length > 1) {
this.PatientRegisterList = res.data.items
this.dialogWin.PatientRegisterForChoose = true //
this.dataTransOpts.plus.PatientRegisterForChoose++
} else {
this.dataTransOpts.tableS.patient_register.id = ''
setTimeout(() => {
this.dataTransOpts.refresh.patient_register.S++
}, 10);
}
}
})
},
},

33
src/components/patientRegister/PatientRegisterForChoose.vue

@ -183,7 +183,7 @@ export default {
//
mounted() {
this.getPatientregisterList()
},
computed: {
...mapState([
@ -200,28 +200,7 @@ export default {
moment,dddw,deepCopy,
getPatientregisterList(){
this.patientRegisterId = "" //ID
// params = {
// patientName:v,
// isFilterPreRegistration:'Y' // Y= N= N (CompleteFlag0null)
// }
postapi('/api/app/patientregister/getlistinfilter', this.params).then(res => {
if (res.code != -1) {
if(res.data.items.length == 0){
this.dataTransOpts.tableS.patient_register.id = ''
setTimeout(() => {
this.dataTransOpts.refresh.patient_register.S++
}, 20);
this.dialogWin.PatientRegisterForChoose = false
this.$message.warning('未找到相关信息')
}else if(res.data.items.length == 1){
this.rowDblclick(res.data.items[0])
}else{
this.patientRegisters = res.data.items
}
}
})
this.patientRegisters = this.params
},
@ -244,7 +223,7 @@ export default {
this.dataTransOpts.tableS.patient_register.id = this.patientRegisterId
setTimeout(() => {
this.dataTransOpts.refresh.patient_register.S++
}, 20);
}, 10);
this.dialogWin.PatientRegisterForChoose = false
},
@ -253,12 +232,12 @@ export default {
//
watch: {
//
"dataTransOpts.refresh.patient_register.M":{
immediate: true, //
"dataTransOpts.plus.PatientRegisterForChoose":{
// immediate: true, //
// deep: true, //
handler(newVal,oldVal){
console.log(`watch: 刷新体检人员列表 newVal: ${newVal} oldVal:${oldVal}`)
this.getPatientregisterList()
if(newVal != oldVal) this.getPatientregisterList()
}
},
},

12
src/components/patientRegister/PatientRegisterList.vue

@ -685,17 +685,7 @@ export default {
// register_check_asbitem
if (lfind > -1) {
this.dataTransOpts.refresh.register_check_asbitem.M++
// setTimeout(() => {
// this.$refs['info'].setCurrentRow(currentRow)
// this.setForm(currentRow)
// // this.patientRegister.query.customerOrgParentId = this.tableData[lfind].customerOrgParentId;
// this.patientRegister.customerOrgGroupChange = 0; //0
// this.patientRegister.medicalPackageChange = 0; //0
// // this.getCustomerOrgGroup(this.tableData[lfind].customerOrgParentId);
// this.dict.asbItem = [...this.dict.asbItemAll];
// this.getPatientRegisterAbs(currentRow.id);
// }, 100)
this.dataTransOpts.refresh.register_check_asbitem.M++
}
},

1
src/store/index.js

@ -360,6 +360,7 @@ export default new Vuex.Store({
clearPatientRegisterQuery: 0, //清空人员登记界面查询条件
PatientRegisterEditGroupBatch: 0, //刷新批量调整分组窗口
PatientRegisterEditItemBatch: 0, //刷新批量调整项目窗口
PatientRegisterForChoose:0, // 体检人员查询窗口
}
},

Loading…
Cancel
Save