Blame view

src/views/workflow/components/szxx.vue 7.24 KB
蔡俊立 committed
1
<template>
任超 committed
2 3 4
   <div class="szxx">
      <el-card class="box-card" v-for="(item,index) in tableData" :key="index">
         <div slot="header" class="szxx_header">
蔡俊立 committed
5 6
            <span class="header_type">{{item.bdcqzlx == 1 ? '不动产权证书' : '不动产登记证明'}}</span>
            <div class="header_text">{{item.bdcqzh}}</div>
任超 committed
7 8 9
         </div>
         <div class="szxx_body card_padding">
            <div class="text color_iray">
蔡俊立 committed
10
               <span>{{item.qllxmc}}</span>
任超 committed
11
            </div>
蔡俊立 committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
            <div class="text color_red">
               <span>{{item.qlr}}</span>
            </div>
            <div class="text color_iray">
               <span>{{item.gyfs == 1 ? '单独所有' : item.gyfs == 2 ? '共同共有' : '按份所有'}}</span>
            </div>
            <div class="text color_red">
               <span>{{item.bdcdyh}}</span>
            </div>
            <div class="text color_iray">
               <span>{{item.yt}}</span>
            </div>
            <div class="text color_red">
               <span>{{item.mj}}</span>
            </div>
            <div class="text color_iray">
               <span>{{item.syqx}}</span>
            </div>
            <div v-if="item.ysxlh">
任超 committed
31
               <div class="top_line middle_margin"></div>
蔡俊立 committed
32 33 34 35
               <div class="text color_iray">
                  <span>印刷序列号:{{item.ysxlh}}</span>
               </div>
            </div>
任超 committed
36 37
         </div>
         <div class="card_padding">
蔡俊立 committed
38
            <div class="top_line middle_margin"></div>
蔡俊立 committed
39
            <div class="text" v-if="item.bsmSz">
蔡俊立 committed
40
               <el-button class="operation_button" type="text" @click="openZsylDialog(item,1)">证书预览</el-button>
蔡俊立 committed
41
               <el-button class="operation_button" type="text" @click="openInvalidDiglog(item)">再次打印({{item.szcs}})</el-button>
蔡俊立 committed
42 43
            </div>
            <div class="text" v-else>
