pengjun 3 months ago
parent
commit
edfd06f2fd
  1. 3
      public/sysConfig.json
  2. 161
      src/components/patientRegister/PatientRegisterList.vue
  3. 86
      src/components/patientRegister/patientRegisterQuery.vue
  4. 4
      src/views/customerOrg/patientRegister.vue

3
public/sysConfig.json

@ -10,6 +10,9 @@
{ "id": "1", "displayName": "未检" }, { "id": "1", "displayName": "未检" },
{ "id": "2", "displayName": "部份已检" }, { "id": "2", "displayName": "部份已检" },
{ "id": "3", "displayName": "已总检" } { "id": "3", "displayName": "已总检" }
],
"businessPlace":[
"B座","C座"
] ]
} }
} }

161
src/components/patientRegister/PatientRegisterList.vue

@ -295,7 +295,7 @@
@close="close_dialogWin_PatientRegisterEdit"> @close="close_dialogWin_PatientRegisterEdit">
<!-- :formInitData="patientRegister.patientRegisterRd" --> <!-- :formInitData="patientRegister.patientRegisterRd" -->
<PatientRegisterEdit :isDoctor="'1'" :patientRegisterId="patientRegister.patientRegisterRd.id" <PatientRegisterEdit :isDoctor="'1'" :patientRegisterId="patientRegister.patientRegisterRd.id"
:editTimes="editTimes" :refFuncSetData="refFuncSetData" :refQueryCondition="refQueryCondition"/>
:editTimes="editTimes" :refFuncSetData="refFuncSetData" :refQueryCondition="refQueryCondition" />
</el-dialog> </el-dialog>
<!-- 修改信息 --> <!-- 修改信息 -->
@ -1055,7 +1055,7 @@ export default {
this.patient_register_read_idno_upPhoto = res.data || "N"; this.patient_register_read_idno_upPhoto = res.data || "N";
} }
}); });
}, },
@ -1552,7 +1552,7 @@ export default {
}); });
return; return;
} }
console.log('btnAdd.this.refQueryCondition',this.refQueryCondition)
console.log('btnAdd.this.refQueryCondition', this.refQueryCondition)
let customerOrgId = this.refQueryCondition.customerOrgId; let customerOrgId = this.refQueryCondition.customerOrgId;
if (!customerOrgId) { if (!customerOrgId) {
this.$message.warning({ showClose: true, message: "请选择单位或个人" }); this.$message.warning({ showClose: true, message: "请选择单位或个人" });
@ -1785,7 +1785,7 @@ export default {
this.lazyLoading = false; this.lazyLoading = false;
}, },
//
//
async getPrList() { async getPrList() {
if ( if (
this.loadOpts.skipCount != 0 && this.loadOpts.skipCount != 0 &&
@ -1795,90 +1795,79 @@ export default {
return; return;
// console.log('getPrList', this.loadOpts) // console.log('getPrList', this.loadOpts)
let body = {
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
// console.log(`this.refQueryCondition`, this.refQueryCondition);
if (this.refQueryCondition.customerOrgFlag) {
// if (this.refQueryCondition.CustomerOrgParentId) {
// body.customerOrgId = this.refQueryCondition.CustomerOrgParentId;
// } else {
// if (this.refQueryCondition.customerOrgId)
// body.customerOrgId = this.refQueryCondition.customerOrgId;
// }
if (this.refQueryCondition.customerOrgId)
body.customerOrgId = this.refQueryCondition.customerOrgId;
//
try {
if (
this.refQueryCondition.customerOrgId &&
this.refQueryCondition.customerOrgId != this.dict.personOrgId &&
this.refQueryCondition.customerOrgRegister.id
) {
body.customerOrgRegisterId =
this.refQueryCondition.customerOrgRegister.id;
body.customerOrgGroupIds =
this.refQueryCondition.customerOrgGroupIds;
let body = Object.assign({}, this.loadOpts)
let queryType = this.refQueryCondition.queryType
console.log('getPrList.this.refQueryCondition', this.refQueryCondition)
// ===================== Start ==========================
if (!queryType) {
// --
if (this.refQueryCondition.startDate && this.refQueryCondition.endDate) {
body.dateType = this.refQueryCondition.dateType;
body.startDate = this.refQueryCondition.startDate
body.endDate = this.refQueryCondition.endDate
if (body.startDate > body.endDate) {
this.$message.warning({
showClose: true,
message: "起始日期不能大于截止日期,数据校验不通过!",
});
return;
} }
} catch (error) {
console.error(error);
} }
}
if (this.refQueryCondition.sex)
body.sexId = this.refQueryCondition.sex;
if (
this.refQueryCondition.medicalTypeIds &&
this.refQueryCondition.medicalTypeIds.length > 0
)
body.medicalTypeIds = this.refQueryCondition.medicalTypeIds;
if (
this.refQueryCondition.completeFlags &&
this.refQueryCondition.completeFlags.length > 0
)
body.completeFlags = this.refQueryCondition.completeFlags;
if (
this.refQueryCondition.personnelTypeIds &&
this.refQueryCondition.personnelTypeIds.length > 0
)
body.personnelTypeIds = this.refQueryCondition.personnelTypeIds;
if (this.refQueryCondition.isRecoverGuide)
body.isRecoverGuide = this.refQueryCondition.isRecoverGuide;
// --
if (this.refQueryCondition.customerOrgFlag) {
if (this.refQueryCondition.customerOrgId) body.customerOrgId = this.refQueryCondition.customerOrgId
//
try {
if (
this.refQueryCondition.customerOrgId &&
this.refQueryCondition.customerOrgId != this.dict.personOrgId &&
this.refQueryCondition.customerOrgRegister.id
) {
body.customerOrgRegisterId = this.refQueryCondition.customerOrgRegister.id;
if (this.refQueryCondition.customerOrgGroupIds) body.customerOrgGroupIds = this.refQueryCondition.customerOrgGroupIds
}
} catch (error) {
console.error(error);
}
}
//StartDate EndDate
if (
this.refQueryCondition.startDate &&
this.refQueryCondition.endDate
) {
body.dateType = this.refQueryCondition.dateType;
body.startDate = moment(this.refQueryCondition.startDate).format(
"yyyy-MM-DD"
);
body.endDate = moment(this.refQueryCondition.endDate).format(
"yyyy-MM-DD"
);
if (body.startDate > body.endDate) {
this.$message.warning({
showClose: true,
message: "起始日期不能大于截止日期,数据校验不通过!",
});
return;
//
if (this.refQueryCondition.phone) body.phone = this.refQueryCondition.phone
//
if (this.refQueryCondition.sexId) body.sexId = this.refQueryCondition.sexId
//
if (this.refQueryCondition.medicalTypeIds) body.medicalTypeIds = this.refQueryCondition.medicalTypeIds
//
if (this.refQueryCondition.completeFlags) body.completeFlags = this.refQueryCondition.completeFlags
//
if (this.refQueryCondition.personnelTypeIds) body.personnelTypeIds = this.refQueryCondition.personnelTypeIds
//
if (this.refQueryCondition.isRecoverGuide) body.isRecoverGuide = this.refQueryCondition.isRecoverGuide
//
if (this.refQueryCondition.patientRegisterNo) {
queryType = "patientRegisterNo"
} else if (this.refQueryCondition.pacsNo) {
queryType = "pacsNo"
} else if (this.refQueryCondition.lisNo) {
queryType = "lisNo"
} else if (this.refQueryCondition.patientNo) {
queryType = "patientNo"
} else if (this.refQueryCondition.idCardNo) {
queryType = "idCardNo"
} else if (this.refQueryCondition.patientName) {
queryType = "patientName"
} }
}
if (this.refQueryCondition.phone)
body.phone = this.refQueryCondition.phone;
}
// ===================== End ==========================
// //
let photo = '' let photo = ''
switch (this.refQueryCondition.queryType) {
switch (queryType) {
case 'patientName': // case 'patientName': //
if (this.refQueryCondition.patientName) { if (this.refQueryCondition.patientName) {
body.patientName = this.refQueryCondition.patientName; body.patientName = this.refQueryCondition.patientName;
@ -1902,7 +1891,7 @@ export default {
}; };
} }
} }
if(this.refQueryCondition.photo) photo = this.refQueryCondition.photo;
if (this.refQueryCondition.photo) photo = this.refQueryCondition.photo;
break; break;
case 'patientNo': // case 'patientNo': //
if (this.refQueryCondition.patientNo) if (this.refQueryCondition.patientNo)
@ -1936,10 +1925,10 @@ export default {
maxResultCount: this.loadOpts.maxResultCount, maxResultCount: this.loadOpts.maxResultCount,
}; };
break; break;
default:
default: //
break; break;
} }
// /api/app/PatientRegister/GetPatientRegisterWithCharge // /api/app/PatientRegister/GetPatientRegisterWithCharge
// /api/app/patientregister/getlistinfilter // /api/app/patientregister/getlistinfilter
postapi( postapi(
@ -1972,11 +1961,7 @@ export default {
}); });
// () // ()
console.log(
"this.refQueryCondition",
this.refQueryCondition.isSeries,
this.refQueryCondition.patientRegisterNo
);
// console.log("this.refQueryCondition", this.refQueryCondition.isSeries, this.refQueryCondition.patientRegisterNo);
if (this.refQueryCondition.isSeries == "Y" && this.refQueryCondition.patientRegisterNo) { if (this.refQueryCondition.isSeries == "Y" && this.refQueryCondition.patientRegisterNo) {
// //
for (let index = curLoad.length - 1; index > -1; index--) { for (let index = curLoad.length - 1; index > -1; index--) {
@ -2009,7 +1994,7 @@ export default {
// //
async scrollFull(scroll, event) { async scrollFull(scroll, event) {
if (!scroll.judgeFlse) return; if (!scroll.judgeFlse) return;
// //

86
src/components/patientRegister/patientRegisterQuery.vue

@ -44,7 +44,7 @@
</div> </div>
<div class="query"> <div class="query">
<span class="spanClass">性别</span> <span class="spanClass">性别</span>
<el-select v-model="query.sex" placeholder="性别" style="width: 50px" size="small" clearable>
<el-select v-model="query.sexId" placeholder="性别" style="width: 50px" size="small" clearable>
<el-option v-for="item in dict.sex" :key="item.id" :label="item.displayName" :value="item.id"> <el-option v-for="item in dict.sex" :key="item.id" :label="item.displayName" :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
@ -149,35 +149,35 @@ export default {
customerOrgRegisterList: [], customerOrgRegisterList: [],
query: { // query: { //
queryType: '', // patientRegisterNo/patientNo queryType: '', // patientRegisterNo/patientNo
dateType: 'creationTime', //
dateRange: null, //
startDate: null,
endDate: null,
containRefuse: true, //
times: 0, // times: 0, //
customerOrgId: "", //ID
customerOrgTopId: "", //ID customerOrgTopId: "", //ID
isSeries: 'N', //
photo: '', //
// ================== Start ======================
dateType: '2', //
startDate: null,
endDate: null,
customerOrgFlag: true, // customerOrgFlag: true, //
customerOrgId: "", //ID
customerOrgRegister: { id: '' }, // customerOrgRegister: { id: '' }, //
customerOrgGroupIds: [], // customerOrgGroupIds: [], //
checkAsbs: null,
patientRegisterNo: '',
pacsNo: '',
lisNo: '',
patientRegisterNo: '', //
pacsNo: '', //
lisNo: '', //
patientNo:'', //
idCardNo: '', //
patientName: '', // patientName: '', //
sex: '', //
idCardNo: '', //
isReportPrint: '', //
isSeries: 'N',
isSmsComplete: "N",
isPhoneComplete: "N",
diagnosisLevelId: [],
medicalTypeIds: [],
completeFlags: [],
medicalConclusionId: [],
personnelTypeIds: [],
isRecoverGuide: '',
photo: '', //
phone:'', //
sexId: '', //
medicalTypeIds: [], //
completeFlags: [], //
personnelTypeIds: [], //
isRecoverGuide: '', //
// ================== End ======================
}, },
}; };
}, },
@ -219,7 +219,7 @@ export default {
this.query.patientName = '' this.query.patientName = ''
this.query.pacsNo = '' this.query.pacsNo = ''
this.query.lisNo = '' this.query.lisNo = ''
this.query.sex = ''
this.query.sexId = ''
this.query.phone = '' this.query.phone = ''
this.query.idCardNo = '' this.query.idCardNo = ''
@ -293,8 +293,12 @@ export default {
}, },
btnQuery(){
this.toQuery('')
},
// //
btnQuery(queryType) {
toQuery(queryType) {
this.query.queryType = queryType this.query.queryType = queryType
if(queryType != 'idCardNo') this.query.photo = '' if(queryType != 'idCardNo') this.query.photo = ''
this.$emit('triggerQuery', this.query) this.$emit('triggerQuery', this.query)
@ -349,10 +353,10 @@ export default {
this.query.photo = 'data:image/bmp;base64,' + idNos.Photo // this.query.photo = 'data:image/bmp;base64,' + idNos.Photo //
this.query.patientName = idNos.Name this.query.patientName = idNos.Name
this.query.sex = idNos.sexId
this.query.sexId = idNos.sexId
this.query.idCardNo = idNos.IDCode this.query.idCardNo = idNos.IDCode
// //
this.btnQuery('idCardNo')
this.toQuery('idCardNo')
} else { } else {
this.$message.error({ showClose: true, message: lres.message }) this.$message.error({ showClose: true, message: lres.message })
} }
@ -367,7 +371,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.query.patientRegisterNo = res.data.patientRegisterNo this.query.patientRegisterNo = res.data.patientRegisterNo
this.btnQuery("patientRegisterNo")
this.toQuery("patientRegisterNo")
} }
}) })
}, },
@ -377,7 +381,7 @@ 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.query.patientRegisterNo = res.data.patientRegisterNo this.query.patientRegisterNo = res.data.patientRegisterNo
this.btnQuery("patientRegisterNo")
this.toQuery("patientRegisterNo")
} }
}) })
}, },
@ -401,20 +405,11 @@ export default {
let placeholder = input.getAttribute('placeholder') let placeholder = input.getAttribute('placeholder')
switch (placeholder) { switch (placeholder) {
case '条码号': case '条码号':
if (input.value) this.btnQuery('patientRegisterNo')
if (input.value) this.toQuery('patientRegisterNo')
input.select() input.select()
break; break;
case '档案号': case '档案号':
if (input.value) this.btnQuery('patientNo')
input.select()
break;
case '姓名':
if (input.value) this.btnQuery('patientName')
input.select()
break;
//case '':
case '身份证':
if (input.value) this.btnQuery('idCardNo')
if (input.value) this.toQuery('patientNo')
input.select() input.select()
break; break;
case '检查条码': case '检查条码':
@ -425,6 +420,15 @@ export default {
if (input.value) this.onQueryByLisNo(input.value) if (input.value) this.onQueryByLisNo(input.value)
input.select() input.select()
break; break;
//case '':
case '身份证':
if (input.value) this.toQuery('idCardNo')
input.select()
break;
case '姓名':
if (input.value) this.toQuery('patientName')
input.select()
break;
} }
} }
}); });

4
src/views/customerOrg/patientRegister.vue

@ -216,9 +216,9 @@ export default {
// //
triggerQuery(queryCondition) { triggerQuery(queryCondition) {
//console.log('.triggerQuery1', queryCondition)
console.log('父.triggerQuery1', queryCondition)
this.queryCondition = Object.assign(this.queryCondition, queryCondition, { queryConditionTimes: Number(this.queryCondition.queryConditionTimes) + 1 }) this.queryCondition = Object.assign(this.queryCondition, queryCondition, { queryConditionTimes: Number(this.queryCondition.queryConditionTimes) + 1 })
//console.log('.triggerQuery2', this.queryCondition)
console.log('父.triggerQuery2', this.queryCondition)
}, },
}, },

Loading…
Cancel
Save