zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
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
<template>
  <div>
    <FormInfo
      :info="drivingInfo"
      :keys="drivingHeaderInfo"
      title="行驶证基本信息"
      :loading="loading"
    ></FormInfo>
    <FormInfo
      :info="carRegInfo"
      :keys="carRegHeaderInfo"
      title="机动车登记证"
      :loading="loading"
    ></FormInfo>
    <FormInfo
      :info="car300Info"
      :keys="car300HeaderInfo"
      title="车300信息"
      :loading="loading"
    ></FormInfo>
    <KeysTable
      :list="maintenanceRecordList"
      :header="maintenanceRecordHeader"
      :isShowPages="false"
      title="维保记录"
    ></KeysTable>
    <KeysTable
      :list="serviceTimeRecordList"
      :header="serviceTimeRecordHeader"
      :isShowPages="false"
      title="保养时间记录"
    ></KeysTable>
    <KeysTable
      :list="bodyStructureDamageRecordList"
      :header="bodyStructureDamageRecordHeader"
      :isShowPages="false"
      title="车身结构损伤记录"
    ></KeysTable>
    <KeysTable
      :list="insuranceList"
      :header="insuranceHeader"
      :isShowPages="false"
      title="碰撞记录"
    ></KeysTable>
    <KeysTable
      :list="claimsList"
      :header="claimsHeader"
      :isShowPages="false"
      title="事故记录"
    ></KeysTable>
  </div>
</template>
<script>
import FormInfo from "../FormInfo";
import KeysTable from "../KeysTable";
import { queryCarInfoMap } from "@comprehensive/serve/public";
import {
  maintenanceRecordHeader,
  serviceTimeRecordHeader,
  bodyStructureDamageRecordHeader,
  insuranceHeader,
  claimsHeader,
} from "@comprehensive/utils/tableHeaders";
export default {
  props: {
    // 申请编号
    serialNo: {
      type: String,
      required: true,
    },
    objectType: {
      type: String,
      default: "",
    },
    customerID: {
      type: String,
      default: "",
    },
    flowno: {
      type: String,
 
      // 默认为案场
      default: "CreditFlowCase",
    },
  },
  components: {
    FormInfo,
    KeysTable,
  },
  computed: {},
  data() {
    return {
      drivingInfo: {}, //行驶证基本信息
      drivingHeaderInfo: [], //行驶证基本信息title
      carRegInfo: {}, //机动车登记证信息
      carRegHeaderInfo: [], //机动车登记证信息title
      car300Info: {}, //车300信息
      car300HeaderInfo: [], //车300信息title
      formModel: {}, //各种记录
      loading: false,
      maintenanceRecordHeader: [...maintenanceRecordHeader], //维保详细记录
      maintenanceRecordList: [],
      serviceTimeRecordHeader: [...serviceTimeRecordHeader], //保养时间记录
      serviceTimeRecordList: [],
      bodyStructureDamageRecordHeader: [...bodyStructureDamageRecordHeader], //车身结构损伤
      bodyStructureDamageRecordList: [],
      insuranceHeader: [...insuranceHeader], //碰撞信息
      insuranceList: [],
      claimsHeader: [...claimsHeader], //事故信息
      claimsList: [],
    };
  },
  created() {
    // setTimeout(() => {
    //   this.init();
    // }, 1000);
    this.init();
  },
  methods: {
    init() {
      this.requestQueryCarInfoMap();
    },
    async requestQueryCarInfoMap() {
      const { serialNo } = this;
      this.loading = true;
      const resp = await queryCarInfoMap({
        applySerialNo: serialNo,
      });
      this.loading = false;
      if (resp.code == "00") {
        // car300Info: {}, //车300信息
        // car300HeaderInfo: [],//车300信息title
        this.drivingInfo = {
          ...resp.result.drivingInfoMap,
        };
        this.drivingHeaderInfo = [];
        for (const key in this.drivingInfo) {
          if (this.drivingInfo.hasOwnProperty(key)) {
            const item = this.drivingInfo[key];
            this.drivingHeaderInfo.push({
              label: item.filedDescription,
              field: key,
            });
          }
        }
        this.carRegInfo = {
          ...resp.result.carRegInfoMap,
        };
        this.carRegHeaderInfo = [];
        for (const key in this.carRegInfo) {
          if (this.carRegInfo.hasOwnProperty(key)) {
            const item = this.carRegInfo[key];
            this.carRegHeaderInfo.push({
              label: item.filedDescription,
              field: key,
            });
          }
        }
        this.car300Info = {
          ...resp.result.car300InfoMap,
        };
        this.car300HeaderInfo = [];
        for (const key in this.car300Info) {
          if (this.car300Info.hasOwnProperty(key)) {
            const item = this.car300Info[key];
            this.car300HeaderInfo.push({
              label: item.filedDescription,
              field: key,
            });
          }
        }
        this.maintenanceRecordList = resp.result.maintenanceRecord;
        this.serviceTimeRecordList = resp.result.serviceTimeRecord;
        this.bodyStructureDamageRecordList =
          resp.result.bodyStructureDamageRecord;
        this.insuranceList = resp.result.insurance;
        this.claimsList = resp.result.claims;
      }
    },
  },
};
</script>