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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<template>
  <div class="product">
    <p v-if="drivingHeaderInfo.length > 0" class="title" style="border: none">
      <span></span>
      行驶证基本信息
    </p>
    <FormInfo
      :info="drivingInfo"
      :keys="drivingHeaderInfo"
      title=""
      :loading="loading"
    ></FormInfo>
    <p v-if="carRegHeaderInfo.length > 0" class="title" style="border: none">
      <span></span>
      机动车登记证
    </p>
    <FormInfo
      :info="carRegInfo"
      :keys="carRegHeaderInfo"
      title=""
      :loading="loading"
    ></FormInfo>
    <p v-if="car300HeaderInfo.length > 0" class="title" style="border: none">
      <span></span>
      车300信息
    </p>
    <FormInfo
      :info="car300Info"
      :keys="car300HeaderInfo"
      title=""
      :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 class="btn">
      <el-button size="medium" plain @click="prevPage()">上一页</el-button>
      <el-button
        size="medium"
        :loading="submitLoading"
        type="primary"
        @click="nextPage()"
        >下一页</el-button
      >
    </div>
  </div>
</template>
<script>
import FormInfo from "../../../../comprehensiveTransaction/components/FormInfo.vue";
import KeysTable from "../../../../comprehensiveTransaction/components/KeysTable";
import { queryCarInfoMap } from "@comprehensive/serve/public";
import { mainCreditInfoHeader } from "@comprehensive/utils/formHeaders";
import {
  maintenanceRecordHeader,
  serviceTimeRecordHeader,
  bodyStructureDamageRecordHeader,
  insuranceHeader,
  claimsHeader,
} from "@comprehensive/utils/tableHeaders";
import common from "@/utils/common";
export default {
  data() {
    return {
      applyInfo: this.$store.state.product.applyInfo,
      applyMenu: this.$store.state.product.applyMenu,
      drivingInfo: {}, //行驶证基本信息
      drivingHeaderInfo: [], //行驶证基本信息title
      carRegInfo: {}, //机动车登记证信息
      carRegHeaderInfo: [], //机动车登记证信息title
      car300Info: {}, //车300信息
      car300HeaderInfo: [], //车300信息title
      loading: false,
      submitLoading: false,
 
      maintenanceRecordHeader: [...maintenanceRecordHeader], //维保详细记录
      maintenanceRecordList: [],
      serviceTimeRecordHeader: [...serviceTimeRecordHeader], //保养时间记录
      serviceTimeRecordList: [],
      bodyStructureDamageRecordHeader: [...bodyStructureDamageRecordHeader], //车身结构损伤
      bodyStructureDamageRecordList: [],
      insuranceHeader: [...insuranceHeader], //碰撞信息
      insuranceList: [],
      claimsHeader: [...claimsHeader], //事故信息
      claimsList: [],
    };
  },
  computed: {},
  components: {
    FormInfo,
    KeysTable,
  },
  async created() {
    console.log("preApprovalInfo", this.applyInfo, this.applyMenu);
    this.init();
  },
  methods: {
    init() {
      this.requestQueryCarInfoMap();
    },
    async requestQueryCarInfoMap() {
      const { applyInfo } = this;
      this.loading = true;
      const resp = await queryCarInfoMap({
        applySerialNo: applyInfo.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
      }
    },
    prevPage() {
      this.applyMenu.forEach((val, index) => {
        if (val.tabname == "车辆详情") {
          common.tabInfo(
            this.applyMenu[index - 1].tabname,
            "CreditFlowCommon",
            this
          );
        }
      });
    },
    nextPage() {
      this.$parent.updateApplyTabTree("车辆详情");
    },
  },
  beforeRouteLeave(to, from, next) {
    next();
  },
};
</script>