Browse Source

report

master
pengjun 2 years ago
parent
commit
434dd0f2ac
  1. 6
      src/components/doctorCheck/RegisterCheckList.vue
  2. 385
      src/components/report/BtnReport.vue
  3. 64
      src/components/report/PatientRegisterListNobtn.vue
  4. 5
      src/components/report/PatientRegisterQueryNobtn.vue
  5. 24
      src/components/report/RegisterCheckStatus.vue
  6. 17
      src/components/sumDoctorCheck/SumAsbItemStatus.vue
  7. 48
      src/views/report/report.vue

6
src/components/doctorCheck/RegisterCheckList.vue

@ -39,7 +39,9 @@ export default {
created() {}, created() {},
// //
mounted() {},
mounted() {
this.registerCheckList(this.dataTransOpts.tableS.patient_register.id)
},
computed:{ computed:{
...mapState(['window','dataTransOpts','dict','doctorCheck']), ...mapState(['window','dataTransOpts','dict','doctorCheck']),
@ -118,7 +120,7 @@ export default {
watch: { watch: {
// //
"dataTransOpts.refresh.register_check.M":{ "dataTransOpts.refresh.register_check.M":{
immediate:true,
// immediate:true,
handler(newVal, oldVal) { handler(newVal, oldVal) {
console.log(`watch 组合项目列表 newVal: ${newVal} oldVal: ${oldVal} patient_register.id: ${this.dataTransOpts.tableS.patient_register.id}`); console.log(`watch 组合项目列表 newVal: ${newVal} oldVal: ${oldVal} patient_register.id: ${this.dataTransOpts.tableS.patient_register.id}`);
this.registerCheckList(this.dataTransOpts.tableS.patient_register.id) this.registerCheckList(this.dataTransOpts.tableS.patient_register.id)

385
src/components/report/BtnReport.vue

@ -10,7 +10,7 @@
<el-button type="primary" class="commonbutton" @click="btnReport(false)">打印报告</el-button> <el-button type="primary" class="commonbutton" @click="btnReport(false)">打印报告</el-button>
</div> </div>
<div class="listBtn"> <div class="listBtn">
<el-button type="primary" class="commonbutton" @click="edit">领用报告</el-button>
<el-button type="primary" class="commonbutton" @click="btnGetReport">领用报告</el-button>
</div> </div>
</div> </div>
</template> </template>
@ -36,254 +36,81 @@ export default {
// //
mounted() { mounted() {
this.dataTransOpts.tableS.patient_register.id = ''
this.getPatientRegister(this.dataTransOpts.tableS.patient_register.patientRegisterNo)
}, },
computed: { computed: {
...mapState(["dict", "patientRegister", "doctorCheck", "sumDoctorCheck", "report"]),
...mapState(["dict", "dataTransOpts", "patientRegister", "doctorCheck", "sumDoctorCheck", "report"]),
}, },
methods: { methods: {
btnQuery() { btnQuery() {
let body = {}, customerOrgs = []; let body = {}, customerOrgs = [];
// {
// "customerOrgs": [
// {
// "customerOrgId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
// "customerOrgRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
// "customerOrgGroupId": [
// "3fa85f64-5717-4562-b3fc-2c963f66afa6"
// ],
// "dateType": "string",
// "startDate": "string",
// "endDate": "string"
// }
// ],
// "patientRegisterNo": "string",
// "patientNo": "string",
// "patientName": "string",
// "phone": "string",
// "completeFlag": "string",
// "isAudit": "string",
// "isReportPrint": "string",
// "medicalTypeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
// "personnelTypeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
// }
if (this.report.dataCusOrgOCX.length > 0) { if (this.report.dataCusOrgOCX.length > 0) {
this.report.dataCusOrgOCX.forEach(e => { this.report.dataCusOrgOCX.forEach(e => {
let rd = { let rd = {
startDate: moment(e.startDate).format('yyyy-MM-DD'), startDate: moment(e.startDate).format('yyyy-MM-DD'),
endDate: moment(e.endDate).format('yyyy-MM-DD'), endDate: moment(e.endDate).format('yyyy-MM-DD'),
dateType: e.dateType == 'summaryDate' ? '3':(e.dateType == 'medicalStartDate' ? '2':'1')
dateType: e.dateType == 'summaryDate' ? '3' : (e.dateType == 'medicalStartDate' ? '2' : '1')
} }
if (e.customerOrgId) { if (e.customerOrgId) {
rd.customerOrgId = e.customerOrgId rd.customerOrgId = e.customerOrgId
if(e.customerOrgId == this.dict.personOrgId){
if (e.customerOrgId == this.dict.personOrgId) {
rd.customerOrgRegisterId = null rd.customerOrgRegisterId = null
rd.customerOrgGroupId = [] rd.customerOrgGroupId = []
}else{
} else {
rd.customerOrgRegisterId = e.customerOrgRegister.id rd.customerOrgRegisterId = e.customerOrgRegister.id
rd.customerOrgGroupId = e.customerOrgGroupIds rd.customerOrgGroupId = e.customerOrgGroupIds
}
}
} }
customerOrgs.push(rd) customerOrgs.push(rd)
}) })
} }
body.customerOrgs = customerOrgs body.customerOrgs = customerOrgs
if(this.patientRegister.query.patientRegisterNo) body.patientRegisterNo = this.patientRegister.query.patientRegisterNo
if(this.patientRegister.query.patientNo) body.patientNo = this.patientRegister.query.patientNo
if(this.patientRegister.query.patientName) body.patientName = this.patientRegister.query.patientName
if(this.patientRegister.query.idCardNo) body.idCardNo = this.patientRegister.query.idCardNo
if(this.patientRegister.query.phone) body.phone = this.patientRegister.query.phone
if(this.patientRegister.query.completeFlag) body.completeFlag = this.patientRegister.query.completeFlag
if(this.patientRegister.query.isAudit) body.isAudit = this.patientRegister.query.isAudit
if(this.patientRegister.query.reportPrintTimes >= 0) body.isReportPrint = this.patientRegister.query.reportPrintTimes
if(this.patientRegister.query.isUpload) body.isUpload = this.patientRegister.query.isUpload
if (this.patientRegister.query.patientRegisterNo) body.patientRegisterNo = this.patientRegister.query.patientRegisterNo
if (this.patientRegister.query.patientNo) body.patientNo = this.patientRegister.query.patientNo
if (this.patientRegister.query.patientName) body.patientName = this.patientRegister.query.patientName
if (this.patientRegister.query.idCardNo) body.idCardNo = this.patientRegister.query.idCardNo
if (this.patientRegister.query.phone) body.phone = this.patientRegister.query.phone
if (this.patientRegister.query.completeFlag) body.completeFlag = this.patientRegister.query.completeFlag
if (this.patientRegister.query.isAudit) body.isAudit = this.patientRegister.query.isAudit
if (this.patientRegister.query.reportPrintTimes >= 0) body.isReportPrint = this.patientRegister.query.reportPrintTimes
if (this.patientRegister.query.isUpload) body.isUpload = this.patientRegister.query.isUpload
//console.log('/api/app/peisreport/getpatientregisterreport',body) //console.log('/api/app/peisreport/getpatientregisterreport',body)
postapi('/api/app/peisreport/getpatientregisterreport',body).then(res =>{
if(res.code != -1){
postapi('/api/app/peisreport/getpatientregisterreport', body).then(res => {
if (res.code != -1) {
this.patientRegister.prList = res.data this.patientRegister.prList = res.data
} }
}) })
}, },
//to
toDoctorCheck() {
this.$router.push({ path: "/doctorCheck" });
},
//
optGrant(optType) {
let ret = ''
if (!this.dataTransOpts.tableS.patient_register.id) return '请选择体检人员'
if (this.dataTransOpts.tableS.patient_register.isLock == 'Y') return '人员已锁定,不可执行此操作'
if (optType == 'save') {
//if (!this.dataTransOpts.tableS.patient_register.summaryDoctor) return ""
if (this.dataTransOpts.tableS.patient_register.completeFlag == '3') return "该人员已总检,不可再执行此操作,如需操作请点【修改】"
if (this.dataTransOpts.tableS.patient_register.isAudit == 'Y') return '该人员检查已审核,请先取消审核,方可执行此操作!'
}
if (optType == 'edit') {
if (this.dataTransOpts.tableS.patient_register.completeFlag != '3') return "该人员尚未总检,无需执行此操作"
if (this.dataTransOpts.tableS.patient_register.isAudit == 'Y') return '该人员检查已审核,请先取消审核,方可执行此操作!'
}
if (optType == 'del') {
if (this.dataTransOpts.tableS.patient_register.completeFlag != '3') return "该人员尚未总检,无需执行此操作"
if (this.dataTransOpts.tableS.patient_register.isAudit == 'Y') return '该人员检查已审核,请先取消审核,方可执行此操作!'
}
if (optType == 'audit') {
if (this.dataTransOpts.tableS.patient_register.completeFlag != '3') return "该检查项目尚未保存,不可执行此操作"
if (this.dataTransOpts.tableS.patient_register.isAudit == 'Y') return "该人员检查已审核,无需再执行此操作"
}
if (optType == 'unAudit') {
if (this.dataTransOpts.tableS.patient_register.completeFlag != '3') return "该人员尚未总检,不可执行此操作"
if (this.dataTransOpts.tableS.patient_register.isAudit == 'N') return "该人员检查尚未审核,无需执行此操作"
}
if (optType == 'report') {
if (this.dataTransOpts.tableS.patient_register.completeFlag != '3') return "该人员检查尚未总检,不可执行此操作"
if (this.dataTransOpts.tableS.patient_register.isAudit == 'N') return "该人员检查尚未审核,不可执行此操作"
}
return ret
},
//
save() {
let ret = this.optGrant('save')
if (ret) {
alert(ret)
//
btnGetReport() {
if (!this.dataTransOpts.tableS.patient_register.id) {
this.$message.warning("请先选择记录!")
return return
} }
//
this.updateSumDoctorCheck();
//
this.saveSummary();
//
this.saveSuggestion();
},
//
edit() {
let ret = this.optGrant('edit')
if (ret) {
alert(ret)
return
}
this.dataTransOpts.tableS.patient_register.completeFlag = '2' this.dataTransOpts.tableS.patient_register.completeFlag = '2'
}, },
//
del() {
let body = {
patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
//summaryDoctor: this.dataTransOpts.tableS.patient_register.summaryDoctor,
//summaryDate: this.dataTransOpts.tableS.patient_register.summaryDate,
completeFlag: '2'
}
console.log(`/api/app/patientregister/updatepatientregistersummarydoctor`, body)
postapi(`/api/app/patientregister/updatepatientregistersummarydoctor`, body)
.then((res) => {
console.log("del", res.data);
if (res.code != -1) {
this.dataTransOpts.tableS.patient_register.completeFlag = '2';
console.log(`/api/app/sumsummaryheader/deletesumsummarymany?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`)
return postapi(`/api/app/sumsummaryheader/deletesumsummarymany?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`)
}
})
.then((res) => {
console.log("deletesumsuggestionmany", res.data);
if (res.code != -1) {
console.log(`/api/app/sumsuggestionheader/deletesumsuggestionmany?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`)
return postapi(`/api/app/sumsuggestionheader/deletesumsuggestionmany?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`)
}
})
.then((res) => {
console.log("deletesumsuggestionmany", res.data);
if (res.code != -1) {
this.$message({ type: "success", message: `取消总检成功!` });
}
})
.catch((err) => {
this.$message({ type: "error", message: `取消总检失败,原因:${err}` });
});
},
//
audit() {
let ret = this.optGrant('audit')
if (ret) {
alert(ret)
return
}
let body = {
patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
//auditDoctor: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
//auditDate: "string"
isAudit: 'Y'
}
console.log(`/api/app/patientregister/updatepatientregisterauditordoctor`, body)
postapi(`/api/app/patientregister/updatepatientregisterauditordoctor`, body)
.then((res) => {
console.log("audit", res.data);
if (res.code != -1) {
this.dataTransOpts.tableS.patient_register.isAudit = 'Y';
this.$message({ type: "success", message: `总检审核成功` });
}
})
.catch((err) => {
this.$message({ type: "error", message: `总检审核失败,原因:${err}` });
});
},
//
unAudit() {
let ret = this.optGrant('unAudit')
if (ret) {
alert(ret)
return
}
let body = {
patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
//auditDoctor: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
//auditDate: "string"
isAudit: 'N'
}
console.log(`/api/app/patientregister/updatepatientregisterauditordoctor`, body)
postapi(`/api/app/patientregister/updatepatientregisterauditordoctor`, body)
.then((res) => {
console.log("unAudit", res.data);
if (res.code != -1) {
this.dataTransOpts.tableS.patient_register.isAudit = 'N';
this.$message({ type: "success", message: `取消总检审核成功` });
}
})
.catch((err) => {
this.$message({ type: "error", message: `取消总检审核失败,原因:${err}` });
});
},
// //
async btnReport(isPreview) { async btnReport(isPreview) {
// let ret = this.optGrant('report')
// if (ret) {
// alert(ret)
// return
// }
if(!this.patientRegister.patientRegisterId){
if (!this.dataTransOpts.tableS.patient_register.id) {
this.$message.warning("请先选择记录!") this.$message.warning("请先选择记录!")
return return
} }
if(!this.$peisAPI) {
if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!") this.$message.info("此功能,需要在壳客户端才可运行!")
return
return
} }
///3a0c990e-5756-2dc0-19d5-69a617fe4048 ///3a0c990e-5756-2dc0-19d5-69a617fe4048
@ -306,10 +133,10 @@ export default {
let res = await postapi(`/api/app/printreport/getpeisreport?PatientRegisterId=${this.patientRegister.patientRegisterId}`) let res = await postapi(`/api/app/printreport/getpeisreport?PatientRegisterId=${this.patientRegister.patientRegisterId}`)
toOutShell.ReportTable = res.data toOutShell.ReportTable = res.data
if(isPreview){
if (isPreview) {
this.$peisAPI.printPre(JSON.stringify(toOutShell)); this.$peisAPI.printPre(JSON.stringify(toOutShell));
}else{
this.$peisAPI.print(JSON.stringify(toOutShell)).then(res =>{
} else {
this.$peisAPI.print(JSON.stringify(toOutShell)).then(res => {
if (res.code != -1) { if (res.code != -1) {
// //
return postapi('/api/app/patientregister/updatepatientregisterguideprinttimesmany', [this.patientRegister.patientRegisterId]) return postapi('/api/app/patientregister/updatepatientregisterguideprinttimesmany', [this.patientRegister.patientRegisterId])
@ -320,157 +147,31 @@ export default {
} catch (error) { } catch (error) {
this.$message.warning(error); this.$message.warning(error);
} }
},
//
addSuggtion() {
let id = String(new Date().getTime())
let pojo = {
id,
patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
details: [
{
sumSuggestionHeaderId: id,
suggestionContent: '',
}
]
}
this.sumDoctorCheck.suggestionList.push(pojo);
}, },
//
reCheck() {
console.log("parseID('123456198007240000')", parseID('123456198007240000'))
let ret = this.optGrant('reCheck')
if (ret) {
alert(ret)
return
}
},
//
intervene() {
let ret = this.optGrant('intervene')
if (ret) {
alert(ret)
return
}
},
//
updateSumDoctorCheck() {
let body = {
patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
//summaryDoctor:this.dataTransOpts.tableS.patient_register.summaryDoctor,
//summaryDate: this.dataTransOpts.tableS.patient_register.summaryDate,
completeFlag: '3'
}
console.log(`/api/app/patientregister/updatepatientregistersummarydoctor`, body)
postapi(`/api/app/patientregister/updatepatientregistersummarydoctor`, body)
//
getPatientRegister(patientRegisterNo) {
if (!patientRegisterNo) return
postapi('/api/app/patientregister/GetAlreadyRegisterPatientRegisterByNo', { patientRegisterNo })
.then((res) => { .then((res) => {
console.log("updateSumDoctorCheck", res.data);
if (res.code != -1) {
this.dataTransOpts.tableS.patient_register.completeFlag = '3';
this.$message({ type: "success", message: `总检保存成功!` });
if (res.code > -1) {
this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
} }
}) })
.catch((err) => {
this.$message({ type: "error", message: `总检保存失败,原因:${err}` });
});
}, },
//
saveSummary() {
let body = []
this.sumDoctorCheck.summaryList.forEach(item => {
delete item.id;
delete item.summaryFlag;
delete item.displayOrder;
item.details.forEach(e => {
delete e.sumSummaryHeaderId;
delete e.displayOrder;
})
body.push(item)
});
console.log(`/api/app/sumsummaryheader/createsumsummary`, body)
if (body.length < 1) return
postapi(`/api/app/sumsummaryheader/createsumsummary`, body)
.then((res) => {
console.log("saveSummary", res.data);
if (res.code != -1) {
//this.dataTransOpts.tableS.patient_register.completeFlag = '1';
}
})
.catch((err) => {
this.$message({ type: "error", message: `综述保存失败,原因:${err}` });
});
},
//
saveSuggestion() {
let body = []
this.sumDoctorCheck.suggestionList.forEach(item => {
delete item.id;
delete item.suggestionFlag;
delete item.displayOrder;
item.details.forEach(e => {
delete e.sumSuggestionHeaderId;
delete e.displayOrder;
})
body.push(item)
});
console.log(`/api/app/sumsuggestionheader/createsumsuggestion`, body)
if (body.length < 1) return
postapi(`/api/app/sumsuggestionheader/createsumsuggestion`, body)
.then((res) => {
console.log("saveSuggestion", res.data);
if (res.code != -1) {
//this.dataTransOpts.tableS.patient_register.completeFlag = '1';
}
})
.catch((err) => {
this.$message({ type: "error", message: `建议保存失败,原因:${err}` });
});
},
addSummary() {
if (!this.dataTransOpts.tableS.patient_register.id) {
alert("请选择检查项目")
return
}
this.doctorCheck.checkSummaryList.push({
registerCheckId: this.dataTransOpts.tableS.patient_register.id,
summary: '',
summaryFlag: 'N',
})
this.doctorCheck.checkSuggestionList.push({
registerCheckId: this.dataTransOpts.tableS.patient_register.id,
suggestion: '',
})
},
}, },
//() //()
watch: { watch: {
//1
"patientRegister.query.CustomerOrgParentId"(newVal, oldVal) {
console.log(
"watch patientRegister.query.CustomerOrgParentId newVal:",
newVal,
" oldVal:",
oldVal
);
if (newVal != oldVal && newVal !== this.dict.personOrgId) {
this.getCustomerOrgGroup(newVal);
//
"dataTransOpts.refresh.patient_register.S": {
// immediate:true,
handler(newVal, oldVal) {
console.log(`watch 组合项目列表 newVal: ${newVal} oldVal: ${oldVal} patient_register.id: ${this.dataTransOpts.tableS.patient_register.patientRegisterNo}`);
this.getPatientRegister(this.dataTransOpts.tableS.patient_register.patientRegisterNo)
// this.dataTransOpts.refresh.register_check.M++
} }
}, },
}, },

64
src/components/report/PatientRegisterListNobtn.vue

@ -1,8 +1,9 @@
<template> <template>
<div> <div>
<div @contextmenu.prevent="onContextmenu"> <div @contextmenu.prevent="onContextmenu">
<el-table :data="patientRegister.prList" border :height="(window.pageHeight < 600) ? 290:(window.pageHeight - 350)" highlight-current-row
@row-click="rowick" size="small" @selection-change="handleSelectionChange" @cell-contextmenu="onCellRightClick">
<el-table :data="patientRegister.prList" border :height="(window.pageHeight < 600) ? 290 : (window.pageHeight - 350)"
highlight-current-row @row-click="rowClick" size="small" @selection-change="handleSelectionChange"
@cell-contextmenu="onCellRightClick">
<el-table-column type="selection" width="40" align="center" /> <el-table-column type="selection" width="40" align="center" />
<el-table-column prop="completeFlag" label="体检进度"> <el-table-column prop="completeFlag" label="体检进度">
<template slot-scope="scope"> <template slot-scope="scope">
@ -156,7 +157,7 @@
"creatorId": null, "creatorId": null,
"id": "3a0c196d-a6d0-37fe-5c32-4806bdc4530f" "id": "3a0c196d-a6d0-37fe-5c32-4806bdc4530f"
--> -->
</el-table>
</el-table>
</div> </div>
</div> </div>
</template> </template>
@ -165,7 +166,7 @@
import moment from "moment"; import moment from "moment";
import { mapState, mapActions } from "vuex"; import { mapState, mapActions } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { dddw, objCopy, arrayReduce, arrayExistObj } from "@/utlis/proFunc";
import { dddw, deepCopy, objCopy, arrayReduce, arrayExistObj } from "@/utlis/proFunc";
import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue"; import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue";
import Camera from "../../components/patientRegister/Camera.vue"; import Camera from "../../components/patientRegister/Camera.vue";
@ -219,7 +220,7 @@ export default {
this.quickAsb = this.dict.asbItemAll; this.quickAsb = this.dict.asbItemAll;
}, },
computed: { computed: {
...mapState(["window", "dict", "patientRegister", "customerOrg"]),
...mapState(["window", "dict", 'dataTransOpts', "patientRegister", "customerOrg"]),
}, },
methods: { methods: {
...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]), ...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]),
@ -243,9 +244,9 @@ export default {
this.$message.info("请勾选要打印指引单的人员记录!"); this.$message.info("请勾选要打印指引单的人员记录!");
return; return;
} }
if(!this.$peisAPI) {
if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!") this.$message.info("此功能,需要在壳客户端才可运行!")
return
return
} }
if (isPreview) { if (isPreview) {
@ -317,12 +318,16 @@ export default {
}, },
// //
rowick(row) {
rowClick(row) {
this.dataTransOpts.tableS.patient_register = deepCopy(row)
this.dataTransOpts.tableS.patient_register.id = row.patientRegisterId
//
this.dataTransOpts.refresh.patient_register.S++
//
this.dataTransOpts.refresh.sumDoctor.M++
//
this.dataTransOpts.refresh.register_check.M++
this.patientRegister.patientRegisterId = row.patientRegisterId;
this.patientRegister.patientRegisterRd = row
console.log('this.patientRegister.patientRegisterId',this.patientRegister.patientRegisterId)
}, },
// //
@ -738,22 +743,22 @@ export default {
let createRegisterAsbitemDtos = [...this.asbitemBatch.asbitemsTemp]; let createRegisterAsbitemDtos = [...this.asbitemBatch.asbitemsTemp];
createRegisterAsbitemDtos.forEach(e => { createRegisterAsbitemDtos.forEach(e => {
delete e.asbitemName;
return e;
});
delete e.asbitemName;
return e;
});
for (let i = 0; i < this.multipleSelection.length; i++) { for (let i = 0; i < this.multipleSelection.length; i++) {
createRegisterAsbitemDtos.forEach(e => { createRegisterAsbitemDtos.forEach(e => {
e.patientRegisterId = this.multipleSelection[i].id; e.patientRegisterId = this.multipleSelection[i].id;
return e;
return e;
}); });
body = { body = {
medicalCenterId:this.multipleSelection[i].medicalCenterId,
medicalCenterId: this.multipleSelection[i].medicalCenterId,
createRegisterAsbitemDtos, createRegisterAsbitemDtos,
} }
try { try {
await postapi('/api/app/registerasbitem/createregisterasbitemincustomerorgmany',body);
await postapi('/api/app/registerasbitem/createregisterasbitemincustomerorgmany', body);
} catch (error) { } catch (error) {
console.log('批量增加项目错误,原因:',error);
console.log('批量增加项目错误,原因:', error);
} }
} }
} else { } else {
@ -763,9 +768,9 @@ export default {
// asbitemIds: [], // asbitemIds: [],
// } // }
let asbitemIds = []; let asbitemIds = [];
if(this.asbitemBatch.isDeleteGroup){
if (this.asbitemBatch.isDeleteGroup) {
body.isDeleteGroup = 'Y'; body.isDeleteGroup = 'Y';
}else{
} else {
body.isDeleteGroup = 'N'; body.isDeleteGroup = 'N';
} }
for (let i = 0; i < this.multipleSelection.length; i++) { for (let i = 0; i < this.multipleSelection.length; i++) {
@ -776,11 +781,11 @@ export default {
body.patientRegisterId = this.multipleSelection[i].id; body.patientRegisterId = this.multipleSelection[i].id;
body.asbitemIds = asbitemIds body.asbitemIds = asbitemIds
try { try {
await postapi('/api/app/registerasbitem/deleteregisterasbitemincustomerorgmany',body);
await postapi('/api/app/registerasbitem/deleteregisterasbitemincustomerorgmany', body);
} catch (error) { } catch (error) {
console.log('批量删除项目错误,原因:',error);
console.log('批量删除项目错误,原因:', error);
} }
} }
} }
@ -847,9 +852,9 @@ export default {
], ],
}; };
if(!this.$peisAPI) {
if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!") this.$message.info("此功能,需要在壳客户端才可运行!")
return
return
} }
if (isPreview) { if (isPreview) {
@ -909,9 +914,9 @@ export default {
], ],
}; };
if(!this.$peisAPI) {
if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!") this.$message.info("此功能,需要在壳客户端才可运行!")
return
return
} }
if (isPreview) { if (isPreview) {
@ -1019,4 +1024,5 @@ export default {
input[type="number"]::-webkit-outer-spin-button { input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none !important; -webkit-appearance: none !important;
margin: 0 !important; margin: 0 !important;
}</style>
}
</style>

5
src/components/report/PatientRegisterQueryNobtn.vue

@ -28,7 +28,7 @@
<span>检查状态</span> <span>检查状态</span>
<el-select v-model="patientRegister.query.completeFlag" placeholder="请选择" clearable style="width: 80px" <el-select v-model="patientRegister.query.completeFlag" placeholder="请选择" clearable style="width: 80px"
size="small"> size="small">
<el-option v-for="item in dict.completeFlag" :key="item.id" :label="item.displayName" :value="item.id">
<el-option v-for="item in dict.completeFlag.filter(e => {return e.id != '0'})" :key="item.id" :label="item.displayName" :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
@ -162,6 +162,9 @@ export default {
::v-deep .el-input-group__append{ ::v-deep .el-input-group__append{
padding: 0 5px; /* 控件默认 0 20px;*/ padding: 0 5px; /* 控件默认 0 20px;*/
} }
::v-deep .el-icon-search:before {
color: #00F;
}
.query { .query {
margin-left: 10px; margin-left: 10px;
font-size: 14px; font-size: 14px;

24
src/components/report/RegisterCheckStatus.vue

@ -43,13 +43,11 @@ export default {
// //
mounted() { mounted() {
if (this.patientRegisterId) {
this.registerCheckList(this.patientRegisterId);
}
this.registerCheckList(this.dataTransOpts.tableS.patient_register.id)
}, },
computed: { computed: {
...mapState(["window", "dict", "doctorCheck"]),
...mapState(["window", "dict", "dataTransOpts", "doctorCheck"]),
}, },
methods: { methods: {
moment, dddw, moment, dddw,
@ -68,11 +66,13 @@ export default {
// //
registerCheckList(patientRegisterId) { registerCheckList(patientRegisterId) {
this.doctorCheck.RegisterCheckList = []
if (!patientRegisterId) return
console.log(`/api/app/register-check/register-check-or-asbitem/${patientRegisterId}`) console.log(`/api/app/register-check/register-check-or-asbitem/${patientRegisterId}`)
getapi(`/api/app/register-check/register-check-or-asbitem/${patientRegisterId}`) getapi(`/api/app/register-check/register-check-or-asbitem/${patientRegisterId}`)
.then((res) => { .then((res) => {
console.log("registerCheckList", res.data); console.log("registerCheckList", res.data);
if (res.code != -1) {
if (res.code > -1) {
this.doctorCheck.RegisterCheckList = res.data; this.doctorCheck.RegisterCheckList = res.data;
} }
}) })
@ -84,15 +84,15 @@ export default {
watch: { watch: {
//ID //ID
"patientRegisterId"(newVal, oldVal) {
console.log("watch patientRegisterId newVal:", newVal, " oldVal:", oldVal);
if (newVal != oldVal && newVal != '') {
this.registerCheckList(newVal);
//
"dataTransOpts.refresh.register_check.M": {
// immediate:true,
handler(newVal, oldVal) {
console.log(`watch 组合项目列表 newVal: ${newVal} oldVal: ${oldVal} patient_register.id: ${this.dataTransOpts.tableS.patient_register.id}`);
this.registerCheckList(this.dataTransOpts.tableS.patient_register.id)
} }
}, },
} }
}; };
</script> </script>
<style scoped>
</style>
<style scoped></style>

17
src/components/sumDoctorCheck/SumAsbItemStatus.vue

@ -59,7 +59,7 @@ export default {
}, },
computed: { computed: {
...mapState(["window", "dict","dataTransOpts", "doctorCheck", "sumDoctorCheck"]),
...mapState(["window", "dict", "dataTransOpts", "doctorCheck", "sumDoctorCheck"]),
sumHeight() { sumHeight() {
let tempHeight = this.window.pageHeight < 600 ? 600 : this.window.pageHeight let tempHeight = this.window.pageHeight < 600 ? 600 : this.window.pageHeight
return tempHeight - 320 return tempHeight - 320
@ -67,17 +67,14 @@ export default {
}, },
methods: { methods: {
getSumAsbItemStatus(PatientRegisterId) { getSumAsbItemStatus(PatientRegisterId) {
if (!PatientRegisterId) {
this.data.unCheckedAsbitem = [];
this.data.giveUpAsbitem = [];
this.data.checkedNullValueItem = [];
this.data.checkedGiveUpItem = [];
return
}
this.data.unCheckedAsbitem = [];
this.data.giveUpAsbitem = [];
this.data.checkedNullValueItem = [];
this.data.checkedGiveUpItem = [];
if (!PatientRegisterId) return
getapi(`/api/app/patientregister/getpatientregisteritemstatus?PatientRegisterId=${PatientRegisterId}`).then(res => { getapi(`/api/app/patientregister/getpatientregisteritemstatus?PatientRegisterId=${PatientRegisterId}`).then(res => {
if (res.code != -1) {
if (res.code > -1) {
this.data.unCheckedAsbitem = res.data.unCheckedAsbitem; this.data.unCheckedAsbitem = res.data.unCheckedAsbitem;
this.data.giveUpAsbitem = res.data.giveUpAsbitem; this.data.giveUpAsbitem = res.data.giveUpAsbitem;
this.data.checkedNullValueItem = res.data.checkedNullValueItem; this.data.checkedNullValueItem = res.data.checkedNullValueItem;

48
src/views/report/report.vue

@ -4,43 +4,27 @@
<div class="middlebox"> <div class="middlebox">
<div class="contenttitle"> <div class="contenttitle">
体检查询 / 体检查询 /
<span class="contenttitleBold"
>体检报告</span
>
<span class="contenttitleBold">体检报告</span>
</div> </div>
</div> </div>
<div style="display: flex;margin-top:7px"> <div style="display: flex;margin-top:7px">
<div
:style="
'display: block; width:' + (window.pageWidth - 110 - 10) + 'px;'
"
>
<div :style="'display: block; width:' + (window.pageWidth - 110 - 10) + 'px;'">
<PatientRegisterQueryNobtn orgEnable="Y" /> <PatientRegisterQueryNobtn orgEnable="Y" />
<div style="display: flex"> <div style="display: flex">
<div
:style="
'background-color: #fff;padding: 10px;border-radius: 8px;width:' +
Math.floor(((window.pageWidth - 110 - 60) * 3) / 4) +
'px;'
"
>
<div :style="'background-color: #fff;padding: 10px;border-radius: 8px;width:' +
Math.floor(((window.pageWidth - 110 - 60) * 3) / 4) +
'px;'
">
<PatientRegisterListNobtn /> <PatientRegisterListNobtn />
</div> </div>
<div
:style="
'background-color: #fff;padding: 10px;border-radius: 8px;margin-left: 10px;width:' +
Math.floor((window.pageWidth - 110 - 45 - 8) / 4) +
'px;'
"
>
<RegisterCheckStatus
:patientRegisterId="patientRegister.patientRegisterId"
/>
<div :style="'background-color: #fff;padding: 10px;border-radius: 8px;margin-left: 10px;width:' +
Math.floor((window.pageWidth - 110 - 45 - 8) / 4) +
'px;'
">
<RegisterCheckStatus />
</div> </div>
</div> </div>
<SumAsbItemStatus
:patientRegisterId="patientRegister.patientRegisterId"
/>
<SumAsbItemStatus />
</div> </div>
<div style="margin-left: 10px; "> <div style="margin-left: 10px; ">
<BtnReport /> <BtnReport />
@ -84,7 +68,7 @@ export default {
}, },
// //
mounted() {},
mounted() { },
computed: { computed: {
...mapState(["window", "dict", "patientRegister"]), ...mapState(["window", "dict", "patientRegister"]),
}, },
@ -158,7 +142,7 @@ export default {
}); });
// //
postapi("/api/app/medicalpackage/GetBasicList",{}).then((res) => {
postapi("/api/app/medicalpackage/GetBasicList", {}).then((res) => {
if (res.code != -1) { if (res.code != -1) {
this.dict.medicalPackage = res.data; this.dict.medicalPackage = res.data;
} }
@ -186,7 +170,7 @@ export default {
} }
}); });
postapi("/api/app/asbitem/GetBasicList",{}).then((res) => {
postapi("/api/app/asbitem/GetBasicList", {}).then((res) => {
if (res.code != -1) { if (res.code != -1) {
this.dict.asbItemAll = res.data; this.dict.asbItemAll = res.data;
} }
@ -213,6 +197,4 @@ export default {
@import '../../assets/css/global_input.css'; @import '../../assets/css/global_input.css';
@import '../../assets/css/global_table.css'; @import '../../assets/css/global_table.css';
@import '../../assets/css/global.css'; @import '../../assets/css/global.css';
</style> </style>
Loading…
Cancel
Save