Blame view

src/views/zhcx/djbcx/components/zdxx.vue 5.88 KB
吴蕾 committed
1 2 3 4 5 6 7 8 9 10 11 12 13
<template>
  <div class="zdxx">
    <div class="tablebox">
      <table cellpadding="0" cellspacing="0" class="zdxxTable">
        <col width="80" />
        <col width="60" />
        <col width="90" />
        <col width="235" />
        <col width="150" />
        <tr>
          <td colspan="6" class="title">宗地基本信息</td>
        </tr>
        <tr>
吴蕾 committed
14 15 16 17 18 19
          <td colspan="6" class="unit" v-if="djzd.mjdw == '1'">
            单位:■平方米 □公顷(□亩)、万元
          </td>
          <td colspan="6" class="unit" v-else>
            单位:□平方米 ■公顷(■亩)、万元
          </td>
吴蕾 committed
20 21 22 23 24 25 26
        </tr>
        <tr>
          <td colspan="2">不动产类型</td>
          <td colspan="4">■土地 ■房屋建筑 □构筑物 □森林、林地 □其他</td>
        </tr>
        <tr>
          <td colspan="2">坐落</td>
吴蕾 committed
27
          <td colspan="4">{{ djzd.zl }}</td>
吴蕾 committed
28 29 30 31 32 33
        </tr>
        <tr>
          <td rowspan="8" class="title2">土地状况</td>
        </tr>
        <tr>
          <td colspan="2">宗地面积</td>
吴蕾 committed
34
          <td>{{ djzd.zdmj }}</td>
吴蕾 committed
35
          <td>用途</td>
吴蕾 committed
36
          <td>{{ djzd.yt }}</td>
吴蕾 committed
37 38 39
        </tr>
        <tr>
          <td colspan="2">等级</td>
吴蕾 committed
40
          <td>{{ djzd.dj }}</td>
吴蕾 committed
41
          <td>价格</td>
吴蕾 committed
42
          <td>{{ djzd.jg }}</td>
吴蕾 committed
43 44 45
        </tr>
        <tr>
          <td colspan="2">权利类型</td>
吴蕾 committed
46
          <td>{{ djzd.qllx }}</td>
吴蕾 committed
47
          <td>权利性质</td>
吴蕾 committed
48
          <td>{{ djzd.qlxz }}</td>
吴蕾 committed
49 50 51
        </tr>
        <tr>
          <td colspan="2">权利设定方式</td>
吴蕾 committed
52
          <td>{{ djzd.qlsdfs }}</td>
吴蕾 committed
53
          <td>容积率</td>
吴蕾 committed
54
          <td>{{ djzd.rjl }}</td>
吴蕾 committed
55 56 57
        </tr>
        <tr>
          <td colspan="2">建筑密度</td>
吴蕾 committed
58
          <td>{{ djzd.jzmd }}</td>
吴蕾 committed
59
          <td>建筑限高</td>
吴蕾 committed
60
          <td>{{ djzd.jzxg }}</td>
吴蕾 committed
61 62 63
        </tr>
        <tr>
          <td colspan="2">图幅号</td>
吴蕾 committed
64
          <td>{{ djzd.tfh }}</td>
吴蕾 committed
65
          <td>地籍号</td>
吴蕾 committed
66
          <td>{{ djzd.djh }}</td>
吴蕾 committed
67 68 69
        </tr>
        <tr>
          <td colspan="2">档案号</td>
吴蕾 committed
70
          <td>{{ djzd.dah }}</td>
吴蕾 committed
71
          <td>地块代码</td>
吴蕾 committed
72
          <td>{{ djzd.dkdm }}</td>
吴蕾 committed
73 74 75
        </tr>
        <tr>
          <td colspan="2">宗地四至-东</td>
吴蕾 committed
76
          <td colspan="4">{{ djzd.zdszd }}</td>
吴蕾 committed
77 78 79
        </tr>
        <tr>
          <td colspan="2">宗地四至-南</td>
吴蕾 committed
80
          <td colspan="4">{{ djzd.zdszn }}</td>
吴蕾 committed
81 82 83
        </tr>
        <tr>
          <td colspan="2">宗地四至-西</td>
吴蕾 committed
84
          <td colspan="4">{{ djzd.zdszx }}</td>
吴蕾 committed
85 86 87
        </tr>
        <tr>
          <td colspan="2">宗地四至-北</td>
吴蕾 committed
88
          <td colspan="4">{{ djzd.zdszb }}</td>
