|
|
|
@ -1,9 +1,9 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<div @contextmenu.prevent="onContextmenu"> |
|
|
|
<el-table :data="patientRegister.prList" border ref="info" id="info" |
|
|
|
:height="(window.pageHeight < 600) ? 230 : (window.pageHeight - 370)" highlight-current-row |
|
|
|
@row-click="rowClick" size="small" @selection-change="handleSelectionChange"> |
|
|
|
@row-click="rowClick" size="small" @selection-change="handleSelectionChange" @row-contextmenu="rowContextmenu"> |
|
|
|
<el-table-column :type="dragCol[0].type" width="40" align="center" /> |
|
|
|
<!--列可拖拽 key值很关键 --> |
|
|
|
<el-table-column v-for="(item, index) in dragCol" v-if="index != 0" :key="`${item.label + index}`" |
|
|
|
@ -29,9 +29,11 @@ |
|
|
|
<div v-else-if=" |
|
|
|
dragCol[index].prop == 'isVip' || |
|
|
|
dragCol[index].prop == 'isUpload' || |
|
|
|
dragCol[index].prop == 'isUploadAppoint' |
|
|
|
dragCol[index].prop == 'isUploadAppoint' || |
|
|
|
dragCol[index].prop == 'isReceiveReport' |
|
|
|
"> |
|
|
|
<el-checkbox :value="scope.row[dragCol[index].prop] == 'Y'" /> |
|
|
|
<el-checkbox :value="scope.row[dragCol[index].prop]=='Y'" true-label="Y" |
|
|
|
false-label="N" /> |
|
|
|
</div> |
|
|
|
<div v-else-if="dragCol[index].prop == 'packGroup'"> |
|
|
|
{{ scope.row.medicalPackageName || scope.row.customerOrgGroupName }} |
|
|
|
@ -107,7 +109,7 @@ export default { |
|
|
|
{ label: "体检进度", prop: "completeFlag", minWidth: 90, align: "center" }, |
|
|
|
{ label: "体检日期", prop: "medicalStartDate", minWidth: 100, align: "center" }, |
|
|
|
{ label: "打印", prop: "isReportPrint", minWidth: 60, align: "center" }, |
|
|
|
{ label: "打印人", prop: "reportPrintName", minWidth: 70, align: "center" }, |
|
|
|
{ label: "领取", prop: "isReceiveReport", minWidth: 60, align: "center" }, |
|
|
|
{ label: "预约备单", prop: "isUploadAppoint", minWidth: 90, align: "center" }, |
|
|
|
{ label: "上传", prop: "isUpload", minWidth: 60, align: "center" }, |
|
|
|
{ label: "条码号", prop: "patientRegisterNo", minWidth: 150, align: "center" }, |
|
|
|
@ -140,6 +142,9 @@ export default { |
|
|
|
{ label: "审核日期", prop: "auditDate", minWidth: 140, align: "center" }, |
|
|
|
{ label: "登记人", prop: "registerName", minWidth: 80, align: "center" }, |
|
|
|
{ label: "登记时间", prop: "registerDate", minWidth: 140, align: "center" }, |
|
|
|
{ label: "打印人", prop: "reportPrintName", minWidth: 70, align: "center" }, |
|
|
|
{ label: "领取人", prop: "reportReceiveName", minWidth: 70, align: "center" }, |
|
|
|
{ label: "领取时间", prop: "reportReceiveDate", minWidth: 140, align: "center" }, |
|
|
|
{ label: "锁住", prop: "isLock", minWidth: 60, align: "center" }, |
|
|
|
], |
|
|
|
|
|
|
|
@ -210,6 +215,86 @@ export default { |
|
|
|
await this.queryEvent() |
|
|
|
}, |
|
|
|
|
|
|
|
// 取消领取 |
|
|
|
canselGetReport() { |
|
|
|
let body = { |
|
|
|
patientRegisterIds: [], |
|
|
|
isReceiveReport: 'N' |
|
|
|
} |
|
|
|
|
|
|
|
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.patientRegisterId) rd.push({ patientRegisterId: this.dataTransOpts.tableS.patient_register.patientRegisterId }) |
|
|
|
} |
|
|
|
if (rd.length == 0) { |
|
|
|
this.$message.warning({ showClose: true, message: "请先勾选或选择记录(有勾选人员时,仅操作勾选的记录)!" }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
rd.forEach(e => { |
|
|
|
body.patientRegisterIds.push(e.patientRegisterId) |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
postapi('/api/app/PatientRegister/BatchUpdatePatientRegisterReportReceive', body) |
|
|
|
.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 |
|
|
|
body.patientRegisterIds.forEach(patientRegisterId => { |
|
|
|
lfind = arrayExistObj(this.patientRegister.prList, 'patientRegisterId', patientRegisterId) |
|
|
|
if (lfind > -1) { |
|
|
|
this.patientRegister.prList[lfind].isReceiveReport = body.isReceiveReport |
|
|
|
this.patientRegister.prList[lfind].reportReceiveDate = reportReceiveDate |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 右击 |
|
|
|
rowContextmenu(row, column) { |
|
|
|
this.dataTransOpts.tableS.patient_register = deepCopy(row) |
|
|
|
}, |
|
|
|
|
|
|
|
onContextmenu(event) { |
|
|
|
// items.push({ |
|
|
|
// label: "一级菜单", |
|
|
|
// children: [ |
|
|
|
// { label: "修改姓名", onClick: () => { this.fnUpBaseInfo(row, 'patientName'); } } |
|
|
|
// ] |
|
|
|
// }) |
|
|
|
let items = [] |
|
|
|
|
|
|
|
//取消领取报告 |
|
|
|
items.push({ |
|
|
|
label:'取消领取报告', |
|
|
|
onClick: () => { |
|
|
|
this.canselGetReport(); |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
// 右击菜单显示 |
|
|
|
this.$contextmenu({ |
|
|
|
items, |
|
|
|
event, |
|
|
|
x: event.clientX, |
|
|
|
y: event.clientY, |
|
|
|
customClass: "custom-class", |
|
|
|
zIndex: 3, |
|
|
|
minWidth: 80, |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//滚动加载数据 |
|
|
|
scrollFull() { |
|
|
|
this.dom = this.$refs['info'].bodyWrapper |
|
|
|
|