Blame view

src/views/registerBook/zdjbxx.vue 5.5 KB
1 2 3
<!--
 * @Description  :宗地基本信息
 * @Autor        : miaofang
4
 * @LastEditTime: 2023-08-04 10:06:45
5
-->
田浩浩 committed
6
<template>
7
  <div class="tableDivCss">
xiaomiao committed
8 9
     <el-button class="print" v-print="printObj">打印</el-button>
    <table cellpadding="0" cellspacing="0" id="box" class="tableCss">
10
      <tr>
1  
jiaozeping@pashanhoo.com committed
11
        <th colspan="5" class="title">宗地基本信息</th>
12 13 14
      </tr>
      <tr>
        <td>单位</td>
xiaomiao committed
15
        <td colspan="4">{{ zdjbxx.mjdw | dictionary("A7") }}</td>
16 17 18 19 20 21 22 23 24 25
      </tr>
      <tr>
        <td>不动产类型</td>
        <td colspan="4">{{ bdclxList[zdjbxx.bdclx] }}</td>
      </tr>
      <tr>
        <td>坐落</td>
        <td colspan="4">{{ zdjbxx.zl }}</td>
      </tr>
      <tr>
1  
jiaozeping@pashanhoo.com committed
26
        <td rowspan="8">土地状况</td>
27 28
      </tr>
      <tr>
xiaomiao committed
29 30 31 32
        <td style="width: 15%">宗地面积</td>
        <td style="width: 30%">{{ zdjbxx.zdmj }}</td>
        <td style="width: 15%">用途</td>
        <td style="width: 30%">{{ zdjbxx.yt | dicyt("tdyt") }}</td>
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
      </tr>
      <tr>
        <td>等级</td>
        <td>{{ zdjbxx.djmc }}</td>
        <td>价格</td>
        <td>{{ zdjbxx.jg }}</td>
      </tr>
      <tr>
        <td>权利类型</td>
        <td>{{ zdjbxx.qllxmc }}</td>
        <td>权利性质</td>
        <td>{{ zdjbxx.qlxzmc }}</td>
      </tr>
      <tr>
        <td>权利设定方式</td>
xiaomiao committed
48
        <td>{{ zdjbxx.qlsdfs | dictionary("A10") }}</td>
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
        <td>容积率</td>
        <td>{{ zdjbxx.rjl }}</td>
      </tr>
      <tr>
        <td>建筑密度</td>
        <td>{{ zdjbxx.jzmd }}</td>
        <td>建筑限高</td>
        <td>{{ zdjbxx.jzxg }}</td>
      </tr>
      <tr>
        <td>图幅号</td>
        <td>{{ zdjbxx.tfh }}</td>
        <td>地籍号</td>
        <td>{{ zdjbxx.djh }}</td>
      </tr>
      <tr>
        <td>档案号</td>
        <td>{{ zdjbxx.dah }}</td>
        <td>地块代码</td>
        <td>{{ zdjbxx.dkdm }}</td>
      </tr>
      <tr>
        <td rowspan="5">宗地四至</td>
      </tr>

      <tr>
        <td></td>
        <td colspan="3">{{ zdjbxx.zdszd }}</td>
      </tr>
      <tr>
        <td></td>
        <td colspan="3">{{ zdjbxx.zdszn }}</td>
      </tr>
      <tr>
        <td>西</td>
        <td colspan="3">{{ zdjbxx.zdszx }}</td>
      </tr>
      <tr>
        <td></td>
        <td colspan="3">{{ zdjbxx.zdszb }}</td>
      </tr>
      <tr>
        <td>附记</td>
1  
jiaozeping@pashanhoo.com committed
92
        <td colspan="4">{{ zdjbxx.fj }}</td>
93 94
      </tr>
      <tr v-if="showGroup">
1  
jiaozeping@pashanhoo.com committed
95
        <td rowspan="4">变化情况</td>
96
      </tr>
1  
jiaozeping@pashanhoo.com committed
97 98

      <tr v-if="showGroup">
