Browse Source

病例搜索相关界面

master
aBin 4 years ago
parent
commit
5dc2b88c0a
  1. 6
      src/plugins/ant-design-vue.js
  2. 1047
      src/views/CaseAnalysis/CaseAnalysis.vue
  3. 88
      src/views/CaseSearch/CaseSearch.vue

6
src/plugins/ant-design-vue.js

@ -34,10 +34,11 @@ import {
Checkbox, Checkbox,
BackTop, BackTop,
Progress, Progress,
carousel, Carousel,
Spin, Spin,
Card, Card,
List, List,
Collapse,
} from 'ant-design-vue'; } from 'ant-design-vue';
import { ConfigProvider } from 'ant-design-vue'; import { ConfigProvider } from 'ant-design-vue';
Vue.component(ConfigProvider.name, ConfigProvider); Vue.component(ConfigProvider.name, ConfigProvider);
@ -66,10 +67,11 @@ Vue.use(Timeline);
Vue.use(Checkbox); Vue.use(Checkbox);
Vue.use(BackTop); Vue.use(BackTop);
Vue.use(Progress); Vue.use(Progress);
Vue.use(carousel); Vue.use(Carousel);
Vue.use(Spin); Vue.use(Spin);
Vue.use(Card); Vue.use(Card);
Vue.use(List); Vue.use(List);
Vue.use(Collapse);
Vue.prototype.$message = message; Vue.prototype.$message = message;
Vue.prototype.$notification = notification; Vue.prototype.$notification = notification;

1047
src/views/CaseAnalysis/CaseAnalysis.vue

File diff suppressed because it is too large

88
src/views/CaseSearch/CaseSearch.vue

