Browse Source

dj seo

master
pengjun 2 years ago
parent
commit
bbce8395ab
  1. 59
      src/components/patientRegister/PatientRegisterEdit.vue
  2. 48
      src/components/patientRegister/PatientRegisterItem.vue
  3. 8
      src/components/patientRegister/PatientRegisterList.vue

59
src/components/patientRegister/PatientRegisterEdit.vue

@ -3,7 +3,7 @@
<div style="display: flex">
<div :style="'width:' + (window.pageWidth - 110 - 20) + 'px;'">
<!--查询条件-->
<div style="position: absolute;top:30px;left:180px;display: flex; flex-wrap: wrap; height:60px;">
<div style="position: absolute;top:28px;left:180px;display: flex; flex-wrap: wrap; height:32px;border: 1px solid #DCDFE6;border-radius:5px;background-color: #F5F7FA;">
<div class="query">
<span class="querySpan">查找&nbsp;&nbsp;条码号</span>
<el-input placeholder="条码号" v-model="query.patientRegisterNo" size="small"
@ -465,7 +465,7 @@
<el-dialog title="体检人员列表" :visible.sync="registerVisible" width="800px" :show-close="false" :close-on-click-modal="false"
:append-to-body="true">
<el-table :data="patientRegisters" border width="800" height="480" highlight-current-row
@row-click="registerRowClick" size="small">
@row-click="registerRowClick" @row-dblclick="registerRowDblclick" size="small">
<el-table-column prop="completeFlag" label="体检进度">
<template slot-scope="scope">
<div>{{ dddw(dict.completeFlag, "id", scope.row.completeFlag, "displayName") }}</div>
@ -927,8 +927,14 @@ export default {
// form
async initFormData(patientRegisterId){
//
this.query.patientRegisterNo = ''
this.query.patientNo = ''
this.query.patientName = ''
this.query.tel = ''
this.peisid = window.sessionStorage.getItem('peisid');
if (!patientRegisterId) {
objCopy(this.formInit, this.form);
this.form.organizationUnitId = this.peisid;
@ -1047,9 +1053,13 @@ export default {
console.log('getpatientregisterorpatient', res)
if (res.code == 1) {
objCopy(res.data, this.form)
this.patientRegister.patientRegisterId = res.data.id
this.patientRegister.photo = res.data.photo
this.getPatientRegisterAbs(res.data.id)
this.dataTransOpts.tableS.patient_register.id = res.data.id
setTimeout(() => {
this.dataTransOpts.refresh.register_asbitem.M++
}, 20);
// this.patientRegister.patientRegisterId = res.data.id
// this.patientRegister.photo = res.data.photo
// this.getPatientRegisterAbs(res.data.id)
}else if(res.code == 0){
this.$message.info("未找到相关信息")
}
@ -1058,6 +1068,7 @@ export default {
//
getlistinfilter(url,body){
// url = '/api/app/patientregister/getlistinfilter'
postapi(url, body)
.then((res) => {
if (res.code != -1) {
@ -1065,10 +1076,14 @@ export default {
this.$message.info("未找到相关信息")
}else if(res.data.items.length == 1){
objCopy(res.data.items[0], this.form)
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)
this.dataTransOpts.tableS.patient_register.id = res.data.items[0].id
setTimeout(() => {
this.dataTransOpts.refresh.register_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
@ -1330,18 +1345,28 @@ export default {
registerRowClick(row){
this.registerChoosed = row;
},
registerRowDblclick(row){
this.registerChoosed = row;
this.chooseRegister()
},
chooseRegister(){
if (!this.registerChoosed) {
alert("请选中人员档案信息");
alert("请选中人员登记信息");
return;
}
objCopy(this.registerChoosed, this.form)
this.patientRegister.patientRegisterId = this.registerChoosed.id
this.patientRegister.photo = this.registerChoosed.photo
// this.patientRegister.patientRegisterId = this.registerChoosed.id
// this.patientRegister.photo = this.registerChoosed.photo
// this.getPatientRegisterAbs(this.registerChoosed.id)
this.dataTransOpts.tableS.patient_register.id = this.registerChoosed.id
setTimeout(() => {
this.dataTransOpts.refresh.register_asbitem.M++
}, 20);
this.registerVisible = false
this.getPatientRegisterAbs(this.registerChoosed.id)
},
changeBox(type) {
@ -1485,7 +1510,7 @@ export default {
// this.prAsbOpraOpts.formId
setTimeout(() =>{
this.prAsbOpraOpts.prAsbSave++
},100)
},20)
//
this.refreshRegister(Object.assign({},res.data))
@ -1527,7 +1552,7 @@ export default {
//
setTimeout(() => {
this.prAsbOpraOpts.copyNew++
}, 100);
}, 20);
// console.log('this.patientRegister.patientRegisterAbs',this.patientRegister.patientRegisterAbs)
this.$message.info("操作成功,请记得点保存");
@ -1825,8 +1850,8 @@ export default {
//
closeDialogCharge(){
// this.getPatientRegisterAbs(this.form.id)
this.prAsbOpraOpts.prAsbQuery++
// this.prAsbOpraOpts.prAsbQuery++
this.dataTransOpts.refresh.register_asbitem.M++
},
//

48
src/components/patientRegister/PatientRegisterItem.vue

@ -199,7 +199,7 @@ export default {
};
},
computed: {
...mapState(["window", "dict", "customerOrg", "patientRegister", "personnelUnit"]),
...mapState(["window", "dataTransOpts", "dict", "customerOrg", "patientRegister", "personnelUnit"]),
},
created(){
@ -1041,30 +1041,38 @@ export default {
//
watch: {
//使
"prForm.id":{
immediate: true, //
// deep: true, //
handler(newVal,oldVal){
console.log('人员登记 组合项目明细,人员id:',newVal,oldVal)
this.oldFormId = oldVal
this.getPrAsb(newVal)
// if(newVal != oldVal){
// //使
// "prForm.id":{
// immediate: true, //
// // deep: true, //
// handler(newVal,oldVal){
// console.log(' id:',newVal,oldVal)
// this.oldFormId = oldVal
// this.getPrAsb(newVal)
// // if(newVal != oldVal){
// // this.getPrAsb(newVal)
// // }
// }
}
},
// },
// // id
// "prAsbOpraOpts.prAsbQuery":{
// // immediate: true, //
// // deep: true, //
// handler(newVal,oldVal){
// console.log('watch:prAsbOpraOpts.prAsbQuery:',newVal,oldVal)
// if(newVal != oldVal){
// this.getPrAsb(this.prForm.id)
// }
// }
// },
// id
"prAsbOpraOpts.prAsbQuery":{
// immediate: true, //
"dataTransOpts.refresh.register_asbitem.M":{
immediate: true, //
// deep: true, //
handler(newVal,oldVal){
console.log('watch:prAsbOpraOpts.prAsbQuery:',newVal,oldVal)
if(newVal != oldVal){
this.getPrAsb(this.prForm.id)
}
console.log('watch: 刷新 人员登记/编辑 时的组合项目: ',this.dataTransOpts.tableS.patient_register.id)
this.getPrAsb(this.dataTransOpts.tableS.patient_register.id)
}
},

8
src/components/patientRegister/PatientRegisterList.vue

@ -863,7 +863,7 @@ export default {
//
this.dataTransOpts.refresh.patient_register.S++ //
this.dataTransOpts.refresh.register_asbitem.M++ //
}, 10);
}, 20);
},
@ -935,9 +935,14 @@ export default {
})
let res = await postapi(`/api/app/patientregister/getinfoorpatient?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`)
if(res.code != 1) return
this.patientRegister.prList.forEach(e => {
e.choosed = false
});
let lfind = arrayExistObj(this.patientRegister.prList,'id',this.dataTransOpts.tableS.patient_register.id)
if(lfind > -1){
objCopy(res.data,this.patientRegister.prList[lfind])
this.patientRegister.prList[lfind].choosed = true
}else{
lfind = this.patientRegister.prList.length
this.patientRegister.prList.push(res.data)
@ -958,7 +963,6 @@ export default {
// this.dict.asbItem = [...this.dict.asbItemAll];
// this.getPatientRegisterAbs(currentRow.id);
// }, 100)
}
},

Loading…
Cancel
Save