| | |
| | | <script> |
| | | import { mapGetters } from "vuex"; |
| | | import dictVertical from "../util/demo/dict-vertical.vue"; |
| | | import { |
| | | update |
| | | } from "@/api/system/user"; |
| | | export default { |
| | | data () { |
| | | return { |
| | |
| | | this.$message({ message: '请完善住址信息', type: 'warning' }) |
| | | return |
| | | } |
| | | //更新发证时间 |
| | | this.updateUserInfo(); |
| | | var printDom = document.getElementById("securityCertificate"); |
| | | printDom.style.position = "fixed"; |
| | | printDom.style.top = "-28.5%"; |
| | |
| | | */ |
| | | return [oneHoursAgoY, oneHoursAgoM] |
| | | }, |
| | | //更新用户发证时间 |
| | | updateUserInfo(){ |
| | | var nowTime = new Date() |
| | | var oneHoursAgo = new Date(new Date(nowTime).getTime() - 1 * 60 * 60 * 1000) |
| | | var oneHoursAgoY = oneHoursAgo.getFullYear() |
| | | var oneHoursAgoM = oneHoursAgo.getMonth() + 1 < 10 ? '0' + (oneHoursAgo.getMonth() + 1) : oneHoursAgo.getMonth() + 1 |
| | | var day = oneHoursAgo.getDay(); |
| | | var date = oneHoursAgoY + "-" + oneHoursAgoM + "-" + day; |
| | | const data = { |
| | | id:this.data.id, |
| | | rtime:this.data.rtime, |
| | | paperTime:date |
| | | } |
| | | update(data); |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | //发证公安机关 (印章) |
| | | .security_m_l_center { |
| | | position: absolute; |
| | | top: $downTop; |
| | | left: 15px; |
| | | top: 270px; |
| | | left: 30px; |
| | | line-height: 40px; |
| | | } |
| | | //证件编号 |
| | |
| | | //公民身份证 |
| | | .security_m_r_d { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 4; |
| | | top: 363px; |
| | | left: $rightLeft; |
| | | width: $rightWidth; |
| | | text-align: justify; |
| | |
| | | letter-spacing: 3px; |
| | | } |
| | | //发证时间 |
| | | $timeTop: 299px; //整体高度 |
| | | $timeTop: 309px; //整体高度 |
| | | //年 |
| | | .security_m_l_titlepaperTimenian { |
| | | position: absolute; |
| | | top: $timeTop; |
| | | left: 95px; |
| | | left: 110px; |
| | | line-height: 40px; |
| | | } |
| | | //月 |
| | | .security_m_l_titlepaperTimeyue { |
| | | position: absolute; |
| | | top: $timeTop; |
| | | left: 154px; |
| | | left: 169px; |
| | | line-height: 40px; |
| | | } |
| | | //日 |
| | |
| | | .security_m_l_downsecuritynumber { |
| | | position: absolute; |
| | | top: 379px; //整体高度 |
| | | left: 125px; |
| | | left: 145px; |
| | | } |
| | | |
| | | //内容 |
| | | // 姓名 |
| | | $centerLeft: 450px; |
| | | $centerLeft: 458px; |
| | | .security_m_r_o_right { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht*0+ 0px; |
| | | top: $downTop + $lineHigeht*0-2px; |
| | | left: $centerLeft; |
| | | // width: $rightWidth; |
| | | } |
| | | // 生日 |
| | | .security_m_r_o_rightbirthday { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 1-2px; |
| | | top: $downTop + $lineHigeht * 1-4px; |
| | | left: $centerLeft; |
| | | // width: $rightWidth; |
| | | } |
| | | // 地址 |
| | | .security_m_r_o_rightaddress { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 2 -4px; |
| | | top: $downTop + $lineHigeht * 2 -6px; |
| | | left: $centerLeft; |
| | | width: 160px; |
| | | font: bold 16px 'SimSun' !important; |
| | |
| | | // 身份证 |
| | | .security_m_r_o_rightcardid { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 4 +6px; |
| | | top: $downTop + $lineHigeht * 4 -12px; |
| | | left: $centerLeft; |
| | | // width: $rightWidth; |
| | | } |