|
@@ -62,10 +62,18 @@
|
|
|
</div>
|
|
|
<div class="target-content">
|
|
|
<div class="target-type">
|
|
|
- <div class="target-type-head">快速筛选</div>
|
|
|
-
|
|
|
+ <div class="target-type-head">
|
|
|
+ <span>快速筛选:</span>
|
|
|
+ <el-input
|
|
|
+ placeholder="请输入疾病类型"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model="searchText"
|
|
|
+ @change="handleInputChange"
|
|
|
+ clearable
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
<div
|
|
|
- v-for="(e, eIndex) in countList"
|
|
|
+ v-for="(e, eIndex) in filterList"
|
|
|
:key="eIndex + 'ronn124'"
|
|
|
class="target-type-box"
|
|
|
>
|
|
@@ -221,9 +229,7 @@
|
|
|
>个案管理</el-button
|
|
|
>
|
|
|
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- @click="handleHzClick(scope.row)"
|
|
|
+ <el-button type="text" @click="handleHzClick(scope.row)"
|
|
|
>会诊记录</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -328,10 +334,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item
|
|
|
-
|
|
|
- label="是否加入随访计划:"
|
|
|
- >
|
|
|
+ <el-form-item label="是否加入随访计划:">
|
|
|
<el-select
|
|
|
v-model="form.addFollowUp"
|
|
|
style="width: 100%"
|
|
@@ -346,7 +349,7 @@
|
|
|
<el-date-picker
|
|
|
v-model="form.limitDt"
|
|
|
type="date"
|
|
|
- style="width: 100%"
|
|
|
+ style="width: 100%"
|
|
|
placeholder="选择开始日期"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
>
|
|
@@ -510,7 +513,11 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog title="申请会诊列表" :visible.sync="dialogHzListVisible" width="80%">
|
|
|
+ <el-dialog
|
|
|
+ title="申请会诊列表"
|
|
|
+ :visible.sync="dialogHzListVisible"
|
|
|
+ width="80%"
|
|
|
+ >
|
|
|
<!-- <div class=""><el-button type="primary" @click="addNewHz()">申请会诊</el-button></div> -->
|
|
|
<div class="">
|
|
|
<el-table :data="tableHzData" style="width: 100%" highlight-current-row>
|
|
@@ -547,7 +554,9 @@
|
|
|
<el-table-column fixed="right" label="操作" width="320">
|
|
|
<template slot-scope="scope">
|
|
|
<!-- <el-button type="text" @click="handleEditHZ(scope.row)">编辑</el-button> -->
|
|
|
- <el-button type="text" @click="handleAlertHz(scope.row)">提醒</el-button>
|
|
|
+ <el-button type="text" @click="handleAlertHz(scope.row)"
|
|
|
+ >提醒</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -579,7 +588,7 @@ import {
|
|
|
saveFollowup,
|
|
|
saveApplyForm,
|
|
|
queryDoctorUsers,
|
|
|
- queryMzApplyByUser
|
|
|
+ queryMzApplyByUser,
|
|
|
} from "@/api/patient";
|
|
|
import {
|
|
|
queryUserByLabelId,
|
|
@@ -588,9 +597,14 @@ import {
|
|
|
getTagsLogById,
|
|
|
addCrmRemark,
|
|
|
} from "@/api/tag";
|
|
|
-import { queryExamsReportsByIds ,queryLabsReportsByIds,queryOperationRecordItem} from "@/api/patient";
|
|
|
+import {
|
|
|
+ queryExamsReportsByIds,
|
|
|
+ queryLabsReportsByIds,
|
|
|
+ queryOperationRecordItem,
|
|
|
+} from "@/api/patient";
|
|
|
import CCITTreeSelect from "@/components/CCIT-treeSelect";
|
|
|
import { deptTree } from "@/api/user";
|
|
|
+import { debounce } from 'lodash'
|
|
|
export default {
|
|
|
components: { RoninArchive, PositiveDoc, IllbessSelect, CCITTreeSelect },
|
|
|
filters: {
|
|
@@ -676,11 +690,31 @@ export default {
|
|
|
launchDoctorOptions: [],
|
|
|
groupType: "", //目标类型
|
|
|
|
|
|
- currUser:{},
|
|
|
- dialogHzListVisible:false,
|
|
|
- tableHzData:[]
|
|
|
+ currUser: {},
|
|
|
+ dialogHzListVisible: false,
|
|
|
+ tableHzData: [],
|
|
|
+ searchText: "",
|
|
|
+ filterList: [], // 新增过滤后的列表
|
|
|
};
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ searchText: {
|
|
|
+ handler: debounce(function (newVal) {
|
|
|
+ this.filterList = this.countList.map(category => {
|
|
|
+ const filteredItems = category.statisticLabelList.filter(item =>
|
|
|
+ item.name.toLowerCase().includes(newVal.toLowerCase())
|
|
|
+ );
|
|
|
+ return {
|
|
|
+ ...category,
|
|
|
+ statisticLabelList: filteredItems
|
|
|
+ };
|
|
|
+ }).filter(category =>
|
|
|
+ newVal ? category.statisticLabelList.length > 0 : true
|
|
|
+ );
|
|
|
+ }, 300),
|
|
|
+ immediate: true
|
|
|
+ }
|
|
|
+ },
|
|
|
mounted() {
|
|
|
this.getDeptTree();
|
|
|
this.form.doctorId = getUserID();
|
|
@@ -690,21 +724,22 @@ export default {
|
|
|
this.getPatientCount();
|
|
|
},
|
|
|
methods: {
|
|
|
- // 会诊单独(可能作废)
|
|
|
+ // 会诊单独(可能作废)
|
|
|
handleHzClick(data) {
|
|
|
console.log(data);
|
|
|
- this.dialogHzListVisible = true
|
|
|
- this.currUser = data
|
|
|
- this.getMzList(data)
|
|
|
-
|
|
|
+ this.dialogHzListVisible = true;
|
|
|
+ this.currUser = data;
|
|
|
+ this.getMzList(data);
|
|
|
},
|
|
|
|
|
|
- getMzList(data) {
|
|
|
- queryMzApplyByUser({ patientId: this.currUser.patientInfo.patientId }).then(res => {
|
|
|
+ getMzList(data) {
|
|
|
+ queryMzApplyByUser({
|
|
|
+ patientId: this.currUser.patientInfo.patientId,
|
|
|
+ }).then((res) => {
|
|
|
if (res.code === 0 && res.data.list) {
|
|
|
- this.tableHzData = res.data.list
|
|
|
+ this.tableHzData = res.data.list;
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
onClickGroupChange(data) {
|
|
|
this.groupType = data.conditionType;
|
|
@@ -871,7 +906,10 @@ export default {
|
|
|
},
|
|
|
// 目标列表
|
|
|
targetList() {
|
|
|
- phaseConfigList({ diseaseIds: [this.form.diseaseId],state:'normal' }).then((res) => {
|
|
|
+ phaseConfigList({
|
|
|
+ diseaseIds: [this.form.diseaseId],
|
|
|
+ state: "normal",
|
|
|
+ }).then((res) => {
|
|
|
if (res.code == "0" && res.data) {
|
|
|
this.options = res.data;
|
|
|
|
|
@@ -906,6 +944,7 @@ export default {
|
|
|
}).then((res) => {
|
|
|
if (res.code == 0 && res.data) {
|
|
|
this.countList = res.data;
|
|
|
+ this.filterList = res.data
|
|
|
const item = res.data[0];
|
|
|
this.checkLabelId = item.statisticLabelList[0].id;
|
|
|
// this.targetList()
|
|
@@ -1006,12 +1045,12 @@ export default {
|
|
|
console.log(arr, "显示数据123");
|
|
|
const examsList = [];
|
|
|
const labsList = [];
|
|
|
- const operationList = []
|
|
|
+ const operationList = [];
|
|
|
|
|
|
for (const v of arr) {
|
|
|
if (v.data && v.data.length > 0) {
|
|
|
for (const k of v.data) {
|
|
|
- if (k.value?.type === "examine_project" ) {
|
|
|
+ if (k.value?.type === "examine_project") {
|
|
|
// k.value.mdv.type = k.value.type;
|
|
|
examsList.push(k.value.mdv.id);
|
|
|
}
|
|
@@ -1021,15 +1060,15 @@ export default {
|
|
|
labsList.push(k.value.mdv.id);
|
|
|
}
|
|
|
|
|
|
- if(k.value?.type === "operation_apply"){
|
|
|
- operationList.push(k.value.mdv.id)
|
|
|
+ if (k.value?.type === "operation_apply") {
|
|
|
+ operationList.push(k.value.mdv.id);
|
|
|
}
|
|
|
|
|
|
// k.value?.type === "operation_apply" 手术申请等大胖加
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- console.log(examsList,labsList,operationList,'11111111')
|
|
|
+ console.log(examsList, labsList, operationList, "11111111");
|
|
|
if (examsList.length > 0) {
|
|
|
this.queryExamsReports(examsList);
|
|
|
}
|
|
@@ -1038,8 +1077,8 @@ export default {
|
|
|
this.queryLabsReports(labsList);
|
|
|
}
|
|
|
|
|
|
- if(operationList.length>0){
|
|
|
- this.queryOperationList(operationList);
|
|
|
+ if (operationList.length > 0) {
|
|
|
+ this.queryOperationList(operationList);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -1079,8 +1118,8 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- queryOperationList(list){
|
|
|
- if (!list || list.length == 0) {
|
|
|
+ queryOperationList(list) {
|
|
|
+ if (!list || list.length == 0) {
|
|
|
return;
|
|
|
}
|
|
|
const params = {
|
|
@@ -1118,7 +1157,7 @@ export default {
|
|
|
this.$forceUpdate();
|
|
|
this.form.patientId = data.patientId;
|
|
|
this.form.sourceObjId = data.id;
|
|
|
- this.groupType = ''
|
|
|
+ this.groupType = "";
|
|
|
this.form.sourceType = "patient_label";
|
|
|
this.addUser = true;
|
|
|
},
|
|
@@ -1194,6 +1233,10 @@ export default {
|
|
|
}
|
|
|
return sex === "W" ? "女" : "男";
|
|
|
},
|
|
|
+ // 快速筛选
|
|
|
+ handleInputChange() {
|
|
|
+ console.log("eee");
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|