Blame view

src/views/workflow/components/szxx.vue 7.72 KB
1
<!--
yuanbo committed
2
 * @Description:
3
 * @Autor: renchao
4
 * @LastEditTime: 2023-07-28 15:46:24
5
-->
蔡俊立 committed
6
<template>
田浩浩 committed
7 8 9 10
  <div class="szxx">
    <el-card class="box-card" v-for="(item, index) in tableData" :key="index">
      <div slot="header" class="szxx_header">
        <span class="header_type">{{
11
            item.bdcqzlx == 1 ? "不动产权证书" : "不动产登记证明"
田浩浩 committed
12 13 14 15 16
        }}</span>
        <div class="header_text">{{ item.bdcqzh }}</div>
      </div>
      <div class="szxx_body card_padding">
        <div class="text color_iray">
17
          <span>{{ item.qllx }}</span>
田浩浩 committed
18 19 20 21 22
        </div>
        <div class="text color_red">
          <span>{{ item.qlr }}</span>
        </div>
        <div class="text color_iray">
23
          <span>{{ item.gyqk }}</span>
田浩浩 committed
24 25 26 27 28
        </div>
        <div class="text color_red">
          <span>{{ item.bdcdyh }}</span>
        </div>
        <div class="text color_iray">
29
          <span>{{ item.zl }}</span>
田浩浩 committed
30 31
        </div>
        <div class="text color_red">
32
          <span>{{ item.yt }}</span>
田浩浩 committed
33 34
        </div>
        <div class="text color_iray">
35 36 37
          <span>{{ item.mj }}</span>
        </div>
        <div class="text color_red">
田浩浩 committed
38 39
          <span>{{ item.syqx }}</span>
        </div>
40 41
        <div class="text color_iray">
          <span>印刷序列号:{{ item.ysxlh }}</span>
田浩浩 committed
42 43
        </div>
      </div>
44
      <div class="card_padding" v-if="ableOperation">
田浩浩 committed
45 46
        <div class="top_line middle_margin"></div>
        <div class="text" v-if="item.ysxlh">
47 48 49
          <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
50 51
        </div>
        <div class="text" v-else>
