Commit f4afc5e4 by chenwq1

fix:二手车评估单显示

1 parent bebfdf3e
const _import = require("@/libs/util.import." + process.env.NODE_ENV) // eslint-disable-next-line
const _import = require("@/libs/util.import." + (process.env.NODE_ENV || "development"));
export const routerName = { export const routerName = {
920: { 920: {
path: "/usedCarManagement", path: "/usedCarManagement",
...@@ -7,8 +8,8 @@ export const routerName = { ...@@ -7,8 +8,8 @@ export const routerName = {
title: "二手车管理", title: "二手车管理",
authId: "920", authId: "920",
parentId: "1", parentId: "1",
cache: false cache: false,
} },
}, },
92001: { 92001: {
path: "/dataView", path: "/dataView",
...@@ -17,9 +18,9 @@ export const routerName = { ...@@ -17,9 +18,9 @@ export const routerName = {
title: "数据看板", title: "数据看板",
authId: "92001", authId: "92001",
parentId: "920", parentId: "920",
cache: false cache: false,
}, },
component: _import("usedCarManagement/dataView/index") component: _import("usedCarManagement/dataView/index"),
}, },
92002: { 92002: {
path: "/evaluationManagement", path: "/evaluationManagement",
...@@ -28,7 +29,7 @@ export const routerName = { ...@@ -28,7 +29,7 @@ export const routerName = {
title: "评估管理", title: "评估管理",
authId: "92002", authId: "92002",
parentId: "920", parentId: "920",
cache: false cache: false,
}, },
auth: [ auth: [
{ {
...@@ -40,9 +41,9 @@ export const routerName = { ...@@ -40,9 +41,9 @@ export const routerName = {
{ {
authId: "9200204", authId: "9200204",
name: "详情", name: "详情",
parentId: "92002" parentId: "92002",
} },
] ],
}, },
{ {
authId: "9200202", authId: "9200202",
...@@ -53,9 +54,22 @@ export const routerName = { ...@@ -53,9 +54,22 @@ export const routerName = {
{ {
authId: "9200205", authId: "9200205",
name: "车辆评估", name: "车辆评估",
parentId: "92002" parentId: "92002",
} },
] ],
},
{
authId: "9200207",
parentId: "92002",
label: "评估核价",
handle: "handleCheckPrice",
addRoutePath: [
{
authId: "9200205",
name: "车辆核价",
parentId: "92002",
},
],
}, },
{ {
authId: "9200203", authId: "9200203",
...@@ -63,16 +77,16 @@ export const routerName = { ...@@ -63,16 +77,16 @@ export const routerName = {
label: "导出", label: "导出",
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleExport" handle: "handleExport",
}, },
{ {
authId: "9200206", authId: "9200206",
parentId: "92002", parentId: "92002",
label: "图片下载", label: "图片下载",
handle: "handleDownLoad" handle: "handleDownLoad",
} },
], ],
component: _import("usedCarManagement/evaluationManagement/index") component: _import("usedCarManagement/evaluationManagement/index"),
}, },
9200204: { 9200204: {
path: "/evalOrderDetail", path: "/evalOrderDetail",
...@@ -83,9 +97,9 @@ export const routerName = { ...@@ -83,9 +97,9 @@ export const routerName = {
parentId: "92002", parentId: "92002",
cache: false, cache: false,
sideHidden: false, sideHidden: false,
activePath: "/evaluationManagement" activePath: "/evaluationManagement",
}, },
component: _import("usedCarManagement/evaluationManagement/evalOrderDetail") component: _import("usedCarManagement/evaluationManagement/evalOrderDetail"),
}, },
9200205: { 9200205: {
path: "/evaluate", path: "/evaluate",
...@@ -96,10 +110,21 @@ export const routerName = { ...@@ -96,10 +110,21 @@ export const routerName = {
parentId: "92002", parentId: "92002",
cache: false, cache: false,
sideHidden: false, sideHidden: false,
activePath: "/evaluationManagement" activePath: "/evaluationManagement",
dynamicTitle: (route) => {
const scene = route?.query?.scene;
if (scene === "checkPrice") {
return "车辆核价";
}
if (scene === "assess") {
return "车辆评估";
}
return "车辆评估";
},
}, },
component: _import("usedCarManagement/evaluationManagement/evaluate") component: _import("usedCarManagement/evaluationManagement/evaluate"),
}, },
92003: { 92003: {
path: "/operateManagement", path: "/operateManagement",
name: "operateManagement", name: "operateManagement",
...@@ -107,7 +132,7 @@ export const routerName = { ...@@ -107,7 +132,7 @@ export const routerName = {
title: "运营管理", title: "运营管理",
authId: "92003", authId: "92003",
parentId: "920", parentId: "920",
cache: false cache: false,
}, },
auth: [ auth: [
{ {
...@@ -119,15 +144,15 @@ export const routerName = { ...@@ -119,15 +144,15 @@ export const routerName = {
{ {
authId: "9200306", authId: "9200306",
name: "详情", name: "详情",
parentId: "92003" parentId: "92003",
} },
] ],
}, },
{ {
authId: "9200302", authId: "9200302",
parentId: "92003", parentId: "92003",
label: "合同下载", label: "合同下载",
handle: "handleDownload" handle: "handleDownload",
}, },
{ {
authId: "9200303", authId: "9200303",
...@@ -135,7 +160,7 @@ export const routerName = { ...@@ -135,7 +160,7 @@ export const routerName = {
label: "导出", label: "导出",
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleExport" handle: "handleExport",
}, },
{ {
authId: "9200304", authId: "9200304",
...@@ -143,25 +168,25 @@ export const routerName = { ...@@ -143,25 +168,25 @@ export const routerName = {
label: "新增激励", label: "新增激励",
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleAddStimulate" handle: "handleAddStimulate",
}, },
{ {
authId: "9200305", authId: "9200305",
parentId: "92003", parentId: "92003",
label: "详情", label: "详情",
handle: "handleDetail" handle: "handleDetail",
}, },
{ {
authId: "9200307", authId: "9200307",
parentId: "92003", parentId: "92003",
label: "修改", label: "修改",
handle: "handleUpdate" handle: "handleUpdate",
}, },
{ {
authId: "9200308", authId: "9200308",
parentId: "92003", parentId: "92003",
label: "删除", label: "删除",
handle: "handleDelete" handle: "handleDelete",
}, },
{ {
authId: "9200309", authId: "9200309",
...@@ -169,10 +194,10 @@ export const routerName = { ...@@ -169,10 +194,10 @@ export const routerName = {
label: "批量导入合同", label: "批量导入合同",
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleImportContract" handle: "handleImportContract",
} },
], ],
component: _import("usedCarManagement/operateManagement/index") component: _import("usedCarManagement/operateManagement/index"),
}, },
9200306: { 9200306: {
path: "/contractView", path: "/contractView",
...@@ -183,11 +208,11 @@ export const routerName = { ...@@ -183,11 +208,11 @@ export const routerName = {
parentId: "92003", parentId: "92003",
cache: false, cache: false,
sideHidden: false, sideHidden: false,
activePath: "/operateManagement" activePath: "/operateManagement",
}, },
component: _import( component: _import(
"usedCarManagement/operateManagement/components/contract/detail" "usedCarManagement/operateManagement/components/contract/detail",
) ),
}, },
9200307: { 9200307: {
path: "/contractEdit", path: "/contractEdit",
...@@ -198,11 +223,11 @@ export const routerName = { ...@@ -198,11 +223,11 @@ export const routerName = {
parentId: "92003", parentId: "92003",
cache: false, cache: false,
sideHidden: false, sideHidden: false,
activePath: "/operateManagement" activePath: "/operateManagement",
}, },
component: _import( component: _import(
"usedCarManagement/operateManagement/components/contract/edit" "usedCarManagement/operateManagement/components/contract/edit",
) ),
}, },
92004: { 92004: {
path: "/vehicleManagement", path: "/vehicleManagement",
...@@ -211,7 +236,7 @@ export const routerName = { ...@@ -211,7 +236,7 @@ export const routerName = {
title: "车辆管理", title: "车辆管理",
authId: "92004", authId: "92004",
parentId: "920", parentId: "920",
cache: false cache: false,
}, },
auth: [ auth: [
{ {
...@@ -223,21 +248,21 @@ export const routerName = { ...@@ -223,21 +248,21 @@ export const routerName = {
{ {
authId: "9200404", authId: "9200404",
name: "车辆详情", name: "车辆详情",
parentId: "92004" parentId: "92004",
}, },
{ {
authId: "9200405", authId: "9200405",
name: "编辑车辆", name: "编辑车辆",
parentId: "92004" parentId: "92004",
} },
] ],
}, },
// 暂时屏蔽 // 暂时屏蔽
{ {
authId: "9200402", authId: "9200402",
parentId: "92004", parentId: "92004",
label: "状态变更", label: "状态变更",
handle: "handleChangeStatus" handle: "handleChangeStatus",
}, },
{ {
authId: "9200403", authId: "9200403",
...@@ -245,16 +270,16 @@ export const routerName = { ...@@ -245,16 +270,16 @@ export const routerName = {
label: "导出", label: "导出",
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleExport" handle: "handleExport",
}, },
{ {
authId: "9200406", authId: "9200406",
parentId: "92004", parentId: "92004",
label: "图片下载", label: "图片下载",
handle: "handleDownLoad" handle: "handleDownLoad",
} },
], ],
component: _import("usedCarManagement/vehicleManagement/index") component: _import("usedCarManagement/vehicleManagement/index"),
}, },
9200404: { 9200404: {
path: "/vehicleDetail", path: "/vehicleDetail",
...@@ -264,10 +289,10 @@ export const routerName = { ...@@ -264,10 +289,10 @@ export const routerName = {
authId: "9200404", authId: "9200404",
parentId: "92004", parentId: "92004",
activePath: "/vehicleManagement", activePath: "/vehicleManagement",
cache: false cache: false,
}, },
auth: [], auth: [],
component: _import("usedCarManagement/vehicleManagement/detail") component: _import("usedCarManagement/vehicleManagement/detail"),
}, },
9200405: { 9200405: {
path: "/editVehicle", path: "/editVehicle",
...@@ -277,10 +302,10 @@ export const routerName = { ...@@ -277,10 +302,10 @@ export const routerName = {
authId: "9200405", authId: "9200405",
parentId: "92004", parentId: "92004",
activePath: "/vehicleManagement", activePath: "/vehicleManagement",
cache: false cache: false,
}, },
auth: [], auth: [],
component: _import("usedCarManagement/vehicleManagement/detail") component: _import("usedCarManagement/vehicleManagement/detail"),
}, },
// //
92005: { 92005: {
...@@ -290,7 +315,7 @@ export const routerName = { ...@@ -290,7 +315,7 @@ export const routerName = {
title: "交付单管理", title: "交付单管理",
authId: "92005", authId: "92005",
parentId: "920", parentId: "920",
cache: false cache: false,
}, },
auth: [ auth: [
{ {
...@@ -302,9 +327,9 @@ export const routerName = { ...@@ -302,9 +327,9 @@ export const routerName = {
{ {
authId: "9200502", authId: "9200502",
name: "交付单详情", name: "交付单详情",
parentId: "92005" parentId: "92005",
} },
] ],
}, },
{ {
authId: "9200503", authId: "9200503",
...@@ -312,10 +337,10 @@ export const routerName = { ...@@ -312,10 +337,10 @@ export const routerName = {
label: "导出", label: "导出",
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleExport" handle: "handleExport",
} },
], ],
component: _import("usedCarManagement/deliveryOrderManagement/index") component: _import("usedCarManagement/deliveryOrderManagement/index"),
}, },
9200502: { 9200502: {
path: "/deliveryOrderManagementDetail", path: "/deliveryOrderManagementDetail",
...@@ -325,10 +350,10 @@ export const routerName = { ...@@ -325,10 +350,10 @@ export const routerName = {
authId: "9200502", authId: "9200502",
parentId: "92005", parentId: "92005",
activePath: "/deliveryOrderManagement", // 缓存页面 activePath: "/deliveryOrderManagement", // 缓存页面
cache: false cache: false,
}, },
auth: [], auth: [],
component: _import("usedCarManagement/deliveryOrderManagement/detail") component: _import("usedCarManagement/deliveryOrderManagement/detail"),
}, },
92006: { 92006: {
path: "/vehicleLedger", path: "/vehicleLedger",
...@@ -337,7 +362,7 @@ export const routerName = { ...@@ -337,7 +362,7 @@ export const routerName = {
title: "车辆台账", title: "车辆台账",
authId: "92006", authId: "92006",
parentId: "920", parentId: "920",
cache: false cache: false,
}, },
auth: [ auth: [
{ {
...@@ -346,10 +371,18 @@ export const routerName = { ...@@ -346,10 +371,18 @@ export const routerName = {
label: "导出", label: "导出",
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleExport" handle: "handleExport",
} },
{
authId: "9200602",
parentId: "92006",
label: "导出",
category: "Button",
type: "primary",
handle: "handleFinancialLedgerExport",
},
], ],
component: _import("usedCarManagement/vehicleLedger/index") component: _import("usedCarManagement/vehicleLedger/index"),
}, },
92007: { 92007: {
path: "/quitAndHandover", path: "/quitAndHandover",
...@@ -358,7 +391,7 @@ export const routerName = { ...@@ -358,7 +391,7 @@ export const routerName = {
title: "离职继承", title: "离职继承",
authId: "92007", authId: "92007",
parentId: "920", parentId: "920",
cache: false cache: false,
}, },
auth: [ auth: [
{ {
...@@ -368,16 +401,16 @@ export const routerName = { ...@@ -368,16 +401,16 @@ export const routerName = {
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleAddHandover", handle: "handleAddHandover",
icon: "plus" icon: "plus",
}, },
{ {
authId: "9200702", authId: "9200702",
parentId: "92007", parentId: "92007",
label: "详情", label: "详情",
handle: "handleDetail" handle: "handleDetail",
} },
], ],
component: _import("usedCarManagement/quitAndHandover/index") component: _import("usedCarManagement/quitAndHandover/index"),
}, },
92008: { 92008: {
path: "/reportManagement", path: "/reportManagement",
...@@ -386,7 +419,7 @@ export const routerName = { ...@@ -386,7 +419,7 @@ export const routerName = {
title: "报告管理", title: "报告管理",
authId: "92008", authId: "92008",
parentId: "920", parentId: "920",
cache: false cache: false,
}, },
auth: [ auth: [
{ {
...@@ -395,9 +428,9 @@ export const routerName = { ...@@ -395,9 +428,9 @@ export const routerName = {
label: "导出", label: "导出",
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleExport" handle: "handleExport",
} },
], ],
component: _import("usedCarManagement/reportManagement/index") component: _import("usedCarManagement/reportManagement/index"),
} },
} };
<!-- 核价与意见 -->
<template>
<div class="edit-assess">
<div class="title">
核价与意见
</div>
<div class="edit-form-wrapper">
<glsx-combi-form ref="editFormRef"
class="edit-form-container"
:form-data="checkFormData"
:form-obj="assessForm"
:form-ref="editChildRef"
:form-rules="assessRules"
:is-block="true"
label-width="150px">
</glsx-combi-form>
</div>
</div>
</template>
<script>
export default {
props: {
detailInfo: {
type: Object,
default() {
return {};
},
},
},
data() {
return {
editChildRef: "editChildRef",
assessForm: {
checkPrice: "",
checkOpinion: "",
},
checkFormData: [
{
label: "核价",
name: "checkPrice",
type: "input",
isClear: true,
maxlength: 7,
width: "570px",
placeholder: "请输入",
append: "元",
},
{
label: "核价",
name: "checkOpinion",
type: "input",
maxlength: 200,
inputType: "textarea",
// showLimit: true,
rows: 4,
width: "570px",
placeholder: "请输入",
},
],
assessRules: {
checkPrice: [
{
required: true,
message: "请输入",
trigger: "blur",
},
{
validator: (rule, value, callback) => {
if (!value) {
callback();
return;
}
// 校验是否为整数
if (!/^\d+$/.test(value)) {
callback(new Error("只能输入整数"));
} else {
callback();
}
},
trigger: "blur",
},
{
validator: (rule, value, callback) => {
if (!value) {
callback();
return;
}
const numValue = Number.parseInt(value, 10);
if (isNaN(numValue)) {
callback(new Error("请输入有效整数"));
} else if (numValue <= 0) {
callback(new Error("评估价必须大于0"));
} else if (numValue > 9999999) {
callback(new Error("评估价必须小于9999999"));
} else {
callback();
}
},
trigger: "blur",
},
],
checkOpinion: [
{
required: true,
message: "请输入",
trigger: "blur",
},
],
},
};
},
watch: {
detailInfo(val) {
console.log(val, "detailInfo");
this.assessForm = {
checkPrice: val.checkPrice,
checkOpinion: val.checkOpinion,
};
},
},
methods: {
async confirm() {
try {
const formRef = this.$refs.editFormRef;
if (!formRef || !formRef.$refs || !formRef.$refs[this.editChildRef]) {
console.error("Form reference not found");
return false;
}
const isValid = await formRef.$refs[this.editChildRef].validate();
console.log(isValid, "isValid");
return isValid;
} catch (error) {
console.error("Validation failed:", error);
return false;
}
},
},
};
</script>
<style lang="scss" scoped>
.edit-assess {
background: #fff;
margin: 20px;
.title {
color: #333333;
font-size: 16px;
font-weight: bold;
padding: 13.5px 20px;
border-bottom: 1px solid #e5e5e5;
line-height: 23px;
box-sizing: border-box;
}
.edit-form-wrapper {
padding: 20px;
::v-deep .el-input__suffix-inner {
color: #333333;
font-size: 14px;
}
}
}
</style>
<!-- 评估动态 --> <!-- 评估动态 -->
<template> <template>
<div class="dynamics-wrapper" v-if="dynamicsData && dynamicsData.length"> <div v-if="dynamicsData && dynamicsData.length" class="dynamics-wrapper">
<div class="title">评估动态</div> <div class="title">
评估动态
</div>
<div class="timeline-box"> <div class="timeline-box">
<el-timeline> <el-timeline>
<el-timeline-item <el-timeline-item v-for="(item, index) in dynamicsData"
:color="index == 0 ? '#2a58ad' : ''"
v-for="(item, index) in dynamicsData"
:key="index" :key="index"
> :color="index == 0 ? '#2a58ad' : ''">
<div class="time-box"> <div class="time-box">
<div class="createdBy"> <div class="createdBy">
<div> <div>
{{ item.opType == 20 ? "驻店人员" : "总部定价师" }}:<span>{{ {{ item.opType == 20 ? "驻店人员" : "总部定价师" }}:<span>
{{
item.createdBy item.createdBy
}}</span> }}
</span>
</div>
<div class="time">
{{ item.quoteTime }}
</div> </div>
<div class="time">{{ item.quoteTime }}</div>
</div> </div>
<!-- 评估师驳回 --> <!-- 评估师驳回 -->
<template v-if="item.opType == 30"> <template v-if="item.opType == 30">
<div class="reject-box"> <div class="reject-box">
<span> 驳回原因:</span> <span> 驳回原因:</span>
<div class="reason">{{ item.rejectReason }}</div> <div class="reason">
{{ item.rejectReason }}
</div>
</div> </div>
<div class="reject-box"> <div class="reject-box">
<span>驳回意见:</span> <span>驳回意见:</span>
<div class="reason">{{ item.rejectSuggestion }}</div> <div class="reason">
{{ item.rejectSuggestion }}
</div>
</div> </div>
</template> </template>
<template v-else-if="item.opType == 10"> <template v-else-if="item.opType == 10">
<div class="reject-box"> <div class="reject-box">
<span>评估价:</span> <span>评估价:</span>
<div class="reason">{{ item.evalPrice }}元</div> <div class="reason">
{{ item.evalPrice }}元
</div>
</div> </div>
<div class="reject-box"> <div class="reject-box">
<span>评估意见:</span> <span>评估意见:</span>
<div class="reason">{{ item.evalOpinion }}</div> <div class="reason">
{{ item.evalOpinion }}
</div>
</div> </div>
</template> </template>
<template v-else-if="item.opType == 20"> <template v-else-if="item.opType == 20">
<div class="reject-box"> <div class="reject-box">
<span>意向报价:</span> <span>意向报价:</span>
<div class="reason">{{ item.customerTargetPrice }}元</div> <div class="reason">
{{ item.customerTargetPrice }}元
</div>
</div> </div>
<div class="reject-box"> <div class="reject-box">
<span>报价反馈:</span> <span>报价反馈:</span>
<div class="reason">{{ item.customerTargetPriceFeedback }}</div> <div class="reason">
{{ item.customerTargetPriceFeedback }}
</div>
</div>
</template>
<template v-else-if="item.opType == 40">
<div class="reject-box">
<span>核价价格:</span>
<div class="reason">
{{ item.evalPrice }}元
</div>
</div>
<div class="reject-box">
<span>核价意见:</span>
<div class="reason">
{{ item.evalOpinion }}
</div>
</div>
</template>
<template v-else-if="item.opType == 50">
<div class="reject-box">
<span>驳回原因:</span>
<div class="reason">
{{ item.rejectReason }}
</div>
</div>
<div class="reject-box">
<span>驳回意见:</span>
<div class="reason">
{{ item.rejectSuggestion }}
</div>
</div> </div>
</template> </template>
</div> </div>
...@@ -61,13 +105,13 @@ export default { ...@@ -61,13 +105,13 @@ export default {
props: { props: {
dynamicsData: { dynamicsData: {
type: Array, type: Array,
default: () => [] default: () => [],
} },
}, },
data() { data() {
return {} return {};
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
import { import {
getEvalOrderDetail, getEvalOrderDetail,
getEvalOrderPriceHistory getEvalOrderPriceHistory,
} from "@/api/usedCarManagement" } from "@/api/usedCarManagement";
import vehicleInfo from "./vehicleInfo.vue" import assess from "./assess.vue";
import dynamics from "./dynamics.vue" import assessInfo from "./assessInfo.vue";
import assessInfo from "./assessInfo.vue" import check from "./check.vue";
import assess from "./assess.vue" import checkInfo from "./checkInfo.vue";
import rejectDialog from "./rejectDialog.vue" import dynamics from "./dynamics.vue";
import rejectDialog from "./rejectDialog.vue";
import vehicleInfo from "./vehicleInfo.vue";
export const evaluateMixin = { export const evaluateMixin = {
components: { components: {
...@@ -14,39 +16,42 @@ export const evaluateMixin = { ...@@ -14,39 +16,42 @@ export const evaluateMixin = {
vehicleInfo, vehicleInfo,
dynamics, dynamics,
assess, assess,
assessInfo assessInfo,
check,
checkInfo,
}, },
data() { data() {
return { return {
detailInfo: null, detailInfo: null,
dynamicsData: [], dynamicsData: [],
evalOrderNo: this.$route.query.evalOrderNo evalOrderNo: this.$route.query.evalOrderNo,
} scene: this.$route.query.scene,
};
}, },
created() { created() {
this.getEvalOrderDetail() this.getEvalOrderDetail();
this.getEvalOrderPriceHistory() this.getEvalOrderPriceHistory();
}, },
methods: { methods: {
handleCancel() { handleCancel() {
this.$router.push("/evaluationManagement") this.$router.push("/evaluationManagement");
}, },
getEvalOrderDetail() { getEvalOrderDetail() {
getEvalOrderDetail({ getEvalOrderDetail({
evalOrderNo: this.evalOrderNo evalOrderNo: this.evalOrderNo,
}).then((res) => { }).then((res) => {
console.log("res", res) console.log("res", res);
this.detailInfo = res this.detailInfo = res;
this.loading = false this.loading = false;
}) });
}, },
getEvalOrderPriceHistory() { getEvalOrderPriceHistory() {
getEvalOrderPriceHistory({ getEvalOrderPriceHistory({
evalOrderNo: this.evalOrderNo evalOrderNo: this.evalOrderNo,
}).then((res) => { }).then((res) => {
console.log("res", res) console.log("res", res);
this.dynamicsData = res this.dynamicsData = res;
}) });
} },
} },
} };
...@@ -350,6 +350,52 @@ export default { ...@@ -350,6 +350,52 @@ export default {
}, },
}, },
{ {
title: "外观颜色",
key: "exteriorColor",
formatter: (row) => {
const exteriorColorMap = {
1: "黑色",
2: "白色",
3: "银色",
4: "灰色",
5: "红色",
6: "蓝色",
7: "绿色",
8: "棕色",
9: "金色",
10: "橙色",
11: "紫色",
12: "黄色",
13: "香槟色",
14: "其他",
};
return exteriorColorMap[row.exteriorColor];
},
},
{
title: "内饰颜色",
key: "interiorColor",
formatter: (row) => {
const interiorColorMap = {
1: "黑色",
2: "白色",
3: "银色",
4: "灰色",
5: "红色",
6: "蓝色",
7: "绿色",
8: "棕色",
9: "金色",
10: "橙色",
11: "紫色",
12: "黄色",
13: "香槟色",
14: "其他",
};
return interiorColorMap[row.interiorColor];
},
},
{
title: "门店", title: "门店",
key: "sellerMerchantName", key: "sellerMerchantName",
}, },
...@@ -506,26 +552,6 @@ export default { ...@@ -506,26 +552,6 @@ export default {
return "image"; return "image";
return "file"; return "file";
}, },
getOssImageUrl(url) {
if (!url)
return url;
// 已经带有 x-oss-process 参数时不重复拼接
if (url.includes("x-oss-process="))
return url;
const param = "x-oss-process=image/format,jpg/quality,q_100";
const sep = url.includes("?") ? "&" : "?";
return `${url}${sep}${param}`;
},
// imgList 类型(如 carImageUrls、carVideoUrls)预览使用的 URL 列表
getImgPreviewUrls(item) {
const urls = this.detailInfo && this.detailInfo[item.key];
if (!urls || !Array.isArray(urls))
return [];
// 视频不加图片处理参数
if (item.otherType === "video")
return urls;
return urls.map(url => this.getOssImageUrl(url));
},
getFileNameFromUrlForDisplay(url) { getFileNameFromUrlForDisplay(url) {
if (!url) if (!url)
return "未知文件"; return "未知文件";
......
<!-- 评估单详情 --> <!-- 评估单详情 -->
<template> <template>
<div class="evalOrderDetail" v-loading="loading"> <div v-loading="loading" class="evalOrderDetail">
<template v-if="detailInfo"> <template v-if="detailInfo">
<div class="layout"> <div class="layout">
<!-- 车辆信息 --> <!-- 车辆信息 -->
<vehicle-info :detailInfo="detailInfo"></vehicle-info> <vehicle-info :detail-info="detailInfo"></vehicle-info>
<!-- 总部定价师估价与意见 --> <!-- 总部定价师估价与意见 -->
<assess-info :detailInfo="detailInfo"></assess-info> <assess-info :detail-info="detailInfo"></assess-info>
<checkInfo :detail-info="detailInfo"></checkInfo>
<!-- 评估动态 --> <!-- 评估动态 -->
<dynamics :dynamicsData="dynamicsData"></dynamics> <dynamics :dynamics-data="dynamicsData"></dynamics>
</div> </div>
<div class="footer"> <div class="footer">
<el-button class="cancel-btn" @click="handleCancel">关闭</el-button> <el-button class="cancel-btn" @click="handleCancel">
关闭
</el-button>
</div> </div>
</template> </template>
</div> </div>
</template> </template>
<script> <script>
import { evaluateMixin } from "./components/evaluateMixin" import reportTrackPageMixin from "@/mixins/reportTrackPageMixin";
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin" import { evaluateMixin } from "./components/evaluateMixin";
export default { export default {
mixins: [evaluateMixin, reportTrackPageMixin], mixins: [evaluateMixin, reportTrackPageMixin],
data() { data() {
...@@ -28,17 +32,18 @@ export default { ...@@ -28,17 +32,18 @@ export default {
loading: false, loading: false,
trackBusinessParam: {}, trackBusinessParam: {},
track_event_code: "evaluate_management_detail", track_event_code: "evaluate_management_detail",
track_businessParam_key: "trackBusinessParam" track_businessParam_key: "trackBusinessParam",
} };
}, },
mounted() { mounted() {
this.loading = true this.loading = true;
this.trackBusinessParam = { evalOrderNo: this.evalOrderNo } this.trackBusinessParam = { evalOrderNo: this.evalOrderNo };
this.onPageShow() this.onPageShow();
}, },
methods: {} methods: {},
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.evalOrderDetail { .evalOrderDetail {
position: absolute; position: absolute;
......
<template> <template>
<div class="evaluate-wrapper" v-loading="loading"> <div v-loading="loading" class="evaluate-wrapper">
<template v-if="detailInfo"> <template v-if="detailInfo">
<div class="layout"> <div class="layout">
<!-- 车辆信息 --> <!-- 车辆信息 -->
<vehicle-info :detailInfo="detailInfo"></vehicle-info> <vehicle-info :detail-info="detailInfo"></vehicle-info>
<!-- 总部定价师估价与意见 --> <!-- 总部定价师估价与意见 -->
<assess ref="assessRef" :detailInfo="detailInfo"></assess> <assess v-if="scene === 'assess'"
ref="assessRef"
:detail-info="detailInfo">
</assess>
<!-- 总部定价师估价与意见 -->
<assess-info v-if="scene === 'checkPrice'" :detail-info="detailInfo"></assess-info>
<!-- 核价与意见 -->
<check v-if="scene === 'checkPrice'"
ref="checkPriceRef"
:detail-info="detailInfo">
</check>
<!-- 评估动态 --> <!-- 评估动态 -->
<dynamics :dynamicsData="dynamicsData"></dynamics> <dynamics :dynamics-data="dynamicsData"></dynamics>
</div> </div>
<div class="footer"> <div class="footer">
<el-button <el-button class="save-btn"
size="small" data-event-code="evaluate_management_assess_save"
:loading="btnLoding"
class="save-btn"
@click="handleSave"
:data-track=" :data-track="
JSON.stringify({ JSON.stringify({
evalOrderNo: this.evalOrderNo evalOrderNo,
}) })
" "
data-event-code="evaluate_management_assess_save" :loading="btnLoding"
> size="small"
@click="handleSave">
保存 保存
</el-button> </el-button>
<el-button <el-button class="reject-btn"
size="small" data-event-code="evaluate_management_reject_save"
class="reject-btn"
plain
@click="handleReject"
:data-track=" :data-track="
JSON.stringify({ JSON.stringify({
evalOrderNo: this.evalOrderNo evalOrderNo,
}) })
" "
data-event-code="evaluate_management_reject_save" plain
> size="small"
@click="handleReject">
驳回 驳回
</el-button> </el-button>
<el-button class="cancel-btn" size="small" @click="handleCancel" <el-button class="cancel-btn"
>关闭</el-button size="small"
> @click="handleCancel">
关闭
</el-button>
</div> </div>
</template> </template>
<reject-dialog <reject-dialog v-if="rejectVisible"
ref="rejectDialogRef" ref="rejectDialogRef"
v-if="rejectVisible" :params-obj="paramsObj"
:rejectVisible="rejectVisible" :reject-visible="rejectVisible"
:paramsObj="paramsObj"
@handleAddConfirm="handleAddConfirm"
@dialogClose="dialogClose" @dialogClose="dialogClose"
></reject-dialog> @handleAddConfirm="handleAddConfirm">
</reject-dialog>
</div> </div>
</template> </template>
<script> <script>
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin" import { checkPriceCar, evaluateCar } from "@/api/usedCarManagement";
import { evaluateMixin } from "./components/evaluateMixin" import reportTrackPageMixin from "@/mixins/reportTrackPageMixin";
import { evaluateCar } from "@/api/usedCarManagement" import { evaluateMixin } from "./components/evaluateMixin";
export default { export default {
mixins: [evaluateMixin, reportTrackPageMixin], mixins: [evaluateMixin, reportTrackPageMixin],
data() { data() {
...@@ -69,91 +77,109 @@ export default { ...@@ -69,91 +77,109 @@ export default {
paramsObj: {}, paramsObj: {},
trackBusinessParam: {}, trackBusinessParam: {},
track_event_code: "evaluate_management_assess", track_event_code: "evaluate_management_assess",
track_businessParam_key: "trackBusinessParam" track_businessParam_key: "trackBusinessParam",
} };
}, },
mounted() { mounted() {
this.loading = true this.loading = true;
this.trackBusinessParam = { evalOrderNo: this.evalOrderNo } this.trackBusinessParam = { evalOrderNo: this.evalOrderNo };
this.onPageShow() this.onPageShow();
}, },
methods: { methods: {
handleReject() { handleReject() {
this.rejectVisible = !this.rejectVisible this.rejectVisible = !this.rejectVisible;
}, },
dialogClose() { dialogClose() {
this.rejectVisible = !this.rejectVisible this.rejectVisible = !this.rejectVisible;
}, },
handleAddConfirm() { handleAddConfirm() {
let params = { const params = {
vin: this.detailInfo.vin, vin: this.detailInfo.vin,
opType: 30, //10评估师报价,20客户报价,30评估师驳回 opType: this.scene === "checkPrice" ? 50 : 30, // 10评估师报价,20客户报价,30评估师驳回 ,40核价,50核价驳回
evalOrderNo: this.evalOrderNo, evalOrderNo: this.evalOrderNo,
...this.$refs.rejectDialogRef.infoForm ...this.$refs.rejectDialogRef.infoForm,
} };
this.submitData(params, 2) this.submitData(params, 2);
}, },
async handleSave() { async handleSave() {
let isValid = await this.$refs.assessRef.confirm() if (this.scene === "checkPrice") {
if (isValid) { const isValid = await this.$refs.checkPriceRef?.confirm?.();
let params = { if (!isValid) {
return;
}
const params = {
vin: this.detailInfo.vin, vin: this.detailInfo.vin,
opType: 10, //10评估师报价,20客户报价,30评估师驳回 opType: 40, // 10评估师报价,20客户报价,30评估师驳回 ,40核价,50核价驳回
evalOrderNo: this.evalOrderNo, evalOrderNo: this.evalOrderNo,
...this.$refs.assessRef.assessForm ...this.$refs.checkPriceRef?.assessForm,
};
this.submitData(params, 1);
return;
} }
this.submitData(params, 1)
const isValid = await this.$refs.assessRef?.confirm?.();
if (!isValid) {
return;
} }
const params = {
vin: this.detailInfo.vin,
opType: 10, // 10评估师报价,20客户报价,30评估师驳回
evalOrderNo: this.evalOrderNo,
...this.$refs.assessRef?.assessForm,
};
this.submitData(params, 1);
}, },
submitData(params, isFlag) { submitData(params, isFlag) {
this.$confirm("请确认是否要执行当前操作?", "提示", { this.$confirm("请确认是否要执行当前操作?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning",
}).then(() => { }).then(() => {
if (isFlag == 1) { if (isFlag === 1) {
this.btnLoding = true this.btnLoding = true;
} else { } else {
this.$refs.rejectDialogRef && this.$refs.rejectDialogRef
this.$refs.rejectDialogRef?.handleLoading() && this.$refs.rejectDialogRef?.handleLoading();
} }
evaluateCar(params) const api = this.scene === "checkPrice" ? checkPriceCar : evaluateCar;
api(params)
.then((res) => { .then((res) => {
if (res.data.code == 0) { if (res.data.code === 0) {
this.$message.success("操作成功") this.$message.success("操作成功");
this.handleCancel() this.handleCancel();
this.$refs.rejectDialogRef && this.$refs.rejectDialogRef
this.$refs.rejectDialogRef?.handleLoading() && this.$refs.rejectDialogRef?.handleLoading();
this.rejectVisible = false this.rejectVisible = false;
this.btnLoding = false this.btnLoding = false;
} else if (res.data.code == 1000) { } else if (res.data.code === 1000) {
this.refreshPage() this.refreshPage();
this.$message.error(res.data.msg) this.$message.error(res.data.msg);
this.$refs.rejectDialogRef && this.$refs.rejectDialogRef
this.$refs.rejectDialogRef?.handleLoading() && this.$refs.rejectDialogRef?.handleLoading();
this.btnLoding = false this.btnLoding = false;
} else { } else {
this.$message.error(res.data.msg) this.$message.error(res.data.msg);
this.$refs.rejectDialogRef && this.$refs.rejectDialogRef
this.$refs.rejectDialogRef?.handleLoading() && this.$refs.rejectDialogRef?.handleLoading();
this.btnLoding = false this.btnLoding = false;
} }
}) })
.catch((err) => { .catch(() => {
this.btnLoding = false this.btnLoding = false;
}) });
}) });
}, },
refreshPage() { refreshPage() {
// 方式一:重新加载当前路由 // 方式一:重新加载当前路由
this.$router.go(0) this.$router.go(0);
this.getEvalOrderDetail() this.getEvalOrderDetail();
this.getEvalOrderPriceHistory() this.getEvalOrderPriceHistory();
} },
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.evaluate-wrapper { .evaluate-wrapper {
position: absolute; position: absolute;
......
<!-- 财务台账 -->
<template>
<d2-container class="container">
<template #header>
<div class="header">
<d2-search ref="showSearch"
class="show-search"
:form-data="showFormData"
label-width="130px"
:search-form="searchForm">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId"
handle
size="small"
type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
</template>
<div class="d2-container-content">
<d2-table-header>
<span data-event-code="financia_ledger_list_export">
<auth-button category="Button" :show-btn-ids="['9200602']" />
</span>
</d2-table-header>
<d2-table ref="FinancialLedgerTable"
:before-search-fn="beforeSearchFn"
:get-list-api="getListApi"
:search-form="{
t: searchFormSearch,
}"
:table-params="tableParams">
<template #carPhotoSlot="scope">
<div class="img-block">
<div class="mask">
<div class="el-icon-view"></div>
</div>
<el-image class="img"
fit="contain"
:preview-src-list="[scope.scope.carPhoto || noDataUrl]"
:src="scope.scope.carPhoto || noDataUrl">
</el-image>
</div>
</template>
<template #carStatusHtml="scope">
<div>
<span class="circle"
:style="{
background: CAR_STATUS_COLOR[scope.scope.carStatus],
}">
</span>
{{ CAR_STATUS[scope.scope.carStatus] || "-" }}
</div>
</template>
<template #sourceHtml="scope">
<div>
{{ SOURCE_MAP[scope.scope.source] || "-" }}
</div>
</template>
</d2-table>
</div>
</d2-container>
</template>
<script>
import { getFinancialLedgerPage } from "@api/usedCarManagement";
import dayjs from "dayjs";
import { mapActions, mapState } from "vuex";
import { deepClone } from "@/common/util";
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin";
import {
CAR_STATUS,
CAR_STATUS_COLOR,
CAR_STATUS_OPTIONS,
HAS_ACCIDENT,
HAS_ACCIDENT_OPTIONS,
OWNER_TYPE,
OWNER_TYPE_OPTIONS,
SOURCE_MAP,
SOURCE_OPTIONS,
USAGE_TYPE,
USAGE_TYPE_OPTIONS,
} from "../vehicleManagement/contant";
export default {
name: "FinancialLedger",
mixins: [reportTrackPageMixin],
data() {
return {
CAR_STATUS,
CAR_STATUS_COLOR,
SOURCE_MAP,
noDataUrl: require("@/assets/noData.png"),
statusEnum: {},
searchForm: {
licensePlate: "",
vin: "",
partBName: "",
storageTime: "",
},
showFormData: [
{
label: "车牌号",
name: "licensePlate",
type: "input",
isClear: true,
maxlength: 20,
},
{
label: "车架号",
name: "vin",
type: "input",
isClear: true,
maxlength: 20,
},
{
label: "卖方单位/个人",
name: "partBName",
type: "input",
isClear: true,
maxlength: 20,
},
{
label: "入库时间",
name: "storageTime",
type: "datePicker",
dateType: "datetimerange",
isClear: true,
pickerOptions: "todayEndPickerOptions",
defaultTime: ["00:00:00", "23:59:59"],
},
],
// 基本数据
baseData: {
usageTypeOpts: deepClone(USAGE_TYPE_OPTIONS), // 使用性质
ownerTypeOpts: deepClone(OWNER_TYPE_OPTIONS), // 所有人性质
hasAccidentOpts: deepClone(HAS_ACCIDENT_OPTIONS), // 是否事故
carStatusOpts: deepClone(CAR_STATUS_OPTIONS), // 车辆状态
sourceOpts: deepClone(SOURCE_OPTIONS), // 车辆来源啊
},
tableSearchForm: {},
getListApi: getFinancialLedgerPage,
searchFormSearch: {},
tableParams: {
btnId: new Date().getTime() + Number.parseInt(Math.random() * 1000),
listName: "records",
tableColumns: [
{
label: "卖方单位/个人",
prop: "partBName",
minWidth: 120,
},
{
label: "卖方单位地址/个人地址",
prop: "licenseAddress",
minWidth: 120,
},
{
label: "卖方单位代码/车主身份证号码",
prop: "partBIdentityCode",
minWidth: 120,
},
{
label: "电话",
prop: "partBContactMobile",
minWidth: 120,
},
{
label: "车牌号",
prop: "licensePlate",
minWidth: 120,
},
{
label: "车架号",
prop: "vin",
minWidth: 120,
},
{
label: "登记证号",
prop: "registrationNo",
minWidth: 120,
},
{
label: "厂牌(品牌)型号",
prop: "brandModel",
minWidth: 120,
},
{
label: "车辆类型",
prop: "vehicleType",
minWidth: 120,
},
{
label: "排量",
prop: "vehicleType",
minWidth: 120,
},
{
label: "收车价",
prop: "evalPrice",
minWidth: 120,
},
],
},
track_event_code: "vehicle_management",
};
},
computed: {
...mapState({
dowloadList: state => state.d2admin.user.dowloadList,
}),
},
mounted() {
this.onPageShow();
},
methods: {
...mapActions({
get: "d2admin/base/get",
close: "d2admin/page/close",
}),
...mapActions("d2admin/user", ["actionSetDownloadList"]),
handleReset() {
this.searchForm = this.$options.data.call(this).searchForm;
this.$refs.FinancialLedgerTable.refreshTable(true, true);
},
beforeSearchFn() {
return new Promise((resolve) => {
this.searchFormSearch = this.getParams();
resolve();
});
},
getParams() {
const params = deepClone(this.searchForm);
if (params.storageTime) {
const [srart, end] = params.storageTime;
params.storageStartTime = dayjs(srart).format("YYYY-MM-DD HH:mm:ss");
params.storageEndTime = dayjs(end).format("YYYY-MM-DD HH:mm:ss");
}
delete params.storageTime;
return params;
},
handleDetail(row) {
this.$router.push({
name: "vehicleDetail",
query: {
id: row.id,
},
});
},
handleFinancialLedgerExport() {
const params = {
method: "/financialLedger/exportAsync",
server_provider_type: "gsc",
server_provider_name: "gsc-vcp-web-facade",
...this.getParams(),
};
const list = [
...this.dowloadList,
{
name: "财务台账",
exportParam: JSON.stringify(params),
status: "waiting",
timeid: new Date().getTime(),
},
];
this.actionSetDownloadList({ list, type: "dowloadList" });
},
},
};
</script>
<style scoped lang="scss">
.container {
margin-top: 53px;
}
.merchant-num {
color: #185efe;
}
.circle {
display: inline-block;
border-radius: 50%;
width: 6px;
height: 6px;
margin-right: 8px;
vertical-align: middle;
}
.merchant-wrap {
max-height: 400px;
overflow-y: auto;
}
.img-block {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
// ::v-deep .el-image__preview {
// cursor: zoom-in;
// }
.img {
width: 100%;
height: 100%;
}
.mask {
background: #00000066;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
opacity: 0;
transition: all 0.1s;
z-index: 2;
pointer-events: none;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 16px;
}
&:hover {
.mask {
opacity: 1;
}
}
}
</style>
...@@ -3,40 +3,43 @@ const CAR_STATUS = { ...@@ -3,40 +3,43 @@ const CAR_STATUS = {
2: "待售", 2: "待售",
3: "已预定", 3: "已预定",
5: "待拍卖", 5: "待拍卖",
8: "预展中",
6: "拍卖中", 6: "拍卖中",
1: "已售出", 1: "已售出",
4: "已交付", 4: "已交付",
7: "已退库" 7: "已退库",
} };
/** /**
* key : value : level * key : value : level
* 0库存中1→ * 0库存中1→
* 2待售2→ * 2待售2→
* 3已预定3→ * 3已预定3→
* 5待拍卖4→ * 5待拍卖4→
* 6拍卖中5→ * 8预展中5
* 1已售出6→ * 6拍卖中6→
* 4已交付7→ * 1已售出7→
* 7已退库8 * 4已交付8→
* 7已退库9
*/ */
const CAR_STATUS_LEVEL = { const CAR_STATUS_LEVEL = {
0: 1, 0: 1,
1: 6, 1: 6,
2: 2, 2: 2,
3: 3, 3: 3,
4: 7, 4: 8,
5: 4, 5: 4,
6: 5, 6: 6,
7: 8 7: 9,
} 8: 5,
const CAR_STATUS_ORDER = [0, 2, 3, 5, 6, 1, 4, 7] };
const CAR_STATUS_ORDER = [0, 2, 3, 5, 8, 6, 1, 4, 7];
const CAR_STATUS_OPTIONS = CAR_STATUS_ORDER.map((key) => { const CAR_STATUS_OPTIONS = CAR_STATUS_ORDER.map((key) => {
return { return {
label: CAR_STATUS[key], label: CAR_STATUS[key],
value: +key, value: +key,
level: CAR_STATUS_LEVEL[key] level: CAR_STATUS_LEVEL[key],
} };
}) });
const CAR_STATUS_COLOR = { const CAR_STATUS_COLOR = {
0: "#fdb757", 0: "#fdb757",
1: "#8c8c8c", 1: "#8c8c8c",
...@@ -45,51 +48,52 @@ const CAR_STATUS_COLOR = { ...@@ -45,51 +48,52 @@ const CAR_STATUS_COLOR = {
4: "#2cca74", 4: "#2cca74",
5: "#eb4e4e", 5: "#eb4e4e",
6: "#fdb757", 6: "#fdb757",
7: "#8c8c8c" 7: "#8c8c8c",
} 8: "#eb4e4e",
};
const USAGE_TYPE = { const USAGE_TYPE = {
1: "非营运", 1: "非营运",
2: "营运", 2: "营运",
3: "营转非" 3: "营转非",
} };
const USAGE_TYPE_OPTIONS = Object.keys(USAGE_TYPE).map((key) => { const USAGE_TYPE_OPTIONS = Object.keys(USAGE_TYPE).map((key) => {
return { return {
label: USAGE_TYPE[key], label: USAGE_TYPE[key],
value: key value: key,
} };
}) });
const OWNER_TYPE = { const OWNER_TYPE = {
1: "个人", 1: "个人",
2: "单位" 2: "单位",
} };
const OWNER_TYPE_OPTIONS = Object.keys(OWNER_TYPE).map((key) => { const OWNER_TYPE_OPTIONS = Object.keys(OWNER_TYPE).map((key) => {
return { return {
label: OWNER_TYPE[key], label: OWNER_TYPE[key],
value: key value: key,
} };
}) });
const HAS_ACCIDENT = { const HAS_ACCIDENT = {
0: "否", 0: "否",
1: "是" 1: "是",
} };
const HAS_ACCIDENT_OPTIONS = Object.keys(HAS_ACCIDENT).map((key) => { const HAS_ACCIDENT_OPTIONS = Object.keys(HAS_ACCIDENT).map((key) => {
return { return {
label: HAS_ACCIDENT[key], label: HAS_ACCIDENT[key],
value: key value: key,
} };
}) });
// 车辆来源 // 车辆来源
const SOURCE_MAP = { const SOURCE_MAP = {
1: "系统生成", 1: "系统生成",
2: "人工导入" 2: "人工导入",
} };
const SOURCE_OPTIONS = Object.keys(SOURCE_MAP).map((key) => { const SOURCE_OPTIONS = Object.keys(SOURCE_MAP).map((key) => {
return { return {
label: SOURCE_MAP[key], label: SOURCE_MAP[key],
value: key value: key,
} };
}) });
module.exports = { module.exports = {
CAR_STATUS, CAR_STATUS,
CAR_STATUS_LEVEL, CAR_STATUS_LEVEL,
...@@ -102,5 +106,5 @@ module.exports = { ...@@ -102,5 +106,5 @@ module.exports = {
HAS_ACCIDENT, HAS_ACCIDENT,
HAS_ACCIDENT_OPTIONS, HAS_ACCIDENT_OPTIONS,
SOURCE_OPTIONS, SOURCE_OPTIONS,
SOURCE_MAP SOURCE_MAP,
} };
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!