99 100 101 102
        <td>变化原因</td>
        <td>变化内容</td>
        <td>登记时间</td>
        <td>登簿人</td>
1  
jiaozeping@pashanhoo.com committed
103 104 105 106 107 108 109
      </tr>
      <!-- <tr >
        <td>{{ zdbhqks[0].bhyy }}</td>
        <td>{{ zdbhqks[0].bhnr }}</td>
        <td>{{ zdbhqks[0].djsj }}</td>
        <td>{{ zdbhqks[0].dbr }}</td>
      </tr> -->
110
    </table>
田浩浩 committed
111 112 113 114
  </div>
</template>

<script>
xiaomiao committed
115 116
import store from "@/store/index.js";
import { getZdjjxxBybdcdyid } from "@/api/djbDetail.js";
田浩浩 committed
117

xiaomiao committed
118 119 120
export default {
  data() {
    return {
xiaomiao committed
121 122 123 124
          printObj: {
        id: "box",
        //其他配置项,
      },
xiaomiao committed
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 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
      bhqkColumns: [
        {
          prop: "ssywh",
          label: "上手业务号",
        },
        {
          prop: "zddm",
          label: "宗地代码",
        },
        {
          prop: "bhqzddm",
          label: "变化前宗地代码",
        },
        {
          prop: "bhnr",
          label: "变化内容",
        },
        {
          prop: "bhyy",
          label: "变化原因",
        },
        {
          prop: "djsj",
          label: "登记时间",
        },
        {
          prop: "dbr",
          label: "登簿人",
        },
        {
          prop: "fj",
          label: "附记",
        },
      ],
      bhqkTableWidth: 745,
      zdjbxx: {},
      zdbhqks: [],
      propsParam: this.$attrs,
      showGroup: false,
      bdclxList: ["", "宗地", "宗海", "自然幢", "多幢", "构筑物", "林权", "户"],
      foundItemaa: {},
      foundItemaaa: {},
    };
  },
  filters: {
    dictionary: function (value, param) {
      const foundItem = store.getters.dictData[param].find(
        (item) => item.dcode === String(value)
      );
      if (foundItem) {
        return foundItem.dname;
      }
177
    },
xiaomiao committed
178 179 180 181 182 183 184 185 186
    dicyt: function (value, param) {
      const res = store.getters.dictData[param].filter((item) => {
        if (item.dcode === String(value)) {
          return item;
        } else {
          if (item.children.length) {
            const res2 = item.children.filter((items) => {
              if (items.dcode === String(value)) {
                return items;
xiaomiao committed
187
              }
xiaomiao committed
188 189 190
            });
            if (res2.length) {
              return res2;
xiaomiao committed
191 192
            }
          }
193
        }
xiaomiao committed
194 195 196 197
      });
      if (res[0]) {
        return res[0].dname;
      }
198
    },
xiaomiao committed
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
  },
  created() {
    this.loadData();
  },
  methods: {
    /**
     * @description: loadData
     * @author: renchao
     */
    loadData() {
      getZdjjxxBybdcdyid({ bdcdyid: this.propsParam.bdcdyid }).then((res) => {
        if (res.code === 200) {
          this.zdjbxx = res.result.zdjbxx;
          this.zdbhqks = res.result.zdbhqkList;
          if (this.zdbhqks != null && this.zdbhqks.length > 0) {
            this.showGroup = true;
215
          }
xiaomiao committed
216 217 218
        }
      });
    },
xiaomiao committed
219

xiaomiao committed
220 221
  },
};
田浩浩 committed
222 223
</script>
<style lang="scss" scoped>
xiaomiao committed
224
@import "~@/styles/tablecss.scss";
xiaomiao committed
225
.tableDivCss {
xiaomiao committed
226 227
  position: relative;
  .print {
xiaomiao committed
228
    display: inline;
xiaomiao committed
229 230 231 232
    // background-color: #0079fe;
    z-index: 10;
    position: absolute;
    left: 11px;
xiaomiao committed
233
    top: 11px;
xiaomiao committed
234 235
  }
}
田浩浩 committed
236
</style>