Blame view

src/views/workflow/components/szxx.vue 7.78 KB
1
<!--
yuanbo committed
2
 * @Description:
3
 * @Autor: renchao
4
 * @LastEditTime: 2024-01-30 15:46:45
5
-->
蔡俊立 committed
6
<template>
田浩浩 committed
7
  <div class="szxx">
yangwei committed
8 9 10
    <el-card
      :class="classJudge(item)"
      v-for="(item, index) in tableData"
11
      :key="index">
田浩浩 committed
12 13
      <div slot="header" class="szxx_header">
        <span class="header_type">{{
yangwei committed
14
          item.bdcqzlx == 1 ? "不动产权证书" : "不动产登记证明"
田浩浩 committed
15 16 17 18 19
        }}</span>
        <div class="header_text">{{ item.bdcqzh }}</div>
      </div>
      <div class="szxx_body card_padding">
        <div class="text color_iray">
20
          <span>{{ item.qllx }}</span>
田浩浩 committed
21 22
        </div>
        <div class="text color_red">
23
          <span>{{ item.qlr }}</span><span class="color_iray">({{ item.qllx }})</span>
田浩浩 committed
24 25
        </div>
        <div class="text color_iray">
26
          <span>{{ item.gyqk }}</span>
田浩浩 committed
27 28 29 30 31
        </div>
        <div class="text color_red">
          <span>{{ item.bdcdyh }}</span>
        </div>
        <div class="text color_iray">
32
          <span>{{ item.zl }}</span>
田浩浩 committed
33 34
        </div>
        <div class="text color_red">
35
          <span>{{ item.yt }}</span>
田浩浩 committed
36 37
        </div>
        <div class="text color_iray">
38 39 40
          <span>{{ item.mj }}</span>
        </div>
        <div class="text color_red">
田浩浩 committed
41 42
          <span>{{ item.syqx }}</span>
        </div>
43 44
        <div class="text color_iray">
          <span>印刷序列号:{{ item.ysxlh }}</span>
田浩浩 committed
45 46
        </div>
      </div>
47
      <div class="card_padding" v-if="viewEdit">
田浩浩 committed
48
        <div class="top_line middle_margin"></div>
yangwei committed
49 50 51 52
        <div class="text tac" v-if="item.ysxlh">
          <el-button
            class="operation_button"
            type="text"
53
            @click="openInvalidDiglog(item)">再次打印({{ item.szcs }})</el-button>
yangwei committed
54 55 56
          <el-button
            class="operation_button"
            type="text"
57
            @click="openRecordPop(item)">缮证记录</el-button>
田浩浩 committed
58
        </div>
yangwei committed
59 60 61 62
        <div class="text tac" v-else>
          <el-button
            class="operation_button"
            type="text"