吴蕾 committed
89 90 91
        </tr>
        <tr>
          <td class="title2" height="96">备注</td>
吴蕾 committed
92
          <td colspan="5">{{ djzd.bz }}</td>
吴蕾 committed
93 94 95
        </tr>
        <tr>
          <td class="title2" height="96">附记</td>
吴蕾 committed
96
          <td colspan="5">{{ djzd.fj }}</td>
吴蕾 committed
97 98 99
        </tr>
        <tr>
          <td colspan="2">状态</td>
吴蕾 committed
100
          <td colspan="2">{{ djzd.zt }}</td>
吴蕾 committed
101
          <td>区县代码</td>
吴蕾 committed
102
          <td>{{ djzd.qxdm }}</td>
吴蕾 committed
103 104 105 106 107 108
        </tr>
        <tr>
          <td class="title2">变化情况</td>
          <td colspan="5" class="bhqk">
            <div class="box">
              <table cellspacing="0" cellpadding="0" :width="bhqkTableWidth">
吴蕾 committed
109 110 111 112 113
                <tr v-for="(item, index) in bhqkColumns" :key="index">
                  <td class="bhqkTh">{{ item.label }}</td>
                  <td v-for="(item2, index2) in zdbhqks" :key="index2">
                    {{ item2[item.prop] }}
                  </td>
吴蕾 committed
114 115 116 117 118 119 120 121 122 123 124
                </tr>
              </table>
            </div>
          </td>
        </tr>
      </table>
    </div>
  </div>
</template>

<script>
吴蕾 committed
125 126
import { mapGetters } from "vuex";

吴蕾 committed
127 128 129 130 131 132
export default {
  name: "zdxx",
  data() {
    return {
      bhqkColumns: [
        {
吴蕾 committed
133 134
          prop: "ssywh",
          label: "上手业务号",
吴蕾 committed
135 136
        },
        {
吴蕾 committed
137 138
          prop: "zddm",
          label: "宗地代码",
吴蕾 committed
139 140
        },
        {
吴蕾 committed
141 142
          prop: "bhqzddm",
          label: "变化前宗地代码",
吴蕾 committed
143 144
        },
        {
吴蕾 committed
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
          prop: "bhnr",
          label: "变化内容",
        },
        {
          prop: "bhyy",
          label: "变化原因",
        },
        {
          prop: "djsj",
          label: "登记时间",
        },
        {
          prop: "dbr",
          label: "登簿人",
        },
        {
          prop: "fj",
          label: "附记",
吴蕾 committed
163 164
        },
      ],
吴蕾 committed
165 166 167
      bhqkTableWidth: 745,
      djzd: {},
      zdbhqks: [],
吴蕾 committed
168 169
    };
  },
吴蕾 committed
170 171 172
  computed: {
    ...mapGetters(["djbxx"]),
  },
吴蕾 committed
173
  mounted() {
吴蕾 committed
174 175 176 177 178 179 180
    this.info = this.djbxx.zdjbxx;
    this.djzd = this.djbxx.zdjbxx.djzd;
    this.zdbhqks = this.djbxx.zdjbxx.zdbhqks;


    let widths = (this.zdbhqks.length + 1) * 180 + 110;
    this.bhqkTableWidth = widths > 745 ? widths : 745;
吴蕾 committed
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
  },
};
</script>

<style lang="scss" scoped>
.zdxx {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  padding: 10px 25px;
  .tablebox {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid rgb(228, 228, 228);
    text-align: center;
    padding: 4px;
    overflow-y: scroll;
    .zdxxTable {
      width: 100%;
      color: #333;
      td {
        border: 1px solid rgb(228, 228, 228);
        line-height: 30px;
        padding: 0 4px;
      }
      .title {
        line-height: 68px;
        font-size: 20px;
      }
      .unit {
        text-align: right;
      }
      .title2 {
        writing-mode: vertical-lr;
        letter-spacing: 6px;
      }
      .bhqk {
        padding: 0;
        .box {
吴蕾 committed
221 222
          width: 745px;
          overflow: auto;
吴蕾 committed
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242
        }
        .test {
        }
        table {
          .bhqkTh {
            width: 110px;
            line-height: 40px;
            background-color: #f5f5f5;
            border: 1px solid rgb(228, 228, 228);
            font-weight: bold;
          }
          td {
            width: 180px;
          }
        }
      }
    }
  }
}
</style>