fix
13404089107
2025-04-03 644aad632b70e827106e202814066882adbcf5e4
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
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
<template>
  <el-dialog :title="type === 'audit' ? '审批安置户申请信息' : '安置户申请信息'" @open="openDialog" :visible.sync="dialogVisible"
    width="80%" :close-on-click-modal="false" :append-to-body="true">
    <!-- Tab切换区域 -->
    <div class="tab-container">
      <el-tabs v-model="activeTab" type="card" @tab-click="handleTabClick">
        <el-tab-pane label="资金表" name="1"></el-tab-pane>
        <el-tab-pane label="购房信息表" name="2"></el-tab-pane>
      </el-tabs>
    </div>
    <div class="approval-content">
      <!-- 左侧表格区域 -->
      <div class="table-container">
        <div v-if="activeTab == '1'">
          <!-- 表格区域 -->
          <el-table v-loading="loading" :data="tableData" border style="width: 100%" max-height="300px"
            :row-class-name="tableRowClassName">
            <el-table-column type="index" label="序号" width="50" align="center" />
            <el-table-column prop="street" label="镇(街道)" min-width="120" align="center" />
            <el-table-column prop="projectName" label="拆迁项目名称" min-width="180" align="center" />
            <el-table-column prop="community" label="所在村(社区)" min-width="120" align="center" />
            <el-table-column prop="householdHead" label="户主姓名" min-width="100" align="center">
              <template slot-scope="scope">
                <span>{{ scope.row.householdHead }}
                  <el-tooltip v-if="scope.row.householdHeadWarn == 1" class="item" effect="dark" content="用户信息未通过安置申请"
                    placement="top">
                    <el-image style="width: 12px; height: 12px; margin-left: 5px"
                      :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image> </el-tooltip></span>
              </template>
            </el-table-column>
            <el-table-column prop="idCard" label="身份证号" min-width="180" align="center">
              <template slot-scope="scope">
                {{ scope.row.idCard || "-" }}
                <el-tooltip v-if="scope.row.idCardWarn == 1" class="item" effect="dark" content="身份信息不存在于待安置人员库"
                  placement="top">
                  <el-image style="width: 12px; height: 12px; margin-left: 5px"
                    :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image>
                </el-tooltip>
              </template>
            </el-table-column>
            <el-table-column prop="resettledNum" label="应安置人数(人)" min-width="140" align="center" />
            <el-table-column label="所有家庭人员应安置面积(㎡)" prop="resettledArea" min-width="160" align="center">
              <template slot-scope="scope">
                <span>{{ scope.row.resettledArea }}
                  <el-tooltip v-if="scope.row.waitFamilyAreaWarn == 1" class="item" effect="dark" content="应补偿面积数据异常"
                    placement="top">
                    <el-image style="width: 12px; height: 12px; margin-left: 5px"
                      :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image> </el-tooltip></span>
              </template>
            </el-table-column>
            <el-table-column label="补偿单位标准(万元)" min-width="160" align="center">
              <el-table-column prop="priceNewAmount" label="新建商品住房、商业用房、停车位" min-width="160" align="center">
                <template slot-scope="scope">
                  <span>{{ scope.row.priceNewAmount }}
                    <el-tooltip v-if="scope.row.priceAmountWarn == 1" class="item" effect="dark" content="补充标准数据异常"
                      placement="top">
                      <el-image style="width: 12px; height: 12px; margin-left: 5px"
                        :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image> </el-tooltip></span>
                </template>
              </el-table-column>
              <el-table-column prop="priceOldAmount" label="二手住房" min-width="150" align="center">
                <template slot-scope="scope">
                  <span>{{ scope.row.priceOldAmount }}
                    <el-tooltip v-if="scope.row.twoPriceWarn == 1" class="item" effect="dark" content="检测到多个购房情况请人工核对"
                      placement="top">
                      <el-image style="width: 12px; height: 12px; margin-left: 5px"
                        :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image> </el-tooltip></span>
                </template>
              </el-table-column>
            </el-table-column>
            <el-table-column prop="compensationAmount" label="补偿资金总额(万元)" min-width="160" align="center">
              <template slot-scope="scope">
                <span>{{ scope.row.compensationAmount }}
                  <el-tooltip v-if="scope.row.compensationSumWarn == 1" class="item" effect="dark" content="补偿总金额数据异常"
                    placement="top">
                    <el-image style="width: 12px; height: 12px; margin-left: 5px"
                      :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image> </el-tooltip></span>
              </template>
            </el-table-column>
            <el-table-column prop="downPaymentAmount" label="25%首付款(㎡)" min-width="150" align="center" />
            <el-table-column prop="quarterPayAmount" v-if="activeTab == '1'" label="每季度需支付款项(万元)" min-width="180"
              align="center">
              <template slot-scope="scope">
                <span>{{ scope.row.quarterPayAmount }}
                  <el-tooltip v-if="scope.row.quarterPayAmountWarn == 1" class="item" effect="dark" content="季度款金额数据异常"
                    placement="top">
                    <el-image style="width: 12px; height: 12px; margin-left: 5px"
                      :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image> </el-tooltip></span>
              </template>
            </el-table-column>
            <el-table-column prop="subsidyAmount" label="过渡补贴(万元)" min-width="180" align="center">
              <template slot-scope="scope">
                <span>{{ scope.row.subsidyAmount }}
                  <el-tooltip v-if="scope.row.subsidyAmount == 1" class="item" effect="dark" content="过渡补贴金额数据异常"
                    placement="top">
                    <el-image style="width: 12px; height: 12px; margin-left: 5px"
                      :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image> </el-tooltip></span>
              </template>
            </el-table-column>
          </el-table>
        </div>
        <div v-else>
          <!-- 购房信息表格 -->
          <el-table v-loading="loading" :data="tableData" border style="width: 100%" max-height="300px"
            :row-class-name="tableRowClassName1">
            <el-table-column type="index" label="序号" width="50" align="center" />
            <el-table-column prop="street" label="镇(街道)" min-width="100" align="center" />
            <el-table-column prop="projectName" label="拆迁项目名称" min-width="100" align="center" />
            <el-table-column prop="community" label="所在村(社区)" min-width="100" align="center" />
            <el-table-column prop="demolitionTime" label="拆迁时间" min-width="100" align="center" />
            <el-table-column prop="householdHead" label="户主姓名" min-width="100" align="center">
              <template slot-scope="scope">
                <span>{{ scope.row.householdHead }}
                  <el-tooltip v-if="scope.row.householdHeadWarn == 1" class="item" effect="dark"
                    content="户主信息不存在于待安置人员库" placement="top">
                    <el-image style="width: 12px; height: 12px; margin-left: 5px"
                      :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image> </el-tooltip></span>
              </template>
            </el-table-column>
            <el-table-column prop="idCard" label="身份证号" min-width="180" align="center">
              <template slot-scope="scope">
                {{ scope.row.idCard || "-" }}
                <el-tooltip v-if="scope.row.idCardWarn == 1" class="item" effect="dark" content="身份信息不存在于待安置人员库"
                  placement="top">
                  <el-image style="width: 12px; height: 12px; margin-left: 5px"
                    :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image>
                </el-tooltip>
              </template>
            </el-table-column>
            <el-table-column prop="mobile" label="联系电话" min-width="100" align="center">
              <template slot-scope="scope">
                {{ scope.row.mobile || "-" }}
              </template>
            </el-table-column>
 
            <el-table-column label="本次安置人数(人)" min-width="100" align="center">
              <el-table-column prop="currentCollectiveNum" label="集体经济组织成员" min-width="100" align="center">
                <template slot-scope="scope">
                  {{ scope.row.currentCollectiveNum || "-" }}
                </template>
              </el-table-column>
              <el-table-column prop="currentNoCollectiveNum" label="非集体经济组织成员" min-width="100" align="center">
                <template slot-scope="scope">
                  {{ scope.row.currentNoCollectiveNum || "-" }}
                </template>
              </el-table-column>
              <el-table-column prop="currentCount" label="合计" min-width="100" align="center" />
            </el-table-column>
            <el-table-column prop="waitFamilyNames" label="待安置家庭成员姓名" min-width="100" align="center">
              <template slot-scope="scope">
                {{ scope.row.waitFamilyNames || "-" }}
                <el-tooltip v-if="scope.row.waitFamilyNamesWarn == 1" class="item" effect="dark" content="身份信息存在重复数据"
                  placement="top">
                  <el-image style="width: 12px; height: 12px; margin-left: 5px"
                    :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image>
                </el-tooltip>
              </template>
            </el-table-column>
            <el-table-column prop="waitFamilyArea" label="待安置人员应安置面积合计(㎡)" min-width="100" align="center">
              <template slot-scope="scope">
                <span>{{ scope.row.waitFamilyArea }}
                  <el-tooltip v-if="scope.row.waitFamilyAreaWarn == 1" class="item" effect="dark" content="应补偿面积数据异常"
                    placement="top">
                    <el-image style="width: 12px; height: 12px; margin-left: 5px"
                      :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image> </el-tooltip></span>
              </template>
            </el-table-column>
            <el-table-column label="补偿金额(万元)" min-width="100" align="center">
              <el-table-column prop="compensationNewAmount" label="新建商品住房、商业用房、停车位" min-width="100" align="center">
                <template slot-scope="scope">
                  <span>{{ scope.row.compensationNewAmount }}
                    <el-tooltip v-if="scope.row.compensationAmountWarn == 1" class="item" effect="dark"
                      content="检测到多个购房情况请人工核对" placement="top">
                      <el-image style="width: 12px; height: 12px; margin-left: 5px"
                        :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image> </el-tooltip></span>
                </template>
              </el-table-column>
              <el-table-column prop="compensationOldAmount" label="二手住房" min-width="100" align="center" />
              <el-table-column prop="compensationSum" label="合计" min-width="100" align="center">
                <template slot-scope="scope">
                  <span>{{ scope.row.compensationSum }}
                    <el-tooltip v-if="scope.row.compensationSumWarn == 1" class="item" effect="dark" content="补偿总金额数据异常"
                      placement="top">
                      <el-image style="width: 12px; height: 12px; margin-left: 5px"
                        :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image> </el-tooltip></span>
                </template>
              </el-table-column>
            </el-table-column>
            <el-table-column prop="downPaymentAmount" label="25%首付款(万元)" min-width="100" align="center" />
            <el-table-column prop="quarterPayAmount" v-if="activeTab == '2'" label="每季度需支付款项(万元)" min-width="100"
              align="center">
              <template slot-scope="scope">
                <span>{{ scope.row.quarterPayAmount }}
                  <el-tooltip v-if="scope.row.quarterPayAmountWarn == 1" class="item" effect="dark" content="季度款金额数据异常"
                    placement="top">
                    <el-image style="width: 12px; height: 12px; margin-left: 5px"
                      :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image> </el-tooltip></span>
              </template>
            </el-table-column>
            <el-table-column prop="subsidyAmount" label="过渡补贴(万元)" min-width="100" align="center">
              <template slot-scope="scope">
                <span>{{ scope.row.subsidyAmount }}
                  <el-tooltip v-if="scope.row.subsidyAmount == 1" class="item" effect="dark" content="过渡补贴金额数据异常"
                    placement="top">
                    <el-image style="width: 12px; height: 12px; margin-left: 5px"
                      :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image> </el-tooltip></span>
              </template>
            </el-table-column>
            <el-table-column prop="remark" label="备注" min-width="100" align="center" />
            <el-table-column prop="certificateTime" label="凭证发放时间" min-width="100" align="center" />
            <el-table-column prop="buyTime" label="购房时间" min-width="100" align="center" />
            <el-table-column prop="dealAmount" label="成交金额(万元)" min-width="100" align="center" />
            <el-table-column label="新建商品住房" min-width="100" align="center">
              <el-table-column prop="newHousingName" label="楼盘名称" min-width="100" align="center" />
              <el-table-column prop="newHousingArea" label="面积(㎡)" min-width="100" align="center">
                <template slot-scope="scope">
                  <span>{{ scope.row.newHousingArea }}
                    <el-tooltip v-if="scope.row.areaWarn == 1" class="item" effect="dark" content="面积数据异常"
                      placement="top">
                      <el-image style="width: 12px; height: 12px; margin-left: 5px"
                        :src="require('../../../assets/logo/warning.png')" :fit="fit"></el-image> </el-tooltip></span>
                </template>
              </el-table-column>
              <el-table-column prop="newHousingNum" label="套数(套)" min-width="100" align="center" />
            </el-table-column>
            <el-table-column label="二手住房" min-width="100" align="center">
              <el-table-column prop="oldHousingName" label="小区名称" min-width="100" align="center" />
              <el-table-column prop="householdHead" label="面积(㎡)" min-width="100" align="center" />
              <el-table-column prop="householdHead" label="套数(套)" min-width="100" align="center" />
            </el-table-column>
            <el-table-column prop="householdHead" label="新建商业用房" min-width="100" align="center">
              <el-table-column prop="householdHead" label="楼盘名称" min-width="100" align="center" />
              <el-table-column prop="oldHousingArea" label="面积(㎡)" min-width="100" align="center" />
              <el-table-column prop="oldHousingNum" label="套数(套)" min-width="100" align="center" />
            </el-table-column>
            <el-table-column label="新建停车位" min-width="100" align="center">
              <el-table-column prop="newStopName" label="楼盘名称" min-width="100" align="center" />
              <el-table-column prop="newStopArea" label="金额(万元)" min-width="100" align="center" />
              <el-table-column prop="newStopNum" label="个数(个)" min-width="100" align="center" />
            </el-table-column>
            <el-table-column prop="signTime" label="自主购房协议签订时间" min-width="100" align="center" />
            <el-table-column prop="compensationPayTime" label="25%补偿款及过渡补贴支付时间" min-width="100" align="center" />
            <el-table-column label="剩余款项支付时间" min-width="100" align="center">
              <el-table-column prop="remainingTime1" label="第一年" min-width="100" align="center" />
              <el-table-column prop="remainingTime2" label="第二年" min-width="100" align="center" />
              <el-table-column prop="remainingTime3" label="第三年" min-width="100" align="center" />
              <el-table-column prop="remainingTime4" label="第四年" min-width="100" align="center" />
              <el-table-column prop="remainingTime5" label="第四年" min-width="100" align="center" />
            </el-table-column>
          </el-table>
        </div>
      </div>
 
      <!-- 右侧审核信息 -->
      <div class="approval-info">
        <div class="approver-timeline">
          <!-- 审核状态下显示审批人和等待审核按钮 -->
          <template v-if="type === 'audit'">
            <div class="timeline-item">
              <div class="timeline-icon">
                <el-avatar size="small" icon="el-icon-user" :style="{ background: '#6d78ff' }"></el-avatar>
              </div>
              <div class="timeline-content info-box">
                <div class="info-line">
                  <div class="approver-info">
                    <div class="approver-title">提交人:</div>
                    <div class="approver-name">
                      {{ detailData.createUser || "-" }}
                    </div>
                  </div>
                  <div class="approval-time-info">
                    <div class="approval-time-title">提交时间:</div>
                    <div class="approval-time">
                      {{ detailData.createTime || "-" }}
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="timeline-divider"></div>
            <div class="timeline-item">
              <div class="timeline-icon">
                <el-avatar size="small" icon="el-icon-time" :style="{ background: '#909399' }"></el-avatar>
              </div>
              <div class="timeline-content">
                <el-button size="small" disabled class="waiting-btn">等待审核</el-button>
              </div>
            </div>
          </template>
          <!-- 详情状态下显示经办人和审核人 -->
          <template v-else>
            <div class="timeline-item">
              <div class="timeline-icon">
                <el-avatar size="small" icon="el-icon-user" :style="{ background: '#6d78ff' }"></el-avatar>
              </div>
              <div class="timeline-content info-box">
                <div class="info-line">
                  <div class="approver-info">
                    <div class="approver-title">提交人:</div>
                    <div class="approver-name">
                      {{ detailData.createUser || "-" }}
                    </div>
                  </div>
                  <div class="approval-time-info">
                    <div class="approval-time-title">提交时间:</div>
                    <div class="approval-time">
                      {{ detailData.createTime || "-" }}
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="timeline-divider"></div>
            <div class="timeline-item">
              <div class="timeline-icon">
                <el-avatar size="small" icon="el-icon-user" :style="{ background: '#6d78ff' }"></el-avatar>
              </div>
              <div class="timeline-content info-box">
                <div class="info-line">
                  <div class="approver-info">
                    <div class="approver-title">审核人:</div>
                    <div class="approver-name">
                      {{ detailData.approveName || "-" }}
                    </div>
                  </div>
                  <div class="approval-time-info">
                    <div class="approval-time-title">审核时间:</div>
                    <div class="approval-time">
                      {{ detailData.approveTime | formatDate }}
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </template>
        </div>
      </div>
    </div>
 
    <!-- 警告信息 -->
    <!-- <div class="warning-info" v-if="hasWarning && type === 'audit'">
      <div class="warning-text">
        注意: 系统检测到该申请表中存在异常数据,请仔细核实!
      </div>
    </div> -->
 
    <!-- 审核结果区域 -->
    <div class="audit-section">
      <div class="audit-result">
        <div class="result-title">审核结果</div>
        <div class="result-options">
          <el-radio-group :disabled="type === 'detail'" v-model="form.status">
            <el-radio label="1">通过</el-radio>
            <el-radio label="2">驳回</el-radio>
          </el-radio-group>
        </div>
      </div>
 
      <div class="audit-comment">
        <div class="comment-title">审批意见</div>
        <el-input type="textarea" :rows="4" placeholder="请输入审批意见" v-model="form.reason"
          :disabled="type === 'detail'"></el-input>
      </div>
    </div>
 
    <!-- 底部按钮 - 仅审核模式显示 -->
    <div slot="footer" class="dialog-footer" v-if="type === 'audit'">
      <el-button @click="cancelAudit">取消</el-button>
      <el-button type="primary" @click="submitAudit">确认</el-button>
    </div>
  </el-dialog>
