Commit 1dba51a9 by wangzhihui

评估管理

1 parent 885e8fff
<template> <template>
<el-dialog id="baseDialog" <el-dialog
top="15vh" id="baseDialog"
:close-on-click-modal="false" top="15vh"
:close-on-press-escape="true" :close-on-click-modal="false"
:title="dialogConfig.title" :close-on-press-escape="true"
:width="dialogConfig.width" :title="dialogConfig.title"
:visible.sync="visible" :width="dialogConfig.width"
:show-close="config.showClose" :visible.sync="visible"
class="noborder" :show-close="config.showClose"
:append-to-body="config.appendToBody"> class="noborder"
:append-to-body="config.appendToBody"
>
<slot /> <slot />
<div slot="footer" <div slot="footer" v-if="config.isShowFooter">
v-if="config.isShowFooter"> <el-button
<el-button type="primary" type="primary"
@click="confirmBtn" @click="confirmBtn"
:loading="$store.state.d2admin.loading.value || btnLoding"> :loading="$store.state.d2admin.loading.value || btnLoding"
>
{{ config.confirm_name }} {{ config.confirm_name }}
</el-button> </el-button>
<el-button v-preventReClick <el-button v-preventReClick @click="visible = false">
@click="visible = false">
{{ config.cancel_name }} {{ config.cancel_name }}
</el-button> </el-button>
</div> </div>
...@@ -26,7 +28,7 @@ ...@@ -26,7 +28,7 @@
</template> </template>
<script> <script>
export default { export default {
name: 'BaseDialog', name: "BaseDialog",
directives: { directives: {
// 函数节流 监控输入框 提高性能 // 函数节流 监控输入框 提高性能
throttle: { throttle: {
...@@ -34,7 +36,7 @@ export default { ...@@ -34,7 +36,7 @@ export default {
inserted: function (el, obj) { inserted: function (el, obj) {
let timerId = null let timerId = null
let flag = true let flag = true
el.addEventListener('click', function () { el.addEventListener("click", function () {
if (!flag) return if (!flag) return
flag = false flag = false
timerId && clearTimeout(timerId) timerId && clearTimeout(timerId)
...@@ -53,8 +55,8 @@ export default { ...@@ -53,8 +55,8 @@ export default {
type: Object, type: Object,
default: function () { default: function () {
return { return {
title: '提示', title: "提示",
width: '480px' width: "480px"
} }
} }
}, },
...@@ -66,8 +68,8 @@ export default { ...@@ -66,8 +68,8 @@ export default {
showClose: true, showClose: true,
appendToBody: false, // 是否将自身插入至 body 元素,有嵌套的弹窗时一定要设置 appendToBody: false, // 是否将自身插入至 body 元素,有嵌套的弹窗时一定要设置
isShowFooter: true, isShowFooter: true,
cancel_name: '取 消', cancel_name: "取 消",
confirm_name: '确 定' confirm_name: "确 定"
} }
} }
}, },
...@@ -120,7 +122,7 @@ export default { ...@@ -120,7 +122,7 @@ export default {
return this.isShow return this.isShow
}, },
set(val) { set(val) {
this.$emit('update:isShow', false) this.$emit("update:isShow", false)
} }
} }
}, },
...@@ -128,13 +130,13 @@ export default { ...@@ -128,13 +130,13 @@ export default {
methods: { methods: {
confirmBtn() { confirmBtn() {
// 触发保存 // 触发保存
this.$emit('handleClick') this.$emit("handleClick")
} }
}, },
created() { created() {
// console.log('baseDialog') // console.log('baseDialog')
}, },
mounted() { } mounted() {}
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
...@@ -179,4 +181,3 @@ export default { ...@@ -179,4 +181,3 @@ export default {
} }
} }
</style> </style>
...@@ -35,13 +35,27 @@ export const routerName = { ...@@ -35,13 +35,27 @@ export const routerName = {
authId: "9200201", authId: "9200201",
parentId: "92002", parentId: "92002",
label: "详情", label: "详情",
handle: "handleDetail" handle: "handleDetail",
addRoutePath: [
{
authId: "9200204",
name: "详情",
parentId: "92002"
}
]
}, },
{ {
authId: "9200202", authId: "9200202",
parentId: "92002", parentId: "92002",
label: "车辆评估", label: "车辆评估",
handle: "handleAssess" handle: "handleAssess",
addRoutePath: [
{
authId: "9200205",
name: "车辆评估",
parentId: "92002"
}
]
}, },
{ {
authId: "9200203", authId: "9200203",
...@@ -54,6 +68,32 @@ export const routerName = { ...@@ -54,6 +68,32 @@ export const routerName = {
], ],
component: _import("usedCarManagement/evaluationManagement/index") component: _import("usedCarManagement/evaluationManagement/index")
}, },
9200204: {
path: "/evalOrderDetail",
name: "evalOrderDetail",
meta: {
title: "评估单详情",
authId: "9200204",
parentId: "92002",
cache: false,
sideHidden: false,
activePath: "/evaluationManagement"
},
component: _import("usedCarManagement/evaluationManagement/evalOrderDetail")
},
9200205: {
path: "/evaluate",
name: "evaluate",
meta: {
title: "车辆评估",
authId: "9200205",
parentId: "92002",
cache: false,
sideHidden: false,
activePath: "/evaluationManagement"
},
component: _import("usedCarManagement/evaluationManagement/evaluate")
},
92003: { 92003: {
path: "/operateManagement", path: "/operateManagement",
name: "operateManagement", name: "operateManagement",
......
<!--总部定价师估价与意见 -->
<template>
<div class="edit-assess">
<div class="title">总部定价师估价与意见</div>
<div class="edit-form-wrapper">
<glsx-combi-form
class="edit-form-container"
ref="editFormRef"
label-width="150px"
:form-ref="editChildRef"
:form-obj="assessForm"
:form-data="assessFormData"
:form-rules="assessRules"
>
</glsx-combi-form>
</div>
</div>
</template>
<script>
export default {
data() {
return {
editChildRef: "editChildRef",
assessForm: {
evalPrice: "",
evalOpinion: ""
},
assessFormData: [
{
label: "评估价",
name: "evalPrice",
type: "input",
isClear: true,
maxlength: 11,
width: "544px"
},
{
label: "评估意见",
name: "evalOpinion",
type: "input",
maxlength: 200,
inputType: "textarea",
showLimit: true,
rows: 4,
width: "570px"
}
],
assessRules: {
evalPrice: [
{
required: true,
message: "请输入",
trigger: "blur"
},
{
pattern: /^\d+(\.\d{1,2})?$/,
message: "请输入有效的数字格式",
trigger: "blur"
},
{
validator: (rule, value, callback) => {
if (!value) {
callback()
return
}
const numValue = parseFloat(value)
if (isNaN(numValue)) {
callback(new Error("请输入有效数字"))
} else if (numValue <= 0) {
callback(new Error("评估价必须大于0"))
} else if (numValue > 99999999.99) {
callback(new Error("评估价必须小于99999999.99"))
} else {
callback()
}
},
trigger: "blur"
}
],
evalOpinion: [
{
required: true,
message: "请输入",
trigger: "blur"
}
]
}
}
},
methods: {
async confirm() {
const isValid = await this.$refs.editFormRef.$refs[
this.editChildRef
].validate()
return isValid
}
}
}
</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;
}
}
</style>
<template>
<div class="info-wrapper">
<div class="item" v-for="(item, index) in configData" :key="index">
<div class="title">{{ item.title }}</div>
<div class="detail-content">
<div class="form_div" v-if="item.infoData && item.infoData.length">
<el-form class="edit-sub-block" label-width="150px" :inline="true">
<el-row :gutter="20">
<template v-for="(item, key) in item.infoData">
<el-col :span="item.col ? item.col : 12" :key="key">
<el-form-item :label="item.title + ':'">
<div
v-if="item.className"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
<template v-if="item.addHtml == 'photo'">
<div
class="photo-box"
v-if="
detailInfo[item.key] && detailInfo[item.key].length
"
>
<glsx-preview
:key="preIndex"
:image-url-arr="
detailInfo[item.key] ? detailInfo[item.key] : []
"
:picOptions="{ ...picOptions, type: item.type }"
limit="1"
></glsx-preview>
</div>
<template v-else> - </template>
</template>
<template v-else>
{{
item.formatter
? item.formatter(detailInfo) || "-"
: detailInfo[item.key]
? detailInfo[item.key]
: "-"
}}
</template>
</el-form-item></el-col
>
</template>
</el-row>
</el-form>
</div>
</div>
</div>
</div>
</template>
<script>
import { deepClone } from "@/common/util"
export default {
data() {
return {
detailInfo: {
evalPrice: "2000",
evalOpinion:
"分享时机,在不同的时机分析用户是否有分享的意愿,提供给他们合适的分享内容,能让分享的效果更好。尤其是刚上线的产品,很难通过产品的内部体系来实现快速的用户增长,所以会更加依赖于分享来达到广泛的传播,获取目标用户。所以监听用户的截图操作,提示用户进行分享,既缩短了以前分享截图的操作路径,避免了在之前长路径中的行为流失(比如截图完成后忘记分享或觉得麻烦放弃分享等等),也让用户觉得更加贴心。"
},
configData: [
{
title: "总部定价师估价与意见",
infoData: [
{
title: "评估价",
key: "evalPrice",
col: 24,
formatter: (row) => {
return 10000 + "元"
}
},
{
title: "评估意见",
key: "evalOpinion",
col: 24
}
]
}
]
}
}
}
</script>
<style scoped lang="scss">
@import "./detail.scss";
</style>
.info-wrapper {
background-color: #fff;
margin: 0 20px;
.item {
margin-bottom: 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;
}
.form_div {
color: #333333;
padding: 20px;
font-size: 14px;
.edit-sub-block {
.el-form-item {
width: 100%;
margin-bottom: 0px;
}
::v-deep .el-form-item__label {
color: #666666;
font-size: 14px;
}
.itemDiv {
display: flex;
.halfItem {
width: 50%;
}
}
.detail-txt {
display: inline-block;
width: 200px;
vertical-align: bottom;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
::v-deep .el-form-item__content {
max-width: calc(100% - 150px);
word-break: break-all;
}
}
.edit-sub-block-two {
.el-form-item {
margin-bottom: 0px;
}
}
.dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 8px;
}
.photo-box {
display: flex;
align-items: center;
::v-deep .photo-activity {
width: 100%;
height: 100%;
object-fit: contain;
position: static !important;
}
::v-deep .pic-box {
margin-right: 16px;
.video-poster {
width: 90px;
height: 90px;
}
}
}
}
}
}
<!-- 评估动态 -->
<template>
<div class="dynamics-wrapper">
<div class="title">评估动态</div>
<div class="timeline-box">
<el-timeline>
<el-timeline-item
:color="index == 0 ? '#2a58ad' : ''"
v-for="(item, index) in dynamicsData"
:key="index"
>
<div class="time-box">
<div class="createdBy">
{{ item.opType == 20 ? "驻店人员" : "总部定价师" }}:<span>{{
item.createdBy
}}</span>
</div>
<!-- 评估师驳回 -->
<template v-if="item.opType == 30">
<div class="reject-box">
<span> 驳回原因:</span>
<div class="reason">{{ item.rejectReason }}</div>
</div>
<div class="reject-box">
<span>驳回意见:</span>
<div class="reason">{{ item.rejectReason }}</div>
</div>
</template>
<template v-else-if="item.opType == 10">
<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 == 20">
<div class="reject-box">
<span>意见反馈:</span>
<div class="reason">{{ item.customerTargetPriceFeedback }}</div>
</div>
</template>
</div>
</el-timeline-item>
</el-timeline>
</div>
</div>
</template>
<script>
export default {
data() {
return {
dynamicsData: [
{
createdBy: "李光星",
createTime: "2021-05-07 15:05:05",
rejectReason:
"想让我评估三次必需驳回,这是一段驳回意见,这是一段驳回意见。",
evalOpinion:
"分享时机,在不同的时机分析用户是否有分享的意愿,提供给他们合适的分享内容,能让分享的效果更好。尤其是刚上线的产品,很难通过产品的内部体系来实现快速的用户增长,所以会更加依赖于分享来达到广泛的传播,获取目标用户。所以监听用户的截图操作,提示用户进行分享,既缩短了以前分享截图的操作路径,避免了在之前长路径中的行为流失(比如截图完成后忘记分享或觉得麻烦放弃分享等等),也让用户觉得更加贴心。--200个字显示样式",
customerTargetPriceFeedback: "客户说第一次评估价太低",
customerTargetPrice: 100,
evalPrice: 200,
opType: 10 //10评估师报价,20客户报价,30评估师驳回
},
{
createdBy: "李光星",
createTime: "2021-05-07 15:05:05",
rejectReason:
"想让我评估三次必需驳回,这是一段驳回意见,这是一段驳回意见。",
evalOpinion:
"分享时机,在不同的时机分析用户是否有分享的意愿,提供给他们合适的分享内容,能让分享的效果更好。尤其是刚上线的产品,很难通过产品的内部体系来实现快速的用户增长,所以会更加依赖于分享来达到广泛的传播,获取目标用户。所以监听用户的截图操作,提示用户进行分享,既缩短了以前分享截图的操作路径,避免了在之前长路径中的行为流失(比如截图完成后忘记分享或觉得麻烦放弃分享等等),也让用户觉得更加贴心。--200个字显示样式",
customerTargetPriceFeedback: "客户说第一次评估价太低",
customerTargetPrice: 100,
evalPrice: 200,
opType: 20 //10评估师报价,20客户报价,30评估师驳回
},
{
createdBy: "李光星",
createTime: "2021-05-07 15:05:05",
rejectReason:
"想让我评估三次必需驳回,这是一段驳回意见,这是一段驳回意见。",
evalOpinion:
"分享时机,在不同的时机分析用户是否有分享的意愿,提供给他们合适的分享内容,能让分享的效果更好。尤其是刚上线的产品,很难通过产品的内部体系来实现快速的用户增长,所以会更加依赖于分享来达到广泛的传播,获取目标用户。所以监听用户的截图操作,提示用户进行分享,既缩短了以前分享截图的操作路径,避免了在之前长路径中的行为流失(比如截图完成后忘记分享或觉得麻烦放弃分享等等),也让用户觉得更加贴心。--200个字显示样式",
customerTargetPriceFeedback: "客户说第一次评估价太低",
customerTargetPrice: 100,
evalPrice: 200,
opType: 30 //10评估师报价,20客户报价,30评估师驳回
}
]
}
}
}
</script>
<style lang="scss" scoped>
.dynamics-wrapper {
background: #fff;
margin: 0 20px;
.title {
color: #333333;
font-size: 16px;
padding: 13.5px 20px;
line-height: 23px;
border-bottom: 1px solid #e5e5e5;
}
.timeline-box {
padding: 18px 20px;
.time-box {
.createdBy {
margin-bottom: 4px;
color: #666666;
font-size: 14px;
font-weight: 400;
line-height: 20px;
span {
color: #333333;
font-size: 14px;
font-weight: 400;
}
}
.reject-box {
color: #999999;
font-size: 12px;
font-weight: 400;
margin-bottom: 4px;
display: flex;
align-items: flex-start;
line-height: 16px;
span {
white-space: nowrap;
}
.reason {
color: #333333;
font-weight: 400;
}
}
}
::v-deep .el-timeline-item {
padding-bottom: 12px !important;
}
}
}
</style>
<!-- 驳回 -->
<template>
<baseDialog
:dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm"
>
<div class="reject-dialog">
<glsx-combi-form
class="edit-form-container"
ref="formRef"
label-width="120px"
default-width="400px"
:form-ref="rejectRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules"
></glsx-combi-form>
</div>
</baseDialog>
</template>
<script>
import { reject } from "@api/shelfManage.js"
export default {
name: "RejectDialog",
data() {
return {
infoForm: {
remark: ""
},
dialogConfig: {
title: "驳回",
width: "560px"
},
rejectRef: "rejectRef",
formRules: {
reason: [
{ required: true, message: "请输入驳回原因", trigger: "blur" }
],
remark: [{ required: true, message: "请输入驳回意见", trigger: "blur" }]
},
editFormData: [
{
label: "驳回原因",
name: "reason",
type: "input",
maxlength: 50
},
{
label: "驳回意见",
name: "remark",
type: "input",
maxlength: 200,
inputType: "textarea",
showLimit: true,
rows: 4
}
],
baseData: {}
}
},
props: {
rejectVisible: {
type: Boolean,
default: false
},
paramsObj: {
type: Object,
default: {}
}
},
computed: {
visible: {
get() {
return this.rejectVisible
},
set(newVal) {
console.log(newVal, "999")
this.$emit("dialogClose", { flag: newVal, attrName: "rejectVisible" })
}
}
},
mounted() {
console.log("paramsObj", this.paramsObj)
},
methods: {
handleAddConfirm() {
this.$refs.formRef.$refs[this.rejectRef].validate((valid) => {
if (valid) {
var params = {}
params.rejectedReason = this.infoForm.remark
params.id = this.paramsObj.id
reject(params).then((res) => {
this.notice.okTips("操作成功")
this.visible = true
thi.$router.go(-1)
})
}
})
},
handleClose() {
console.log("handleClose")
// this.visible = false
}
}
}
</script>
<style lang="scss" scoped>
::v-deep .el-dialog__body {
padding: 32px 20px !important;
}
.reject-dialog {
::v-deep .el-form-item--small.el-form-item {
margin: 0 0 20px !important;
}
.el-textarea .el-input__count {
right: 90px;
bottom: -10px;
font-size: 12px;
color: #999999;
}
.tips {
color: #999999;
}
}
</style>
<template>
<div class="info-wrapper">
<div class="item" v-for="(item, index) in configData" :key="index">
<div class="title">{{ item.title }}</div>
<div class="detail-content">
<div class="form_div" v-if="item.infoData && item.infoData.length">
<el-form class="edit-sub-block" label-width="150px" :inline="true">
<el-row :gutter="20">
<template v-for="(item, key) in item.infoData">
<el-col :span="item.col ? item.col : 12" :key="key">
<el-form-item :label="item.title + ':'">
<div
v-if="item.className"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
<template v-if="item.addHtml == 'photo'">
<div
class="photo-box"
v-if="
detailInfo[item.key] && detailInfo[item.key].length
"
>
<glsx-preview
:key="preIndex"
:image-url-arr="
detailInfo[item.key] ? detailInfo[item.key] : []
"
:picOptions="{ ...picOptions, type: item.type }"
limit="1"
></glsx-preview>
</div>
<template v-else> - </template>
</template>
<template v-else>
{{
item.formatter
? item.formatter(detailInfo) || "-"
: detailInfo[item.key]
? detailInfo[item.key]
: "-"
}}
</template>
</el-form-item></el-col
>
</template>
</el-row>
</el-form>
</div>
</div>
</div>
</div>
</template>
<script>
import {
evaluationStatusOpt,
evaluationStatusOptMap
} from "@/common/constants.js"
import preview from "../../components/preview"
import { deepClone } from "@/common/util"
export default {
components: {
glsxPreview: preview
},
data() {
return {
picOptions: {
width: "90px",
height: "90px",
isClose: false
},
detailInfo: {
carImageUrls: [
"https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant-webp/login-logo.png?v=1.0.4",
"https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/integral/property.png",
"https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant-webp/login-logo.png?v=1.0.4"
],
documentUrls: [
"https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant-webp/login-logo.png?v=1.0.4",
"https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant-webp/login-logo.png?v=1.0.4"
],
carVideoUrls: [
"https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/mp4/1758523590091_3990/6f46128f4cc65522e2afe05fc7453425.mp4",
"https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant-webp/login-logo.png?v=1.0.4"
],
otherImageUrls: [
"https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant-webp/login-logo.png?v=1.0.4",
"https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant-webp/login-logo.png?v=1.0.4"
],
carImageUrl:
"https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant-webp/login-logo.png?v=1.0.4",
licensePlate: "京A12345",
carTypeName: " Audi A4 2015款 2.0T 16V 4WD",
registrationCityName: "深圳",
carPrice: "5000",
carAge: "5",
carMileage: "10000",
carColor: "黑色",
evalOrderNo: "12345678901234567",
vin: "12345678901234567",
registrationDate: "2020-01-01",
carRegisterTime: "2020-01-01",
usageType: 1,
ownerType: 2,
vehicleCategory: 2,
sellerMerchantName: "武汉百乘汽车销售有限公司91 44217622",
sellerName: "王五",
conversionName: "张三",
buyNewCar: 1,
hasAccident: 0,
status: 40,
previousOwnerName: "张三",
previousOwnerPhone: "18925261040",
evalOrderTime: "2020-01-01",
evalOperatorName: "张三",
overallRating: "",
conditionDescription:
"分享时机,在不同的时机分析用户是否有分享的意愿,提供给他们合适的分享内容,能让分享的效果更好。尤其是刚上线的产品,很难通过产品的内部体系来实现快速的用户增长,所以会更加依赖于分享来达到广泛的传播,获取目标用户。所以监听用户的截图操作,提示用户进行分享,既缩短了以前分享截图的操作路径,避免了在之前长路径中的行为流失(比如截图完成后忘记分享或觉得麻烦放弃分享等等),也让用户觉得更加贴心。"
},
configData: [
{
title: "车辆信息",
infoData: [
{
title: "车牌号",
key: "licensePlate"
},
{
title: "车架号",
key: "vin"
},
{
title: "车型",
key: "carTypeName"
},
{
title: "上牌时间",
key: "registrationDate"
},
{
title: "上牌城市",
key: "licensePlate"
},
{
title: "表显里程",
key: "vin"
},
{
title: "使用性质",
key: "carTypeName"
},
{
title: "所有人性质",
key: "registrationDate"
},
{
title: "天窗",
key: "registrationDate"
},
{
title: "品牌定位",
key: "vin"
},
{
title: "门店",
key: "sellerMerchantName"
},
{
title: "销售顾问",
key: "sellerName"
},
{
title: "驻店人员",
key: "conversionName"
},
{
title: "是否购买新车",
key: "buyNewCar",
formatter: (row) => {
return row.buyNewCar == 1 ? "是" : "否"
}
},
{
title: "是否事故",
key: "hasAccident",
formatter: (row) => {
return row.hasAccident == 1 ? "是" : "否"
}
},
{
title: "评估单状态",
key: "status",
formatter: (row) => {
return this.baseData.evaluationStatusOpt.find(
(item) => item.confId == row.status
).confValue
},
className: (row) => {
return this.baseData.evaluationStatusOptMap[row.status]
}
},
{
title: "车主姓名",
key: "previousOwnerName"
},
{
title: "车主联系方式",
key: "previousOwnerPhone"
},
{
title: "评估单下单时间",
key: "evalOrderTime"
},
{
title: "评估单编号",
key: "evalOrderNo"
},
{
title: "综合评价",
key: "overallRating",
col: 24,
formatter: (row) => {
let map = { 1: "优", 2: "良", 3: "中", 4: "差" }
return map[row.overallRating]
}
},
{
title: "车况描述",
key: "conditionDescription",
col: 24
},
{
title: "车辆图片",
key: "carImageUrls",
addHtml: "photo",
col: 24
},
{
title: "证件资料",
key: "documentUrls",
addHtml: "photo",
col: 24
},
{
title: "车辆视频",
key: "carVideoUrls",
addHtml: "photo",
col: 24,
type: "video"
},
{
title: "其他图片",
key: "otherImageUrls",
addHtml: "photo",
col: 24
}
]
}
],
baseData: {
evaluationStatusOpt: deepClone(evaluationStatusOpt),
evaluationStatusOptMap: deepClone(evaluationStatusOptMap)
}
}
}
}
</script>
<style scoped lang="scss">
@import "./detail.scss";
</style>
<!-- 评估单详情 -->
<template>
<div class="evalOrderDetail">
<!-- 车辆信息 -->
<vehicle-info></vehicle-info>
<!-- 总部定价师估价与意见 -->
<assess-info></assess-info>
<!-- 评估动态 -->
<dynamics></dynamics>
<div class="footer">
<div class="cancel-btn" @click="handleCancel">关闭</div>
</div>
</div>
</template>
<script>
import vehicleInfo from "./components/vehicleInfo.vue"
import dynamics from "./components/dynamics.vue"
import assessInfo from "./components/assessInfo.vue"
export default {
components: {
vehicleInfo,
dynamics,
assessInfo
},
data() {
return {}
},
methods: {
handleCancel() {
this.$router.go(-1)
}
}
}
</script>
<style lang="scss" scoped>
.evalOrderDetail {
height: calc(100vh - 116px);
overflow: scroll;
.footer {
position: relative;
bottom: 0px;
left: 50%;
text-align: center;
margin-left: -28px;
padding: 20px;
cursor: pointer;
.cancel-btn {
color: #666666;
font-size: 14px;
width: 56px;
padding: 5px 14px;
border-radius: 4px;
background: #e8e8e8;
line-height: 22px;
box-sizing: border-box;
}
}
}
</style>
<!-- 车辆评估 -->
<template>
<div class="evaluate-wrapper">
<!-- 车辆信息 -->
<vehicle-info></vehicle-info>
<!-- 总部定价师估价与意见 -->
<assess ref="assessRef"></assess>
<!-- 评估动态 -->
<dynamics></dynamics>
<div class="footer">
<div class="save-btn" @click="handleSave">保存</div>
<div class="reject-btn" plain @click="handleReject">驳回</div>
<div class="cancel-btn" @click="handleCancel">关闭</div>
</div>
<reject-dialog
v-if="rejectVisible"
:rejectVisible="rejectVisible"
:paramsObj="paramsObj"
@handleAddConfirm="handleAddConfirm"
@dialogClose="dialogClose"
></reject-dialog>
</div>
</template>
<script>
import vehicleInfo from "./components/vehicleInfo.vue"
import dynamics from "./components/dynamics.vue"
import assess from "./components/assess.vue"
import rejectDialog from "./components/rejectDialog.vue"
export default {
components: {
vehicleInfo,
dynamics,
assess,
rejectDialog
},
data() {
return {
rejectVisible: false,
paramsObj: {}
}
},
methods: {
handleCancel() {
this.$router.go(-1)
},
handleReject() {
console.log("paramsObj", this.paramsObj)
this.rejectVisible = !this.rejectVisible
},
dialogClose() {
this.rejectVisible = !this.rejectVisible
console.log("dialogClose", this.rejectVisible)
},
handleAddConfirm() {},
handleSave() {
let isValid = this.$refs.assessRef.confirm()
}
}
}
</script>
<style lang="scss" scoped>
.evaluate-wrapper {
height: calc(100vh - 116px);
overflow: scroll;
.footer {
position: relative;
bottom: 0px;
left: 50%;
text-align: center;
margin-left: -28px;
padding: 20px;
cursor: pointer;
display: flex;
.save-btn {
width: 60px;
padding: 5px 14px;
line-height: 22px;
border-radius: 4px;
border: 1px solid #2a58ad;
background: #2a58ad;
color: #ffffff;
font-size: 14px;
box-sizing: border-box;
}
.cancel-btn {
color: #666666;
font-size: 14px;
width: 56px;
padding: 5px 14px;
border-radius: 4px;
background: #e8e8e8;
line-height: 22px;
box-sizing: border-box;
}
.reject-btn {
width: 60px;
height: 32px;
border-radius: 4px;
opacity: 1;
border: 1px solid #2a58ad;
padding: 5px 14px;
line-height: 22px;
box-sizing: border-box;
color: #2a58ad;
font-size: 14px;
margin: 0 10px;
}
}
}
</style>
...@@ -172,7 +172,7 @@ export default { ...@@ -172,7 +172,7 @@ export default {
}, },
{ {
label: "门店", label: "门店",
prop: "conversionMerchantName" prop: "sellerMerchantName"
}, },
{ {
label: "销售顾问", label: "销售顾问",
...@@ -242,7 +242,7 @@ export default { ...@@ -242,7 +242,7 @@ export default {
usageType: 1, usageType: 1,
ownerType: 2, ownerType: 2,
vehicleCategory: 2, vehicleCategory: 2,
conversionMerchantName: "武汉百乘汽车销售有限公司91 44217622", sellerMerchantName: "武汉百乘汽车销售有限公司91 44217622",
sellerName: "王五", sellerName: "王五",
conversionName: "张三", conversionName: "张三",
buyNewCar: 1, buyNewCar: 1,
...@@ -270,7 +270,7 @@ export default { ...@@ -270,7 +270,7 @@ export default {
hasAccident: "", hasAccident: "",
status: "", status: "",
previousOwnerName: "", previousOwnerName: "",
conversionMerchantName: "", sellerMerchantName: "",
evalOrderTime: [], evalOrderTime: [],
evalOrderNo: "", evalOrderNo: "",
evalOperatorName: "" evalOperatorName: ""
...@@ -302,7 +302,7 @@ export default { ...@@ -302,7 +302,7 @@ export default {
name: "registrationDate", name: "registrationDate",
type: "datePicker", type: "datePicker",
isClear: true, isClear: true,
pickerOptions: "rangePickerOptions_30day2" pickerOptions: "yesterdayPicker"
}, },
{ {
label: "上牌城市", label: "上牌城市",
...@@ -401,7 +401,7 @@ export default { ...@@ -401,7 +401,7 @@ export default {
}, },
{ {
label: "门店", label: "门店",
name: "conversionMerchantName", name: "sellerMerchantName",
type: "input", type: "input",
isClear: true, isClear: true,
maxlength: 50 maxlength: 50
...@@ -410,8 +410,9 @@ export default { ...@@ -410,8 +410,9 @@ export default {
label: "下单时间", label: "下单时间",
name: "evalOrderTime", name: "evalOrderTime",
type: "datePicker", type: "datePicker",
dateType: "datetimerange",
isClear: true, isClear: true,
pickerOptions: "rangePickerOptions_30day2" pickerOptions: "yesterdayPicker"
}, },
{ {
label: "评估单编号", label: "评估单编号",
...@@ -443,17 +444,26 @@ export default { ...@@ -443,17 +444,26 @@ export default {
this.getOptionsList() this.getOptionsList()
}, },
methods: { methods: {
//车辆评估
handleAssess(data) {
console.log("row", data)
this.$router.push({
path: "/evaluate",
query: {
id: data.id
}
})
},
// 详情 // 详情
handleDetail(data) { handleDetail(data) {
console.log("row", data) console.log("row", data)
this.$router.push({ this.$router.push({
path: "/inSceneConfigView", path: "/evalOrderDetail",
query: { query: {
id: data.id id: data.id
} }
}) })
}, },
handleAssess(data) {},
beforeSearchFn(type = 1) { beforeSearchFn(type = 1) {
console.log(this.searchForm) console.log(this.searchForm)
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
...@@ -537,7 +547,7 @@ export default { ...@@ -537,7 +547,7 @@ export default {
::v-deep .photo-activity { ::v-deep .photo-activity {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; object-fit: contain;
position: static !important; position: static !important;
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!