|
@@ -1,8 +1,10 @@
|
|
|
<template>
|
|
|
<page-layer>
|
|
|
<template #header>
|
|
|
- <el-input style="width: 130px" placeholder="姓名" clearable v-model="psnName"></el-input>
|
|
|
- <el-input style="width: 180px" placeholder="身份证号(必填)" clearable v-model="socialNo"></el-input>
|
|
|
+ <el-select style="width: 180px" placeholder="证件类型" clearable v-model="psnCertType">
|
|
|
+ <el-option v-for="item in psnCertTypes" :label="item.name" :value="item.code"></el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-input style="width: 180px" placeholder="证件号码(必填)" clearable v-model="socialNo"></el-input>
|
|
|
<el-select v-model="psnAdmdvs" placeholder="参保区划" filterable style="width: 160px">
|
|
|
<el-option v-for="item in admdvs" :key="item.code" :label="item.name" :value="item.code">
|
|
|
<span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
|
|
@@ -88,13 +90,15 @@ import { admdvses } from '@/data'
|
|
|
import Cuminfo from '@/components/medical-insurance/cuminfo/Index.vue'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
import PageLayer from "@/layout/PageLayer";
|
|
|
+import {getPsnCertTypes} from "@/api/medical-insurance/si-dict";
|
|
|
export default {
|
|
|
components: {
|
|
|
PageLayer,
|
|
|
Cuminfo,
|
|
|
},
|
|
|
setup() {
|
|
|
- const psnName = ref('')
|
|
|
+ const psnCertTypes = ref([])
|
|
|
+ const psnCertType = ref('01')
|
|
|
const socialNo = ref('')
|
|
|
const psnAdmdvs = ref('')
|
|
|
const psnInfo = ref({ insuinfo: [] })
|
|
@@ -113,7 +117,7 @@ export default {
|
|
|
}
|
|
|
const execQuery = () => {
|
|
|
const param = {
|
|
|
- name: psnName.value,
|
|
|
+ psnCertType: psnCertType.value,
|
|
|
socialNo: socialNo.value,
|
|
|
admdvs: psnAdmdvs.value,
|
|
|
onlyQry: 1,
|
|
@@ -123,8 +127,8 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
const resetPage = () => {
|
|
|
- psnName.value = ''
|
|
|
socialNo.value = ''
|
|
|
+ psnCertType.value = ''
|
|
|
psnInfo.value = { insuinfo: [] }
|
|
|
}
|
|
|
const getCuminfo = () => {
|
|
@@ -133,13 +137,21 @@ export default {
|
|
|
}
|
|
|
showCumInfo.value = true
|
|
|
}
|
|
|
+
|
|
|
+ onMounted(() => {
|
|
|
+ getPsnCertTypes().then(res => {
|
|
|
+ psnCertTypes.value = res
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
return {
|
|
|
admdvs: admdvses,
|
|
|
- psnName,
|
|
|
+ psnCertType,
|
|
|
socialNo,
|
|
|
psnAdmdvs,
|
|
|
psnInfo,
|
|
|
showCumInfo,
|
|
|
+ psnCertTypes,
|
|
|
execQuery,
|
|
|
resetPage,
|
|
|
getCuminfo,
|