|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="layout_container">
|
|
|
<header>
|
|
|
- <el-input v-model="keyCode" class="w-50 m-2" style="width: 360px" placeholder="请输入姓名/证件号/门诊号/住院号" clearable>
|
|
|
+ <el-input v-model="keyCode" class="w-50 m-2" style="width: 300px" placeholder="请输入姓名/证件号/门诊号/住院号" clearable>
|
|
|
<template #prepend>关键字</template>
|
|
|
</el-input>
|
|
|
<el-date-picker v-model="dateRange" type="daterange" range-separator="至" start-placeholder="开始日期"
|
|
@@ -12,6 +12,15 @@
|
|
|
<el-select v-model="delFlag" placeholder="请选择是否有效" clearable style="width: 160px;margin-left: 3px">
|
|
|
<el-option v-for="item in delFlagOptions" :key="item.code" :label="item.name" :value="item.code" />
|
|
|
</el-select>
|
|
|
+<!-- <el-select v-model="creatDept" placeholder="请选择建档科室" clearable filterable :remote-method="queryUnitCode" style="width: 160px;margin-left: 3px">-->
|
|
|
+<!-- <el-option v-for="item in unitData" :key="item.code" :label="item.name" :value="item.code" />-->
|
|
|
+<!-- </el-select>-->
|
|
|
+ <el-select-v2 v-model="creatDept" clearable remote style="width: 200px;margin-left: 3px"
|
|
|
+ filterable :options="unitData" :remote-method="queryUnitCode" placeholder="请选择建档科室">
|
|
|
+ <template #default="{ item }">
|
|
|
+ <span style="margin-right: 8px">{{ item.name }}</span>
|
|
|
+ </template>
|
|
|
+ </el-select-v2>
|
|
|
<el-button type="primary" icon="Search" @click="queryChronicDisease" style="margin-left: 5px">查询</el-button>
|
|
|
<el-button type="primary" icon="Download" @click="exportData" style="margin-left: 5px">导出</el-button>
|
|
|
</header>
|
|
@@ -94,6 +103,7 @@ import { selectChronicDisease, getCrmDictionary, selectMbDelPermissions, delChro
|
|
|
import { Export } from '@/utils/ExportExcel'
|
|
|
import { clone } from '@/utils/clone'
|
|
|
import router from "@/router";
|
|
|
+import {queryDept} from "@/api/public-api";
|
|
|
|
|
|
const pageSize = ref(30)
|
|
|
const currentPage = ref(1)
|
|
@@ -109,6 +119,8 @@ const diseaseType = ref('')
|
|
|
let dics = ref({})
|
|
|
const delUser = ref('')
|
|
|
const delFlag = ref('')
|
|
|
+// 建档科室
|
|
|
+const creatDept = ref('')
|
|
|
const start = formatDate(seltYearAndNowLast[1].value[0])
|
|
|
const end = formatDate(seltYearAndNowLast[1].value[1])
|
|
|
const dateRange = ref([])
|
|
@@ -118,6 +130,7 @@ const queryTerm = reactive({
|
|
|
keyCode: '',
|
|
|
diseaseType: '',
|
|
|
delFlag: '',
|
|
|
+ deptCode: '',
|
|
|
})
|
|
|
|
|
|
const delFlagOptions = [{ code: '', name: '全部' }, { code: '0', name: '有效' }, { code: '1', name: '无效' }]
|
|
@@ -125,6 +138,7 @@ const delFlagOptions = [{ code: '', name: '全部' }, { code: '0', name: '有效
|
|
|
onMounted(() => {
|
|
|
nextTick(async () => {
|
|
|
queryMbDelPermissions()
|
|
|
+ await queryUnitCode('')
|
|
|
dics.value = await getCrmDictionary()
|
|
|
queryTerm.startTime = start
|
|
|
queryTerm.endTime = end + ' 23:59:59'
|
|
@@ -133,6 +147,13 @@ onMounted(() => {
|
|
|
})
|
|
|
})
|
|
|
|
|
|
+const unitData = ref([])
|
|
|
+const queryUnitCode = async (code) => {
|
|
|
+ await queryDept(code).then((res) => {
|
|
|
+ unitData.value = res
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
const queryMbDelPermissions = () => {
|
|
|
selectMbDelPermissions()
|
|
|
.then((res) => {
|
|
@@ -160,6 +181,7 @@ const queryChronicDisease = () => {
|
|
|
queryTerm.keyCode = keyCode.value
|
|
|
queryTerm.diseaseType = diseaseType.value
|
|
|
queryTerm.delFlag = delFlag.value
|
|
|
+ queryTerm.deptCode = creatDept.value
|
|
|
selectChronicDisease(queryTerm)
|
|
|
.then((res) => {
|
|
|
chronicDiseaseData.value = res
|
|
@@ -208,7 +230,6 @@ function delChronicDisease({ pId }) {
|
|
|
duration: 2500,
|
|
|
showClose: true,
|
|
|
});
|
|
|
- return
|
|
|
})
|
|
|
})
|
|
|
}
|
|
@@ -229,7 +250,6 @@ function hfChronicDisease({ pId }) {
|
|
|
duration: 2500,
|
|
|
showClose: true,
|
|
|
});
|
|
|
- return
|
|
|
})
|
|
|
})
|
|
|
}
|