Commit 72b4b595 authored by 英思-陈欢's avatar 英思-陈欢

fix bug: 险种显示

parent 26791050
......@@ -7,8 +7,8 @@
globalData: {
user: {
psnCertType: '01',
certno: '', // 身份证号 211224199502036621
psnNo: '', // 人员编号 52000002000000000400011816
certno: '522424199009052614', // 身份证号 211224199502036621
psnNo: '52000005000000006015800601', // 人员编号 52000002000000000400011816
locAdmdvs: '', // 520300
insuAdmdvs: '', // 520281
insuTypeCode: '' // 险种 390
......@@ -19,6 +19,7 @@
dclaSoucOptions: [], // 经办机构类型
medicalOrgTypeOptions: [] ,// 医疗机构类型
insuranceTypeOptions: [], // 医保险种查询
allInsuranceTypeOptions: [],
medinsLvOptions: [], // 医疗机构等级字典
areaOptions: [], // 区域
medinsTypeOptions: [], // 医疗服务机构
......@@ -40,7 +41,12 @@
getApp().globalData!.medicalOrgTypeOptions = res;
})
Api.foo.thirdDictEnums('insutype').then((res: any) => {
getApp().globalData!.insuranceTypeOptions = res.filter((item: any) => item.label == '职工基本医疗保险' || item.label == '城镇居民基本医疗保险');
res.forEach((item: any) => {
item.name = item.label;
item.code = item.value;
})
getApp().globalData!.allInsuranceTypeOptions = res;
getApp().globalData!.insuranceTypeOptions = res.filter((item: any) => item.label == '职工基本医疗保险' || item.label == '城镇居民基本医疗保险' || item.label == '城乡居民基本医疗保险');
})
Api.foo.thirdDictEnums('medinsLv').then((res: any) => {
res.forEach((item: any) => {
......@@ -70,6 +76,12 @@
type: 'sgy',
encryptDataMap: info.data,
}).then((res: any) => {
xma.showModal({
title: '请求结果',
content: JSON.stringify(res),
showCancel: false,
confirmText: '关闭'
})
getApp().globalData!.user.certno = res.uIdCardNo;
Api.foo.insuranceType({
psnCertType: getApp().globalData!.user.psnCertType,
......
......@@ -24,14 +24,14 @@
<picker class="picker" mode="selector" :range="list"></picker>
</view>
</view> -->
<view class="list-item u-flex u-flex-between u-flex-items-center">
<!-- <view class="list-item u-flex u-flex-between u-flex-items-center">
<text>限制使用标志</text>
<view class="u-flex u-flex-center u-flex-items-center">
<input v-model="form.lmtUsedFlag" disabled placeholder-style="font-size: 28rpx;color:#9E9E9E" placeholder="请选择限制使用标志"/>
<image src="@/static/images/arrow.png"></image>
<picker class="picker" mode="selector" :range="list"></picker>
</view>
</view>
</view> -->
</view>
</view>
<view class="footer">
......
......@@ -39,7 +39,7 @@
<view class="list-item u-flex u-flex-between u-flex-items-center">
<text>险种类型</text>
<view class="u-flex u-flex-center u-flex-items-center">
{{ getKeyValue('insuranceTypeOptions', item.insutype) }}
{{ getKeyValue('allInsuranceTypeOptions', item.insutype) }}
</view>
</view>
<view class="list-item u-flex u-flex-between u-flex-items-center">
......
......@@ -73,14 +73,14 @@ export default Vue.extend({
year: '',
insuType: '',
insuAdmdvs: '',
certno: '520103198809275221',
psnCertType: '01'
certno: '',
psnCertType: ''
}
}
},
onLoad() {
const info = getApp().globalData!.user
// this.form.psnNo = info.psnNo
this.form.psnNo = info.psnNo
this.form.psnCertType = info.psnCertType
},
methods: {
......
......@@ -43,19 +43,19 @@
<view class="list-item u-flex u-flex-between u-flex-items-center">
<text>险种类型</text>
<view class="u-flex u-flex-center u-flex-items-center">
{{ getKeyValue('insuranceTypeOptions', detail.insutype) }}
{{ getKeyValue('allInsuranceTypeOptions', detail.insutype) }}
</view>
</view>
<view class="list-item u-flex u-flex-between u-flex-items-center">
<text>转入地参保险种信息</text>
<view class="u-flex u-flex-center u-flex-items-center">
{{ getKeyValue('insuranceTypeOptions', detail.trafinInsutype) }}
{{ getKeyValue('allInsuranceTypeOptions', detail.trafinInsutype) }}
</view>
</view>
<view class="list-item u-flex u-flex-between u-flex-items-center">
<text>转出地险种类型</text>
<view class="u-flex u-flex-center u-flex-items-center">
{{ getKeyValue('insuranceTypeOptions', detail.trafoutInsutype) }}
{{ getKeyValue('allInsuranceTypeOptions', detail.trafoutInsutype) }}
</view>
</view>
<view class="list-item u-flex u-flex-between u-flex-items-center">
......
......@@ -5,7 +5,7 @@
<view class="list-item u-flex u-flex-between u-flex-items-center">
<text>险种类型</text>
<view class="u-flex u-flex-center u-flex-items-center">
{{ getKeyValue('insuranceTypeOptions', item.insutype) }}
{{ getKeyValue('allInsuranceTypeOptions', item.insutype) }}
</view>
</view>
<view class="list-item u-flex u-flex-between u-flex-items-center">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment