pyt
2025-03-20 c594eef54b6a7ae813ac3aede5ff6207d60b92e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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
92
93
94
95
96
97
98
99
100
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
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
177
178
179
180
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
<template>
    <div class="app-container">
      <!-- 搜索区域 -->
      <div class="filter-container">
        <el-form :inline="true" :model="queryParams" class="demo-form-inline">
          <el-form-item label="镇街">
            <el-input v-model="queryParams.town" size="small" placeholder="请输入" clearable></el-input>
          </el-form-item>
          <el-form-item label="所在村(社区)">
            <el-input v-model="queryParams.village" size="small" placeholder="请输入" clearable></el-input>
          </el-form-item>
          <el-form-item label="项目名称">
            <el-input v-model="queryParams.projectName" size="small" placeholder="请输入" clearable></el-input>
          </el-form-item>
          <el-form-item label="户主姓名">
            <el-input v-model="queryParams.householderName" size="small" placeholder="请输入" clearable></el-input>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" size="small" @click="handleQuery">查询</el-button>
            <el-button type="primary" plain size="small" @click="handleReset">重置</el-button>
          </el-form-item>
        </el-form>
      </div>
  
      <!-- Tab切换区域 -->
      <div class="tab-container">
        <el-tabs v-model="activeTab" type="card" @tab-click="handleTabClick">
          <el-tab-pane label="资金表" name="fullReport"></el-tab-pane>
          <el-tab-pane label="购房信息表" name="houseInfo"></el-tab-pane>
        </el-tabs>
      </div>
  
      <!-- 统计卡片区域 -->
      <div class="statistics-container">
        <el-row :gutter="20">
          <el-col :span="6">
            <el-card class="statistics-card" shadow="hover">
              <div class="card-amount">2,183万元</div>
              <div class="card-title">补偿资金总金额</div>
            </el-card>
          </el-col>
          <el-col :span="6">
            <el-card class="statistics-card" shadow="hover">
              <div class="card-amount">2,183万元</div>
              <div class="card-title">首付款总金额</div>
            </el-card>
          </el-col>
          <el-col :span="6">
            <el-card class="statistics-card" shadow="hover">
              <div class="card-amount">2,183万元</div>
              <div class="card-title">过渡补贴总金额</div>
            </el-card>
          </el-col>
          <el-col :span="6">
            <el-card class="statistics-card" shadow="hover">
              <div class="card-amount">2,183万元</div>
              <div class="card-title">季度款总金额</div>
            </el-card>
          </el-col>
        </el-row>
      </div>
  
      <!-- 功能按钮区域 -->
      <div class="button-container">
        <el-button type="primary" size="small" @click="handleExport">新增安置户记录</el-button>
        <el-button type="success" size="small" @click="handleDownloadTemplate">下载导入模板</el-button>
        <el-button type="primary" size="small" @click="handleImport">批量导入</el-button>
        <el-button type="danger" size="small" @click="handleExportSelected">问题数据导出</el-button>
      </div>
  
      <div v-if="activeTab === 'fullReport'">
      <!-- 表格区域 -->
      <el-table
        v-loading="loading"
        :data="tableData"
        border
        style="width: 100%"
        @selection-change="handleSelectionChange"
      >
        <el-table-column type="index" label="序号" width="50" align="center" />
        <el-table-column prop="town" label="镇(街道)" min-width="120" align="center" />
        <el-table-column prop="projectName" label="拆迁项目名称" min-width="180" align="center" />
        <el-table-column prop="village" label="所在村(社区)" min-width="120" align="center" />
        <el-table-column prop="householderName" label="户主姓名" min-width="100" align="center" />
        <el-table-column prop="idCard" label="身份证号" min-width="180" align="center" />
        <el-table-column prop="familySize" label="应安置人数(人)" min-width="140" align="center" />
        <el-table-column label="所有家庭人员应安置面积(㎡)" min-width="160" align="center"/>
        <el-table-column label="补偿单位标准(万元)" min-width="160" align="center">
          <el-table-column prop="compensationAmount" label="新建商品住房、商业用房、停车位" min-width="160" align="center" />
          <el-table-column prop="buildingArea" label="二手住房" min-width="150" align="center" />
        </el-table-column>
        <el-table-column prop="compensationAmount" label="补偿资金总额(万元)" min-width="160" align="center" />
        <el-table-column prop="buildingArea" label="25%首付款(㎡)" min-width="150" align="center" />
        <el-table-column prop="temporaryAmount" label="每季度需支付款项(万元)" min-width="180" align="center" />
        <el-table-column prop="temporaryAmount" label="过渡补贴(万元)" min-width="180" align="center" />
        <el-table-column label="操作" fixed="right" width="180" align="center">
          <template slot-scope="scope">
            <el-button type="text" size="small" @click="handleView(scope.row)">详情</el-button>
            <el-button type="text" size="small" @click="handleEdit(scope.row)">编辑</el-button>
            <el-button type="text" size="small" @click="handleDelete(scope.row)">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
  
      <!-- 分页区域 -->
      <pagination
        v-show="total > 0"
        :total="total"
        :page.sync="queryParams.pageNum"
        :limit.sync="queryParams.pageSize"
        @pagination="getList"
      />
    </div>
    <div v-if="activeTab === 'houseInfo'">
      <!-- 购房信息表格 -->
      <el-table
        v-loading="loading"
        :data="houseTableData"
        border
        style="width: 100%"
      >
        <el-table-column type="index" label="序号" width="50" align="center" />
        <el-table-column prop="batchNo" label="镇(街道)" min-width="100" align="center" />
        <el-table-column prop="batchNo" label="拆迁项目名称" min-width="100" align="center" />
        <el-table-column prop="batchNo" label="所在村(社区)" min-width="100" align="center" />
        <el-table-column prop="batchNo" label="拆迁时间" min-width="100" align="center" />
        <el-table-column prop="householderName" label="户主姓名" min-width="100" align="center" />
        <el-table-column prop="idCard" label="身份证号" min-width="180" align="center" />
        <el-table-column prop="householderName" label="联系电话" min-width="100" align="center" />
        <el-table-column prop="householderName" label="本次安置人数(人)" min-width="100" align="center" >
          <el-table-column prop="householderName" label="集体经济组织成员" min-width="100" align="center" />
          <el-table-column prop="householderName" label="非集体经济组织成员" min-width="100" align="center" />
          <el-table-column prop="householderName" label="合计" min-width="100" align="center" />
        </el-table-column>
        <el-table-column prop="householderName" label="待安置家庭成员姓名" min-width="100" align="center" />
        <el-table-column prop="householderName" label="待安置人员应安置面积合计(㎡)" min-width="100" align="center" />
        <el-table-column prop="householderName" label="补偿金额(万元)" min-width="100" align="center" >
          <el-table-column prop="householderName" label="新建商品住房、商业用房、停车位" min-width="100" align="center" />
          <el-table-column prop="householderName" label="二手住房" min-width="100" align="center" />
          <el-table-column prop="householderName" label="合计" min-width="100" align="center" />
        </el-table-column>
        <el-table-column prop="householderName" label="25%首付款(万元)" min-width="100" align="center" />
        <el-table-column prop="householderName" label="每季度需支付款项(万元)" min-width="100" align="center" />
        <el-table-column prop="householderName" label="过渡补贴(万元)" min-width="100" align="center" />
        <el-table-column prop="householderName" label="备注" min-width="100" align="center" />
        <el-table-column prop="householderName" label="凭证发放时间" min-width="100" align="center" />
        <el-table-column prop="householderName" label="购房时间" min-width="100" align="center" />
        <el-table-column prop="householderName" label="成交金额(万元)" min-width="100" align="center" />
        <el-table-column prop="householderName" label="新建商品住房" min-width="100" align="center" >
          <el-table-column prop="householderName" label="楼盘名称" min-width="100" align="center" />
          <el-table-column prop="householderName" label="面积(㎡)" min-width="100" align="center" />
          <el-table-column prop="householderName" label="套数(套)" min-width="100" align="center" />
        </el-table-column>
        <el-table-column prop="householderName" label="二手住房" min-width="100" align="center" >
          <el-table-column prop="householderName" label="小区名称" min-width="100" align="center" />
          <el-table-column prop="householderName" label="面积(㎡)" min-width="100" align="center" />
          <el-table-column prop="householderName" label="套数(套)" min-width="100" align="center" />
        </el-table-column>
        <el-table-column prop="householderName" label="新建商业用房" min-width="100" align="center" >
          <el-table-column prop="householderName" label="楼盘名称" min-width="100" align="center" />
          <el-table-column prop="householderName" label="面积(㎡)" min-width="100" align="center" />
          <el-table-column prop="householderName" label="套数(套)" min-width="100" align="center" />
        </el-table-column>
        <el-table-column prop="householderName" label="新建停车位" min-width="100" align="center" >
          <el-table-column prop="householderName" label="楼盘名称" min-width="100" align="center" />
          <el-table-column prop="householderName" label="金额(万元)" min-width="100" align="center" />
          <el-table-column prop="householderName" label="个数(个)" min-width="100" align="center" />
        </el-table-column>
        <el-table-column prop="householderName" label="自主购房协议签订时间" min-width="100" align="center" />
        <el-table-column prop="householderName" label="25%补偿款及过渡补贴支付时间" min-width="100" align="center" />
        <el-table-column prop="householderName" label="剩余款项支付时间" min-width="100" align="center" >
          <el-table-column prop="householderName" label="第一年" min-width="100" align="center" />
          <el-table-column prop="householderName" label="第二年" min-width="100" align="center" />
          <el-table-column prop="householderName" label="第三年" min-width="100" align="center" />
          <el-table-column prop="householderName" label="第四年" min-width="100" align="center" />
        </el-table-column>
 
        <el-table-column prop="status" label="状态" min-width="80" align="center">
          <template slot-scope="scope">
            <el-tag :type="scope.row.status === '已通过' ? 'success' : 'info'">
              {{ scope.row.status }}
            </el-tag>
          </template>
        </el-table-column>
        <el-table-column label="操作" fixed="right" width="180" align="center">
          <template slot-scope="scope">
            <el-button type="text" size="small" @click="handleView(scope.row)">详情</el-button>
            <el-button type="text" size="small" @click="handleEdit(scope.row)">编辑</el-button>
            <el-button type="text" size="small" @click="handleDelete(scope.row)">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
  
      <!-- 分页区域 -->
      <pagination
        v-show="total > 0"
        :total="total"
        :page.sync="queryParams.pageNum"
        :limit.sync="queryParams.pageSize"
        @pagination="getHouseList"
      />
    </div>
    </div>
  </template>
  
  <script>
  export default {
    name: 'PlacementPerson',
    components: {},
    data() {
      return {
        // 遮罩层
        loading: false,
        // 选中数组
        selectedRows: [],
        // 非单个禁用
        single: true,
        // 非多个禁用
        multiple: true,
        // 总条数
        total: 0,
        // 表格数据
        tableData: [
          {
            town: '长洲社区',
            projectName: '长洲水利工程征地拆迁',
            village: '和兴社区',
            householderName: '张三',
            idCard: '220102198512345678',
            familySize: 3,
            totalArea: 160,
            registeredArea: 120,
            measuredArea: 120,
            courtArea: 40,
            compensationAmount: 30,
            buildingArea: 38,
            temporaryAmount: 5
          }
        ],
        // 当前激活的tab
        activeTab: 'fullReport',
        // 查询参数
        queryParams: {
          pageNum: 1,
          pageSize: 10,
          town: undefined,
          village: undefined,
          projectName: undefined,
          householderName: undefined
        },
        // 购房信息表格数据
        houseTableData: [
          {
            householderName: '张三',
            idCard: '220102198512345678',
            familySize: 3,
            houseAddress: '长洲社区XX街道',
            houseType: '住宅',
            houseArea: 160,
            landArea: 100,
            compensationArea: 160,
            compensationAmount: 30,
            temporaryAmount: 5,
            temporaryPeriod: '12个月',
            newHouseArea: 0,
            secondHandArea: 160,
            totalArea: 160,
            status: '已通过'
          }
        ],
      }
    },
    created() {
      this.getList()
    },
    methods: {
      /** 查询列表 */
      getList() {
        this.loading = true
        // TODO: 调用接口获取数据
        setTimeout(() => {
          this.tableData = [
            {
              town: '长洲社区',
              projectName: '长洲水利工程征地拆迁',
              village: '和兴社区',
              householderName: '张三',
              idCard: '220102198512345678',
              familySize: 3,
              totalArea: 160,
              registeredArea: 120,
              measuredArea: 120,
              courtArea: 40,
              compensationAmount: 30,
              buildingArea: 38,
              temporaryAmount: 5
            }
          ]
          this.total = 4
          this.loading = false
        }, 1000)
      },
      /** 搜索按钮操作 */
      handleQuery() {
        this.queryParams.pageNum = 1
        this.getList()
      },
      /** 重置按钮操作 */
      handleReset() {
        this.queryParams = {
          pageNum: 1,
          pageSize: 10,
          town: undefined,
          village: undefined,
          projectName: undefined,
          householderName: undefined
        }
        this.getList()
      },
      /** Tab切换操作 */
      handleTabClick(tab) {
        if (tab.name === 'houseInfo') {
          this.getHouseList()
        } else {
          this.getList()
        }
      },
      /** 选择框变更 */
      handleSelectionChange(selection) {
        this.selectedRows = selection
        this.single = selection.length !== 1
        this.multiple = !selection.length
      },
      /** 新增按钮操作 */
      handleAdd() {
        // TODO: 实现新增逻辑
      },
      /** 导出操作 */
      handleExport() {
        // TODO: 实现导出逻辑
      },
      /** 下载模板 */
      handleDownloadTemplate() {
        // TODO: 实现下载模板逻辑
      },
      /** 导入操作 */
      handleImport() {
        // TODO: 实现导入逻辑
      },
      /** 导出选中记录 */
      handleExportSelected() {
        // TODO: 实现导出选中记录逻辑
      },
      /** 查看详情按钮操作 */
      handleView(row) {
        // TODO: 实现查看详情逻辑
      },
      /** 编辑按钮操作 */
      handleEdit(row) {
        // TODO: 实现编辑逻辑
      },
      /** 删除按钮操作 */
      handleDelete(row) {
        // TODO: 实现删除逻辑
      },
      /** 获取购房信息列表 */
      getHouseList() {
        this.loading = true
        // TODO: 调用接口获取购房信息数据
        setTimeout(() => {
          this.loading = false
        }, 1000)
      },
    }
  }
  </script>
  
  <style scoped>
  .app-container {
    padding: 20px;
  }
  .filter-container {
    margin-bottom: 20px;
  }
  .tab-container {
    margin-bottom: 20px;
  }
  .statistics-container {
    margin-bottom: 20px;
  }
  .statistics-card {
    text-align: center;
    color: #666;
  }
  .card-amount {
    font-size: 24px;
    color: #409EFF;
    margin-bottom: 10px;
  }
  .card-title {
    font-size: 14px;
  }
  .button-container {
    margin-bottom: 20px;
  }
  .area-value {
    cursor: pointer;
    color: #409EFF;
    text-decoration: underline;
  }
  .el-table {
    margin-bottom: 20px;
  }
  </style>