</template>
 
<script>
import dayjs from 'dayjs';
import { getPlacementBatchDetail } from "@/api/placement-details";
export default {
  name: "ApprovalDialog",
  props: {
    visible: {
      type: Boolean,
      default: false,
    },
    type: {
      type: String,
      default: "audit", // 'audit' 或 'detail'
      validator: function (value) {
        return ["audit", "detail"].indexOf(value) !== -1;
      },
    },
    rowData: {
      type: Object,
      default: () => ({}),
    },
    placementBatchId: {
      type: Number,
      default: "",
    },
  },
  filters: {
    formatDate(date) {
      if (date) {
        return dayjs(date).format("YYYY-MM-DD HH:mm:ss");
      } else {
        return "-";
      }
    },
  },
  data() {
    return {
      dialogVisible: false,
      hasWarning: true,
      activeTab: "1",
      detailData: {},
      loading: false,
      form: {
        status: "pass",
        reason: "",
      },
      queryParams: {
        pageNum: 1,
        pageSize: 1000000,
      },
      tableData: [],
    };
  },
 
  watch: {
    visible(val) {
      this.dialogVisible = val;
    },
    dialogVisible(val) {
      this.$emit("update:visible", val);
    },
    rowData: {
      handler(newVal) {
        if (newVal && Object.keys(newVal).length > 0) {
          // 如果有传入数据,可以在这里处理
        }
      },
      immediate: true,
    },
  },
  methods: {
    openDialog() {
      this.getList();
    },
    /** 查询列表 */
    getList() {
      this.loading = true;
      // TODO: 调用接口获取数据
      getPlacementBatchDetail({
        ...this.queryParams,
        placementBatchId: this.placementBatchId,
        type: this.activeTab,
      }).then((res) => {
        if (res.code == 200) {
          this.tableData =
            this.activeTab == "1" ? res.data.assetList : res.data.householdList;
          this.detailData = res.data.placementBatch;
          this.total = res.data.total;
          res.data.placementBatch.status =
            res.data.placementBatch.status.toString();
          this.form = res.data.placementBatch;
          this.loading = false;
        }
      });
    },
    /** Tab切换操作 */
    handleTabClick(tab) {
      this.activeTab = tab.name;
      this.getList();
    },
    tableRowClassName({ row, rowIndex }) {
      if (row.compensationSumWarn == 1 || row.householdHeadWarn == 1 || row.idCardWarn == 1 || row.priceAmountWarn == 1 || row.quarterPayAmountWarn == 1 || row.subsidyAmountWarn == 1 || row.twoPriceWarn == 1 || row.waitFamilyAreaWarn == 1) {
        return 'warning-row'
      }
      return ''
    },
    tableRowClassName1({ row, rowIndex }) {
      if (row.areaWarn == 1 || row.compensationAmountWarn == 1 || row.compensationSumWarn == 1 || row.householdHeadWarn == 1 || row.idCardWarn == 1 || row.waitFamilyAreaWarn == 1 || row.waitFamilyNamesWarn == 1 || row.subsidyAmountWarn == 1 || row.quarterPayAmountWarn == 1) {
        return 'warning-row'
      }
      return ''
    },
 
    cancelAudit() {
      this.$emit("close");
      this.resetForm();
    },
    submitAudit() {
      // 提交审核
      this.$emit("audit-submit", {
        status: this.form.status,
        reason: this.form.reason,
        id: this.placementBatchId,
      });
      this.resetForm();
    },
    resetForm() {
      this.form = {
        status: "pass",
        reason: "",
      };
    },
  },
};
</script>
 
<style scoped>
::v-deep .warning-row {
  background: #de868f !important;
}
 
.approval-content {
  display: flex;
  margin-bottom: 20px;
}
 
.table-container {
  flex: 1;
  margin-right: 20px;
  overflow-x: auto;
}
 
.approval-info {
  width: 250px;
  padding: 15px;
  border-radius: 4px;
  background-color: #f0f2f5;
}
 
.approver-timeline {
  display: flex;
  flex-direction: column;
  height: 100%;
}
 
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}
 
.timeline-icon {
  margin-right: 10px;
}
 
.timeline-divider {
  width: 2px;
  height: 30px;
  background-color: #dcdfe6;
  margin-left: 15px;
  margin-bottom: 15px;
}
 
.timeline-content {
  flex: 1;
}
 
.info-box {
  background-color: #8e9aff;
  border-radius: 8px;
  padding: 6px 8px;
  color: white;
}
 
.info-line {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
 
.approver-info,
.approval-time-info {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
 
.approver-title,
.approval-time-title {
  font-weight: bold;
  margin-right: 2px;
  white-space: nowrap;
  font-size: 12px;
}
 
.approver-name,
.approval-time {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
.waiting-btn {
  background-color: #909399;
  color: white;
  border: none;
}
 
.warning-info {
  background-color: #fef0f0;
  padding: 10px 15px;
  border-radius: 4px;
  margin: 15px 0;
}
 
.warning-text {
  color: #f56c6c;
}
 
.audit-section {
  margin-top: 20px;
}
 
.audit-result {
  margin-bottom: 15px;
}
 
.result-title,
.comment-title {
  font-weight: bold;
  margin-bottom: 10px;
}
 
.dialog-footer {
  text-align: right;
}
</style>
 
<style>
/* 全局样式 */
.error-row {
  background-color: #ffecec !important;
}
</style>