|
|
|
@ -1,128 +1,64 @@ |
|
|
|
<template> |
|
|
|
<div style="display: flex"> |
|
|
|
<div style="display: flex; flex-wrap: wrap; width: 90%"> |
|
|
|
<div class="block query"> |
|
|
|
<div :style="'display: flex; flex-wrap: wrap; width:' + (window.pageWidth - 200 - 120 - 70) + 'px;'"> |
|
|
|
<div class="query"> |
|
|
|
<span class="demonstration">登记日期:</span> |
|
|
|
<el-date-picker |
|
|
|
v-model="patientRegister.query.dateRange" |
|
|
|
type="daterange" |
|
|
|
align="right" |
|
|
|
unlink-panels |
|
|
|
range-separator="至" |
|
|
|
start-placeholder="开始日期" |
|
|
|
end-placeholder="结束日期" |
|
|
|
:picker-options="pickerOptions" |
|
|
|
size="small" |
|
|
|
style="width: 240px" |
|
|
|
> |
|
|
|
<el-date-picker v-model="patientRegister.query.dateRange" type="daterange" align="right" unlink-panels |
|
|
|
range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions" size="small" |
|
|
|
style="width: 240px"> |
|
|
|
</el-date-picker> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span>条码号:</span> |
|
|
|
<el-input |
|
|
|
placeholder="条码号" |
|
|
|
v-model="patientRegister.query.patientRegisterNo" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
style="width: 150px" |
|
|
|
/> |
|
|
|
<el-input placeholder="条码号" v-model="patientRegister.query.patientRegisterNo" size="small" clearable |
|
|
|
style="width: 150px" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span>档案号:</span> |
|
|
|
<el-input |
|
|
|
placeholder="档案号" |
|
|
|
v-model="patientRegister.query.patientNo" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
style="width: 135px" |
|
|
|
/> |
|
|
|
<el-input placeholder="档案号" v-model="patientRegister.query.patientNo" size="small" clearable |
|
|
|
style="width: 135px" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span>姓名:</span> |
|
|
|
<el-input |
|
|
|
placeholder="姓名" |
|
|
|
v-model="patientRegister.query.patientName" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
style="width: 100px" |
|
|
|
/> |
|
|
|
<el-input placeholder="姓名" v-model="patientRegister.query.patientName" size="small" clearable |
|
|
|
style="width: 100px" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span>性别:</span> |
|
|
|
<el-select |
|
|
|
v-model="patientRegister.query.sex" |
|
|
|
placeholder="请选择" |
|
|
|
style="width: 80px" |
|
|
|
size="small" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in dict.forSex" |
|
|
|
:key="item.id" |
|
|
|
:label="item.displayName" |
|
|
|
:value="item.id" |
|
|
|
> |
|
|
|
<el-select v-model="patientRegister.query.sex" placeholder="请选择" style="width: 80px" size="small"> |
|
|
|
<el-option v-for="item in dict.forSex" :key="item.id" :label="item.displayName" :value="item.id"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span>身份证号:</span> |
|
|
|
<el-input |
|
|
|
placeholder="身份证号" |
|
|
|
v-model="patientRegister.query.idCardNo" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
style="width: 180px" |
|
|
|
/> |
|
|
|
<el-input placeholder="身份证号" v-model="patientRegister.query.idCardNo" size="small" clearable |
|
|
|
style="width: 180px" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<el-cascader |
|
|
|
v-model="patientRegister.query.customerOrgId" |
|
|
|
:options="patientRegister.customerOrgTreeAll" |
|
|
|
:props="{ |
|
|
|
checkStrictly: true, |
|
|
|
expandTrigger: 'hover', |
|
|
|
...customerOrg.treeprops, |
|
|
|
}" |
|
|
|
:show-all-levels="false" |
|
|
|
clearable |
|
|
|
:disabled="orgEnable == 'Y' ? false : true" |
|
|
|
size="small" |
|
|
|
> |
|
|
|
<el-cascader v-model="patientRegister.query.customerOrgId" :options="patientRegister.customerOrgTreeAll" |
|
|
|
:props="{checkStrictly: true,expandTrigger: 'hover',...customerOrg.treeprops,}" |
|
|
|
:show-all-levels="false" clearable :disabled="orgEnable == 'Y' ? false : true" size="small"> |
|
|
|
</el-cascader> |
|
|
|
<el-checkbox v-model="patientRegister.query.customerOrgFlag" |
|
|
|
>单位作为查询条件</el-checkbox |
|
|
|
> |
|
|
|
<el-checkbox v-model="patientRegister.query.customerOrgFlag">单位作为查询条件</el-checkbox> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span>状态:</span> |
|
|
|
<el-select |
|
|
|
v-model="patientRegister.query.completeFlag" |
|
|
|
placeholder="请选择" |
|
|
|
clearable |
|
|
|
style="width: 80px" |
|
|
|
size="small" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in dict.completeFlag" |
|
|
|
:key="item.id" |
|
|
|
:label="item.displayName" |
|
|
|
:value="item.id" |
|
|
|
> |
|
|
|
<el-select v-model="patientRegister.query.completeFlag" placeholder="请选择" clearable style="width: 80px" |
|
|
|
size="small"> |
|
|
|
<el-option v-for="item in dict.completeFlag" :key="item.id" :label="item.displayName" :value="item.id"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 按钮区域 --> |
|
|
|
<div style="margin-left: 10px; width: 110px"> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="btnClass" @click="btnQuery" |
|
|
|
>查询</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" class="btnClass" @click="btnQuery">查询</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="danger" class="btnClass" @click="readIdCard" |
|
|
|
>读身份证</el-button |
|
|
|
> |
|
|
|
<el-button type="danger" class="btnClass" @click="readIdCard">读身份证</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -178,7 +114,7 @@ export default { |
|
|
|
mounted() { }, |
|
|
|
|
|
|
|
computed: { |
|
|
|
...mapState(["dict", "patientRegister", "customerOrg"]), |
|
|
|
...mapState(["window", "dict", "patientRegister", "customerOrg"]), |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//查询 |
|
|
|
@ -198,11 +134,13 @@ export default { |
|
|
|
.query { |
|
|
|
margin-left: 10px; |
|
|
|
} |
|
|
|
|
|
|
|
.listBtn { |
|
|
|
margin-top: 5px; |
|
|
|
|
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
|
|
|
|
.btnClass { |
|
|
|
/* position: absolute; */ |
|
|
|
/* left: 0; |
|
|
|
|