@ -1,5 +1,7 @@
<template> <template>
<div class="flex-column"> <div class="flex-column">
<a-collapse v-model="activeKey">
<a-collapse-panel key="1" header="搜索条件">
<div> <div>
<div class="d-flex flex-row flex-wrap"> <div class="d-flex flex-row flex-wrap">
<a-form :form="form1" class="d-flex flex-wrap align-center" layout="inline"> <a-form :form="form1" class="d-flex flex-wrap align-center" layout="inline">
@ -50,12 +52,7 @@
<a-select v-else-if="a.type === 5" style="width: 120px" @change="onChange($event, a.type, a.id, a.recordId)"> <a-select v-else-if="a.type === 5" style="width: 120px" @change="onChange($event, a.type, a.id, a.recordId)">
<a-select-option v-for="(b, c) in a.optionVos" :key="c" :value="b.showValue"> {{ b.showValue }} </a-select-option> <a-select-option v-for="(b, c) in a.optionVos" :key="c" :value="b.showValue"> {{ b.showValue }} </a-select-option>
</a-select> </a-select>
<a-date-picker <a-range-picker show-time v-else-if="a.type === 6" @change="onChange($event, a.type, a.id, a.recordId)" />
show-time
placeholder="日期时间选择"
v-else-if="a.type === 6"
@change="onChange($event, a.type, a.id, a.recordId)"
/>
<a-upload <a-upload
v-else-if="a.type === 7" v-else-if="a.type === 7"
:action="action" :action="action"
@ -195,7 +192,10 @@
{{ b.showValue }} {{ b.showValue }}
</a-radio> </a-radio>
</a-radio-group> </a-radio-group>
<a-checkbox-group v-else-if="ohter.type === 4" @change="onChange($event, ohter.type, ohter.id, ohter.recordId)"> <a-checkbox-group
v-else-if="ohter.type === 4"
@change="onChange($event, ohter.type, ohter.id, ohter.recordId)"
>
<a-row> <a-row>
<a-col :span="24" v-for="(ques, indexNum) in ohter.optionVos" :key="indexNum"> <a-col :span="24" v-for="(ques, indexNum) in ohter.optionVos" :key="indexNum">
<a-checkbox :value="ques.submitValue"> {{ ques.showValue }} </a-checkbox> <a-checkbox :value="ques.submitValue"> {{ ques.showValue }} </a-checkbox>
@ -211,9 +211,8 @@
{{ b.showValue }} {{ b.showValue }}
</a-select-option> </a-select-option>
</a-select> </a-select>
<a-date-picker <a-range-picker
show-time show-time
placeholder="日期时间选择"
v-else-if="ohter.type === 6" v-else-if="ohter.type === 6"
@change="onChange($event, ohter.type, ohter.id, ohter.recordId)" @change="onChange($event, ohter.type, ohter.id, ohter.recordId)"
/> />
@ -252,7 +251,10 @@
</div> </div>
</div> </div>
</a-radio-group> </a-radio-group>
<a-checkbox-group v-else-if="ohter.type === 9" @change="onChange($event, ohter.type, ohter.id, ohter.recordId)"> <a-checkbox-group
v-else-if="ohter.type === 9"
@change="onChange($event, ohter.type, ohter.id, ohter.recordId)"
>
<a-row> <a-row>
<a-col :span="24" v-for="(ques, indexNum) in ohter.optionVos" :key="indexNum"> <a-col :span="24" v-for="(ques, indexNum) in ohter.optionVos" :key="indexNum">
<a-checkbox :value="ques.submitValue"> {{ ques.showValue }} </a-checkbox> <a-checkbox :value="ques.submitValue"> {{ ques.showValue }} </a-checkbox>
@ -398,12 +400,7 @@
<a-select v-else-if="e.type === 5" style="width: 120px" @change="onChange($event, e.type, e.id, e.recordId)"> <a-select v-else-if="e.type === 5" style="width: 120px" @change="onChange($event, e.type, e.id, e.recordId)">
<a-select-option v-for="(b, c) in e.optionVos" :key="c" :value="b.showValue"> {{ b.showValue }} </a-select-option> <a-select-option v-for="(b, c) in e.optionVos" :key="c" :value="b.showValue"> {{ b.showValue }} </a-select-option>
</a-select> </a-select>
<a-date-picker <a-range-picker show-time v-else-if="e.type === 6" @change="onChange($event, e.type, e.id, e.recordId)" />
show-time
placeholder="日期时间选择"
v-else-if="e.type === 6"
@change="onChange($event, e.type, e.id, e.recordId)"
/>
<a-upload <a-upload
v-else-if="e.type === 7" v-else-if="e.type === 7"
:action="action" :action="action"
@ -529,7 +526,11 @@
style="height: 100px" style="height: 100px"
@change="onChange($event, h.type, h.id, h.recordId)" @change="onChange($event, h.type, h.id, h.recordId)"
/> />
<a-radio-group v-else-if="h.type === 3" v-model="value" @change="onChange($event, h.type, h.id, h.recordId)"> <a-radio-group
v-else-if="h.type === 3"
v-model="value"
@change="onChange($event, h.type, h.id, h.recordId)"
>
<a-radio v-for="(b, c) in h.optionVos" :key="c" :style="radioStyle" :value="b.showValue"> <a-radio v-for="(b, c) in h.optionVos" :key="c" :style="radioStyle" :value="b.showValue">
{{ b.showValue }} {{ b.showValue }}
</a-radio> </a-radio>
@ -541,17 +542,16 @@
</a-col> </a-col>
</a-row> </a-row>
</a-checkbox-group> </a-checkbox-group>
<a-select v-else-if="h.type === 5" style="width: 120px" @change="onChange($event, h.type, h.id, h.recordId)"> <a-select
v-else-if="h.type === 5"
style="width: 120px"
@change="onChange($event, h.type, h.id, h.recordId)"
>
<a-select-option v-for="(b, c) in h.optionVos" :key="c" :value="b.showValue"> <a-select-option v-for="(b, c) in h.optionVos" :key="c" :value="b.showValue">
{{ b.showValue }} {{ b.showValue }}
</a-select-option> </a-select-option>
</a-select> </a-select>
<a-date-picker <a-range-picker show-time v-else-if="h.type === 6" @change="onChange($event, h.type, h.id, h.recordId)" />
show-time
placeholder="日期时间选择"
v-else-if="h.type === 6"
@change="onChange($event, h.type, h.id, h.recordId)"
/>
<a-upload <a-upload
v-else-if="h.type === 7" v-else-if="h.type === 7"
:action="action" :action="action"
@ -563,7 +563,11 @@
> >
<a-button v-show="fileList.length === 0"> <a-icon type="upload" /> 点击上传 </a-button> <a-button v-show="fileList.length === 0"> <a-icon type="upload" /> 点击上传 </a-button>
</a-upload> </a-upload>
<a-radio-group v-else-if="h.type === 8" v-model="value" @change="onChange($event, h.type, h.id, h.recordId)"> <a-radio-group
v-else-if="h.type === 8"
v-model="value"
@change="onChange($event, h.type, h.id, h.recordId)"
>
<a-radio-group @change="onChange($event, h.type, h.id, h.recordId)"> <a-radio-group @change="onChange($event, h.type, h.id, h.recordId)">
<a-radio v-for="(f, g) in h.optionVos" :key="g" :style="radioStyle" :value="f.showValue"> <a-radio v-for="(f, g) in h.optionVos" :key="g" :style="radioStyle" :value="f.showValue">
{{ f.showValue }} {{ f.showValue }}
@ -637,7 +641,8 @@
v-if=" v-if="
contentList.find(item => { contentList.find(item => {
return ( return (
item.testQuestionsId === h.id && item.contents.find(content => content === `${b.showValue}`) item.testQuestionsId === h.id &&
item.contents.find(content => content === `${b.showValue}`)
); );
}) && b.afterOperation > 0 }) && b.afterOperation > 0
" "
@ -707,6 +712,8 @@
</div> </div>
</a-form> </a-form>
<a-button class="white--text px-10" type="primary" @click="setData()" v-if="list.length > 0">提交</a-button> <a-button class="white--text px-10" type="primary" @click="setData()" v-if="list.length > 0">提交</a-button>
</a-collapse-panel>
</a-collapse>
<case-table :lists="lists" @setData="setData" class="mt-3" /> <case-table :lists="lists" @setData="setData" class="mt-3" />
</div> </div>
</template> </template>
@ -738,6 +745,7 @@ export default {
}, },
list: [], list: [],
contentList: [], contentList: [],
conditionListDate: [],
numList: [1, 2, 3, 4, 5], numList: [1, 2, 3, 4, 5],
setObj: { setObj: {
hospitalId: '', // Id hospitalId: '', // Id
@ -774,6 +782,7 @@ export default {
}, },
], ],
lists: { pageNum: 1, pageSize: 10, total: 1, list: [] }, lists: { pageNum: 1, pageSize: 10, total: 1, list: [] },
activeKey: ['1'], //
}; };
}, },
computed: { computed: {
@ -858,7 +867,17 @@ export default {
this.forFn(id, e, recordId); this.forFn(id, e, recordId);
} else if (type === 6) { } else if (type === 6) {
// 2020-01-01 00:00:00 // 2020-01-01 00:00:00
this.forFn(id, this.$moment(e._d).format('YYYY-MM-DD HH:mm:ss'), recordId); // this.forFn(id, this.$moment(e._d).format('YYYY-MM-DD HH:mm:ss'), recordId);
const { conditionListDate } = this;
for (let i = 0; i < conditionListDate.length; i++) {
if (conditionListDate[i].testQuestionsId === id) {
conditionListDate[i].startTime = this.$moment(e[0]._d).format('YYYY-MM-DD');
conditionListDate[i].endTime = this.$moment(e[1]._d).format('YYYY-MM-DD');
break;
}
}
this.conditionListDate = [...conditionListDate];
console.log(this.conditionListDate);
} else if (type === 7) { } else if (type === 7) {
alert('上传文件,先空下'); alert('上传文件,先空下');
} else if (type === 8) { } else if (type === 8) {
@ -926,7 +945,16 @@ export default {
this.failFn(id, e, recordId); this.failFn(id, e, recordId);
} else if (type === 6) { } else if (type === 6) {
// 2020-01-01 00:00:00 // 2020-01-01 00:00:00
this.failFn(id, this.$moment(e._d).format('YYYY-MM-DD HH:mm:ss'), recordId); const { conditionListDate } = this;
let obj = {
testQuestionsId: id,
startTime: this.$moment(e[0]._d).format('YYYY-MM-DD'),
endTime: this.$moment(e[1]._d).format('YYYY-MM-DD'),
};
conditionListDate.push(obj);
this.conditionListDate = [...conditionListDate];
console.log(this.conditionListDate);
// this.failFn(id, this.$moment(e._d).format('YYYY-MM-DD HH:mm:ss'), recordId);
} else if (type === 7) { } else if (type === 7) {
alert('上传文件,先空下'); alert('上传文件,先空下');
} else if (type === 8) { } else if (type === 8) {
@ -1069,8 +1097,8 @@ export default {
try { try {
const params = { const params = {
param: { param: {
conditionList: [], conditionList: this.contentList,
conditionListDate: [], conditionListDate: this.conditionListDate,
hospitalId: this.setObj.hospitalId, // id hospitalId: this.setObj.hospitalId, // id
hospitalization: this.setObj.hospitalization, // hospitalization: this.setObj.hospitalization, //
inpatientId: this.setObj.inpatientId, // id inpatientId: this.setObj.inpatientId, // id

Loading…
Cancel
Save