feat:订单详情添加性别和证件号映射表
Showing
1 changed file
with
18 additions
and
8 deletions
... | @@ -43,6 +43,18 @@ | ... | @@ -43,6 +43,18 @@ |
43 | import VideoPlayer from '@/components/videoPlayer' | 43 | import VideoPlayer from '@/components/videoPlayer' |
44 | import { getResourceDetail, saveResourceMonitorRemarks } from '@/api/monitor' | 44 | import { getResourceDetail, saveResourceMonitorRemarks } from '@/api/monitor' |
45 | 45 | ||
46 | const custIdTypeMap = { | ||
47 | 1: '身份证', | ||
48 | 2: '护照', | ||
49 | 3: '军官证', | ||
50 | 4: '出生证', | ||
51 | 5: '户口本', | ||
52 | 6: '士兵证', | ||
53 | 7: '港澳通', | ||
54 | 8: '台通', | ||
55 | 11: '外国人永久居留身份证' | ||
56 | } | ||
57 | |||
46 | export default { | 58 | export default { |
47 | components: { | 59 | components: { |
48 | VideoPlayer | 60 | VideoPlayer |
... | @@ -73,18 +85,16 @@ export default { | ... | @@ -73,18 +85,16 @@ export default { |
73 | }, | 85 | }, |
74 | computed: { | 86 | computed: { |
75 | sexCom() { | 87 | sexCom() { |
76 | if (this.custInfoCopy.custGender === '') { | 88 | if (!this.custInfoCopy.custGender) { |
77 | return '' | 89 | return '无' |
78 | } else { | 90 | } else { |
79 | return Number(this.custInfoCopy.custGender) === 0 ? '女' : '男' | 91 | return this.custInfoCopy.custGender === 'F' ? '女' : '男' |
80 | } | 92 | } |
81 | }, | 93 | }, |
82 | custIdTypeCom() { | 94 | custIdTypeCom() { |
83 | if (this.custInfoCopy.custIdType === '') { | 95 | return custIdTypeMap[this.custInfoCopy.custIdType] ? |
84 | return '' | 96 | custIdTypeMap[this.custInfoCopy.custIdType] : |
85 | } else { | 97 | '无' |
86 | return Number(this.custInfoCopy.custIdType) === 0 ? '身份证' : '其他' | ||
87 | } | ||
88 | } | 98 | } |
89 | }, | 99 | }, |
90 | methods: { | 100 | methods: { | ... | ... |
-
Please register or sign in to post a comment