Browse Source

筛查二维码,筛查列表显示内容调整

newMaster
liuzhipeng 3 months ago
parent
commit
816f14276e
  1. 2
      acupuncture-前台/src/views/screening/h5.vue
  2. 830
      acupuncture-前台/src/views/screening/index.vue
  3. 210
      acupuncture-前台/src/views/screening/qrCode.vue

2
acupuncture-前台/src/views/screening/h5.vue

@ -124,7 +124,7 @@ export default {
dicts: ["sys_notice_status", "sys_notice_type"], dicts: ["sys_notice_status", "sys_notice_type"],
data() { data() {
return { return {
stepNum: 2, stepNum: 1,
headers: { headers: {
Authorization: "Bearer " + getToken(), Authorization: "Bearer " + getToken(),
deptId: localStorage.getItem("hospitalId"), deptId: localStorage.getItem("hospitalId"),

830
acupuncture-前台/src/views/screening/index.vue

@ -1,113 +1,203 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div class="hospital">山西因孚社区</div>
<el-form <el-form
v-if="stepNum == 1" :model="queryParams"
:rules="rules" ref="queryForm"
ref="form" size="small"
:model="form" :inline="true"
label-width="110px" v-show="showSearch"
label-width="68px"
> >
<!-- 姓名性别单选出生日期年龄联系方式 --> <el-form-item label="" prop="noticeTitle">
<div class="card"> <el-input
<div class="card-title">基本信息</div> style="width: 300px"
<div> v-model="queryParams.param.keywords"
<el-form-item label="姓名" prop="name"> placeholder="支持姓名、全拼、简拼、手机号码"
<el-input v-model="form.name" placeholder="请输入姓名"></el-input> clearable
</el-form-item> @keyup.enter.native="handleQuery"
<el-form-item label="性别" prop="sex"> />
<el-radio v-model="form.sex" label="0"></el-radio> </el-form-item>
<el-radio v-model="form.sex" label="1"></el-radio> <el-form-item label="年龄范围" prop="createBy">
</el-form-item> <div class="form-item-age">
<el-form-item label="出生日期" prop="dateOfBirth">
<el-date-picker
v-model="form.dateOfBirth"
type="date"
placeholder="选择日期"
>
</el-date-picker>
</el-form-item>
<el-form-item label="年龄" prop="age">
<el-input
v-model="form.age"
type="number"
placeholder="请输入姓名"
></el-input>
</el-form-item>
<el-form-item label="联系方式" prop="phone">
<el-input
v-model="form.phone"
type="number"
placeholder="请输入联系方式"
></el-input>
</el-form-item>
</div>
</div>
<!-- 身高体重BMI -->
<div class="card">
<div class="card-title">体重自评</div>
<el-form-item label="身高cm" prop="height">
<el-input
@blur="calculateBMI"
v-model="form.height"
type="number"
placeholder="请输入身高"
></el-input>
</el-form-item>
<el-form-item label="体重kg" prop="weight">
<el-input <el-input
@blur="calculateBMI" v-model="queryParams.param.startAge"
v-model="form.weight" placeholder="最小年龄"
type="number" clearable
placeholder="请输入体重" @keyup.enter.native="handleQuery"
></el-input> />
</el-form-item> <span></span>
<el-form-item label="BMI" prop="BMI">
<el-input <el-input
:disabled="true" v-model="queryParams.param.endAge"
v-model="form.BMI" placeholder="最大年龄"
type="number" clearable
placeholder="BMI" @keyup.enter.native="handleQuery"
></el-input> />
</el-form-item> </div>
<el-form-item label="结论" prop="verdict"> </el-form-item>
<span :class="`BIMTips${BMIVerdict[form.verdict]}`"> <!-- <el-form-item label="建档组织" prop="tenantId">
{{ form.verdict || "- - -" }}</span <el-select
> v-model="queryParams.param.tenantId"
</el-form-item> placeholder="请选择"
</div> clearable
filterable
>
<el-option
v-for="(item, index) in tenantsListData"
:label="item.name"
:value="item.id"
:key="index"
/>
</el-select>
</el-form-item> -->
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">
重置
</el-button>
</el-form-item>
</el-form> </el-form>
<div class="card" v-if="stepNum == 2">
<div class="card-title">失眠自评SRSS</div> <el-row :gutter="10" class="mb8">
<div <el-col :span="1.5">
class="item-container" <el-button
v-for="(item, index) in scaleList" type="danger"
:key="index" plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<el-table
v-loading="loading"
:data="listDat"
@selection-change="handleSelectionChange"
max-height="600"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column
label="姓名"
align="center"
prop="name"
min-width="100"
show-overflow-tooltip
fixed
/>
<el-table-column
label="性别"
align="center"
prop="name"
min-width="100"
/>
<el-table-column
label="出生日期"
align="center"
prop="name"
min-width="100"
/>
<el-table-column
label="年龄"
align="center"
prop="name"
min-width="100"
/>
<el-table-column
label="联系方式"
align="center"
prop="name"
min-width="100"
/>
<el-table-column
label="身高cm"
align="center"
prop="name"
min-width="100"
/>
<el-table-column
label="体重kg"
align="center"
prop="name"
min-width="100"
/>
<el-table-column label="BMI" align="center" prop="name" min-width="100" />
<el-table-column
show-overflow-tooltip
label="结论"
align="center"
prop="name"
min-width="150"
> >
<div class="item-title">{{ index + 1 }}. {{ item.question }}</div> </el-table-column>
<div class="item-radio-box"> <el-table-column
<el-radio-group v-model="form[`topic${index + 1}`]"> label="失眠自评(SRSS)"
<el-radio align="center"
class="item-radio" prop="name"
v-for="(criteria, index) in item.options" min-width="150"
:key="index" />
:label="criteria.score" <el-table-column
>{{ criteria.label }} fixed="right"
</el-radio> label="创建人/创建时间"
</el-radio-group> align="center"
</div> min-width="140"
</div> >
</div> <template slot-scope="scope">
<div class="submit-box" v-if="stepNum == 1"> <div>{{ scope.row.createBy }}</div>
<el-button type="primary" class="submit-box-but" @click="submitForm"> <span>{{
下一步 parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}")
</el-button> }}</span>
</div> </template>
<div class="submit-box" v-if="stepNum == 2"> </el-table-column>
<el-button type="primary" class="submit-box-but" @click="scaleSubmitForm"> <el-table-column fixed="right" label="操作" align="center" width="150">
提交 <template slot-scope="scope">
</el-button> <el-button
</div> size="mini"
type="text"
icon="el-icon-download"
@click="handleArchives(scope.row)"
>导出
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleArchives(scope.row)"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div> </div>
</template> </template>
@ -119,12 +209,13 @@ import {
patientUpd, patientUpd,
patientDel, patientDel,
} from "@/api/patientFile"; } from "@/api/patientFile";
// import { tenantsList } from "@/api/member";
export default { export default {
name: "Notice", name: "Notice",
dicts: ["sys_notice_status", "sys_notice_type"], dicts: ["sys_notice_status", "sys_notice_type"],
data() { data() {
return { return {
stepNum: 2, tenantsListData: [], //
headers: { headers: {
Authorization: "Bearer " + getToken(), Authorization: "Bearer " + getToken(),
deptId: localStorage.getItem("hospitalId"), deptId: localStorage.getItem("hospitalId"),
@ -132,269 +223,171 @@ export default {
uploadFileUrl1: uploadFileUrl1:
process.env.VUE_APP_API_QZURL + "/acupuncture/patient/import", // process.env.VUE_APP_API_QZURL + "/acupuncture/patient/import", //
fileList: [], fileList: [],
// //
form: { medicalHistory: [
name: "", "高血压",
sex: "0", "脑血管病",
dateOfBirth: "", "恶性肿瘤",
age: "", "冠心病",
phone: "", "精神疾病",
height: "", "胃和十二指肠溃疡",
weight: "", "肥胖症",
BMI: "", "骨质疏松症",
verdict: "", "遗传性、先天性疾病",
}, "糖尿病",
BMITips: [ "慢性肺系疾病",
"高脂血症",
"肝脏疾病(脂肪肝、乙型肝炎、肝硬化等)",
"过敏性疾病",
"关节炎",
"痛风",
"肾炎、肾病",
"高脂血症",
],
idCardType: [
{ {
label: "偏瘦", label: "身份证",
score: 18.5, value: 0,
}, },
{ {
label: "正常", label: "护照或外国人永居证",
score: 23.9, value: 1,
}, },
{ {
label: "偏胖", label: "港澳居民来往内地通行",
score: 27.9, value: 2,
}, },
{ {
label: "肥胖", label: "台湾居民来往大陆通行证",
score: 28, value: 3,
},
{
label: "其他",
value: 4,
}, },
], ],
idCardTypeValue: {
0: "身份证",
1: "护照或外国人永居证",
2: "港澳居民来往内地通行",
3: "台湾居民来往大陆通行证",
4: "其他",
},
loading: false, //
ids: [], //
single: true, //
multiple: true, //
showSearch: true, //
total: 0, //
listDat: [{}], //
title: "", //
open: false, //
importOpen: false, //
//
queryParams: {
pageNum: 1,
pageSize: 10,
param: {
keywords: "", //
startAge: "", //
endAge: "", //
tenantId: "", //
createBy: "", //
sourceId: "", //
},
},
formDisabled: false,
importform: {},
//
form: {},
// //
rules: { rules: {
name: [ name: [
{ {
required: true, required: true,
message: "姓名不能为空", message: "患者姓名不能为空",
trigger: "blur", trigger: "blur",
}, },
], ],
sex: [ gender: [
{ {
required: true, required: true,
message: "性别不能为空", message: "性别不能为空",
trigger: "blur", trigger: "change",
}, },
], ],
dateOfBirth: [ birthDate: [
{ {
required: true, required: true,
message: "出生日期不能为空", message: "出生日期不能为空",
trigger: "change", trigger: "change",
}, },
], ],
age: [ phone: [
{ {
required: true, required: true,
message: "年龄不能为空", message: "手机号码不能为空",
trigger: "blur", trigger: "blur",
}, },
],
phone: [
{ {
required: true, pattern: /^1[3456789]\d{9}$/,
message: "联系方式不能为空", message: "手机号码格式不正确",
trigger: "blur", trigger: "blur",
}, },
],
ethnicity: [
{ {
pattern: /^1[3456789]\d{9}$/, required: true,
message: "格式不正确", message: "民族不能为空",
trigger: "change", trigger: "blur",
}, },
], ],
age: [ idCardType: [
{ {
required: true, required: true,
message: "年龄不能为空", message: "证件类型不能为空",
trigger: "blur", trigger: "blur",
}, },
], ],
height: [ idCard: [
{ {
required: true, required: true,
message: "身高不能为空", message: "证件号码不能为空",
trigger: "blur", trigger: "blur",
}, },
], ],
weight: [ educationYears: [
{ {
required: true, required: true,
message: "体重不能为空", message: "受教育年限不能为空",
trigger: "blur", trigger: "blur",
}, },
], ],
BMI: [ currentIllnessHistory: [
{ {
required: true, required: true,
message: "BMI不能为空", message: "现病史不能为空",
trigger: "blur", trigger: "blur",
}, },
], ],
}, },
BMIVerdict: {
偏瘦: "1",
正常: "2",
偏胖: "3",
肥胖: "4",
},
// 1. ?
//
// 2. ?
//
// 3., ?
// 0~5 6~12 13~18 ) 19~24 25~31
// 4. ?
// 9 7~8 5~6 3~4 1~2
// 5. ?
// 0~5 6~12 13~18 19~24 25~31
// 6. ?
// 0~5 6~12 13~18 19~24 25~31
// 7. ?
// 0~5 61~2 13~18 19~24 25~31
// 8. ?
// 0~5 61~2 13~18 19~24 25~31
// 9. , ?
// 0~5 61~2 13~18 19~24 25~31
// 10. ?
//
scaleList: [
{
question: "您觉得平时睡眠足够吗 ?",
options: [
{ label: "睡眠过多了", score: 1 },
{ label: "睡眠正好", score: 2 },
{ label: "睡眠欠一些", score: 3 },
{ label: "睡眠不够", score: 4 },
{ label: "睡眠时间远远不够", score: 5 },
],
},
{
question: "您在睡眠后是否已觉得充分休息过了 ?",
options: [
{ label: "觉得充分休息过了", score: 1 },
{ label: "觉得休息过了", score: 2 },
{ label: "觉得休息了一点", score: 3 },
{ label: "不觉得休息过了", score: 4 },
{ label: "觉得一点儿也没休息", score: 5 },
],
},
{
question: "您晚上已睡过觉,白天是否打瞌睡 ?",
options: [
{ label: "0~5 天", score: 1 },
{ label: "很少 (6~12 天)", score: 2 },
{ label: "有时 (13~18 天)", score: 3 },
{ label: "经常(19~24 天)", score: 4 },
{ label: "总是(25~31 天)", score: 5 },
],
},
{
question: "您平均每个晚上大约能睡几小时 ?",
options: [
{ label: "≥9小时", score: 1 },
{ label: "7~8 小时", score: 2 },
{ label: "5~6 小时", score: 3 },
{ label: "3~4 小时", score: 4 },
{ label: "1~2 小时", score: 5 },
],
},
{
question: "您是否有入睡困难 ?",
options: [
{ label: "0~5 天", score: 1 },
{ label: "很少 (6~12 天)", score: 2 },
{ label: "有时(13~18 天 )", score: 3 },
{ label: "经常(19~24 天)", score: 4 },
{ label: "总是(25~31 天)", score: 5 },
],
},
{
question: "您入睡后中间是否易醒 ?",
options: [
{ label: "0~5 天", score: 1 },
{ label: "很少(6~12 天)", score: 2 },
{ label: "有时(13~18 天)", score: 3 },
{ label: "经常 (19~24 天)", score: 4 },
{ label: "总是(25~31 天)", score: 5 },
],
},
{
question: "您在醒后是否难于再入睡 ?",
options: [
{ label: "0~5天", score: 1 },
{ label: "很少(6~12 天)", score: 2 },
{ label: "有时 (13~18 天)", score: 3 },
{ label: "经常 (19~24 天)", score: 4 },
{ label: "总是 (25~31 天)", score: 5 },
],
},
{
question: "您是否多梦或常被恶梦惊醒 ?",
options: [
{ label: "0~5天", score: 1 },
{ label: "很少(6~12 天)", score: 2 },
{ label: "有时 (13~18 天)", score: 3 },
{ label: "经常 (19~24 天)", score: 4 },
{ label: "总是 (25~31 天)", score: 5 },
],
},
{
question: "为了睡眠 , 您是否吃安眠药 ?",
options: [
{ label: "0~5天", score: 1 },
{ label: "很少(6~12 天)", score: 2 },
{ label: "有时 (13~18 天)", score: 3 },
{ label: "经常 (19~24 天)", score: 4 },
{ label: "总是 (25~31 天)", score: 5 },
],
},
{
question: "您失眠后心情(心境)如何 ?",
options: [
{ label: "无不适", score: 1 },
{ label: "无所谓", score: 2 },
{ label: "有时心烦、急躁", score: 3 },
{ label: "心慌、气短", score: 4 },
{ label: "乏力、没精神、做事效率低", score: 5 },
],
},
],
}; };
}, },
created() {}, created() {
let idCard = this.$route.query.idCard;
this.queryParams.param.keywords = idCard || "";
this.getList(); //
// this.getTenantsList(); //
},
methods: { methods: {
// BIM //
calculateBMI() { getTenantsList() {
if (this.form.weight && this.form.height) { tenantsList({
const weight = parseFloat(this.form.weight); pageNum: -1,
const height = parseFloat(this.form.height); param: {},
const bmi = weight / (height / 100) ** 2; }).then((res) => {
this.form.BMI = bmi.toFixed(2); this.tenantsListData = res.data.list;
this.getBMITips(bmi); });
}
},
// BIM
// <18.5
// 18.5~23.9
// 24~27.9
// 28
getBMITips(bmi) {
let tips = "";
if (bmi < 18.5) {
tips = "偏瘦";
}
if (bmi >= 18.5 && bmi < 23.9) {
tips = "正常";
}
if (bmi >= 24 && bmi < 27.9) {
tips = "偏胖";
}
if (bmi >= 28) {
tips = "肥胖";
}
this.form.verdict = tips;
}, },
// - pdg // - pdg
handleUploadPdfAdd1(res) { handleUploadPdfAdd1(res) {
@ -441,126 +434,155 @@ export default {
}, },
// //
reset() { reset() {
this.form = {}; this.form = {
name: "", //
gender: 0, //
birthDate: "", //
ethnicity: "", //
educationYears: "", //
phone: "", //
idCardType: "", //
idCard: "", //
source: 1,
currentIllnessHistory: [], //
currentIllnessHistoryQt: "", //
};
this.resetForm("form"); this.resetForm("form");
}, },
/** 基本信息 */ /** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams.param = {
keywords: "", //
startAge: "", //
endAge: "", //
tenantId: "", //
createBy: "", //
sourceId: "", //
};
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length != 1;
this.multiple = !selection.length;
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "新增患者档案";
this.formDisabled = false;
},
/** 修改按钮操作 */
handleUpdate(row) {
this.open = true;
this.title = "修改患者档案";
this.formDisabled = false;
this.form = JSON.parse(JSON.stringify(row));
//
this.form.currentIllnessHistory =
this.form.currentIllnessHistory?.split(",") || [];
},
/** 详情按钮操作 */
handleDetails(row) {
this.open = true;
this.title = "患者档案详情";
this.formDisabled = true;
this.form = JSON.parse(JSON.stringify(row));
//
this.form.currentIllnessHistory =
this.form.currentIllnessHistory?.split(",") || [];
},
/** 诊疗档案 */
handleArchives(row) {
this.$router.push({
path: `/medicalFile/index?idCard=${row.idCard}`,
});
},
/** 提交按钮 */
submitForm: function () { submitForm: function () {
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {
// patientAdd(this.form).then((response) => { if (this.form.id != undefined) {
// this.$modal.msgSuccess(""); patientUpd(this.form).then((response) => {
// this.open = false; this.$modal.msgSuccess("修改成功");
// this.getList(); this.open = false;
// }); this.getList();
this.stepNum++; });
} else {
patientAdd(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
} }
}); });
}, },
//
scaleSubmitForm() { /** 删除按钮操作 */
let score = 0; handleDelete(row) {
// , topic${i} const idList = row.id ? [row.id] : this.ids;
for (let i = 1; i <= 24; i++) { this.$modal
if (this.form[`topic${i}`] !== undefined) { .confirm("是否确认删除当前选择的数据?")
score += this.form[`topic${i}`]; .then(function () {
} return patientDel({
} idList: idList,
console.log("score", score); });
})
.then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download1(
"/patient/export",
{
...this.queryParams.params,
},
`患者档案.xlsx`
);
},
/** 下载按钮操作 */
handleDownload() {
window.open(
`${process.env.VUE_APP_API_QZURL}/acupuncture/profile/PatientTemplate.xlsx`
);
// this.download1(
// "/patient/export", {},
// `.xlsx`
// );
},
/** 导入按钮操作 */
handleImport() {
this.fileList = [];
this.importOpen = true;
}, },
}, },
}; };
</script> </script>
<style scoped src="@/assets/styles/common.css"></style> <style scoped src="@/assets/styles/common.css"></style>
<style scoped> <style scoped>
.hospital { .form-item-age {
background: #fff;
font-size: 20px;
color: #70483e;
line-height: 50px;
font-weight: 600;
margin-bottom: 10px;
border-radius: 6px;
text-align: center;
}
.BIMTips1 {
color: #cccccc;
}
.BIMTips2 {
color: #66cc00;
}
.BIMTips3 {
color: #ffff00;
}
.BIMTips4 {
color: #ff9900;
}
.item-radio {
display: block;
margin-bottom: 10px;
}
.item-title {
font-size: 18px;
font-weight: bold;
color: #3d3d3d;
line-height: 26px;
}
.item-radio-box {
margin: 16px 0px;
}
>>> .el-radio__label {
font-size: 16px;
color: #555555;
line-height: 20px;
}
.submit-box {
display: flex; display: flex;
justify-content: center;
align-items: center; align-items: center;
.submit-box-but {
background: #c6a268;
width: 100%;
font-size: 16px;
}
}
.card {
padding: 16px;
background: #fff;
border-radius: 6px;
margin-bottom: 14px;
}
.card-title {
font-weight: 600;
font-size: 20px;
margin-bottom: 16px;
}
/* */
.app-container {
/* background: linear-gradient(to bottom, #70483e, #f7f8fa); */
background: #70483e;
min-height: 100vh;
}
>>> .el-input__inner {
border: none;
border-bottom: 1px solid #dcdfe6;
border-radius: 0;
}
>>> .el-date-editor.el-input {
width: 100% !important;
}
>>> .el-form-item--medium .el-form-item__label {
padding-right: 30px;
} }
>>> .el-radio input[aria-hidden="true"] { .form-item-age span {
display: none !important; margin: 0 10px;
} }
>>> .el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .form-item-age >>> .el-input {
.el-radio__inner { width: 100px;
box-shadow: none !important;
} }
</style> </style>
<!-- >>> .el-input__inner { <!-- >>> .el-input__inner {

210
acupuncture-前台/src/views/screening/qrCode.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form <!-- <el-form
:model="queryParams" :model="queryParams"
ref="queryForm" ref="queryForm"
size="small" size="small"
@ -8,50 +8,19 @@
v-show="showSearch" v-show="showSearch"
label-width="68px" label-width="68px"
> >
<el-form-item label="" prop="noticeTitle"> <el-form-item label="建档组织" prop="tenantId">
<el-input
style="width: 300px"
v-model="queryParams.param.keywords"
placeholder="支持姓名、全拼、简拼、手机号码、证件号码"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="年龄范围" prop="createBy">
<div class="form-item-age">
<el-input
v-model="queryParams.param.startAge"
placeholder="最小年龄"
clearable
@keyup.enter.native="handleQuery"
/>
<span></span>
<el-input
v-model="queryParams.param.endAge"
placeholder="最大年龄"
clearable
@keyup.enter.native="handleQuery"
/>
</div>
</el-form-item>
<!-- <el-form-item label="建档组织" prop="tenantId">
<el-select <el-select
v-model="queryParams.param.tenantId" v-model="queryParams.param.tenantId"
placeholder="请选择" placeholder="请选择"
clearable clearable
filterable
> >
<el-option label="dict.label" value="dict.value" /> <el-option
</el-select> v-for="(item, index) in tenantsListData"
</el-form-item> --> :label="item.name"
<el-form-item label="数据来源" prop="sourceId"> :value="item.id"
<el-select :key="index"
v-model="queryParams.param.sourceId" />
placeholder="请选择"
clearable
>
<el-option label="筛查" :value="0" />
<el-option label="录入" :value="1" />
<el-option label="HIS" :value="2" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@ -66,7 +35,7 @@
重置 重置
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form> -->
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
@ -90,27 +59,7 @@
>删除</el-button >删除</el-button
> >
</el-col> </el-col>
<el-col :span="1.5"> <!-- <el-col :span="1.5">
<el-button
type="info"
plain
icon="el-icon-bottom"
size="mini"
@click="handleDownload"
>下载模版</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-upload2"
size="mini"
@click="handleImport"
>导入</el-button
>
</el-col>
<el-col :span="1.5">
<el-button <el-button
type="warning" type="warning"
plain plain
@ -119,7 +68,7 @@
@click="handleExport" @click="handleExport"
>导出</el-button >导出</el-button
> >
</el-col> </el-col> -->
<right-toolbar <right-toolbar
:showSearch.sync="showSearch" :showSearch.sync="showSearch"
@queryTable="getList" @queryTable="getList"
@ -134,139 +83,42 @@
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column <el-table-column
label="姓名" label="二维码"
align="center" align="center"
prop="name" prop="name"
min-width="100" min-width="100"
fixed
/> />
<el-table-column <el-table-column
label="性别" label="组织"
align="center" align="center"
prop="gender" prop="name"
show-overflow-tooltip
min-width="100"
fixed
>
<template slot-scope="scope">
<span v-if="scope.row.gender == 0"></span>
<span v-if="scope.row.gender == 1"></span>
</template>
</el-table-column>
<el-table-column
label="出生日期"
align="center"
prop="birthDate"
show-overflow-tooltip
min-width="150"
fixed
/>
<el-table-column
label="民族"
align="center"
prop="ethnicity"
show-overflow-tooltip
min-width="100"
/>
<el-table-column
label="受教育年限"
align="center"
prop="educationYears"
show-overflow-tooltip
min-width="100" min-width="100"
/> />
<el-table-column
label="手机号码"
align="center"
prop="phone"
show-overflow-tooltip
min-width="150"
/>
<el-table-column
label="证件类型"
align="center"
prop="idCardType"
show-overflow-tooltip
min-width="200"
>
<template slot-scope="scope">
{{ idCardTypeValue[scope.row.idCardType] }}
</template>
</el-table-column>
<el-table-column
label="证件号码"
align="center"
prop="idCard"
show-overflow-tooltip
min-width="180"
/>
<el-table-column <el-table-column label="创建人/创建时间" align="center" min-width="140">
label="建档人"
align="center"
prop="createBy"
show-overflow-tooltip
min-width="100"
/>
<el-table-column
label="建档组织(医院名称)"
align="center"
prop="tenantName"
show-overflow-tooltip
min-width="150"
/>
<el-table-column label="建档日期" align="center" min-width="140">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.createBy }}</div>
<span>{{ <span>{{
parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}") parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}")
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
fixed="right"
label="来源"
align="center"
prop="source"
show-overflow-tooltip
min-width="100"
>
<template slot-scope="scope">
<span v-if="scope.row.source == 0">筛查</span>
<span v-if="scope.row.source == 1">录入</span>
<span v-if="scope.row.source == 2">HIS</span>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" align="center" width="150"> <el-table-column fixed="right" label="操作" align="center" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-download"
@click="handleUpdate(scope.row)" @click="handleArchives(scope.row)"
>修改</el-button >导出
> </el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)"
>删除</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-tickets"
@click="handleDetails(scope.row)"
>详情</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-notebook-1"
@click="handleArchives(scope.row)" @click="handleArchives(scope.row)"
>诊疗档案</el-button >删除
> </el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -421,11 +273,13 @@ import {
patientUpd, patientUpd,
patientDel, patientDel,
} from "@/api/patientFile"; } from "@/api/patientFile";
// import { tenantsList } from "@/api/member";
export default { export default {
name: "Notice", name: "Notice",
dicts: ["sys_notice_status", "sys_notice_type"], dicts: ["sys_notice_status", "sys_notice_type"],
data() { data() {
return { return {
tenantsListData: [], //
headers: { headers: {
Authorization: "Bearer " + getToken(), Authorization: "Bearer " + getToken(),
deptId: localStorage.getItem("hospitalId"), deptId: localStorage.getItem("hospitalId"),
@ -586,9 +440,19 @@ export default {
created() { created() {
let idCard = this.$route.query.idCard; let idCard = this.$route.query.idCard;
this.queryParams.param.keywords = idCard || ""; this.queryParams.param.keywords = idCard || "";
this.getList(); this.getList(); //
// this.getTenantsList(); //
}, },
methods: { methods: {
//
getTenantsList() {
tenantsList({
pageNum: -1,
param: {},
}).then((res) => {
this.tenantsListData = res.data.list;
});
},
// - pdg // - pdg
handleUploadPdfAdd1(res) { handleUploadPdfAdd1(res) {
if (res.code == 200) { if (res.code == 200) {
@ -702,7 +566,7 @@ export default {
/** 诊疗档案 */ /** 诊疗档案 */
handleArchives(row) { handleArchives(row) {
this.$router.push({ this.$router.push({
path: `/medicalIndex?idCard=${row.idCard}`, path: `/medicalFile/index?idCard=${row.idCard}`,
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */

Loading…
Cancel
Save