diff --git a/src/components/common/HcAsbitem.vue b/src/components/common/HcAsbitem.vue index ec6981d..c193ba6 100644 --- a/src/components/common/HcAsbitem.vue +++ b/src/components/common/HcAsbitem.vue @@ -203,8 +203,9 @@ export default { getAsbItemByItemType(e) { this.getAsbItemByItemTypeAll() //刷新显示 未选组合项目 - arrayReduce(this.dict.asbItem, [...this.medicalPackageAsbitems], "id=id"); - arrayReduce(this.dict.asbItemQuick, [...this.medicalPackageAsbitems], "id=id"); + let choosed = [].concat(this.medicalPackageAsbitems,[{asbitemId:this.asbitemId}]) + arrayReduce(this.dict.asbItem, choosed, "id=asbitemId"); + arrayReduce(this.dict.asbItemQuick, choosed, "id=asbitemId"); this.quickAsb = Object.assign(this.dict.asbItemQuick) if(e){ this.$refs.itemTypeIds.toggleDropDownVisible(); diff --git a/src/components/report/BtnReport.vue b/src/components/report/BtnReport.vue index dba836f..2e73552 100644 --- a/src/components/report/BtnReport.vue +++ b/src/components/report/BtnReport.vue @@ -20,7 +20,7 @@ 导出 pdf 报告
- 领取报告 + 领取报告
上传Web @@ -46,17 +46,17 @@ :close-on-click-modal="false" :append-to-body="true">
-
+
领取人 - +
-
+
确定
-
+
取消
@@ -81,7 +81,12 @@ export default { data() { return { dialogGetReport:false, - getMan: '', // 报告领取人 + receiveReport:{ + patientRegisterIds: [ + ], + isReceiveReport: "Y", + reportReceiveName: "" //// 报告领取人 + } }; }, @@ -252,16 +257,57 @@ export default { }, btnGetReportOk(){ - + postapi('/api/app/PatientRegister/BatchUpdatePatientRegisterReportReceive',this.receiveReport) + .then(res => { + if(res.code > -1){ + this.$message.success({showClose:true,message:'操作成功!'}) + let reportReceiveDate = moment(new Date()).format('yyyy-MM-DD HH:mm:ss') + let lfind = -1 + this.receiveReport.patientRegisterIds.forEach(patientRegisterId => { + lfind = arrayExistObj(this.patientRegister.prList,'patientRegisterId',patientRegisterId) + if(lfind > -1){ + this.patientRegister.prList[lfind].isReceiveReport = this.receiveReport.isReceiveReport + this.patientRegister.prList[lfind].reportReceiveName = this.receiveReport.reportReceiveName + this.patientRegister.prList[lfind].reportReceiveDate = reportReceiveDate + } + }); + } + }) }, //领取体检报告 - btnGetReport() { - if (!this.dataTransOpts.tableS.patient_register.id) { - this.$message.warning({ showClose: true, message: "请先选择记录!" }) + btnGetReport(isReceiveReport) { + //console.log('this.dataTransOpts.tableS.patient_register.id',this.dataTransOpts.tableS.patient_register.id,this.dataTransOpts.tableM.patient_register) + let rd = [] + if (this.dataTransOpts.tableM.patient_register && this.dataTransOpts.tableM.patient_register.length > 0) { + rd = rd.concat(this.dataTransOpts.tableM.patient_register) + } + if(rd.length == 0){ + if(this.dataTransOpts.tableS.patient_register.id) rd.push({patientRegisterId:this.dataTransOpts.tableS.patient_register.id}) + } + if (rd.length == 0) { + this.$message.warning({ showClose: true, message: "请先勾选或选择记录(有勾选人员时,仅操作勾选的记录)!" }) return + } + let lfind = arrayExistObj(this.patientRegister.prList,'patientRegisterId',rd[0].patientRegisterId) + if(lfind > -1){ + this.receiveReport.reportReceiveName = this.patientRegister.prList[lfind].patientName } - this.dataTransOpts.tableS.patient_register.completeFlag = '2' + + this.receiveReport.patientRegisterIds = [] + this.receiveReport.isReceiveReport = isReceiveReport + rd.forEach(e => { + this.receiveReport.patientRegisterIds.push(e.patientRegisterId) + }); + // + // { + // "patientRegisterIds": [ + // "3fa85f64-5717-4562-b3fc-2c963f66afa6" + // ], + // "isReceiveReport": "string", + // "reportReceiveName": "string" + // } + this.dialogGetReport = true }, @@ -582,4 +628,10 @@ export default { .btnClass { width: 100px; } + +.spanClass { + font-size: 14px; + padding: 5px 2px 0 0; +} + \ No newline at end of file diff --git a/src/components/report/PatientRegisterListNobtn.vue b/src/components/report/PatientRegisterListNobtn.vue index 8a98d3f..8a1a37c 100644 --- a/src/components/report/PatientRegisterListNobtn.vue +++ b/src/components/report/PatientRegisterListNobtn.vue @@ -1,9 +1,9 @@