63
            @click="openZsylDialog(item, 2)">证书打印({{ item.szcs }}</el-button>
yangwei committed
64 65 66
          <el-button
            class="operation_button"
            type="text"
67
            @click="openRecordPop(item)">缮证记录</el-button>
田浩浩 committed
68 69 70
        </div>
      </div>
    </el-card>
71

田浩浩 committed
72 73
    <el-empty description="暂无数据" v-if="tableData.length == 0"></el-empty>
  </div>
蔡俊立 committed
74 75
</template>
<script>
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
  import { mapGetters } from "vuex";
  import store from "@/store/index.js";
  import { getSlsqBdcqzList } from "@/api/bdcqz.js";
  export default {
    props: {},
    data () {
      return {
        //表单是否可操作
        viewEdit: false,
        dialog: false,
        tableData: [],
        bdcqzlx: 1,
        bdcqz: {},
      };
    },
    computed: {
      ...mapGetters(["workFresh"]),
    },
    watch: {
      workFresh: {
        handler (newVal, oldVal) {
          if (newVal) this.list();
        },
yangwei committed
99
      },
xiaomiao committed
100
    },
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
    created () {
      this.list();
      this.viewEdit = this.$parent.currentSelectTab.ableOperation;
    },
    methods: {
      /**
       * @description: 初始化列表
       * @author: renchao
       */
      list () {
        return new Promise((resolve, reject) => {
          var bsmSlsq = this.$route.query.bsmSlsq;
          getSlsqBdcqzList({ bsmSlsq: bsmSlsq }).then((res) => {
            resolve(res.code);
            if (res.code === 200) {
              this.tableData = res.result;
              if (res.result) {
                this.bdcqz = res.result[0];
              }
yangwei committed
120
            }
121
          });
yangwei committed
122
        });
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
      },
      /**
       * @description: 打开证书预览弹窗
       * @param {*} item
       * @param {*} type
       * @author: renchao
       */
      openZsylDialog (item, type) {
        store.dispatch("user/reWorkFresh", false);
        if (type == 1) {
          this.$popupDialog(
            "证书证明预览",
            "workflow/components/dialog/zsyl",
            { bdcqz: item, bsmSlsq: this.$route.query.bsmSlsq },
            '1230px',
            true
          );
        } else {
          this.$popupDialog(
            "证书证明打印",
            "workflow/components/dialog/zsdy",
            { ...item },
            "76%",
            true
          );
        }
      },
      /**
       * @description: 再次打印
       * @param {*} item
       * @author: renchao
       */
      openInvalidDiglog (item) {
yangwei committed
156 157 158 159 160 161 162
        this.$popupDialog(
          "证书证明打印",
          "workflow/components/dialog/zsdy",
          { ...item },
          "76%",
          true
        );
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
      },
      /**
       * @description: openRecordPop
       * @param {*} item
       * @author: renchao
       */
      openRecordPop (item) {
        this.$popupDialog(
          "缮证记录",
          "workflow/components/dialog/szRecord",
          { bsmBdcqz: item.bsmBdcqz },
          "60%",
          true
        );
      },
      /**
       * @description: classJudge 判断class
       * @param {*} item
       * @author: renchao
       */
      classJudge (item) {
        let className = "box-card";
        if (item.bdcqzlx == 1) {
          className += " zs-card";
        } else {
          className += " zm-card";
        }
        if (item.szcs == 0) {
          className += " no-print";
        }
        return className;
      },
田浩浩 committed
195
    },
196
  };
蔡俊立 committed
197
</script>
yangwei committed
198
<style scoped lang="scss">
199 200 201 202 203 204 205 206
  @import "~@/styles/public.scss";
  .szxx {
    box-sizing: border-box;
    padding-right: 15px;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    padding-bottom: 55px;
任超 committed
207

208 209 210 211 212 213 214 215 216 217 218 219 220 221
    .box-card {
      float: left;
      width: 350px;
      margin: 10px;
      box-shadow: none;
      background-image: url("~@/image/zm-bg.png");
      background-size: 100% 100%;
      border: 1px solid transparent;
      /deep/ .el-card__header {
        padding: 12px 66px;
        background-size: auto;
        border-bottom: 0;
        position: relative;
      }
yangwei committed
222
      .szxx_header {
223 224 225
        color: #8b4534;
      }
      .szxx_body {
226
        height: 330px;
yangwei committed
227
      }
xiaomiao committed
228
    }
229 230 231 232 233 234 235 236 237 238 239
    .zs-card {
      border: 1px solid #a6b0be;
      background-image: none;
      /deep/ .el-card__header {
        background-image: url("~@/image/zs-red.png");
        .szxx_header {
          color: #ffe47c;
        }
      }
      .top_line {
        border-top: 1px solid #d3dbe5;
yangwei committed
240
        width: 330px;
241
        margin: 0 auto 10px;
yangwei committed
242 243
      }
    }
244 245 246 247 248 249 250 251 252 253 254 255
    .zm-card {
      /deep/ .el-card__header {
        &:after {
          content: "";
          display: inline-block;
          width: 330px;
          height: 1px;
          background-color: #b28676;
          position: absolute;
          left: 10px;
          bottom: 0;
        }
yangwei committed
256 257
      }
    }
258 259 260 261 262 263 264 265
    .zm-card.no-print {
      background-image: url("~@/image/zm-gray.png");

      /deep/ .el-card__header {
        &:after {
          background-color: #6d7278;
        }
      }
yangwei committed
266
      .szxx_header {
267 268 269 270 271 272 273 274 275
        color: #6d7278;
      }
    }
    .zs-card.no-print {
      /deep/ .el-card__header {
        background-image: url("~@/image/zs-gray.png");
        .szxx_header {
          color: #ffffff;
        }
yangwei committed
276 277
      }
    }
xiaomiao committed
278
  }
任超 committed
279

280 281 282 283 284 285 286 287 288 289
  .szxx_header {
    // color: #ffffff;
    // font-weight: bolder;
    font-size: 16px;

    .header_type {
      display: flex;
      justify-content: center;
      align-content: center;
    }
任超 committed
290

291 292 293 294 295
    .header_text {
      text-align: center;
      margin-top: 2px;
      line-height: 22px;
    }
xiaomiao committed
296
  }
任超 committed
297

298 299 300 301 302 303
  .text {
    margin-bottom: 8px;
    text-align: left;
    text-indent: 16px;
  }
  .text.tac {
xiaomiao committed
304 305
    text-align: center;
  }
任超 committed
306

307 308 309
  .color_iray {
    color: #6d7278;
  }
yangwei committed
310

311 312 313
  .color_red {
    color: #ab0c0c;
  }
yangwei committed
314

315 316 317
  .middle_margin {
    margin-bottom: 10px;
  }
yangwei committed
318

319 320 321 322 323
  .operation_button {
    border: 1px solid #5c95e5;
    padding: 5px;
    text-align: center;
  }
yangwei committed
324

325 326 327 328 329 330 331 332
  .card_padding {
    padding-top: 8px;
    font-size: 14px;
    line-height: 22px;
  }
  /deep/.el-card__body {
    padding: 0px;
  }
xiaomiao committed
333
</style>