@@ -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
+ this.queryParams.campusAgencyId = null
}
} else {
- this.queryParams.campusAgencyId = null
+ 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();
diff --git a/src/views/manage/patientInfo/index.vue b/src/views/manage/patientInfo/index.vue
index 23bb0c8..69ce3bd 100644
--- a/src/views/manage/patientInfo/index.vue
+++ b/src/views/manage/patientInfo/index.vue
@@ -153,7 +153,7 @@