证书样式修改
Showing
5 changed files
with
194 additions
and
93 deletions
src/image/zm-bg.png
0 → 100644
6.44 KB
src/image/zm-gray.png
0 → 100644
6.92 KB
src/image/zs-gray.png
0 → 100644
3.72 KB
src/image/zs-red.png
0 → 100644
4.72 KB
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-05 14:28:25 | 4 | * @LastEditTime: 2023-09-08 15:59:07 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="szxx"> | 7 | <div class="szxx"> |
| 8 | <el-card :class="item.szcs == 0 ? 'box-card':'box-card bg-red'" v-for="(item, index) in tableData" :key="index"> | 8 | <el-card |
| 9 | :class="classJudge(item)" | ||
| 10 | v-for="(item, index) in tableData" | ||
| 11 | :key="index" | ||
| 12 | > | ||
| 9 | <div slot="header" class="szxx_header"> | 13 | <div slot="header" class="szxx_header"> |
| 10 | <span class="header_type">{{ | 14 | <span class="header_type">{{ |
| 11 | item.bdcqzlx == 1 ? "不动产权证书" : "不动产登记证明" | 15 | item.bdcqzlx == 1 ? "不动产权证书" : "不动产登记证明" |
| ... | @@ -17,7 +21,7 @@ | ... | @@ -17,7 +21,7 @@ |
| 17 | <span>{{ item.qllx }}</span> | 21 | <span>{{ item.qllx }}</span> |
| 18 | </div> | 22 | </div> |
| 19 | <div class="text color_red"> | 23 | <div class="text color_red"> |
| 20 | <span>{{ item.qlr }}</span> | 24 | <span>{{ item.qlr }}</span><span class="color_iray">({{ item.qllx }})</span> |
| 21 | </div> | 25 | </div> |
| 22 | <div class="text color_iray"> | 26 | <div class="text color_iray"> |
| 23 | <span>{{ item.gyqk }}</span> | 27 | <span>{{ item.gyqk }}</span> |
| ... | @@ -43,15 +47,33 @@ | ... | @@ -43,15 +47,33 @@ |
| 43 | </div> | 47 | </div> |
| 44 | <div class="card_padding" v-if="viewEdit"> | 48 | <div class="card_padding" v-if="viewEdit"> |
| 45 | <div class="top_line middle_margin"></div> | 49 | <div class="top_line middle_margin"></div> |
| 46 | <div class="text" v-if="item.ysxlh"> | 50 | <div class="text tac" v-if="item.ysxlh"> |
| 47 | <el-button class="operation_button" type="text" @click="openInvalidDiglog(item)">再次打印({{ item.szcs | 51 | <el-button |
| 48 | }})</el-button> | 52 | class="operation_button" |
| 49 | <el-button class="operation_button" type="text" @click="openRecordPop(item)">缮证记录</el-button> | 53 | type="text" |
| 54 | @click="openInvalidDiglog(item)" | ||
| 55 | >再次打印({{ item.szcs }})</el-button | ||
| 56 | > | ||
| 57 | <el-button | ||
| 58 | class="operation_button" | ||
| 59 | type="text" | ||
| 60 | @click="openRecordPop(item)" | ||
| 61 | >缮证记录</el-button | ||
| 62 | > | ||
| 50 | </div> | 63 | </div> |
| 51 | <div class="text" v-else> | 64 | <div class="text tac" v-else> |
| 52 | <el-button class="operation_button" type="text" @click="openZsylDialog(item, 2)">证书打印({{ item.szcs | 65 | <el-button |
| 53 | }})</el-button> | 66 | class="operation_button" |
| 54 | <el-button class="operation_button" type="text" @click="openRecordPop(item)">缮证记录</el-button> | 67 | type="text" |
| 68 | @click="openZsylDialog(item, 2)" | ||
| 69 | >证书打印({{ item.szcs }})</el-button | ||
| 70 | > | ||
| 71 | <el-button | ||
| 72 | class="operation_button" | ||
| 73 | type="text" | ||
| 74 | @click="openRecordPop(item)" | ||
| 75 | >缮证记录</el-button | ||
| 76 | > | ||
| 55 | </div> | 77 | </div> |
| 56 | </div> | 78 | </div> |
| 57 | </el-card> | 79 | </el-card> |
| ... | @@ -60,42 +82,42 @@ | ... | @@ -60,42 +82,42 @@ |
| 60 | </div> | 82 | </div> |
| 61 | </template> | 83 | </template> |
| 62 | <script> | 84 | <script> |
| 63 | import { mapGetters } from 'vuex' | 85 | import { mapGetters } from "vuex"; |
| 64 | import store from '@/store/index.js' | 86 | import store from "@/store/index.js"; |
| 65 | import { getSlsqBdcqzList } from "@/api/bdcqz.js"; | 87 | import { getSlsqBdcqzList } from "@/api/bdcqz.js"; |
| 66 | export default { | 88 | export default { |
| 67 | props: {}, | 89 | props: {}, |
| 68 | data () { | 90 | data() { |
| 69 | return { | 91 | return { |
| 70 | //表单是否可操作 | 92 | //表单是否可操作 |
| 71 | viewEdit: false, | 93 | viewEdit: false, |
| 72 | dialog: false, | 94 | dialog: false, |
| 73 | tableData: [], | 95 | tableData: [], |
| 74 | bdcqzlx: 1, | 96 | bdcqzlx: 1, |
| 75 | bdcqz: {} | 97 | bdcqz: {}, |
| 76 | } | 98 | }; |
| 77 | }, | 99 | }, |
| 78 | computed: { | 100 | computed: { |
| 79 | ...mapGetters(['workFresh']) | 101 | ...mapGetters(["workFresh"]), |
| 80 | }, | 102 | }, |
| 81 | watch: { | 103 | watch: { |
| 82 | workFresh: { | 104 | workFresh: { |
| 83 | handler (newVal, oldVal) { | 105 | handler(newVal, oldVal) { |
| 84 | console.log(newVal, 'newVal'); | 106 | console.log(newVal, "newVal"); |
| 85 | if (newVal) this.list() | 107 | if (newVal) this.list(); |
| 86 | } | ||
| 87 | } | ||
| 88 | }, | 108 | }, |
| 89 | created () { | 109 | }, |
| 90 | this.list() | 110 | }, |
| 91 | this.viewEdit = this.$parent.currentSelectTab.ableOperation | 111 | created() { |
| 112 | this.list(); | ||
| 113 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | ||
| 92 | }, | 114 | }, |
| 93 | methods: { | 115 | methods: { |
| 94 | /** | 116 | /** |
| 95 | * @description: 初始化列表 | 117 | * @description: 初始化列表 |
| 96 | * @author: renchao | 118 | * @author: renchao |
| 97 | */ | 119 | */ |
| 98 | list () { | 120 | list() { |
| 99 | return new Promise((resolve, reject) => { | 121 | return new Promise((resolve, reject) => { |
| 100 | var bsmSlsq = this.$route.query.bsmSlsq; | 122 | var bsmSlsq = this.$route.query.bsmSlsq; |
| 101 | getSlsqBdcqzList({ bsmSlsq: bsmSlsq }).then((res) => { | 123 | getSlsqBdcqzList({ bsmSlsq: bsmSlsq }).then((res) => { |
| ... | @@ -106,8 +128,8 @@ | ... | @@ -106,8 +128,8 @@ |
| 106 | this.bdcqz = res.result[0]; | 128 | this.bdcqz = res.result[0]; |
| 107 | } | 129 | } |
| 108 | } | 130 | } |
| 109 | }) | 131 | }); |
| 110 | }) | 132 | }); |
| 111 | }, | 133 | }, |
| 112 | /** | 134 | /** |
| 113 | * @description: 打开证书预览弹窗 | 135 | * @description: 打开证书预览弹窗 |
| ... | @@ -115,13 +137,25 @@ | ... | @@ -115,13 +137,25 @@ |
| 115 | * @param {*} type | 137 | * @param {*} type |
| 116 | * @author: renchao | 138 | * @author: renchao |
| 117 | */ | 139 | */ |
| 118 | openZsylDialog (item, type) { | 140 | openZsylDialog(item, type) { |
| 119 | store.dispatch('user/reWorkFresh', false) | 141 | store.dispatch("user/reWorkFresh", false); |
| 120 | if (type == 1) { | 142 | if (type == 1) { |
| 121 | //证书证明预览 | 143 | //证书证明预览 |
| 122 | this.$popupDialog("证书证明预览", "workflow/components/dialog/zsyl", { bdcqz: item, bsmSlsq: this.$route.query.bsmSlsq }, "76%", true); | 144 | this.$popupDialog( |
| 145 | "证书证明预览", | ||
| 146 | "workflow/components/dialog/zsyl", | ||
| 147 | { bdcqz: item, bsmSlsq: this.$route.query.bsmSlsq }, | ||
| 148 | "76%", | ||
| 149 | true | ||
| 150 | ); | ||
| 123 | } else { | 151 | } else { |
| 124 | this.$popupDialog("证书证明打印", "workflow/components/dialog/zsdy", { ...item }, "76%", true); | 152 | this.$popupDialog( |
| 153 | "证书证明打印", | ||
| 154 | "workflow/components/dialog/zsdy", | ||
| 155 | { ...item }, | ||
| 156 | "76%", | ||
| 157 | true | ||
| 158 | ); | ||
| 125 | } | 159 | } |
| 126 | }, | 160 | }, |
| 127 | /** | 161 | /** |
| ... | @@ -129,23 +163,52 @@ | ... | @@ -129,23 +163,52 @@ |
| 129 | * @param {*} item | 163 | * @param {*} item |
| 130 | * @author: renchao | 164 | * @author: renchao |
| 131 | */ | 165 | */ |
| 132 | openInvalidDiglog (item) { | 166 | openInvalidDiglog(item) { |
| 133 | this.$popupDialog("证书证明打印", "workflow/components/dialog/zsdy", { ...item }, "76%", true); | 167 | this.$popupDialog( |
| 168 | "证书证明打印", | ||
| 169 | "workflow/components/dialog/zsdy", | ||
| 170 | { ...item }, | ||
| 171 | "76%", | ||
| 172 | true | ||
| 173 | ); | ||
| 134 | }, | 174 | }, |
| 135 | /** | 175 | /** |
| 136 | * @description: openRecordPop | 176 | * @description: openRecordPop |
| 137 | * @param {*} item | 177 | * @param {*} item |
| 138 | * @author: renchao | 178 | * @author: renchao |
| 139 | */ | 179 | */ |
| 140 | openRecordPop (item) { | 180 | openRecordPop(item) { |
| 141 | this.$popupDialog("缮证记录", "workflow/components/dialog/szRecord", { bsmBdcqz: item.bsmBdcqz }, '60%', true) | 181 | this.$popupDialog( |
| 182 | "缮证记录", | ||
| 183 | "workflow/components/dialog/szRecord", | ||
| 184 | { bsmBdcqz: item.bsmBdcqz }, | ||
| 185 | "60%", | ||
| 186 | true | ||
| 187 | ); | ||
| 188 | }, | ||
| 189 | /** | ||
| 190 | * @description: classJudge 判断class | ||
| 191 | * @param {*} item | ||
| 192 | * @author: renchao | ||
| 193 | */ | ||
| 194 | classJudge(item) { | ||
| 195 | let className = "box-card"; | ||
| 196 | if (item.bdcqzlx == 1) { | ||
| 197 | className += " zs-card"; | ||
| 198 | }else{ | ||
| 199 | className += " zm-card"; | ||
| 142 | } | 200 | } |
| 201 | if (item.szcs == 0) { | ||
| 202 | className += " no-print"; | ||
| 203 | } | ||
| 204 | return className; | ||
| 143 | }, | 205 | }, |
| 144 | }; | 206 | }, |
| 207 | }; | ||
| 145 | </script> | 208 | </script> |
| 146 | <style scoped lang='scss'> | 209 | <style scoped lang="scss"> |
| 147 | @import "~@/styles/public.scss"; | 210 | @import "~@/styles/public.scss"; |
| 148 | .szxx { | 211 | .szxx { |
| 149 | box-sizing: border-box; | 212 | box-sizing: border-box; |
| 150 | padding-right: 15px; | 213 | padding-right: 15px; |
| 151 | width: 100%; | 214 | width: 100%; |
| ... | @@ -155,18 +218,72 @@ | ... | @@ -155,18 +218,72 @@ |
| 155 | 218 | ||
| 156 | .box-card { | 219 | .box-card { |
| 157 | float: left; | 220 | float: left; |
| 158 | width: 300px; | 221 | width: 350px; |
| 159 | margin-top: 10px; | 222 | margin: 10px; |
| 160 | margin-right: 10px; | 223 | box-shadow: none; |
| 161 | // .szxx_body { | 224 | background-image: url("~@/image/zm-bg.png"); |
| 162 | // height: 240px; | 225 | background-size: 100% 100%;; |
| 163 | // } | 226 | border: 0; |
| 227 | /deep/ .el-card__header { | ||
| 228 | padding: 12px 66px; | ||
| 229 | background-size: auto; | ||
| 230 | border-bottom:0; | ||
| 231 | position: relative; | ||
| 164 | } | 232 | } |
| 233 | .szxx_header { | ||
| 234 | color: #8B4534; | ||
| 165 | } | 235 | } |
| 166 | 236 | .szxx_body { | |
| 237 | height: 280px; | ||
| 238 | } | ||
| 239 | } | ||
| 240 | .zs-card { | ||
| 241 | border: 1px solid #a6b0be; | ||
| 242 | background-image: none; | ||
| 243 | /deep/ .el-card__header { | ||
| 244 | background-image: url("~@/image/zs-red.png"); | ||
| 245 | .szxx_header { | ||
| 246 | color: #ffe47c; | ||
| 247 | } | ||
| 248 | } | ||
| 249 | .top_line { | ||
| 250 | border-top: 1px solid #d3dbe5; | ||
| 251 | width: 330px; | ||
| 252 | margin: 0 auto 10px ; | ||
| 253 | } | ||
| 254 | } | ||
| 255 | .zm-card{ | ||
| 256 | /deep/ .el-card__header { | ||
| 257 | &:after{ | ||
| 258 | content: ""; | ||
| 259 | display: inline-block; | ||
| 260 | width: 330px; | ||
| 261 | height: 1px; | ||
| 262 | background-color: #B28676; | ||
| 263 | position: absolute; | ||
| 264 | left: 10px; | ||
| 265 | } | ||
| 266 | } | ||
| 267 | } | ||
| 268 | .zm-card.no-print { | ||
| 269 | background-image: url("~@/image/zm-gray.png"); | ||
| 270 | .szxx_header { | ||
| 271 | color: #6D7278; | ||
| 272 | } | ||
| 273 | } | ||
| 274 | .zs-card.no-print { | ||
| 275 | /deep/ .el-card__header { | ||
| 276 | background-image: url("~@/image/zs-gray.png"); | ||
| 167 | .szxx_header { | 277 | .szxx_header { |
| 278 | color: #ffffff; | ||
| 279 | } | ||
| 280 | } | ||
| 281 | } | ||
| 282 | } | ||
| 283 | |||
| 284 | .szxx_header { | ||
| 168 | // color: #ffffff; | 285 | // color: #ffffff; |
| 169 | font-weight: bolder; | 286 | // font-weight: bolder; |
| 170 | font-size: 16px; | 287 | font-size: 16px; |
| 171 | 288 | ||
| 172 | .header_type { | 289 | .header_type { |
| ... | @@ -177,61 +294,45 @@ | ... | @@ -177,61 +294,45 @@ |
| 177 | 294 | ||
| 178 | .header_text { | 295 | .header_text { |
| 179 | text-align: center; | 296 | text-align: center; |
| 180 | margin-top: 10px; | 297 | margin-top: 2px; |
| 181 | line-height: 30px; | 298 | line-height: 22px; |
| 182 | } | ||
| 183 | } | 299 | } |
| 300 | } | ||
| 184 | 301 | ||
| 185 | .top_line { | ||
| 186 | border-top: 2px solid rgb(222, 222, 222); | ||
| 187 | } | ||
| 188 | 302 | ||
| 189 | .text { | 303 | .text { |
| 190 | margin-bottom: 10px; | 304 | margin-bottom: 8px; |
| 305 | text-align: left; | ||
| 306 | text-indent: 16px; | ||
| 307 | } | ||
| 308 | .text.tac{ | ||
| 191 | text-align: center; | 309 | text-align: center; |
| 192 | } | 310 | } |
| 193 | 311 | ||
| 194 | .color_iray { | 312 | .color_iray { |
| 195 | color: rgb(153, 153, 153); | 313 | color: #6D7278; |
| 196 | } | 314 | } |
| 197 | 315 | ||
| 198 | .color_red { | 316 | .color_red { |
| 199 | color: rgb(255, 89, 24); | 317 | color: #AB0C0C; |
| 200 | } | 318 | } |
| 201 | 319 | ||
| 202 | .middle_margin { | 320 | .middle_margin { |
| 203 | margin-bottom: 10px; | 321 | margin-bottom: 10px; |
| 204 | } | 322 | } |
| 205 | 323 | ||
| 206 | .operation_button { | 324 | .operation_button { |
| 207 | border: 1px solid rgb(0, 121, 254); | 325 | border: 1px solid #5c95e5; |
| 208 | padding: 5px; | 326 | padding: 5px; |
| 209 | text-align: center; | 327 | text-align: center; |
| 210 | } | 328 | } |
| 211 | 329 | ||
| 212 | .card_padding { | 330 | .card_padding { |
| 213 | padding-top: 8px; | 331 | padding-top: 8px; |
| 214 | font-size: 16px; | 332 | font-size: 14px; |
| 215 | } | 333 | line-height: 22px; |
| 216 | .box-card { | 334 | } |
| 217 | .szxx_header { | 335 | /deep/.el-card__body { |
| 218 | color: #303133; | ||
| 219 | } | ||
| 220 | // 证书背景色 | ||
| 221 | /deep/.el-card__header { | ||
| 222 | background-color: #e2dfe0; | ||
| 223 | } | ||
| 224 | } | ||
| 225 | .bg-red { | ||
| 226 | .szxx_header { | ||
| 227 | color: #fff; | ||
| 228 | } | ||
| 229 | /deep/.el-card__header { | ||
| 230 | background-color: rgb(198, 67, 83); | ||
| 231 | } | ||
| 232 | } | ||
| 233 | |||
| 234 | /deep/.el-card__body { | ||
| 235 | padding: 0px; | 336 | padding: 0px; |
| 236 | } | 337 | } |
| 237 | </style> | 338 | </style> | ... | ... |
-
Please register or sign in to post a comment