蔡俊立 committed
44
               <el-button class="operation_button" type="text" @click="openZsylDialog(item,2)">证书打印({{item.szcs}}</el-button>
蔡俊立 committed
45
            </div>
蔡俊立 committed
46
         </div>
任超 committed
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
      </el-card>
      <el-dialog title="证书打印" :visible.sync="invalidDiglog" width="30%" :modal-append-to-body='false' top='30vh'>
         <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>
            <el-input v-model="zfyy" placeholder="请输入作废原因" type="textarea" :rows="4"></el-input>
            <div class="dialog-footer">
               <el-button @click="closeInvalidDiglog()">取 消</el-button>
               <el-button type="primary" @click="confirmInvalid()">确 定</el-button>
            </div>
         </div>
      </el-dialog>
任超 committed
62
      <el-empty description="暂无数据" v-if="tableData.length==0"></el-empty>
任超 committed
63
   </div>
蔡俊立 committed
64 65
</template>
<script>
任超 committed
66
import { getBdcqzList, invalidCertificate } from "@/api/fqsq.js";
蔡俊立 committed
67 68

export default {
蔡俊立 committed
69
   components: { },
任超 committed
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
   props: {
   },
   data () {
      return {
         tableData: [],
         bdcqzlx: 1,
         bdcqz: {},
         zfyy: '',
         invalidDiglog: false,
         bsmSz: '',
      };
   },
   created () {
      this.list();
   },
   methods: {
      //初始化列表
      list () {
         var bsmSldy = this.$parent.unitData[0].bsmSldy
         getBdcqzList({ bsmSldy: bsmSldy }).then(res => {
蔡俊立 committed
90
            if (res.code === 200) {
蔡俊立 committed
91
               this.tableData = res.result
任超 committed
92 93
               if (res.result) {
                  this.bdcqz = res.result[0]
蔡俊立 committed
94
               }
蔡俊立 committed
95 96 97
            }
         })
      },
蔡俊立 committed
98
      //打开证书预览弹窗
任超 committed
99
      openZsylDialog (item, type) {
蔡俊立 committed
100
         let that = this;
蔡俊立 committed
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
         if(type == 1){
            //证书预览
            this.$popup({
               title: "证书预览",
               editItem: "workflow/components/zsyl",
               height: '650px',
               width: "800px",
               formData: {
                  bdcqz: item
               },
               btnShow: false,
               cancel: () => {
                  console.log("取消回调");
               },
               confirm: () => {
                  console.log("取消回调");
               },
            })
         }else{
            //证书打印
            this.$popup({
               title: "证书打印",
               editItem: "workflow/components/zsdy",
               height: '700px',
               width: "800px",
               formData: {
                  bsmSlsq: this.bsmSlsq,
                  bdcqz: item
               },
               btnShow: true,
               confirmText: '打印证书',
               cancel: () => {
                  console.log("取消回调");
               },
               confirm: () => {
                  that.list();
               },
            })
         }
蔡俊立 committed
140 141
      },
      //再次打印
任超 committed
142
      openInvalidDiglog (item) {
蔡俊立 committed
143 144
         this.bsmSz = item.bsmSz;
         this.invalidDiglog = true
任超 committed
145 146
      },
      closeInvalidDiglog () {
蔡俊立 committed
147 148 149
         this.invalidDiglog = false
         this.bsmSz = '';
         this.zfyy = '';
任超 committed
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
      },
      //作废缮证信息
      confirmInvalid () {
         invalidCertificate({ "bsmSz": this.bsmSz, "zfyy": this.zfyy }).then(res => {
            if (res.code === 200) {
               this.list();
               this.$message.success('作废成功');
               this.invalidDiglog = false;
               this.openZsylDialog(this.bdcqz);
            } else {
               this.$message.error(res.message);
            }
         })
      }
   }
蔡俊立 committed
165 166 167 168
};
</script>
<style scoped lang='scss'>
@import "~@/styles/public.scss";
任超 committed
169

蔡俊立 committed
170
.szxx {
任超 committed
171 172 173 174 175 176 177 178
   box-sizing: border-box;
   padding-right: 15px;
   width: 100%;
   height: 600px;
   overflow-y: scroll;

   .box-card {
      float: left;
任超 committed
179 180 181
      width: 300px;
      margin-top: 10px;
      margin-right: 10px;
任超 committed
182 183 184 185 186

      .szxx_body {
         height: 240px;
      }
   }
蔡俊立 committed
187 188 189
}

.szxx_header {
任超 committed
190
   color: #ffffff;
任超 committed
191
   font-weight: bolder;
任超 committed
192
   font-size: 16px;
任超 committed
193 194

   .header_type {
蔡俊立 committed
195 196 197 198
      display: flex;
      justify-content: center;
      align-content: center;
   }
任超 committed
199 200

   .header_text {
蔡俊立 committed
201
      text-align: center;
任超 committed
202
      margin-top: 10px;
蔡俊立 committed
203 204 205
      line-height: 30px;
   }
}
任超 committed
206

蔡俊立 committed
207
.top_line {
任超 committed
208
   border-top: 2px solid rgb(222, 222, 222);
蔡俊立 committed
209
}
任超 committed
210

蔡俊立 committed
211 212 213 214
.text {
   margin-bottom: 10px;
   text-align: center;
}
任超 committed
215

蔡俊立 committed
216
.color_iray {
任超 committed
217
   color: rgb(153, 153, 153);
蔡俊立 committed
218
}
任超 committed
219

蔡俊立 committed
220
.color_red {
任超 committed
221
   color: rgb(255, 89, 24);
蔡俊立 committed
222
}
任超 committed
223

蔡俊立 committed
224 225 226
.middle_margin {
   margin-bottom: 10px;
}
任超 committed
227

蔡俊立 committed
228
.operation_button {
蔡俊立 committed
229
   border: 1px solid rgb(0, 121, 254);
任超 committed
230
   padding: 5px;
蔡俊立 committed
231 232
   text-align: center;
}
任超 committed
233

蔡俊立 committed
234
.card_padding {
任超 committed
235
   padding-top: 8px
蔡俊立 committed
236
}
任超 committed
237

蔡俊立 committed
238 239 240 241 242
.invalid-diglog {
   padding-bottom: 20px;
   font-size: 16px;
   font-weight: bold;
   color: rgb(99, 99, 99);
任超 committed
243

蔡俊立 committed
244 245 246
   .invalid-title {
      display: flex;
      align-content: center;
任超 committed
247 248 249

      .invalid-icon {
         color: rgb(254, 148, 0);
蔡俊立 committed
250 251 252
         font-size: 34px;
         margin-right: 10px;
      }
任超 committed
253 254

      .invalid-body {
蔡俊立 committed
255 256 257 258
         line-height: 40px;
         margin-bottom: 10px;
      }
   }
任超 committed
259

蔡俊立 committed
260
   .invalid-reson {
任超 committed
261
      margin-bottom: 10px;
蔡俊立 committed
262
   }
任超 committed
263 264

   .dialog-footer {
蔡俊立 committed
265 266
      margin-top: 10px;
      display: flex;
任超 committed
267
      justify-content: flex-end;
蔡俊立 committed
268 269
   }
}
蔡俊立 committed
270

任超 committed
271 272
/deep/.el-card__header {
   background-color: rgb(198, 67, 83);
蔡俊立 committed
273
}
任超 committed
274 275

/deep/.el-card__body {
蔡俊立 committed
276 277 278
   padding: 0px
}
</style>