|
|
|
@ -1,34 +1,15 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div style="display: flex"> |
|
|
|
<el-table |
|
|
|
:data="dataList" |
|
|
|
border |
|
|
|
width="100%" |
|
|
|
height="480" |
|
|
|
row-key="id" |
|
|
|
size="small" |
|
|
|
class="el-table__body-wrapper tbody" |
|
|
|
highlight-current-row |
|
|
|
@row-click="rowick" |
|
|
|
ref="dataList" |
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
> |
|
|
|
<el-table :data="dataList" border width="100%" height="480" row-key="id" size="small" |
|
|
|
class="el-table__body-wrapper tbody" highlight-current-row @row-click="rowick" ref="dataList" |
|
|
|
@selection-change="handleSelectionChange"> |
|
|
|
<el-table-column type="selection" width="40"> |
|
|
|
|
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="completeFlag" label="体检进度"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ |
|
|
|
ldddw( |
|
|
|
dict.completeFlag, |
|
|
|
"id", |
|
|
|
scope.row.completeFlag, |
|
|
|
"displayName" |
|
|
|
) |
|
|
|
}} |
|
|
|
</div> |
|
|
|
<div>{{ ldddw(dict.completeFlag, "id", scope.row.completeFlag, "displayName") }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="isLock" label="锁住"> |
|
|
|
@ -38,30 +19,18 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="customerOrgParentName" label="单位" width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ |
|
|
|
scope.row.customerOrgParentName |
|
|
|
? scope.row.customerOrgParentName |
|
|
|
: scope.row.customerOrgName |
|
|
|
}} |
|
|
|
</div> |
|
|
|
<div>{{ scope.row.customerOrgParentName ? scope.row.customerOrgParentName : scope.row.customerOrgName }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="customerOrgName" label="部门" width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ |
|
|
|
scope.row.customerOrgParentName ? scope.row.customerOrgName : "" |
|
|
|
}} |
|
|
|
</div> |
|
|
|
<div>{{ scope.row.customerOrgParentName ? scope.row.customerOrgName : "" }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="patientName" label="姓名" /> |
|
|
|
<el-table-column prop="sexId" label="性别"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ ldddw(dict.sex, "id", scope.row.sexId, "displayName") }} |
|
|
|
</div> |
|
|
|
<div>{{ ldddw(dict.sex, "id", scope.row.sexId, "displayName") }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="age" label="年龄" /> |
|
|
|
@ -70,35 +39,11 @@ |
|
|
|
<el-table-column prop="medicalTimes" label="体检次数"></el-table-column> |
|
|
|
<el-table-column label="分组/套餐" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div |
|
|
|
v-if=" |
|
|
|
scope.row.medicalPackageId !== dict.personOrgId && |
|
|
|
scope.row.customerOrgId === dict.personOrgId |
|
|
|
" |
|
|
|
> |
|
|
|
套餐{{ |
|
|
|
ldddw( |
|
|
|
dict.medicalPackage, |
|
|
|
"id", |
|
|
|
scope.row.medicalPackageId, |
|
|
|
"displayName" |
|
|
|
) |
|
|
|
}} |
|
|
|
<div v-if="scope.row.medicalPackageId !== dict.personOrgId && scope.row.customerOrgId === dict.personOrgId"> |
|
|
|
{{ ldddw(dict.medicalPackage, "id", scope.row.medicalPackageId, "displayName") }} |
|
|
|
</div> |
|
|
|
<div |
|
|
|
v-if=" |
|
|
|
scope.row.medicalPackageId !== dict.personOrgId && |
|
|
|
scope.row.customerOrgId !== dict.personOrgId |
|
|
|
" |
|
|
|
> |
|
|
|
分组{{ |
|
|
|
ldddw( |
|
|
|
dict.customerOrgGroupAll, |
|
|
|
"id", |
|
|
|
scope.row.customerOrgGroupId, |
|
|
|
"displayName" |
|
|
|
) |
|
|
|
}} |
|
|
|
<div v-if="scope.row.medicalPackageId !== dict.personOrgId && scope.row.customerOrgId !== dict.personOrgId"> |
|
|
|
{{ ldddw(dict.customerOrgGroupAll, "id", scope.row.customerOrgGroupId, "displayName") }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -126,42 +71,21 @@ |
|
|
|
<el-table-column prop="maritalStatusId" label="婚姻状况"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ |
|
|
|
ldddw( |
|
|
|
dict.maritalStatus, |
|
|
|
"id", |
|
|
|
scope.row.maritalStatusId, |
|
|
|
"displayName" |
|
|
|
) |
|
|
|
}} |
|
|
|
{{ ldddw(dict.maritalStatus, "id", scope.row.maritalStatusId, "displayName") }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="medicalTypeId" label="体检类别"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.medicalTypeId !== dict.personOrgId"> |
|
|
|
{{ |
|
|
|
ldddw( |
|
|
|
dict.medicalType, |
|
|
|
"id", |
|
|
|
scope.row.medicalTypeId, |
|
|
|
"displayName" |
|
|
|
) |
|
|
|
}} |
|
|
|
{{ ldddw(dict.medicalType, "id", scope.row.medicalTypeId, "displayName") }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="personnelTypeId" label="人员类别"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.personnelTypeId !== dict.personOrgId"> |
|
|
|
{{ |
|
|
|
ldddw( |
|
|
|
dict.personnelType, |
|
|
|
"id", |
|
|
|
scope.row.personnelTypeId, |
|
|
|
"displayName" |
|
|
|
) |
|
|
|
}} |
|
|
|
{{ ldddw(dict.personnelType, "id", scope.row.personnelTypeId, "displayName") }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -224,9 +148,7 @@ |
|
|
|
<el-button type="danger" @click="del">删除</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" @click="openCamera" icon="el-icon-camera" |
|
|
|
>拍照</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" @click="openCamera" icon="el-icon-camera">拍照</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary">健康档案</el-button> |
|
|
|
@ -244,23 +166,13 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 体检人员登记 --> |
|
|
|
<el-dialog |
|
|
|
:title="patientRegister.patientRegisterId ? '编辑' : '新增'" |
|
|
|
:visible.sync="dialogVisible" |
|
|
|
width="100%" |
|
|
|
> |
|
|
|
<el-dialog :title="patientRegister.patientRegisterId ? '编辑' : '新增'" :visible.sync="dialogVisible" width="100%"> |
|
|
|
<PatientRegisterEdit /> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 拍照 --> |
|
|
|
<el-dialog |
|
|
|
title="拍照" |
|
|
|
:visible.sync="patientRegister.cameraVisble" |
|
|
|
width="400" |
|
|
|
height="800" |
|
|
|
:show-close="false" |
|
|
|
:append-to-body="true" |
|
|
|
> |
|
|
|
<el-dialog title="拍照" :visible.sync="patientRegister.cameraVisble" width="400" height="800" :show-close="false" |
|
|
|
:append-to-body="true"> |
|
|
|
<Camera :id="patientRegister.patientRegisterId" /> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
@ -288,10 +200,10 @@ export default { |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
created() {}, |
|
|
|
created() { }, |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
mounted() {}, |
|
|
|
mounted() { }, |
|
|
|
computed: { |
|
|
|
...mapState(["dict", "patientRegister", "customerOrg"]), |
|
|
|
}, |
|
|
|
@ -305,14 +217,13 @@ export default { |
|
|
|
|
|
|
|
//获取单位分组 /api/app/customer-org-group/in-customer-org-id/3a0c0444-d7a0-871f-4074-19faf1655caf |
|
|
|
getCustomerOrgGroup(customerOrgld) { |
|
|
|
getapi( |
|
|
|
`/api/app/customer-org-group/in-customer-org-id/${customerOrgld}` |
|
|
|
).then((res) => { |
|
|
|
console.log("getCustomerOrgGroup", res.data); |
|
|
|
if (res.code == 1) { |
|
|
|
this.patientRegister.customerOrgGroup = res.data; |
|
|
|
} |
|
|
|
}); |
|
|
|
getapi(`/api/app/customer-org-group/in-customer-org-id/${customerOrgld}`) |
|
|
|
.then((res) => { |
|
|
|
console.log("getCustomerOrgGroup", res.data); |
|
|
|
if (res.code == 1) { |
|
|
|
this.patientRegister.customerOrgGroup = res.data; |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
//点击体检次数行 |
|
|
|
@ -321,8 +232,8 @@ export default { |
|
|
|
this.patientRegister.patientRegisterId = row.id; |
|
|
|
this.patientRegister.patientRegisterRd = row; |
|
|
|
this.patientRegister.query.customerOrgParentId = row.customerOrgParentId; |
|
|
|
this.patientRegister.customerOrgGroupChange = 0; //控制体检列表记录切换时,0 无需触发更换分组操作 |
|
|
|
this.patientRegister.medicalPackageChange=0; //控制体检列表记录切换时,0 无需触发更换套餐操作 |
|
|
|
this.patientRegister.customerOrgGroupChange = 0; //控制体检列表记录切换时,0 无需触发更换分组操作 |
|
|
|
this.patientRegister.medicalPackageChange = 0; //控制体检列表记录切换时,0 无需触发更换套餐操作 |
|
|
|
this.getCustomerOrgGroup(row.customerOrgParentId); |
|
|
|
this.dict.asbItem = [...this.dict.asbItemAll] |
|
|
|
this.getPatientRegisterAbs(row.id); |
|
|
|
@ -415,9 +326,7 @@ export default { |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
//console.log('${this.patientRegister.patientRegisterId}',this.patientRegister.patientRegisterId) |
|
|
|
return deletapi( |
|
|
|
`/api/app/patient-register/${this.patientRegister.patientRegisterId}` |
|
|
|
); |
|
|
|
return deletapi(`/api/app/patient-register/${this.patientRegister.patientRegisterId}`); |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
this.$message.success("删除成功"); |
|
|
|
@ -425,10 +334,7 @@ export default { |
|
|
|
this.patientRegister.patientRegisterId = ""; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ |
|
|
|
type: "info", |
|
|
|
message: "已取消删除", |
|
|
|
}); |
|
|
|
this.$message({ type: "info", message: "已取消删除", }); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
@ -442,9 +348,40 @@ export default { |
|
|
|
|
|
|
|
//查询 |
|
|
|
query() { |
|
|
|
getapi("/api/app/patient-register/in-filter").then((res) => { |
|
|
|
this.dataList = res.data; |
|
|
|
}); |
|
|
|
let body = {} |
|
|
|
|
|
|
|
console.log(`this.patientRegister.query`, this.patientRegister.query) |
|
|
|
if (this.patientRegister.query.customerOrgFlag) { |
|
|
|
if (this.patientRegister.query.CustomerOrgParentId) { |
|
|
|
body.customerOrgId = this.patientRegister.query.CustomerOrgParentId |
|
|
|
} else{ |
|
|
|
if (this.patientRegister.query.customerOrgId) body.customerOrgId = this.patientRegister.query.customerOrgId |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (this.patientRegister.query.sex) body.sexId = this.patientRegister.query.sex |
|
|
|
|
|
|
|
if (this.patientRegister.query.patientName) body.patientName = this.patientRegister.query.patientName |
|
|
|
|
|
|
|
//StartDate EndDate |
|
|
|
if (this.patientRegister.query.dateRange) { |
|
|
|
body.startDate = moment(new Date(this.patientRegister.query.dateRange[0])).format("yyyy-MM-DD") |
|
|
|
body.endDate = moment(new Date(this.patientRegister.query.dateRange[1])).format("yyyy-MM-DD") |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.patientRegister.query.idCardNo) body = { idNo: this.patientRegister.query.idCardNo } |
|
|
|
|
|
|
|
if (this.patientRegister.query.patientNo) body = { patientNo: this.patientRegister.query.patientNo } |
|
|
|
|
|
|
|
if (this.patientRegister.query.patientRegisterNo) body = { patientRegisterNo: this.patientRegister.query.patientRegisterNo } |
|
|
|
|
|
|
|
|
|
|
|
console.log('/api/app/patientregister/getlistinfilter', body) |
|
|
|
postapi('/api/app/patientregister/getlistinfilter', body) |
|
|
|
.then((res) => { |
|
|
|
this.dataList = res.data; |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|