161ec22d by zhen

feat:订单详情添加性别和证件号映射表

1 parent bb06e160
......@@ -43,6 +43,18 @@
import VideoPlayer from '@/components/videoPlayer'
import { getResourceDetail, saveResourceMonitorRemarks } from '@/api/monitor'
const custIdTypeMap = {
1: '身份证',
2: '护照',
3: '军官证',
4: '出生证',
5: '户口本',
6: '士兵证',
7: '港澳通',
8: '台通',
11: '外国人永久居留身份证'
}
export default {
components: {
VideoPlayer
......@@ -73,18 +85,16 @@ export default {
},
computed: {
sexCom() {
if (this.custInfoCopy.custGender === '') {
return ''
if (!this.custInfoCopy.custGender) {
return ''
} else {
return Number(this.custInfoCopy.custGender) === 0 ? '女' : '男'
return this.custInfoCopy.custGender === 'F' ? '女' : '男'
}
},
custIdTypeCom() {
if (this.custInfoCopy.custIdType === '') {
return ''
} else {
return Number(this.custInfoCopy.custIdType) === 0 ? '身份证' : '其他'
}
return custIdTypeMap[this.custInfoCopy.custIdType] ?
custIdTypeMap[this.custInfoCopy.custIdType] :
'无'
}
},
methods: {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!