qa-prevention-xgf-app/pages/certificate_information/view.vue

69 lines
2.3 KiB
Vue
Raw Normal View History

2023-11-07 10:24:08 +08:00
<template>
<view class="content">
<view class="card">
<u-cell-group>
<u-cell title="证书图片">
<template #value>
2024-08-27 15:04:44 +08:00
<u--image :src="info.FILEPATH" width="100rpx" height="100rpx" radius="10rpx" @click="fnPreview"></u--image>
2024-09-30 09:40:54 +08:00
<u--image v-if="info.FILEPATH_BACK" :src="info.FILEPATH_BACK" width="100rpx" height="100rpx" radius="10rpx"
@click="fnPreview"></u--image>
2023-11-07 10:24:08 +08:00
</template>
</u-cell>
<u-cell title="姓名" :value="info.NAME"></u-cell>
<u-cell title="性别" :value="info.SEX === '1' ? '女' : '男'"></u-cell>
<u-cell title="手机号码" :value="info.PHONE"></u-cell>
<u-cell title="身份证号码" :value="info.CARD_ID"></u-cell>
<u-cell title="证书类型" :value="info.typeName"></u-cell>
<u-cell title="证书名称" :value="info.CERTIFICATE"></u-cell>
<u-cell title="证书编号" :value="info.SPECIAL_NUMBER"></u-cell>
2024-09-30 09:40:54 +08:00
<!-- <u-cell title="工种" :value="info.JOBS_TYPE"></u-cell>-->
2023-11-07 10:24:08 +08:00
<u-cell v-show="info.typeName === '特种作业'" title="作业类别" :value="info.specialName"></u-cell>
<u-cell v-show="info.typeName === '特种作业'" title="操作项目" :value="info.operationName"></u-cell>
<u-cell title="发证机关" :value="info.ISSUING_AUTHORITY"></u-cell>
<u-cell title="有效期" :value="info.VALIDITY_TIME_START + '至' + info.VALIDITY_TIME_END"></u-cell>
<u-cell title="复审时间" :value="info.REVIEW_TIME"></u-cell>
</u-cell-group>
</view>
</view>
</template>
<script>
import {getCertificateInformationView} from "../../api";
export default {
data() {
return {
2024-09-30 09:40:54 +08:00
SPECIAL_USER_ID: '',
2023-11-07 10:24:08 +08:00
info: {}
}
},
onLoad(query) {
this.SPECIAL_USER_ID = query.SPECIAL_USER_ID
this.fnGetData()
},
methods: {
2024-09-30 09:40:54 +08:00
async fnGetData() {
2023-11-07 10:24:08 +08:00
let resData = await getCertificateInformationView({
2024-09-30 09:40:54 +08:00
SPECIAL_USER_ID: this.SPECIAL_USER_ID
2023-11-07 10:24:08 +08:00
})
this.info = resData.pd
2024-09-30 09:40:54 +08:00
this.$set(this.info, 'FILEPATH', this.$filePath + resData.pd.FILEPATH)
if (resData.pd.FILEPATH_BACK) {
this.$set(this.info, 'FILEPATH_BACK', this.$filePath + resData.pd.FILEPATH_BACK)
2024-04-08 16:28:12 +08:00
}
2023-11-07 10:24:08 +08:00
},
fnPreview() {
uni.previewImage({
2024-09-30 09:40:54 +08:00
urls: [this.info.FILEPATH]
2023-11-07 10:24:08 +08:00
})
}
},
}
</script>
<style scoped>
</style>