52
          <el-button class="operation_button" type="text" @click="openZsylDialog(item, 2)">证书打印1({{ item.szcs
53 54
          }}</el-button>
          <el-button class="operation_button" type="text" @click="openRecordPop(item)">缮证记录</el-button>
田浩浩 committed
55 56 57
        </div>
      </div>
    </el-card>
58
    <el-dialog title="证书作废" :visible.sync="invalidDiglog" width="30%" :modal-append-to-body="false" top="30vh">
田浩浩 committed
59 60 61 62 63 64
      <div class="invalid-diglog">
        <div class="invalid-title">
          <i class="el-icon-question invalid-icon"></i>
          <div class="invalid-body">您确定作废证书并再次打印?</div>
        </div>
        <div class="invalid-reson">作废原因:</div>
65
        <el-input v-model="zfyy" placeholder="请输入作废原因" type="textarea" :rows="4"></el-input>
renchao@pashanhoo.com committed
66 67 68
        <div class="text-center pt-10">
          <el-button @click="closeInvalidDiglog">取 消</el-button>
          <el-button type="primary" @click="confirmInvalid">确 定</el-button>
田浩浩 committed
69 70 71 72 73
        </div>
      </div>
    </el-dialog>
    <el-empty description="暂无数据" v-if="tableData.length == 0"></el-empty>
  </div>
蔡俊立 committed
74 75
</template>
<script>
renchao@pashanhoo.com committed
76
  import { mapGetters } from 'vuex'
77
  import store from '@/store/index.js'
renchao@pashanhoo.com committed
78
  import { getSlsqBdcqzList, invalidCertificate } from "@/api/bdcqz.js";
xiaomiao committed
79 80 81 82
  export default {
    props: {},
    data () {
      return {
83 84
        //表单是否可操作
        ableOperation: true,
xiaomiao committed
85 86 87 88 89 90 91 92 93 94
        dialog: false,
        tableData: [],
        bdcqzlx: 1,
        bdcqz: {},
        zfyy: "",
        invalidDiglog: false,
        bsmSz: "",
        bsmBdcqz: ""
      };
    },
renchao@pashanhoo.com committed
95
    computed: {
96
      ...mapGetters(['workFresh'])
renchao@pashanhoo.com committed
97 98
    },
    watch: {
99
      workFresh: {
renchao@pashanhoo.com committed
100 101 102 103 104
        handler (newVal, oldVal) {
          if (newVal) this.list()
        }
      }
    },
xiaomiao committed
105
    created () {
106 107
      this.list()
      this.ableOperation = this.$parent.currentSelectTab.ableOperation
田浩浩 committed
108
    },
xiaomiao committed
109 110
    methods: {
      //初始化列表
yuanbo committed
111 112 113 114
      /**
       * @description: 初始化列表
       * @author: renchao
       */
xiaomiao committed
115 116 117 118 119 120 121 122
      list () {
        var bsmSlsq = this.$route.query.bsmSlsq;
        getSlsqBdcqzList({ bsmSlsq: bsmSlsq }).then((res) => {
          if (res.code === 200) {
            this.tableData = res.result;
            if (res.result) {
              this.bdcqz = res.result[0];
            }
123
          }
田浩浩 committed
124
        });
xiaomiao committed
125 126
      },
      //打开证书预览弹窗
yuanbo committed
127 128 129 130 131 132
      /**
       * @description: 打开证书预览弹窗
       * @param {*} item
       * @param {*} type
       * @author: renchao
       */
xiaomiao committed
133
      openZsylDialog (item, type) {
134
        store.dispatch('user/reWorkFresh', false)
xiaomiao committed
135 136
        if (type == 1) {
          //证书预览
137
          this.$popupDialog("证书预览", "workflow/components/dialog/zsyl", { bdcqz: item, bsmSlsq: this.$route.query.bsmSlsq }, "70%", true);
田浩浩 committed
138
        } else {
139
          this.$popupDialog("不动产权证书", "workflow/components/dialog/zsdy", { bdcqz: item, bsmSlsq: this.$route.query.bsmSlsq }, "70%", true);
田浩浩 committed
140
        }
xiaomiao committed
141 142
      },
      //再次打印
yuanbo committed
143 144 145 146 147
      /**
       * @description: 再次打印
       * @param {*} item
       * @author: renchao
       */
xiaomiao committed
148 149 150 151 152
      openInvalidDiglog (item) {
        this.bsmSz = item.bsmSz;
        this.invalidDiglog = true;
        this.bsmBdcqz = item.bsmBdcqz
      },
yuanbo committed
153 154 155 156
      /**
       * @description: closeInvalidDiglog
       * @author: renchao
       */
xiaomiao committed
157 158 159 160 161 162
      closeInvalidDiglog () {
        this.invalidDiglog = false;
        this.bsmSz = "";
        this.zfyy = "";
      },
      //作废缮证信息
yuanbo committed
163 164 165 166
      /**
       * @description: 作废缮证信息
       * @author: renchao
       */
xiaomiao committed
167
      confirmInvalid () {
赵千 committed
168
        invalidCertificate({ bsmBdcqz: this.bsmBdcqz, zfyy: this.zfyy }).then((res) => {
xiaomiao committed
169 170 171 172
          if (res.code === 200) {
            this.list();
            this.$message.success("作废成功");
            this.invalidDiglog = false;
renchao@pashanhoo.com committed
173
            this.zfyy = ''
xiaomiao committed
174 175 176 177 178 179
            this.openZsylDialog(this.bdcqz);
          } else {
            this.$message.error(res.message);
          }
        });
      },
yuanbo committed
180 181 182 183 184
      /**
       * @description: openRecordPop
       * @param {*} item
       * @author: renchao
       */
xiaomiao committed
185
      openRecordPop (item) {
renchao@pashanhoo.com committed
186
        this.$popupDialog("缮证记录", "workflow/components/dialog/szRecord", { bsmBdcqz: item.bsmBdcqz }, '60%', true)
xiaomiao committed
187
      }
田浩浩 committed
188
    },
xiaomiao committed
189
  };
蔡俊立 committed
190 191
</script>
<style scoped lang='scss'>
xiaomiao committed
192 193 194 195 196 197 198
  @import "~@/styles/public.scss";
  .szxx {
    box-sizing: border-box;
    padding-right: 15px;
    width: 100%;
    height: 600px;
    overflow-y: scroll;
任超 committed
199

xiaomiao committed
200 201 202 203 204
    .box-card {
      float: left;
      width: 300px;
      margin-top: 10px;
      margin-right: 10px;
任超 committed
205

xiaomiao committed
206 207 208
      .szxx_body {
        height: 240px;
      }
田浩浩 committed
209 210
    }
  }
蔡俊立 committed
211

xiaomiao committed
212 213 214 215
  .szxx_header {
    color: #ffffff;
    font-weight: bolder;
    font-size: 16px;
任超 committed
216

xiaomiao committed
217 218 219 220 221 222 223 224 225 226 227
    .header_type {
      display: flex;
      justify-content: center;
      align-content: center;
    }

    .header_text {
      text-align: center;
      margin-top: 10px;
      line-height: 30px;
    }
田浩浩 committed
228
  }
任超 committed
229

xiaomiao committed
230 231
  .top_line {
    border-top: 2px solid rgb(222, 222, 222);
田浩浩 committed
232
  }
任超 committed
233

xiaomiao committed
234 235 236 237
  .text {
    margin-bottom: 10px;
    text-align: center;
  }
任超 committed
238

xiaomiao committed
239 240 241
  .color_iray {
    color: rgb(153, 153, 153);
  }
任超 committed
242

xiaomiao committed
243 244 245
  .color_red {
    color: rgb(255, 89, 24);
  }
任超 committed
246

xiaomiao committed
247 248 249
  .middle_margin {
    margin-bottom: 10px;
  }
任超 committed
250

xiaomiao committed
251 252 253 254 255
  .operation_button {
    border: 1px solid rgb(0, 121, 254);
    padding: 5px;
    text-align: center;
  }
任超 committed
256

xiaomiao committed
257 258 259
  .card_padding {
    padding-top: 8px;
  }
任超 committed
260

xiaomiao committed
261 262 263 264 265
  .invalid-diglog {
    padding-bottom: 20px;
    font-size: 16px;
    font-weight: bold;
    color: rgb(99, 99, 99);
任超 committed
266

xiaomiao committed
267 268 269
    .invalid-title {
      display: flex;
      align-content: center;
任超 committed
270

xiaomiao committed
271 272 273 274 275
      .invalid-icon {
        color: rgb(254, 148, 0);
        font-size: 34px;
        margin-right: 10px;
      }
任超 committed
276

xiaomiao committed
277 278 279 280
      .invalid-body {
        line-height: 40px;
        margin-bottom: 10px;
      }
田浩浩 committed
281
    }
任超 committed
282

xiaomiao committed
283
    .invalid-reson {
任超 committed
284
      margin-bottom: 10px;
田浩浩 committed
285 286
    }

xiaomiao committed
287 288 289 290 291
    .dialog-footer {
      margin-top: 10px;
      display: flex;
      justify-content: flex-end;
    }
田浩浩 committed
292
  }
任超 committed
293

xiaomiao committed
294 295
  /deep/.el-card__header {
    background-color: rgb(198, 67, 83);
田浩浩 committed
296
  }
蔡俊立 committed
297

xiaomiao committed
298 299 300 301
  /deep/.el-card__body {
    padding: 0px;
  }
</style>