| | |
| | | <div class="security_m_l_center no-print"> |
| | | 发证公安机关 (印章)<br /> |
| | | 发证日期 |
| | | 年 月 |
| | | 年 月 |
| | | </div> |
| | | <div class="security_m_l_down no-print">证件编号</div> |
| | | <div class="security_m_r_a no-print">姓名</div> |
| | |
| | | {{ data.cardid.slice(6, 10) }}.{{ data.cardid.slice(10, 12) }}.{{ data.cardid.slice(12, 14) }} |
| | | </div> |
| | | <div class="security_m_r_o_rightaddress security_m_r_o_l_r widt"> |
| | | {{ data.address }} |
| | | {{ data.registered }} |
| | | </div> |
| | | <div class="security_m_r_o_rightcardid">{{ data.cardid }}</div> |
| | | </div> |
| | |
| | | components: { dictVertical }, |
| | | props: ["data"], |
| | | created () { |
| | | |
| | | var time = this.getNewTime() |
| | | this.year = time[0] |
| | | this.month = time[1] |
| | | }, |
| | | methods: { |
| | | Print () { |
| | | if (this.data.address == '' || this.data.address == null) { |
| | | this.$message({ message: '请完善地址信息', type: 'warning' }) |
| | | if (this.data.registered == '' || this.data.registered == null) { |
| | | this.$message({ message: '请完善住址信息', type: 'warning' }) |
| | | return |
| | | } |
| | | var printDom = document.getElementById("securityCertificate"); |
| | | printDom.style.position = "fixed"; |
| | | printDom.style.top = "-26%"; |
| | | printDom.style.left = "-12%"; |
| | | printDom.style.top = "-28.5%"; |
| | | printDom.style.left = "-23%"; |
| | | printDom.style.width = "120%"; |
| | | printDom.style.height = "100%"; |
| | | printDom.style.fontFamily = "SimSun"; |
| | |
| | | position: relative; |
| | | } |
| | | // 标题 |
| | | $upTop: 55px; |
| | | $downTop: 228px; //整体高度 |
| | | $upTop: 45px; |
| | | $downTop: 260px; //整体高度 |
| | | //经国家保安员考试审查合格。<br />特颁此证。 |
| | | .security_main-title { |
| | | position: absolute; |
| | | top: $upTop; |
| | | left: 39px; |
| | | left: 34px; |
| | | line-height: 45px; |
| | | letter-spacing: 3px; |
| | | } |
| | |
| | | .security_m_l_center { |
| | | position: absolute; |
| | | top: $downTop; |
| | | left: 32px; |
| | | left: 15px; |
| | | line-height: 40px; |
| | | } |
| | | //证件编号 |
| | | .security_m_l_down { |
| | | position: absolute; |
| | | top: 421px; |
| | | top: 379px; |
| | | left: 32px; |
| | | } |
| | | |
| | |
| | | // 抬头名字 |
| | | .security_m_l_titleName { |
| | | position: absolute; |
| | | top: 13px; |
| | | left: 44px; |
| | | top: 35px; |
| | | left: 121px; |
| | | line-height: 45px; |
| | | letter-spacing: 3px; |
| | | } |
| | | //发证时间 |
| | | $timeTop: 280px; //整体高度 |
| | | $timeTop: 299px; //整体高度 |
| | | //年 |
| | | .security_m_l_titlepaperTimenian { |
| | | position: absolute; |
| | | top: $timeTop; |
| | | left: 25px; |
| | | left: 95px; |
| | | line-height: 40px; |
| | | } |
| | | //月 |
| | | .security_m_l_titlepaperTimeyue { |
| | | position: absolute; |
| | | top: $timeTop; |
| | | left: 75px; |
| | | left: 154px; |
| | | line-height: 40px; |
| | | } |
| | | //日 |
| | | .security_m_l_titlepaperTimeri { |
| | | position: absolute; |
| | | top: $timeTop; |
| | | left: 164px; |
| | | left: 159px; |
| | | line-height: 40px; |
| | | } |
| | | //证件编号 |
| | | .security_m_l_downsecuritynumber { |
| | | position: absolute; |
| | | top: 357px; //整体高度 |
| | | left: 54px; |
| | | top: 379px; //整体高度 |
| | | left: 125px; |
| | | } |
| | | |
| | | //内容 |
| | | // 姓名 |
| | | $centerLeft: 365px; |
| | | $centerLeft: 450px; |
| | | .security_m_r_o_right { |
| | | position: absolute; |
| | | top: $downTop + 2px; |
| | | top: $downTop + $lineHigeht*0+ 0px; |
| | | left: $centerLeft; |
| | | // width: $rightWidth; |
| | | } |
| | | // 生日 |
| | | .security_m_r_o_rightbirthday { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 1; |
| | | top: $downTop + $lineHigeht * 1-2px; |
| | | left: $centerLeft; |
| | | // width: $rightWidth; |
| | | } |
| | | // 地址 |
| | | .security_m_r_o_rightaddress { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 2 -5px; |
| | | top: $downTop + $lineHigeht * 2 -4px; |
| | | left: $centerLeft; |
| | | width: 160px; |
| | | font: bold 16px 'SimSun' !important; |
| | | } |
| | | // 身份证 |
| | | .security_m_r_o_rightcardid { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 4 +8px; |
| | | top: $downTop + $lineHigeht * 4 +6px; |
| | | left: $centerLeft; |
| | | // width: $rightWidth; |
| | | } |