|
@@ -11,12 +11,7 @@
|
|
|
<div v-if="choice == 0" class="bnh">
|
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
|
<el-form-item label="">
|
|
|
- <el-input
|
|
|
- v-model="formData0.input"
|
|
|
- placeholder="输入关键字搜索"
|
|
|
- class="input-with-select width500"
|
|
|
- >
|
|
|
- </el-input>
|
|
|
+ <el-input v-model="formData0.input" placeholder="输入关键字搜索" class="input-with-select width500"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-date-picker
|
|
@@ -25,7 +20,7 @@
|
|
|
format="yyyy 年 MM 月 dd 日"
|
|
|
value-format="yyyyMMdd"
|
|
|
placeholder="出院时间开始"
|
|
|
- :picker-options="pickerOptions"
|
|
|
+ :picker-options="pickerOptions"
|
|
|
:disabled="lock"
|
|
|
/>
|
|
|
<span class="pind10" />
|
|
@@ -35,78 +30,38 @@
|
|
|
format="yyyy 年 MM 月 dd 日"
|
|
|
value-format="yyyyMMdd"
|
|
|
placeholder="出院时间结束"
|
|
|
- :picker-options="pickerOptions"
|
|
|
+ :picker-options="pickerOptions"
|
|
|
:disabled="lock"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button
|
|
|
- class="bule"
|
|
|
- icon="el-icon-search"
|
|
|
- @click="funQuery(0)"
|
|
|
- >检索</el-button
|
|
|
- >
|
|
|
+ <el-button class="bule" icon="el-icon-search" @click="funQuery(0)">检索</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div style="margin: 15px" />
|
|
|
</div>
|
|
|
<div v-else class="barBtn">
|
|
|
<el-form ref="form" :model="formData1" label-width="100px">
|
|
|
- <el-form-item
|
|
|
- v-for="(item, index) in formData1.seniorList"
|
|
|
- :key="index"
|
|
|
- >
|
|
|
+ <el-form-item v-for="(item, index) in formData1.seniorList" :key="index">
|
|
|
<!-- 下拉框开始 -->
|
|
|
- <el-select
|
|
|
- v-if="index != 0"
|
|
|
- v-model="item.select_type"
|
|
|
- :class="index != 0 ? 'marginLeft' : ''"
|
|
|
- class="width100"
|
|
|
- filterable
|
|
|
- placeholder=""
|
|
|
- :disabled="item.lock"
|
|
|
- >
|
|
|
+ <el-select v-if="index != 0" v-model="item.select_type" :class="index != 0 ? 'marginLeft' : ''" class="width100" filterable placeholder="" :disabled="item.lock">
|
|
|
<!-- fieldList -->
|
|
|
<el-option label="且" :value="0" />
|
|
|
<el-option label="或者" :value="1" />
|
|
|
<el-option label="不包含" :value="2" />
|
|
|
</el-select>
|
|
|
<span v-if="index != 0" class="pind10" />
|
|
|
- <el-select
|
|
|
- v-model="item.key"
|
|
|
- class="width150"
|
|
|
- filterable
|
|
|
- placeholder="请选择"
|
|
|
- @change="funSelect(index)"
|
|
|
- :disabled="item.lock"
|
|
|
- >
|
|
|
+ <el-select v-model="item.key" class="width150" filterable placeholder="请选择" @change="funSelect(index)" :disabled="item.lock">
|
|
|
<!-- fieldList -->
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in fieldList"
|
|
|
- :key="index"
|
|
|
- :label="item.name"
|
|
|
- :value="item.id"
|
|
|
- :disabled="item.lock"
|
|
|
- />
|
|
|
+ <el-option v-for="(item, index) in fieldList" :key="index" :label="item.name" :value="item.id" :disabled="item.lock" />
|
|
|
</el-select>
|
|
|
<!-- 下拉框结束 -->
|
|
|
|
|
|
<span class="pind10" />
|
|
|
<!-- 中间选择输入框开始 -->
|
|
|
<span v-if="item.key == 'AAC11N'">
|
|
|
- <el-select
|
|
|
- v-model="item.value"
|
|
|
- class="width150"
|
|
|
- filterable
|
|
|
- placeholder="请选择"
|
|
|
- :disabled="item.lock"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="(itemo, indexo) in departmentList"
|
|
|
- :key="indexo"
|
|
|
- :label="itemo.name"
|
|
|
- :value="itemo.name"
|
|
|
- />
|
|
|
+ <el-select v-model="item.value" class="width150" filterable placeholder="请选择" :disabled="item.lock">
|
|
|
+ <el-option v-for="(itemo, indexo) in departmentList" :key="indexo" :label="itemo.name" :value="itemo.name" />
|
|
|
</el-select>
|
|
|
</span>
|
|
|
<span v-else>
|
|
@@ -125,19 +80,8 @@
|
|
|
<span class="pind10" />
|
|
|
<!-- 增减重置选项按钮开始 -->
|
|
|
<span>
|
|
|
- <el-button
|
|
|
- v-if="index != 0 && !item.lock"
|
|
|
- :disabled="formData1.seniorList.length == 1"
|
|
|
- type="primary"
|
|
|
- icon="el-icon-minus"
|
|
|
- @click="funDel(index)"
|
|
|
- />
|
|
|
- <el-button
|
|
|
- v-if="index == formData1.seniorList.length - 1"
|
|
|
- type="primary"
|
|
|
- icon="el-icon-plus"
|
|
|
- @click="funAdd"
|
|
|
- />
|
|
|
+ <el-button v-if="index != 0 && !item.lock" :disabled="formData1.seniorList.length == 1" type="primary" icon="el-icon-minus" @click="funDel(index)" />
|
|
|
+ <el-button v-if="index == formData1.seniorList.length - 1" type="primary" icon="el-icon-plus" @click="funAdd" />
|
|
|
<el-button v-if="index === formData1.seniorList.length - 1 && searchNum" @click="onLockResult">结果中检索</el-button>
|
|
|
</span>
|
|
|
<!-- 增减重置选项按钮结束 -->
|
|
@@ -149,7 +93,7 @@
|
|
|
format="yyyy 年 MM 月 dd 日"
|
|
|
value-format="yyyyMMdd"
|
|
|
placeholder="开始日期"
|
|
|
- :picker-options="pickerOptions"
|
|
|
+ :picker-options="pickerOptions"
|
|
|
:disabled="lock"
|
|
|
/>
|
|
|
<span class="pind10" />
|
|
@@ -159,31 +103,15 @@
|
|
|
format="yyyy 年 MM 月 dd 日"
|
|
|
value-format="yyyyMMdd"
|
|
|
placeholder="结束日期"
|
|
|
- :picker-options="pickerOptions"
|
|
|
+ :picker-options="pickerOptions"
|
|
|
:disabled="lock"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="住院天数">
|
|
|
- <el-input-number
|
|
|
- v-model="formData1.AAC04_start"
|
|
|
- :min="1"
|
|
|
- :step="1"
|
|
|
- :controls="false"
|
|
|
- placeholder="起始天数"
|
|
|
- style="width: 220px"
|
|
|
- :disabled="lock"
|
|
|
- ></el-input-number>
|
|
|
+ <el-input-number v-model="formData1.AAC04_start" :min="1" :step="1" :controls="false" placeholder="起始天数" style="width: 220px" :disabled="lock"></el-input-number>
|
|
|
<span class="pind10" />
|
|
|
- <el-input-number
|
|
|
- v-model="formData1.AAC04_end"
|
|
|
- :min="1"
|
|
|
- :step="1"
|
|
|
- :controls="false"
|
|
|
- placeholder="终止天数"
|
|
|
- style="width: 220px"
|
|
|
- :disabled="lock"
|
|
|
- ></el-input-number>
|
|
|
+ <el-input-number v-model="formData1.AAC04_end" :min="1" :step="1" :controls="false" placeholder="终止天数" style="width: 220px" :disabled="lock"></el-input-number>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="患者年龄">
|
|
@@ -196,7 +124,7 @@
|
|
|
style="width: 220px"
|
|
|
:disabled="lock"
|
|
|
></el-input-number>
|
|
|
- <el-select v-model="formData1.ageType1" :disabled="lock" placeholder="请选择" style="width: 80px;">
|
|
|
+ <el-select v-model="formData1.ageType1" :disabled="lock" placeholder="请选择" style="width: 80px">
|
|
|
<el-option label="年龄" :value="1"></el-option>
|
|
|
<el-option label="天数" :value="0"></el-option>
|
|
|
</el-select>
|
|
@@ -212,47 +140,30 @@
|
|
|
style="width: 220px"
|
|
|
:disabled="lock"
|
|
|
></el-input-number>
|
|
|
- <el-select v-model="formData1.ageType2" :disabled="lock" placeholder="请选择" style="width: 80px;">
|
|
|
+ <el-select v-model="formData1.ageType2" :disabled="lock" placeholder="请选择" style="width: 80px">
|
|
|
<el-option label="年龄" :value="1"></el-option>
|
|
|
<el-option label="天数" :value="0"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="住院号">
|
|
|
- <el-input v-model="formData1.AAA28" placeholder="请输入" style="width: 220px;"></el-input>
|
|
|
+ <el-input v-model="formData1.AAA28" placeholder="请输入" style="width: 220px"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<div v-if="choice == 1" class="fBtn" style="position: relative">
|
|
|
<el-button type="primary" icon="el-icon-download" style="position: absolute; right: 120px" @click="highDownload('病历-高级搜索')">导出execl</el-button>
|
|
|
- <el-button
|
|
|
- class="btn11"
|
|
|
- @click="reset"
|
|
|
- >重置条件</el-button
|
|
|
- >
|
|
|
+ <el-button class="btn11" @click="reset">重置条件</el-button>
|
|
|
<el-button class="btn2" @click="funQuery(1)">检索</el-button>
|
|
|
</div>
|
|
|
<div v-else class="fBtn" style="position: relative">
|
|
|
<el-button type="primary" icon="el-icon-download" style="position: absolute; right: 220px" @click="normalDownload('病历-普通搜索')">导出execl</el-button>
|
|
|
- <el-select
|
|
|
- v-model="formData0.input1"
|
|
|
- style="position: absolute; right: 0px"
|
|
|
- placeholder="检索历史"
|
|
|
- @change="funSetList()"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in setList"
|
|
|
- :key="index"
|
|
|
- :label="item"
|
|
|
- :value="item"
|
|
|
- />
|
|
|
+ <el-select v-model="formData0.input1" style="position: absolute; right: 0px" placeholder="检索历史" @change="funSetList()">
|
|
|
+ <el-option v-for="(item, index) in setList" :key="index" :label="item" :value="item" />
|
|
|
</el-select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="tableBox">
|
|
|
- <div
|
|
|
- class="flextab"
|
|
|
- style="margin: 0; margin-bottom: 30px; display: block"
|
|
|
- >
|
|
|
+ <div class="flextab" style="margin: 0; margin-bottom: 30px; display: block">
|
|
|
<div class="flextabtitle-box">
|
|
|
<div class="h-title">
|
|
|
<span class="blue" />
|
|
@@ -264,35 +175,14 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="title-right" style="margin-top: -30px">
|
|
|
- <div
|
|
|
- :class="onClass == '0' ? 'title-right-data' : ''"
|
|
|
- @click="funOnclass('0')"
|
|
|
- >
|
|
|
- 列表
|
|
|
- </div>
|
|
|
- <div
|
|
|
- :class="onClass == '1' ? 'title-right-data' : ''"
|
|
|
- @click="funOnclass('1')"
|
|
|
- >
|
|
|
- 详情
|
|
|
- </div>
|
|
|
+ <div :class="onClass == '0' ? 'title-right-data' : ''" @click="funOnclass('0')">列表</div>
|
|
|
+ <div :class="onClass == '1' ? 'title-right-data' : ''" @click="funOnclass('1')">详情</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="onClass == '0'" class="conter" style="border: none">
|
|
|
- <el-table
|
|
|
- ref="multipleTable"
|
|
|
- :data="tableData"
|
|
|
- tooltip-effect="dark"
|
|
|
- style="width: 100%"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
- >
|
|
|
- <el-table-column
|
|
|
- type="index"
|
|
|
- :index="indexAdd"
|
|
|
- label="序号"
|
|
|
- width="70px"
|
|
|
- />
|
|
|
+ <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange">
|
|
|
+ <el-table-column type="index" :index="indexAdd" label="序号" width="70px" />
|
|
|
<el-table-column prop="AAA28" label="住院号">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="blue" @click="funGoto(scope.row.MED_REC_ID)">
|
|
@@ -315,51 +205,35 @@
|
|
|
<div v-if="onClass == '1'" class="conter">
|
|
|
<div v-for="(i, j) in item.EMR_BL_BL01" :key="j">
|
|
|
<div class="conter-title">
|
|
|
- <span>{{ paginationData.pageSize * (paginationData.currentPage - 1) + (index+1) }}.{{ j+1 }}</span>
|
|
|
+ <span>{{ paginationData.pageSize * (paginationData.currentPage - 1) + (index + 1) }}.{{ j + 1 }}</span>
|
|
|
病历名称:
|
|
|
- <span v-for="(k, q) in fieldList" :key="q" class="blue">{{
|
|
|
- i.BLLB == k.id ? k.name : ""
|
|
|
- }}</span>
|
|
|
+ <span v-for="(k, q) in fieldList" :key="q" class="blue">{{ i.BLLB == k.id ? k.name : '' }}</span>
|
|
|
</div>
|
|
|
<div class="conter-case">
|
|
|
<div v-html="i.HJNR" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 结账单 -->
|
|
|
- <div v-if="item.FeeDetailed.length" style="margin-bottom: 20px;">
|
|
|
- <span class="conter-title">{{ paginationData.pageSize * (paginationData.currentPage - 1) + (index+1) }}.{{ item.EMR_BL_BL01.length+1 }}</span>
|
|
|
- <el-table
|
|
|
- :data="item.FeeDetailed"
|
|
|
- stripe
|
|
|
- style="width: 100%">
|
|
|
- <el-table-column
|
|
|
- prop="FYMC"
|
|
|
- label="费用名称">
|
|
|
+ <div v-if="item.FeeDetailed.length" style="margin-bottom: 20px">
|
|
|
+ <span class="conter-title">{{ paginationData.pageSize * (paginationData.currentPage - 1) + (index + 1) }}.{{ item.EMR_BL_BL01.length + 1 }}</span>
|
|
|
+ <el-table :data="item.FeeDetailed" stripe style="width: 100%">
|
|
|
+ <el-table-column prop="FYMC" label="费用名称">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-html="scope.row.FYMC[0]"></span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="JFRQ"
|
|
|
- label="计费日期">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="FYSL"
|
|
|
- label="费用数量">
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column prop="JFRQ" label="计费日期"></el-table-column>
|
|
|
+ <el-table-column prop="FYSL" label="费用数量"></el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<!-- 医嘱本 -->
|
|
|
- <div v-if="item.YZB.length" style="margin-bottom: 20px;">
|
|
|
- <span class="conter-title" v-if="!item.FeeDetailed.length">{{ paginationData.pageSize * (paginationData.currentPage - 1) + (index+1) }}.{{ item.EMR_BL_BL01.length+1}}</span>
|
|
|
- <span class="conter-title" v-else>{{ paginationData.pageSize * (paginationData.currentPage - 1) + (index+1) }}.{{ item.EMR_BL_BL01.length+2}}</span>
|
|
|
- <el-table
|
|
|
- :data="item.YZB"
|
|
|
- stripe
|
|
|
- style="width: 100%">
|
|
|
- <el-table-column
|
|
|
- prop="YZMC"
|
|
|
- label="医嘱名称">
|
|
|
+ <div v-if="item.YZB.length" style="margin-bottom: 20px">
|
|
|
+ <span class="conter-title" v-if="!item.FeeDetailed.length">
|
|
|
+ {{ paginationData.pageSize * (paginationData.currentPage - 1) + (index + 1) }}.{{ item.EMR_BL_BL01.length + 1 }}
|
|
|
+ </span>
|
|
|
+ <span class="conter-title" v-else>{{ paginationData.pageSize * (paginationData.currentPage - 1) + (index + 1) }}.{{ item.EMR_BL_BL01.length + 2 }}</span>
|
|
|
+ <el-table :data="item.YZB" stripe style="width: 100%">
|
|
|
+ <el-table-column prop="YZMC" label="医嘱名称">
|
|
|
<template slot-scope="scope">
|
|
|
<!-- 高级搜索 -->
|
|
|
<span v-if="choice" v-html="scope.row.YZMC"></span>
|
|
@@ -367,28 +241,17 @@
|
|
|
<span v-else v-html="scope.row.YZMC[0]"></span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="BRKS"
|
|
|
- label="开嘱科室">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="KZSJ"
|
|
|
- label="开嘱时间">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="ZJE"
|
|
|
- label="医嘱期限">
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column prop="BRKS" label="开嘱科室"></el-table-column>
|
|
|
+ <el-table-column prop="KZSJ" label="开嘱时间"></el-table-column>
|
|
|
+ <el-table-column prop="ZJE" label="医嘱期限"></el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
|
|
|
- <div class="conter-num" style="margin-top: 10px;">
|
|
|
+ <div class="conter-num" style="margin-top: 10px">
|
|
|
病案号:
|
|
|
<span class="yeleou" @click="funGoto(item.MED_REC_ID)">{{ item.AAA28 }}</span>
|
|
|
</div>
|
|
|
- <div class="conter-time">
|
|
|
- 出院时间:{{ item.AAC01 }}
|
|
|
- </div>
|
|
|
+ <div class="conter-time">出院时间:{{ item.AAC01 }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-pagination
|
|
@@ -408,10 +271,10 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import Title from "@/components/Title";
|
|
|
-import { mapGetters } from "vuex";
|
|
|
-import mPagination from "@/components/m-pagination";
|
|
|
-import { bassNormalSearchDownload, bassHighSearchDownload } from '@/api/excel'
|
|
|
+import Title from '@/components/Title';
|
|
|
+import { mapGetters } from 'vuex';
|
|
|
+import mPagination from '@/components/m-pagination';
|
|
|
+import { bassNormalSearchDownload, bassHighSearchDownload } from '@/api/excel';
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
@@ -419,47 +282,47 @@ export default {
|
|
|
mPagination,
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(["name"]),
|
|
|
+ ...mapGetters(['name']),
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
pickerOptions: {
|
|
|
disabledDate(time) {
|
|
|
- return time.getTime() > Date.now();
|
|
|
- }
|
|
|
+ return time.getTime() > Date.now();
|
|
|
+ },
|
|
|
},
|
|
|
checked: false,
|
|
|
choice: 0,
|
|
|
formData0: {
|
|
|
- input: "",
|
|
|
- input1: "",
|
|
|
+ input: '',
|
|
|
+ input1: '',
|
|
|
},
|
|
|
formData1: {
|
|
|
- ageday: "",
|
|
|
+ ageday: '',
|
|
|
age_start_type: 2,
|
|
|
age_end_type: 2,
|
|
|
- ageyear: "",
|
|
|
+ ageyear: '',
|
|
|
endTime: undefined,
|
|
|
startTime: undefined,
|
|
|
seniorList: [
|
|
|
{
|
|
|
select_type: 0,
|
|
|
- key: "",
|
|
|
- value: "",
|
|
|
- type: "0",
|
|
|
- lock: false
|
|
|
+ key: '',
|
|
|
+ value: '',
|
|
|
+ type: '0',
|
|
|
+ lock: false,
|
|
|
},
|
|
|
],
|
|
|
seniorList1: [],
|
|
|
- hospitalizationon: "",
|
|
|
- hospitalizationin: "",
|
|
|
+ hospitalizationon: '',
|
|
|
+ hospitalizationin: '',
|
|
|
AAC04_start: undefined,
|
|
|
AAC04_end: undefined,
|
|
|
AAA04_start: undefined,
|
|
|
AAA04_end: undefined,
|
|
|
ageType1: 1,
|
|
|
ageType2: 1,
|
|
|
- AAA28: ''
|
|
|
+ AAA28: '',
|
|
|
},
|
|
|
tableData: [],
|
|
|
tableDataDetails: [],
|
|
@@ -469,21 +332,23 @@ export default {
|
|
|
pageSize: 10,
|
|
|
},
|
|
|
fieldList: [
|
|
|
- { name: "出院记录", id: "1" },
|
|
|
- { name: "入院记录", id: "292" },
|
|
|
- { name: "病程记录", id: "294" },
|
|
|
- { name: "手术记录", id: "303" },
|
|
|
- { name: "病历讨论记录", id: "43" },
|
|
|
- { name: "授权同意类", id: "329" },
|
|
|
- { name: "评估评分表类", id: "79" },
|
|
|
- { name: "死亡记录类", id: "288" },
|
|
|
- { name: "24小时内记录类", id: "18" },
|
|
|
- { name: "医患沟通类", id: "34" },
|
|
|
- { name: "医疗常用表格", id: "87" },
|
|
|
- { name: "医嘱单", id: "49" },
|
|
|
- { name: "出院科室", id: "AAC11N" },
|
|
|
- { name: "费用明细", id: "FYMC" },
|
|
|
- { name: "报告单", id: "2000002" }
|
|
|
+ { name: '出院记录', id: '1' },
|
|
|
+ { name: '入院记录', id: '292' },
|
|
|
+ { name: '病程记录', id: '294' },
|
|
|
+ { name: '手术记录', id: '303' },
|
|
|
+ { name: '病历讨论记录', id: '43' },
|
|
|
+ { name: '授权同意类', id: '329' },
|
|
|
+ { name: '评估评分表类', id: '79' },
|
|
|
+ { name: '死亡记录类', id: '288' },
|
|
|
+ { name: '24小时内记录类', id: '18' },
|
|
|
+ { name: '医患沟通类', id: '34' },
|
|
|
+ { name: '医疗常用表格', id: '87' },
|
|
|
+ { name: '医嘱单', id: '49' },
|
|
|
+ { name: '出院科室', id: 'AAC11N' },
|
|
|
+ { name: '费用明细', id: 'FYMC' },
|
|
|
+ { name: '报告单', id: '2000002' },
|
|
|
+ { name: '主要诊断名称', id: 'ICD10_NAME' },
|
|
|
+ { name: '主要诊断编码', id: 'ICD10_ID1' },
|
|
|
],
|
|
|
keyList: [],
|
|
|
Dayoptions: [],
|
|
@@ -493,24 +358,24 @@ export default {
|
|
|
setList: [],
|
|
|
departmentList: [],
|
|
|
lock: false,
|
|
|
- searchNum: 0
|
|
|
+ searchNum: 0,
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
- if (this.storageGet("inputOn")) {
|
|
|
- this.formData0.input = JSON.parse(this.storageGet("inputOn"));
|
|
|
- this.storageRemove("inputOn");
|
|
|
+ if (this.storageGet('inputOn')) {
|
|
|
+ this.formData0.input = JSON.parse(this.storageGet('inputOn'));
|
|
|
+ this.storageRemove('inputOn');
|
|
|
}
|
|
|
- if (this.storageGet("formData1")) {
|
|
|
- this.formData1 = JSON.parse(this.storageGet("formData1"));
|
|
|
- this.storageRemove("formData1");
|
|
|
+ if (this.storageGet('formData1')) {
|
|
|
+ this.formData1 = JSON.parse(this.storageGet('formData1'));
|
|
|
+ this.storageRemove('formData1');
|
|
|
}
|
|
|
- if (this.storageGet("choice")) {
|
|
|
- this.choice = Number(this.storageGet("choice"));
|
|
|
- this.storageRemove("choice");
|
|
|
+ if (this.storageGet('choice')) {
|
|
|
+ this.choice = Number(this.storageGet('choice'));
|
|
|
+ this.storageRemove('choice');
|
|
|
}
|
|
|
- if (this.storageGet("setList")) {
|
|
|
- this.setList = JSON.parse(this.storageGet("setList"));
|
|
|
+ if (this.storageGet('setList')) {
|
|
|
+ this.setList = JSON.parse(this.storageGet('setList'));
|
|
|
}
|
|
|
this.selectInfo();
|
|
|
this.funQuery(0);
|
|
@@ -521,107 +386,107 @@ export default {
|
|
|
const params = {
|
|
|
keyword: this.formData0.input,
|
|
|
AAC01_start: this.formData1.startTime,
|
|
|
- AAC01_end: this.formData1.endTime
|
|
|
- }
|
|
|
+ AAC01_end: this.formData1.endTime,
|
|
|
+ };
|
|
|
bassNormalSearchDownload(params).then(res => {
|
|
|
- const content = res.data // 后台返回二进制数据
|
|
|
- const blob = new Blob([content])
|
|
|
- const fileName = `${name}.csv`
|
|
|
- if ('download' in document.createElement('a')) { // 非IE下载
|
|
|
- const elink = document.createElement('a')
|
|
|
- elink.download = fileName
|
|
|
- elink.style.display = 'none'
|
|
|
- elink.href = URL.createObjectURL(blob)
|
|
|
- document.body.appendChild(elink)
|
|
|
- elink.click()
|
|
|
- URL.revokeObjectURL(elink.href) // 释放URL 对象
|
|
|
- document.body.removeChild(elink)
|
|
|
- } else { // IE10+下载
|
|
|
- navigator.msSaveBlob(blob, fileName)
|
|
|
+ const content = res.data; // 后台返回二进制数据
|
|
|
+ const blob = new Blob([content]);
|
|
|
+ const fileName = `${name}.csv`;
|
|
|
+ if ('download' in document.createElement('a')) {
|
|
|
+ // 非IE下载
|
|
|
+ const elink = document.createElement('a');
|
|
|
+ elink.download = fileName;
|
|
|
+ elink.style.display = 'none';
|
|
|
+ elink.href = URL.createObjectURL(blob);
|
|
|
+ document.body.appendChild(elink);
|
|
|
+ elink.click();
|
|
|
+ URL.revokeObjectURL(elink.href); // 释放URL 对象
|
|
|
+ document.body.removeChild(elink);
|
|
|
+ } else {
|
|
|
+ // IE10+下载
|
|
|
+ navigator.msSaveBlob(blob, fileName);
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
highDownload(name) {
|
|
|
- const pramse = {}
|
|
|
+ const pramse = {};
|
|
|
pramse.field = this.formData1.seniorList;
|
|
|
pramse.AAC01_start = this.formData1.startTime;
|
|
|
pramse.AAC01_end = this.formData1.endTime;
|
|
|
- pramse.AAA28 = this.formData1.AAA28
|
|
|
+ pramse.AAA28 = this.formData1.AAA28;
|
|
|
pramse.AAC04_start = this.formData1.AAC04_start;
|
|
|
pramse.AAC04_end = this.formData1.AAC04_end;
|
|
|
- const { ageType1, ageType2 } = this.formData1
|
|
|
+ const { ageType1, ageType2 } = this.formData1;
|
|
|
// ageType1 = 1 年龄
|
|
|
// ageType1 = 0 天数
|
|
|
if (ageType1) {
|
|
|
pramse.AAA04_start = this.formData1.AAA04_start;
|
|
|
} else {
|
|
|
- pramse.AAA40_start = this.formData1.AAA04_start
|
|
|
+ pramse.AAA40_start = this.formData1.AAA04_start;
|
|
|
}
|
|
|
if (ageType2) {
|
|
|
pramse.AAA04_end = this.formData1.AAA04_end;
|
|
|
} else {
|
|
|
- pramse.AAA40_end = this.formData1.AAA04_end
|
|
|
+ pramse.AAA40_end = this.formData1.AAA04_end;
|
|
|
}
|
|
|
bassHighSearchDownload(pramse).then(res => {
|
|
|
- const content = res.data // 后台返回二进制数据
|
|
|
- const blob = new Blob([content])
|
|
|
- const fileName = `${name}.csv`
|
|
|
- if ('download' in document.createElement('a')) { // 非IE下载
|
|
|
- const elink = document.createElement('a')
|
|
|
- elink.download = fileName
|
|
|
- elink.style.display = 'none'
|
|
|
- elink.href = URL.createObjectURL(blob)
|
|
|
- document.body.appendChild(elink)
|
|
|
- elink.click()
|
|
|
- URL.revokeObjectURL(elink.href) // 释放URL 对象
|
|
|
- document.body.removeChild(elink)
|
|
|
- } else { // IE10+下载
|
|
|
- navigator.msSaveBlob(blob, fileName)
|
|
|
+ const content = res.data; // 后台返回二进制数据
|
|
|
+ const blob = new Blob([content]);
|
|
|
+ const fileName = `${name}.csv`;
|
|
|
+ if ('download' in document.createElement('a')) {
|
|
|
+ // 非IE下载
|
|
|
+ const elink = document.createElement('a');
|
|
|
+ elink.download = fileName;
|
|
|
+ elink.style.display = 'none';
|
|
|
+ elink.href = URL.createObjectURL(blob);
|
|
|
+ document.body.appendChild(elink);
|
|
|
+ elink.click();
|
|
|
+ URL.revokeObjectURL(elink.href); // 释放URL 对象
|
|
|
+ document.body.removeChild(elink);
|
|
|
+ } else {
|
|
|
+ // IE10+下载
|
|
|
+ navigator.msSaveBlob(blob, fileName);
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
onLockResult() {
|
|
|
- this.lock = true
|
|
|
+ this.lock = true;
|
|
|
this.formData1.seniorList.map(item => {
|
|
|
if (!!item.value) {
|
|
|
- item.lock = true
|
|
|
+ item.lock = true;
|
|
|
} else {
|
|
|
- item.lock = false
|
|
|
+ item.lock = false;
|
|
|
}
|
|
|
- })
|
|
|
- this.funAdd()
|
|
|
+ });
|
|
|
+ this.funAdd();
|
|
|
},
|
|
|
indexAdd(index) {
|
|
|
- return (
|
|
|
- index +
|
|
|
- 1 +
|
|
|
- (this.paginationData.currentPage - 1) * this.paginationData.pageSize
|
|
|
- );
|
|
|
+ return index + 1 + (this.paginationData.currentPage - 1) * this.paginationData.pageSize;
|
|
|
},
|
|
|
funSelect(index) {
|
|
|
// 建坤:切换时,取消input 重置
|
|
|
// this.formData1.seniorList[index].value = "";
|
|
|
},
|
|
|
selectInfo() {
|
|
|
- this.$axios.post("/selectInfo").then((res) => {
|
|
|
+ this.$axios.post('/selectInfo').then(res => {
|
|
|
// 支付方式 pay
|
|
|
this.departmentList = res.data.department;
|
|
|
});
|
|
|
},
|
|
|
funGoto(val) {
|
|
|
- this.storageSet("inputOn", JSON.stringify(this.formData0.input));
|
|
|
- this.storageSet("formData1", JSON.stringify(this.formData1));
|
|
|
- this.storageSet("choice", JSON.stringify(this.choice));
|
|
|
- this.storageSet("getData", val);
|
|
|
- const { path } = this.$route
|
|
|
- let toPath
|
|
|
+ this.storageSet('inputOn', JSON.stringify(this.formData0.input));
|
|
|
+ this.storageSet('formData1', JSON.stringify(this.formData1));
|
|
|
+ this.storageSet('choice', JSON.stringify(this.choice));
|
|
|
+ this.storageSet('getData', val);
|
|
|
+ const { path } = this.$route;
|
|
|
+ let toPath;
|
|
|
if (path === '/hospital-search') {
|
|
|
- toPath = '/hospital-caseViews'
|
|
|
+ toPath = '/hospital-caseViews';
|
|
|
} else {
|
|
|
- toPath = '/caseViews'
|
|
|
+ toPath = '/caseViews';
|
|
|
}
|
|
|
// status = 1 代表不能复制文本
|
|
|
- this.$router.push({ path: toPath })
|
|
|
+ this.$router.push({ path: toPath });
|
|
|
},
|
|
|
funCeal() {
|
|
|
this.$refs.multipleTable.clearSelection();
|
|
@@ -640,11 +505,11 @@ export default {
|
|
|
},
|
|
|
SizeChangeEvent(val) {
|
|
|
this.paginationData.pageSize = val;
|
|
|
- const num = this.lock ? 1 : 0
|
|
|
+ const num = this.lock ? 1 : 0;
|
|
|
this.funQuery(num);
|
|
|
},
|
|
|
pageHasChanged() {
|
|
|
- const num = this.lock ? 1 : 0
|
|
|
+ const num = this.lock ? 1 : 0;
|
|
|
this.funQuery(num);
|
|
|
},
|
|
|
funBlur() {
|
|
@@ -656,14 +521,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
funBluron() {
|
|
|
- if (
|
|
|
- this.formData1.hospitalizationon &&
|
|
|
- this.formData1.hospitalizationin
|
|
|
- ) {
|
|
|
- if (
|
|
|
- this.formData1.hospitalizationon > this.formData1.hospitalizationin
|
|
|
- ) {
|
|
|
- this.$message("起止住院天数输入不正确");
|
|
|
+ if (this.formData1.hospitalizationon && this.formData1.hospitalizationin) {
|
|
|
+ if (this.formData1.hospitalizationon > this.formData1.hospitalizationin) {
|
|
|
+ this.$message('起止住院天数输入不正确');
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -678,11 +538,11 @@ export default {
|
|
|
},
|
|
|
funAdd() {
|
|
|
this.formData1.seniorList.push({
|
|
|
- key: "",
|
|
|
+ key: '',
|
|
|
select_type: 0,
|
|
|
- value: "",
|
|
|
- type: "0",
|
|
|
- lock: false
|
|
|
+ value: '',
|
|
|
+ type: '0',
|
|
|
+ lock: false,
|
|
|
});
|
|
|
},
|
|
|
funQuery(num) {
|
|
@@ -690,71 +550,66 @@ export default {
|
|
|
limit: this.paginationData.pageSize,
|
|
|
page: this.paginationData.currentPage, // 是当前页数 默认是0 。普通检索的参数是
|
|
|
};
|
|
|
- let queryUrl = "normalSearch";
|
|
|
- if (this.choice == "0") {
|
|
|
- queryUrl = "normalSearch";
|
|
|
+ let queryUrl = 'normalSearch';
|
|
|
+ if (this.choice == '0') {
|
|
|
+ queryUrl = 'normalSearch';
|
|
|
// 普通检索
|
|
|
pramse.keyword = this.formData0.input; // 关键字
|
|
|
pramse.AAC01_start = this.formData1.startTime;
|
|
|
pramse.AAC01_end = this.formData1.endTime;
|
|
|
-
|
|
|
- this.$axios3.post(queryUrl, pramse).then((res) => {
|
|
|
+
|
|
|
+ this.$axios3.post(queryUrl, pramse).then(res => {
|
|
|
this.tableData = res.data.data.list || [];
|
|
|
this.tableDataDetails = res.data.data.detail || [];
|
|
|
this.paginationData.total = res.data.data.total;
|
|
|
- if (this.choice == "0" && this.formData0.input) {
|
|
|
+ if (this.choice == '0' && this.formData0.input) {
|
|
|
this.setList.push(String(this.formData0.input));
|
|
|
const listSetto = Array.from(new Set(this.setList));
|
|
|
this.setList = listSetto;
|
|
|
- this.storageSet("setList", JSON.stringify(this.setList));
|
|
|
+ this.storageSet('setList', JSON.stringify(this.setList));
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
- queryUrl = "search";
|
|
|
+ queryUrl = 'search';
|
|
|
// 高级检索
|
|
|
pramse.field = this.formData1.seniorList;
|
|
|
pramse.AAC01_start = this.formData1.startTime;
|
|
|
pramse.AAC01_end = this.formData1.endTime;
|
|
|
- pramse.AAA28 = this.formData1.AAA28
|
|
|
+ pramse.AAA28 = this.formData1.AAA28;
|
|
|
pramse.AAC04_start = this.formData1.AAC04_start;
|
|
|
pramse.AAC04_end = this.formData1.AAC04_end;
|
|
|
- this.searchNum = num
|
|
|
- const { ageType1, ageType2 } = this.formData1
|
|
|
+ this.searchNum = num;
|
|
|
+ const { ageType1, ageType2 } = this.formData1;
|
|
|
// ageType1 = 1 年龄
|
|
|
// ageType1 = 0 天数
|
|
|
if (ageType1) {
|
|
|
pramse.AAA04_start = this.formData1.AAA04_start;
|
|
|
} else {
|
|
|
- pramse.AAA40_start = this.formData1.AAA04_start
|
|
|
+ pramse.AAA40_start = this.formData1.AAA04_start;
|
|
|
}
|
|
|
if (ageType2) {
|
|
|
pramse.AAA04_end = this.formData1.AAA04_end;
|
|
|
} else {
|
|
|
- pramse.AAA40_end = this.formData1.AAA04_end
|
|
|
+ pramse.AAA40_end = this.formData1.AAA04_end;
|
|
|
}
|
|
|
-
|
|
|
- this.$axios3.post(queryUrl, pramse).then((res) => {
|
|
|
+
|
|
|
+ this.$axios3.post(queryUrl, pramse).then(res => {
|
|
|
this.tableData = res.data.data.list || [];
|
|
|
this.tableDataDetails = res.data.data.detail || [];
|
|
|
this.paginationData.total = res.data.data.total;
|
|
|
- if (this.choice == "0" && this.formData0.input) {
|
|
|
+ if (this.choice == '0' && this.formData0.input) {
|
|
|
this.setList.push(String(this.formData0.input));
|
|
|
const listSetto = Array.from(new Set(this.setList));
|
|
|
this.setList = listSetto;
|
|
|
- this.storageSet("setList", JSON.stringify(this.setList));
|
|
|
+ this.storageSet('setList', JSON.stringify(this.setList));
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
funBluron() {
|
|
|
- if (
|
|
|
- this.formData1.hospitalizationon &&
|
|
|
- this.formData1.hospitalizationin
|
|
|
- ) {
|
|
|
- if (
|
|
|
- this.formData1.hospitalizationon > this.formData1.hospitalizationin
|
|
|
- ) {
|
|
|
- this.$message("起止住院天数输入不正确");
|
|
|
+ if (this.formData1.hospitalizationon && this.formData1.hospitalizationin) {
|
|
|
+ if (this.formData1.hospitalizationon > this.formData1.hospitalizationin) {
|
|
|
+ this.$message('起止住院天数输入不正确');
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -763,15 +618,15 @@ export default {
|
|
|
if (this.choice == 0) {
|
|
|
Object.assign(this.$data.formData0, this.$options.data().formData0);
|
|
|
} else {
|
|
|
- this.lock = false
|
|
|
- this.searchNum = 0
|
|
|
+ this.lock = false;
|
|
|
+ this.searchNum = 0;
|
|
|
Object.assign(this.$data.formData1, this.$options.data().formData1);
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
- <style scoped>
|
|
|
+<style scoped>
|
|
|
::v-deep.el-pagination.is-background .btn-next,
|
|
|
::v-deep.el-pagination.is-background .btn-prev,
|
|
|
::v-deep.el-pagination.is-background .el-pager li {
|
|
@@ -802,7 +657,7 @@ export default {
|
|
|
border-bottom: 0px;
|
|
|
}
|
|
|
</style>
|
|
|
- <style lang="scss" scoped>
|
|
|
+<style lang="scss" scoped>
|
|
|
.tableBox {
|
|
|
background: #fff;
|
|
|
padding: 19px;
|
|
@@ -1042,4 +897,3 @@ export default {
|
|
|
text-align: left;
|
|
|
}
|
|
|
</style>
|
|
|
-
|