外呼记录搜索条件批次新增明细
This commit is contained in:
parent
66ea32162a
commit
f82fabcba3
@ -91,7 +91,7 @@ export default {
|
||||
*/
|
||||
name: "Pagination",
|
||||
//由父组件传递总条数 每页显示数 连续页码数 当前页下标
|
||||
props: ["total", "pageSize", "indexFromWrap", "indexFrom"],
|
||||
props: ["total", "pageSize", "indexFromWrap"],
|
||||
data() {
|
||||
return {
|
||||
lxyms: 7,
|
||||
@ -214,18 +214,6 @@ export default {
|
||||
deep: true,
|
||||
immediate: true,
|
||||
},
|
||||
indexFrom: {
|
||||
handler(val) {
|
||||
if (val) {
|
||||
this.currentpageSize = val;
|
||||
} else {
|
||||
this.currentpageSize = 10;
|
||||
}
|
||||
},
|
||||
deep: true,
|
||||
immediate: true,
|
||||
},
|
||||
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
@ -58,23 +58,20 @@
|
||||
<el-option v-for="item in wardlist" :key="item.id" :label="item.departmentName" :value="item.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item> -->
|
||||
<!-- <el-form-item label="主治医生" prop="attendingPhysicianId">
|
||||
</el-form-item>
|
||||
<el-form-item label="主治医生" prop="attendingPhysicianId">
|
||||
<el-select v-model="queryParams.attendingPhysicianId" style="width: 200px" filterable placeholder="请选择主治医生"
|
||||
clearable>
|
||||
<el-option v-for="item in attendingPhysicianlist" :key="item.userId" :label="item.nickName"
|
||||
:value="item.userId">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item> -->
|
||||
|
||||
<!-- <el-form-item>
|
||||
</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> -->
|
||||
</SearchFilter>
|
||||
|
||||
|
||||
</div>
|
||||
<div ref="table">
|
||||
<el-table :max-height="maxTableHeight" v-loading="loading" :data="patientInfoList">
|
||||
@ -90,9 +87,6 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="诊断" align="center" prop="mainDiagnosis" />
|
||||
|
||||
|
||||
|
||||
<!-- <el-table-column label="性别" align="center" prop="sex">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.sex == "MALE" ? "男" : "" }}
|
||||
@ -100,7 +94,6 @@
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<!-- <el-table-column label="出生日期" align="center" prop="birthDate" width="130" />
|
||||
|
||||
<el-table-column label="院区" align="center" prop="campusAgencyName" width="130" />
|
||||
<el-table-column label="病区名称" align="center" prop="wardName" width="130" />
|
||||
<el-table-column label="住院/门诊号" align="center" prop="inHospitalNumber" width="130" />
|
||||
@ -126,13 +119,12 @@
|
||||
<el-button size="mini" type="text" @click="handleAuthRole(scope.row)">详情</el-button>
|
||||
<el-button size="mini" type="text" @click="handleDelete(scope.row)">删除</el-button>
|
||||
<!-- <el-button size="mini" type="text" @click="handleedit(scope.row)">画像编辑</el-button> -->
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<!-- <myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
|
||||
:indexFromWrap="queryParams.pageNum" :indexFrom="indexFrom" @updateCPage="updateCPage"></myPagination> -->
|
||||
<myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
|
||||
:indexFromWrap="queryParams.pageNum" :indexFrom="indexFrom" @updateCPage="updateCPage"></myPagination>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -155,7 +147,6 @@ export default {
|
||||
components: { SearchFilter, cardlist },
|
||||
data() {
|
||||
return {
|
||||
indexFrom: 100,
|
||||
searchData: {},
|
||||
maxTableHeight: undefined,
|
||||
attendingPhysicianlist: [],
|
||||
@ -501,12 +492,7 @@ export default {
|
||||
const layoutDiv = this.$refs.layout;
|
||||
const formDiv = this.$refs.topform;
|
||||
const mb8Div = this.$refs.mb8;
|
||||
this.maxTableHeight =
|
||||
windowInnerHeight -
|
||||
134 -
|
||||
this.getBoxPadding(layoutDiv) -
|
||||
this.getBoxHeight(mb8Div) -
|
||||
this.getBoxHeight(formDiv);
|
||||
this.maxTableHeight = windowInnerHeight - 134 - this.getBoxPadding(layoutDiv) - this.getBoxHeight(mb8Div) - this.getBoxHeight(formDiv);
|
||||
},
|
||||
// 屏幕resize监听
|
||||
screenChange() {
|
||||
|
||||
@ -146,7 +146,7 @@
|
||||
</el-table>
|
||||
</div>
|
||||
<myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
|
||||
:indexFromWrap="queryParams.pageNum" :indexFrom="indexFrom" @updateCPage="updateCPage"></myPagination>
|
||||
:indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -167,7 +167,6 @@ export default {
|
||||
components: { SearchFilter, cardlist },
|
||||
data() {
|
||||
return {
|
||||
indexFrom: 100,
|
||||
searchData: {},
|
||||
maxTableHeight: undefined,
|
||||
attendingPhysicianlist: [],
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div class="app-container" ref="layout">
|
||||
<div ref="topform" class="form">
|
||||
<SearchFilter labelWidth="90px" :labelWidths="310" size="small" @search="handleQuery"
|
||||
@reset="resetQuery" @minShowCtrol="getMaxTableHeight">
|
||||
<SearchFilter labelWidth="90px" :labelWidths="310" size="small" @search="handleQuery" @reset="resetQuery"
|
||||
@minShowCtrol="getMaxTableHeight">
|
||||
<el-form-item label="姓名" prop="patientName">
|
||||
<el-input style="width: 220px" v-model="queryParams.patientName" placeholder="请输入患者姓名" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
|
||||
@ -15,12 +15,15 @@
|
||||
<!--用户数据-->
|
||||
<el-col :span="24" :xs="24">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
|
||||
label-width="100px">
|
||||
<el-form-item label="导入日期" prop="" label-width="120px">
|
||||
label-width="110px">
|
||||
<el-form-item label="导入日期" prop="">
|
||||
<el-date-picker v-model="createTime" type="daterange" range-separator="至" start-placeholder="开始日期"
|
||||
style="width: 220px" value-format="yyyy-MM-dd" end-placeholder="结束日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="批次名称" prop="importName">
|
||||
<el-input v-model="queryParams.importName" placeholder="请输入批次名称" clearable style="width: 200px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="医院" prop="">
|
||||
<el-select v-model="queryParams.hospitalAgencyId" filterable placeholder="请选择医院" style="width:220px"
|
||||
clearable @clear="clearhospitalAgency" @change="changehospitalAgency">
|
||||
@ -49,8 +52,9 @@
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="批次名称" align="center" prop="importName" width="150" />
|
||||
<el-table-column label="患者数" align="center" prop="patientCount" width="150" />
|
||||
<el-table-column label="操作人" align="center" prop="createBy" />
|
||||
<!-- <el-table-column label="操作人" align="center" prop="createBy" /> -->
|
||||
<el-table-column label="导入日期" align="center" prop="createTime">
|
||||
<template slot-scope="scope">
|
||||
<span>
|
||||
@ -74,45 +78,44 @@
|
||||
@pagination="getlist" />
|
||||
</el-dialog>
|
||||
<el-dialog title="导入明细" :visible.sync="ImportDetailsopen" width="70%" :before-close="ImportDetailsopenfalse">
|
||||
<SearchFilter :labelWidths="310" labelWidth="90px" size="small" @search="ImportDetailhandleQuery"
|
||||
@reset="ImportDetailresetQuery" @minShowCtrol="getMaxTableHeight" @handleRules="handleRules">
|
||||
<!-- <el-form :model="ImportDetailqueryParams" size="small" :inline="true" label-width="100px" @submit.prevent>
|
||||
<el-form-item label="姓名" prop="patientName">
|
||||
<el-input v-model="ImportDetailqueryParams.patientName" placeholder="请输入姓名" clearable
|
||||
@keyup.enter.native="ImportDetailhandleQuery" style="width: 200px" />
|
||||
<el-input v-model="ImportDetailqueryParams.patientName" placeholder="请输入姓名" clearable style="width: 200px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="联系电话" prop="patientPhone">
|
||||
<el-input v-model="ImportDetailqueryParams.patientPhone" placeholder="请输入联系电话" clearable
|
||||
@keyup.enter.native="ImportDetailhandleQuery" style="width: 200px" />
|
||||
style="width: 200px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="医院" prop="hospitalAgencyId">
|
||||
<el-select v-model="ImportDetailqueryParams.hospitalAgencyId" filterable placeholder="请选择医院"
|
||||
style="width: 200px" clearable @clear="clearhospitalAgency" @change="changehospitalAgency">
|
||||
style="width: 200px" clearable @clear="clearhospitalAgency(1)" @change="changehospitalAgency($event, 1)">
|
||||
<el-option v-for="item in hospitalAgencylist" :key="item.id" :label="item.agencyName" :value="item.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="科室" prop="departmentId">
|
||||
<el-select v-model="ImportDetailqueryParams.departmentId" filterable placeholder="请选择科室" style="width: 200px"
|
||||
clearable @clear="cleardepartment" @change="changedepartment">
|
||||
clearable>
|
||||
<el-option v-for="item in departmentlist" :key="item.id" :label="item.departmentName" :value="item.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</SearchFilter>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="ImportDetailhandleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="ImportDetailresetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form> -->
|
||||
<el-table :data="patientInfoList">
|
||||
<el-table-column label="序号" type="index" width="48" align="center" />
|
||||
<el-table-column label="序号" type="index" width="50" align="center" />
|
||||
<el-table-column label="姓名" align="center" prop="patientName" />
|
||||
<el-table-column label="联系电话" align="center" prop="patientPhone" />
|
||||
<el-table-column label="年龄" align="center" prop="age" />
|
||||
<el-table-column label="医院" align="center" prop="hospitalAgencyName" />
|
||||
<el-table-column label="科室名称" align="center" prop="departmentName" />
|
||||
<el-table-column label="导入日期" align="center" prop="visitDate">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.Timeimport, "{y}-{m}-{d}") }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="诊断" align="center" prop="mainDiagnosis" />
|
||||
</el-table>
|
||||
<pagination v-show="ImportDetailtotal > 0" :total="ImportDetailtotal" :page.sync="ImportDetailqueryParams.pageNum"
|
||||
:limit.sync="ImportDetailqueryParams.pageSize" @pagination="getsn" />
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
@ -120,6 +123,8 @@
|
||||
import { patientInfoImportBatchlist } from "@/api/manage/patientInfoImport";
|
||||
import stationAcatar from "../../system/stationAvatar/index.vue";
|
||||
import { selectAgencyList, getAgencyList } from "@/api/manage/selectAgencyList";
|
||||
import { getPatientList } from "@/api/manage/patientInfo";
|
||||
import { usergetList } from "@/api/unitconfig/patientConfiguration";
|
||||
|
||||
export default {
|
||||
props: ["templateId"],
|
||||
@ -168,12 +173,17 @@ export default {
|
||||
importTimeStart: "",
|
||||
importTimeEnd: "",
|
||||
campusAgencyId: null,
|
||||
importName: null,
|
||||
},
|
||||
patientInfoList: [],
|
||||
departmentlist: [],
|
||||
ImportDetailtotal: 0,
|
||||
ImportDetailqueryParams: {
|
||||
sn: null,
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
patientName: null,
|
||||
patientPhone: null,
|
||||
birthDate: null,
|
||||
patientType: null,
|
||||
visitMethod: null,
|
||||
mainDiagnosis: null,
|
||||
@ -187,11 +197,7 @@ export default {
|
||||
wardId: null,
|
||||
wardName: null,
|
||||
surgicalName: null,
|
||||
admissionTimeStart: null,
|
||||
admissionTimeEnd: null,
|
||||
outpatientNumber: null,
|
||||
visitDateStart: null,
|
||||
visitDateEnd: null,
|
||||
dischargeMethod: null,
|
||||
patientSource: null,
|
||||
}
|
||||
@ -210,28 +216,31 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
// 流水号/明细
|
||||
handsn(row) {
|
||||
this.ImportDetailqueryParams.sn = row.sn;
|
||||
/** 搜索按钮操作 */
|
||||
ImportDetailhandleQuery() {
|
||||
this.ImportDetailqueryParams.pageNum = 1;
|
||||
this.getsn();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
ImportDetailresetQuery() {
|
||||
this.ImportDetailqueryParams = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
sn: this.ImportDetailqueryParams.sn
|
||||
};
|
||||
this.getsn();
|
||||
},
|
||||
getsn() {
|
||||
getPatientList(this.ImportDetailqueryParams).then((response) => {
|
||||
response.rows.forEach((e) => {
|
||||
e.birthDate ? (e.age = getAge(e.birthDate)) : e.age;
|
||||
});
|
||||
response.rows.forEach((e) => {
|
||||
e.Timeimport = this.$route.query.Timeimport
|
||||
});
|
||||
this.patientInfoList = response.rows;
|
||||
this.total = response.total;
|
||||
this.ImportDetailsopen = true
|
||||
this.ImportDetailtotal = response.total;
|
||||
});
|
||||
// this.$router.push({
|
||||
// path: "/patient/ImportDetails",
|
||||
// query: {
|
||||
// path: "/patient/patientinfoimport",
|
||||
// sn: row.sn,
|
||||
// Timeimport: row.createTime,
|
||||
// },
|
||||
// });
|
||||
},
|
||||
// 流水号/明细
|
||||
async handsn(row) {
|
||||
this.ImportDetailqueryParams.sn = row.sn;
|
||||
await this.getsn()
|
||||
this.ImportDetailsopen = true
|
||||
},
|
||||
//获取医院list
|
||||
selectAgencyinfo() {
|
||||
@ -272,13 +281,24 @@ export default {
|
||||
// selectAgencyList(query).then(res => {
|
||||
if (type) {
|
||||
if (!typetwo) {
|
||||
this.form.campusAgencyId = null
|
||||
}
|
||||
} else {
|
||||
this.queryParams.campusAgencyId = null
|
||||
}
|
||||
} else {
|
||||
this.ImportDetailqueryParams.campusAgencyId = null
|
||||
}
|
||||
//医生
|
||||
this.usergetListinfo();
|
||||
// })
|
||||
},
|
||||
//主治医生
|
||||
usergetListinfo() {
|
||||
usergetList({
|
||||
hospitalAgencyId: this.queryParams.hospitalAgencyId,
|
||||
postName: "DOCTOR",
|
||||
}).then((res) => {
|
||||
this.attendingPhysicianlist = res.data;
|
||||
});
|
||||
},
|
||||
//选中院区获取科室
|
||||
changecampusAgency(id, type, typetwo) {
|
||||
this.getAgencyListinfo('CAMPUS', id, type)
|
||||
@ -286,9 +306,9 @@ export default {
|
||||
//清空医院
|
||||
clearhospitalAgency(type) {
|
||||
if (type) {
|
||||
this.form.campusAgencyId = null
|
||||
this.form.departmentId = null
|
||||
this.form.wardId = null
|
||||
this.ImportDetailqueryParams.campusAgencyId = null
|
||||
this.ImportDetailqueryParams.departmentId = null
|
||||
this.ImportDetailqueryParams.wardId = null
|
||||
} else {
|
||||
this.queryParams.campusAgencyId = null
|
||||
this.queryParams.departmentId = null
|
||||
@ -298,9 +318,9 @@ export default {
|
||||
//清空院区
|
||||
clearcampusAgency(type) {
|
||||
if (type) {
|
||||
this.form.departmentId = null
|
||||
this.form.wardId = null
|
||||
this.getAgencyListinfo('HOSPITAL', this.form.hospitalAgencyId, type)
|
||||
this.ImportDetailqueryParams.departmentId = null
|
||||
this.ImportDetailqueryParams.wardId = null
|
||||
this.getAgencyListinfo('HOSPITAL', this.ImportDetailqueryParams.hospitalAgencyId, type)
|
||||
} else {
|
||||
this.queryParams.departmentId = null
|
||||
this.queryParams.wardId = null
|
||||
@ -353,7 +373,12 @@ export default {
|
||||
resetQuery() {
|
||||
this.queryParams = {
|
||||
pageNum: 1,
|
||||
pageSize: 10
|
||||
pageSize: 10,
|
||||
importName: null,
|
||||
hospitalAgencyId: null,
|
||||
importTimeStart: "",
|
||||
importTimeEnd: "",
|
||||
campusAgencyId: null,
|
||||
}
|
||||
this.createTime = '';
|
||||
this.handleQuery();
|
||||
|
||||
@ -153,7 +153,7 @@
|
||||
<cardlist :maxTableHeight="maxTableHeight" :patientInfoList="patientInfoList"></cardlist>
|
||||
</div>
|
||||
<myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
|
||||
:indexFromWrap="queryParams.pageNum" :indexFrom="indexFrom" @updateCPage="updateCPage"></myPagination>
|
||||
:indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -175,7 +175,6 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
type: "card",
|
||||
indexFrom: "",
|
||||
searchData: {},
|
||||
maxTableHeight: undefined,
|
||||
attendingPhysicianlist: [],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user