Blame view

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

田浩浩 committed
82 83
    <el-empty description="暂无数据" v-if="tableData.length == 0"></el-empty>
  </div>
蔡俊立 committed
84 85
</template>
<script>
yangwei committed
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
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();
      },
xiaomiao committed
109
    },
yangwei committed
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
  },
  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];
            }
          }
        });
      });
renchao@pashanhoo.com committed
133
    },
yangwei committed
134 135 136 137 138 139 140 141 142 143 144 145 146 147
    /**
     * @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 },
“miaofang committed
148
          '1230px',
yangwei committed
149 150 151 152 153 154 155 156 157 158
          true
        );
      } else {
        this.$popupDialog(
          "证书证明打印",
          "workflow/components/dialog/zsdy",
          { ...item },
          "76%",
          true
        );
renchao@pashanhoo.com committed
159 160
      }
    },
yangwei committed
161 162 163 164 165 166 167 168 169 170 171 172 173
    /**
     * @description: 再次打印
     * @param {*} item
     * @author: renchao
     */
    openInvalidDiglog(item) {
      this.$popupDialog(
        "证书证明打印",
        "workflow/components/dialog/zsdy",
        { ...item },
        "76%",
        true
      );
田浩浩 committed
174
    },
yangwei committed
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
    /**
     * @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";
yangwei committed
198
      } else {
yangwei committed
199 200 201 202
        className += " zm-card";
      }
      if (item.szcs == 0) {
        className += " no-print";
xiaomiao committed
203
      }
yangwei committed
204
      return className;
田浩浩 committed
205
    },
yangwei committed
206 207
  },
};
蔡俊立 committed
208
</script>
yangwei committed
209 210 211 212 213 214 215 216 217
<style scoped lang="scss">
@import "~@/styles/public.scss";
.szxx {
  box-sizing: border-box;
  padding-right: 15px;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  padding-bottom: 55px;
任超 committed
218

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

yangwei committed
272 273 274 275 276
    /deep/ .el-card__header {
      &:after {
        background-color: #6d7278;
      }
    }
yangwei committed
277
    .szxx_header {
yangwei committed
278
      color: #6d7278;
yangwei committed
279
    }
xiaomiao committed
280
  }
yangwei committed
281 282 283 284 285 286 287
  .zs-card.no-print {
    /deep/ .el-card__header {
      background-image: url("~@/image/zs-gray.png");
      .szxx_header {
        color: #ffffff;
      }
    }
xiaomiao committed
288
  }
yangwei committed
289
}
任超 committed
290

yangwei committed
291 292 293 294
.szxx_header {
  // color: #ffffff;
  // font-weight: bolder;
  font-size: 16px;
任超 committed
295

yangwei committed
296 297 298 299
  .header_type {
    display: flex;
    justify-content: center;
    align-content: center;
xiaomiao committed
300
  }
任超 committed
301

yangwei committed
302
  .header_text {
xiaomiao committed
303
    text-align: center;
yangwei committed
304 305
    margin-top: 2px;
    line-height: 22px;
xiaomiao committed
306
  }
yangwei committed
307
}
任超 committed
308

yangwei committed
309 310 311 312 313
.text {
  margin-bottom: 8px;
  text-align: left;
  text-indent: 16px;
}
yangwei committed
314
.text.tac {
yangwei committed
315 316 317 318
  text-align: center;
}

.color_iray {
yangwei committed
319
  color: #6d7278;
yangwei committed
320 321 322
}

.color_red {
yangwei committed
323
  color: #ab0c0c;
yangwei committed
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343
}

.middle_margin {
  margin-bottom: 10px;
}

.operation_button {
  border: 1px solid #5c95e5;
  padding: 5px;
  text-align: center;
}

.card_padding {
  padding-top: 8px;
  font-size: 14px;
  line-height: 22px;
}
/deep/.el-card__body {
  padding: 0px;
}
xiaomiao committed
344
</style>