Browse Source

dj seo

master
pengjun 2 years ago
parent
commit
bbce8395ab
  1. 63
      src/components/patientRegister/PatientRegisterEdit.vue
  2. 54
      src/components/patientRegister/PatientRegisterItem.vue
  3. 10
      src/components/patientRegister/PatientRegisterList.vue

63
src/components/patientRegister/PatientRegisterEdit.vue

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

54
src/components/patientRegister/PatientRegisterItem.vue

@ -199,7 +199,7 @@ export default {
}; };
}, },
computed: { computed: {
...mapState(["window", "dict", "customerOrg", "patientRegister", "personnelUnit"]),
...mapState(["window", "dataTransOpts", "dict", "customerOrg", "patientRegister", "personnelUnit"]),
}, },
created(){ created(){
@ -1040,31 +1040,39 @@ export default {
}, },
// //
watch: {
//使
"prForm.id":{
watch: {
// //使
// "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)
// }
// }
// },
"dataTransOpts.refresh.register_asbitem.M":{
immediate: true, // immediate: true, //
// deep: 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){ 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)
} }
}, },

10
src/components/patientRegister/PatientRegisterList.vue

@ -863,7 +863,7 @@ export default {
// //
this.dataTransOpts.refresh.patient_register.S++ // this.dataTransOpts.refresh.patient_register.S++ //
this.dataTransOpts.refresh.register_asbitem.M++ // 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}`) let res = await postapi(`/api/app/patientregister/getinfoorpatient?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`)
if(res.code != 1) return 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) let lfind = arrayExistObj(this.patientRegister.prList,'id',this.dataTransOpts.tableS.patient_register.id)
if(lfind > -1){ if(lfind > -1){
objCopy(res.data,this.patientRegister.prList[lfind]) objCopy(res.data,this.patientRegister.prList[lfind])
this.patientRegister.prList[lfind].choosed = true
}else{ }else{
lfind = this.patientRegister.prList.length lfind = this.patientRegister.prList.length
this.patientRegister.prList.push(res.data) this.patientRegister.prList.push(res.data)
@ -957,8 +962,7 @@ export default {
// // this.getCustomerOrgGroup(this.patientRegister.prList[lfind].customerOrgParentId); // // this.getCustomerOrgGroup(this.patientRegister.prList[lfind].customerOrgParentId);
// this.dict.asbItem = [...this.dict.asbItemAll]; // this.dict.asbItem = [...this.dict.asbItemAll];
// this.getPatientRegisterAbs(currentRow.id); // this.getPatientRegisterAbs(currentRow.id);
// }, 100)
// }, 100)
} }
}, },

Loading…
Cancel
Save