Commit d3a907ac by 李伟康

Merge branch 'SAAS+V5.0.0' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into SAAS+V5.0.0
2 parents 78804e14 43350207
......@@ -8903,9 +8903,9 @@
}
},
"glsk-toolkit": {
"version": "1.0.3",
"resolved": "https://registry.npmmirror.com/glsk-toolkit/-/glsk-toolkit-1.0.3.tgz",
"integrity": "sha512-h1rRmLIIFvVh/CNcF5KqAbhCLStPgUAKS4Jx2awAYnURS1l2e1MAhzk9OSbL4hKyn5Tvz6vdLhT5CwWQASu+HA==",
"version": "1.0.4",
"resolved": "https://registry.npmmirror.com/glsk-toolkit/-/glsk-toolkit-1.0.4.tgz",
"integrity": "sha512-43g3qaYtSfxzSG4dVjr0gDmD/tvVnCZuQ+ONK2mkmuqzhclsTsuSLfn6enjQZELmvWQGj45YhEU7XdQ8sTKroA==",
"requires": {
"@sentry/browser": "^7.101.1",
"crypto-js": "^4.2.0"
......
......@@ -35,7 +35,7 @@
"flex.css": "^1.1.7",
"fuse.js": "^3.4.4",
"glsk-oss-jssdk": "^1.0.6",
"glsk-toolkit": "^1.0.3",
"glsk-toolkit": "^1.0.4",
"glsx-common-sdk": "^0.3.0",
"hash.js": "^1.0.0",
"hotkeys-js": "^3.6.2",
......
......@@ -6,49 +6,50 @@ const createRequest = (url, method, data) => {
const gscConfig = baseConfig?.gsc || {}
let request = new Request({
...gscConfig,
params: {
sessionId: util.cookies.get("token")
session: {
requiresSession: true,
sessionId: util.cookies.get("token") || ""
},
events: {
response: (responseData, config) => {
console.log(
"%c📥 response事件触发",
"color: #4CAF50; font-weight: bold;",
responseData,
config
)
},
error: (error, config) => {
console.log(
"%c❌ error事件触发",
"color: #F44336; font-weight: bold;",
error,
config
)
},
request: (request, config) => {
console.log(
"%c📤 request事件触发",
"color: #2196F3; font-weight: bold;",
request,
config
)
},
logout: (config) => {
console.log(
"%c🚪 logout事件触发",
"color: #FF9800; font-weight: bold;",
config
)
},
duplicate: (url, config) => {
console.log(
"%c🚫 duplicate事件触发",
"color: #9C27B0; font-weight: bold;",
url,
config
)
}
// response: (responseData, config) => {
// console.log(
// "%c📥 response事件触发",
// "color: #4CAF50; font-weight: bold;",
// responseData,
// config
// )
// },
// error: (error, config) => {
// console.log(
// "%c❌ error事件触发",
// "color: #F44336; font-weight: bold;",
// error,
// config
// )
// },
// request: (request, config) => {
// console.log(
// "%c📤 request事件触发",
// "color: #2196F3; font-weight: bold;",
// request,
// config
// )
// },
// logout: (config) => {
// console.log(
// "%c🚪 logout事件触发",
// "color: #FF9800; font-weight: bold;",
// config
// )
// },
// duplicate: (url, config) => {
// console.log(
// "%c🚫 duplicate事件触发",
// "color: #9C27B0; font-weight: bold;",
// url,
// config
// )
// }
}
})
return request.request({
......
/**二手车 */
import http from "./gscRequest"
// 评估单列表
export function getEvalOrderList (data) {
// 数据看板指标统计
export function getdataBoard(data) {
return http("/dataBoard/index", "post", data)
}
// 数据看板评估量趋势
export function getEvaluationData(data) {
return http("/dataBoard/evaluation", "post", data)
}
// 数据看板成交量趋势
export function getDealData(data) {
return http("/dataBoard/deal", "post", data)
}
// 合同管理列表
export function getContractList(data) {
return http("/evalElectronicContract/page", "post", data)
}
// 评估单列表
export function getEvalOrderList(data) {
return http("/evalOrderManage/getEvalOrderList", "post", data)
}
//评估单详情
export function getEvalOrderDetail(data) {
console.log(data)
return http("/evalOrderManage/getEvalOrderDetail", "post", data)
}
//评估单动态
export function getEvalOrderPriceHistory(data) {
return http("/evalOrderManage/getEvalOrderPriceHistory", "post", data)
}
//评估车辆
export function evaluateCar(data) {
return http("/evalOrderManage/evaluate", "post", data)
}
//车辆评估导出
export function exportEvaluate(data) {
return http("/evalOrderManage/exportEvalOrderAsync", "post", data)
}
//阳光激励配置分页
export function getSunlightPage (data) {
export function getSunlightPage(data) {
console.log(http)
return http("/sunlightInspiresConfig/page", "post", data)
}
......@@ -66,4 +102,4 @@ export const editCarStatus = (data) => {
*/
export const getCarManagementLog = (data) => {
return http("/carManagement/carManagementLog", "post", data)
}
\ No newline at end of file
}
......@@ -1496,11 +1496,10 @@ export const scheduling_inviteStatus = [
// 时间tab
export const timeTabOpt = [
{ confId: "0", confValue: "全部" },
{ confId: "1", confValue: "今日" },
{ confId: "2", confValue: "昨日" },
{ confId: "3", confValue: "本月" },
{ confId: "3", confValue: "上月" }
{ confId: "4", confValue: "上月" }
]
//使用性质
export const usageTypeOpt = [
......@@ -1536,7 +1535,7 @@ export const evaluationStatusOpt = [
{ confId: "40", confValue: "已支付-定金" },
{ confId: "50", confValue: "已支付-尾款" },
{ confId: "100", confValue: "已完成" },
{ confId: "1", confValue: "已驳回" }
{ confId: "-1", confValue: "已驳回" }
]
export const evaluationStatusOptMap = {
10: "#FDB757",
......@@ -1545,7 +1544,7 @@ export const evaluationStatusOptMap = {
40: "#2CCA74",
50: "#2CCA74",
100: "#8C8C8C",
1: "#EB4E4E"
"-1": "#EB4E4E"
}
// 合同类型
export const electronicContractTypeOpt = [
......
......@@ -64,6 +64,12 @@ export const routerName = {
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9200204",
parentId: "92002",
label: "图片下载",
handle: "handleDownLoad"
}
],
component: _import("usedCarManagement/evaluationManagement/index")
......
......@@ -16,6 +16,7 @@
<script>
import lineHeader from "./lineHeader.vue"
import echartLine from "./echartLine.vue"
import { getEvaluationData } from "@/api/usedCarManagement.js"
export default {
components: {
lineHeader,
......@@ -23,30 +24,45 @@ export default {
},
data() {
return {
dateType: 1,
title: "评估量",
xData: [
"2025-08-18",
"2025-08-19",
"2025-08-20",
"2025-08-21",
"2025-08-22",
"2025-08-23",
"2025-08-24",
"2025-08-25",
"2025-08-26",
"2025-08-27",
"2025-08-28",
"2025-08-29",
"2025-08-30",
"2025-08-31"
],
yData: [
12, 3000, 4000, 3000, 2000, 12, 3000, 4000, 3000, 2000, 50, 30, 90, 1888
]
xData: [],
yData: []
}
},
created() {
this.getEvaluationData()
},
methods: {
handleClick(data) {}
getEvaluationData() {
let params = {
dateType: this.dateType,
merchantNos: ""
}
getEvaluationData(params)
.then((res) => {
console.log(res)
this.handleData(res)
})
.catch((err) => {
new Error(err)
})
},
handleData(data) {
let xData = [],
yData = []
data.forEach((item) => {
xData.push(item.date)
yData.push(item.count)
})
this.xData = xData
this.yData = yData
},
handleClick(data) {
this.dateType = data.value
this.getEvaluationData()
}
}
}
</script>
......
......@@ -57,7 +57,29 @@ export default {
}, 1000)
}
},
getMax() {
let tickIntervalNum = 0
// 判断lineData是否有值,根据barList中最大值计算tickInterval
if (this.yData.length) {
let s = this.yData[0]
for (var i = 1; i < this.yData.length; i++) {
if (s < this.yData[i]) {
s = this.yData[i]
}
}
tickIntervalNum = s
}
return tickIntervalNum || 1
},
getChartSetOption() {
let maxVal = this.getMax()
// 计算合适的最大值,向上取整到最接近的整数
let yAxisMax = Math.ceil(maxVal)
// 确保最小值为0
let yAxisMin = 0
// 计算间隔,确保正好显示5个点 (0, interval, 2*interval, 3*interval, 4*interval)
let interval = Math.ceil(yAxisMax / 4)
var option = {
grid: {
top: "37",
......@@ -149,7 +171,11 @@ ${this.title}:${params[0].value}辆
},
axisTick: {
show: false
}
},
// 设置y轴固定显示5个点
min: yAxisMin,
max: interval * 4, // 确保最大值是间隔的4倍,这样就有0,1,2,3,4共5个点
interval: interval
},
series: [
{
......
......@@ -16,6 +16,7 @@
<script>
import lineHeader from "./lineHeader.vue"
import echartLine from "./echartLine.vue"
import { getDealData } from "@/api/usedCarManagement.js"
export default {
components: {
lineHeader,
......@@ -23,30 +24,43 @@ export default {
},
data() {
return {
dateType: 1,
title: "二手车成交量",
xData: [
"2025-08-18",
"2025-08-19",
"2025-08-20",
"2025-08-21",
"2025-08-22",
"2025-08-23",
"2025-08-24",
"2025-08-25",
"2025-08-26",
"2025-08-27",
"2025-08-28",
"2025-08-29",
"2025-08-30",
"2025-08-31"
],
yData: [
12, 3000, 4000, 3000, 2000, 12, 3000, 4000, 3000, 2000, 50, 30, 90, 1888
]
xData: [],
yData: []
}
},
created() {
this.getDealData()
},
methods: {
handleClick(data) {}
getDealData() {
let params = {
dateType: this.dateType,
merchantNos: ""
}
getDealData(params)
.then((res) => {
this.handleData(res)
})
.catch((err) => {
new Error(err)
})
},
handleData(data) {
let xData = [],
yData = []
data.forEach((item) => {
xData.push(item.date)
yData.push(item.count)
})
this.xData = xData
this.yData = yData
},
handleClick(data) {
this.dateType = data.value
this.getDealData()
}
}
}
</script>
......
......@@ -6,7 +6,7 @@
<glsx-combi-form
class="edit-form-container"
ref="editFormRef"
isBlock="true"
:isBlock="true"
label-width="150px"
:form-ref="editChildRef"
:form-obj="assessForm"
......@@ -19,6 +19,14 @@
</template>
<script>
export default {
props: {
detailInfo: {
type: Object,
default: function () {
return {}
}
}
},
data() {
return {
editChildRef: "editChildRef",
......@@ -113,6 +121,15 @@ export default {
}
}
},
watch: {
detailInfo(val) {
console.log(val, "detailInfo")
this.assessForm = {
evalPrice: val.evalPrice,
evalOpinion: val.evalOpinion
}
}
},
methods: {
async confirm() {
const isValid = await this.$refs.editFormRef.$refs[
......
......@@ -160,6 +160,12 @@
<script>
import { deepClone } from "@/common/util"
export default {
props: {
detailInfo: {
type: Object,
default: () => {}
}
},
data() {
return {
detailInfo: {
......@@ -176,7 +182,9 @@ export default {
key: "evalPrice",
col: 24,
formatter: (row) => {
return 10000 + "元"
return row.evalPrice || row.evalPrice === 0
? row.evalPrice + "元"
: "-"
}
},
{
......
<!-- 评估动态 -->
<template>
<div class="dynamics-wrapper">
<div class="dynamics-wrapper" v-if="dynamicsData && dynamicsData.length">
<div class="title">评估动态</div>
<div class="timeline-box">
<el-timeline>
......@@ -51,47 +51,14 @@
<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评估师驳回
}
]
props: {
dynamicsData: {
type: Array,
default: () => []
}
},
data() {
return {}
}
}
</script>
......
import {
getEvalOrderDetail,
getEvalOrderPriceHistory
} from "@/api/usedCarManagement"
import vehicleInfo from "./vehicleInfo.vue"
import dynamics from "./dynamics.vue"
import assessInfo from "./assessInfo.vue"
import assess from "./assess.vue"
import rejectDialog from "./rejectDialog.vue"
export const evaluateMixin = {
components: {
rejectDialog,
vehicleInfo,
dynamics,
assess,
assessInfo
},
data() {
return {
detailInfo: {},
dynamicsData: [],
evalOrderNo: this.$route.query.evalOrderNo
}
},
created() {
this.getEvalOrderDetail()
this.getEvalOrderPriceHistory()
},
methods: {
handleCancel() {
this.$router.go(-1)
},
getEvalOrderDetail() {
getEvalOrderDetail({
evalOrderNo: this.evalOrderNo
}).then((res) => {
console.log("res", res)
this.detailInfo = res
})
},
getEvalOrderPriceHistory() {
getEvalOrderPriceHistory({
evalOrderNo: this.evalOrderNo
}).then((res) => {
console.log("res", res)
this.dynamicsData = res
})
}
}
}
......@@ -4,7 +4,7 @@
:dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm"
@handleClick="confirm"
>
<div class="reject-dialog">
<glsx-combi-form
......@@ -22,13 +22,13 @@
</template>
<script>
import { reject } from "@api/shelfManage.js"
export default {
name: "RejectDialog",
data() {
return {
infoForm: {
remark: ""
rejectReason: "",
rejectSuggestion: ""
},
dialogConfig: {
title: "驳回",
......@@ -36,22 +36,26 @@ export default {
},
rejectRef: "rejectRef",
formRules: {
reason: [
rejectReason: [
{ required: true, message: "请输入驳回原因", trigger: "blur" }
],
remark: [{ required: true, message: "请输入驳回意见", trigger: "blur" }]
rejectSuggestion: [
{ required: true, message: "请输入", trigger: "blur" }
]
},
editFormData: [
{
label: "驳回原因",
name: "reason",
name: "rejectReason",
type: "input",
placeholder: "请输入驳回原因",
maxlength: 50
},
{
label: "驳回意见",
name: "remark",
name: "rejectSuggestion",
type: "input",
placeholder: "请输入",
maxlength: 200,
inputType: "textarea",
showLimit: true,
......@@ -90,20 +94,12 @@ export default {
},
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)
})
}
})
async confirm() {
const isValid = await this.$refs.formRef.$refs[this.rejectRef].validate()
console.log(isValid)
if (isValid) {
this.$emit("handleAddConfirm")
}
},
handleClose() {
console.log("handleClose")
......
......@@ -84,14 +84,14 @@
</template>
</template>
<template v-else>
<div
v-if="item.className"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
<div class="flex">
<div
v-if="item.className"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
{{
item.formatter
? item.formatter(detailInfo) || "-"
......@@ -160,7 +160,8 @@
<script>
import {
evaluationStatusOpt,
evaluationStatusOptMap
evaluationStatusOptMap,
ownerTypeOpt
} from "@/common/constants.js"
import preview from "../../components/preview"
import { deepClone } from "@/common/util"
......@@ -175,54 +176,6 @@ export default {
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: "车辆信息",
......@@ -245,11 +198,11 @@ export default {
},
{
title: "上牌城市",
key: "licensePlate"
key: "registrationCityName"
},
{
title: "表显里程",
key: "vin"
key: "mileageStr"
},
{
title: "使用性质",
......@@ -257,11 +210,28 @@ export default {
},
{
title: "所有人性质",
key: "registrationDate"
key: "ownerType",
formatter: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"ownerTypeOpt", // 配置项数组的键名
row,
"ownerType"
)
return statusItem?.confValue || "-"
}
},
{
title: "天窗",
key: "registrationDate"
key: "sunroof",
formatter: (row) => {
let sunRoofMap = {
1: "无天窗",
2: "普通天窗",
3: "全景天窗"
}
return sunRoofMap[row.sunroof]
}
},
{
title: "品牌定位",
......@@ -298,9 +268,13 @@ export default {
title: "评估单状态",
key: "status",
formatter: (row) => {
return this.baseData.evaluationStatusOpt.find(
(item) => item.confId == row.status
).confValue
const statusItem = this.getStatusItem(
this.baseData,
"evaluationStatusOpt", // 配置项数组的键名
row,
"status"
)
return statusItem?.confValue || "-"
},
className: (row) => {
return this.baseData.evaluationStatusOptMap[row.status]
......@@ -365,10 +339,26 @@ export default {
}
],
baseData: {
ownerTypeOpt: deepClone(ownerTypeOpt),
evaluationStatusOpt: deepClone(evaluationStatusOpt),
evaluationStatusOptMap: deepClone(evaluationStatusOptMap)
}
}
},
methods: {
getStatusItem(baseData, optKey, row, rowKey) {
if (!baseData || !baseData[optKey] || !row) return null
return baseData[optKey].find(
(item) => item.confId == row[rowKey] // 使用严格相等
)
}
},
props: {
detailInfo: {
type: Object,
default: () => {}
}
}
}
</script>
......
......@@ -2,11 +2,11 @@
<template>
<div class="evalOrderDetail">
<!-- 车辆信息 -->
<vehicle-info></vehicle-info>
<vehicle-info :detailInfo="detailInfo"></vehicle-info>
<!-- 总部定价师估价与意见 -->
<assess-info></assess-info>
<assess-info :detailInfo="detailInfo"></assess-info>
<!-- 评估动态 -->
<dynamics></dynamics>
<dynamics :dynamicsData="dynamicsData"></dynamics>
<div class="footer">
<div class="cancel-btn" @click="handleCancel">关闭</div>
</div>
......@@ -14,23 +14,13 @@
</template>
<script>
import vehicleInfo from "./components/vehicleInfo.vue"
import dynamics from "./components/dynamics.vue"
import assessInfo from "./components/assessInfo.vue"
import { evaluateMixin } from "./components/evaluateMixin"
export default {
components: {
vehicleInfo,
dynamics,
assessInfo
},
mixins: [evaluateMixin],
data() {
return {}
},
methods: {
handleCancel() {
this.$router.go(-1)
}
}
methods: {}
}
</script>
<style lang="scss" scoped>
......
<!-- 车辆评估 -->
<template>
<div class="evaluate-wrapper">
<!-- 车辆信息 -->
<vehicle-info></vehicle-info>
<vehicle-info :detailInfo="detailInfo"></vehicle-info>
<!-- 总部定价师估价与意见 -->
<assess ref="assessRef"></assess>
<assess ref="assessRef" :detailInfo="detailInfo"></assess>
<!-- 评估动态 -->
<dynamics></dynamics>
<dynamics :dynamicsData="dynamicsData"></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
ref="rejectDialogRef"
v-if="rejectVisible"
:rejectVisible="rejectVisible"
:paramsObj="paramsObj"
......@@ -23,17 +23,10 @@
</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"
import { evaluateMixin } from "./components/evaluateMixin"
import { evaluateCar } from "@/api/usedCarManagement"
export default {
components: {
vehicleInfo,
dynamics,
assess,
rejectDialog
},
mixins: [evaluateMixin],
data() {
return {
rejectVisible: false,
......@@ -41,20 +34,45 @@ export default {
}
},
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() {},
handleAddConfirm() {
let params = {
opType: 30, //10评估师报价,20客户报价,30评估师驳回
evalOrderNo: this.evalOrderNo,
...this.$refs.rejectDialogRef.infoForm
}
this.submitData(params)
},
handleSave() {
let isValid = this.$refs.assessRef.confirm()
if (isValid) {
let params = {
opType: 10, //10评估师报价,20客户报价,30评估师驳回
evalOrderNo: this.evalOrderNo,
...this.$refs.assessRef.assessForm
}
this.submitData(params)
}
},
submitData(params) {
this.$confirm("请确认是否要执行当前操作?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
evaluateCar(params).then((res) => {
console.log(res)
this.$message.success("操作成功")
this.handleCancel()
this.rejectVisible = false
})
})
}
}
}
......
......@@ -6,7 +6,7 @@
ref="showSearch"
class="show-search"
:search-form="searchForm"
:label-width="'100px'"
:label-width="'120px'"
:form-data="showFormData"
>
</d2-search>
......@@ -19,11 +19,8 @@
</div>
<div class="d2-container-content">
<d2-table-header>
<el-button size="small" type="primary" @click="exportTable">
导出
</el-button>
<auth-button category="Button" :show-btn-ids="['9200203']" />
</d2-table-header>
<!-- :get-list-api="getListApi" -->
<d2-table
ref="table"
:get-list-api="getListApi"
......@@ -31,14 +28,16 @@
:table-params="tableParams"
:before-search-fn="beforeSearchFn"
>
<div slot="carImageUrl" slot-scope="scope" class="carImageUrl-preview">
<div slot="coverImage" slot-scope="scope" class="coverImage-preview">
<glsx-preview
v-if="scope.scope.coverImage"
:image-url-arr="
scope.scope.carImageUrl ? [scope.scope.carImageUrl] : []
scope.scope.coverImage ? [scope.scope.coverImage] : []
"
:picOptions="picOptions"
limit="1"
></glsx-preview>
<span v-else>-</span>
</div>
<!-- 评估单状态 -->
<div slot="statusHtml" slot-scope="scope">
......@@ -60,7 +59,7 @@
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9200201']" />
</span>
<span style="margin-right: 10px">
<span style="margin-right: 10px" v-if="scope.scope.status == 10">
<auth-button :data="scope.scope" :show-btn-ids="['9200202']" />
</span>
</div>
......@@ -70,10 +69,8 @@
</template>
<script>
import { receptionTagPage, receptionTagPageExport } from "@/api/resident.js"
import { mapActions, mapState } from "vuex"
import preview from "../components/preview"
import { listShop4sByRef } from "@api/merchant"
import { getBrandList } from "@/api/scene.js"
import { getEvalOrderList } from "@/api/usedCarManagement.js"
import {
usageTypeOpt,
......@@ -100,7 +97,7 @@ export default {
isClose: false
},
tableParams: {
listName: "list",
listName: "records",
mutiSelectUniqueKey: "id",
mutiSelectName: "mutiSelectIndex",
tableOption: {
......@@ -109,9 +106,9 @@ export default {
tableColumns: [
{
label: "车辆照片",
prop: "carImageUrl",
prop: "coverImage",
width: "138px",
addHtml: "carImageUrl"
addHtml: "coverImage"
},
{
label: "车牌号",
......@@ -142,11 +139,13 @@ export default {
label: "使用性质",
prop: "usageType",
formatter: (cellValue) => {
return cellValue.usageType
? this.baseData.usageTypeOpt.find(
(item) => item.confId == cellValue.usageType
).confValue
: "-"
const statusItem = this.getStatusItem(
this.baseData,
"usageTypeOpt", // 配置项数组的键名
cellValue,
"usageType"
)
return statusItem?.confValue || "-"
}
},
{
......@@ -154,22 +153,26 @@ export default {
prop: "ownerType",
minWidth: 120,
formatter: (cellValue) => {
return cellValue.ownerType
? this.baseData.ownerTypeOpt.find(
(item) => item.confId == cellValue.ownerType
).confValue
: "-"
const statusItem = this.getStatusItem(
this.baseData,
"ownerTypeOpt", // 配置项数组的键名
cellValue,
"ownerType"
)
return statusItem?.confValue || "-"
}
},
{
label: "车辆类型",
prop: "vehicleCategory",
formatter: (cellValue) => {
return cellValue.vehicleCategory
? this.baseData.vehicleCategoryOpt.find(
(item) => item.confId == cellValue.vehicleCategory
).confValue
: "-"
const statusItem = this.getStatusItem(
this.baseData,
"vehicleCategoryOpt", // 配置项数组的键名
cellValue,
"vehicleCategory"
)
return statusItem?.confValue || "-"
}
},
{
......@@ -226,36 +229,6 @@ export default {
}
]
},
tableData: [
{
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: "张三"
}
],
searchFormSearch: {},
searchForm: {
licensePlate: "",
......@@ -358,7 +331,7 @@ export default {
maxlength: 20
},
{
label: "新车下定",
label: "是否新车下定",
name: "buyNewCar",
type: "select",
isClear: true,
......@@ -443,19 +416,61 @@ export default {
}
},
mounted() {
// getEvalOrderList().then((res) => {
// console.log(res, "9999")
// })
this.getOptionsList()
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
methods: {
getStatusItem(baseData, optKey, row, rowKey) {
if (!baseData || !baseData[optKey] || !row) return null
return baseData[optKey].find(
(item) => item.confId == row[rowKey] // 使用严格相等
)
},
...mapActions("d2admin/user", ["actionSetDownloadList"]),
filterIds() {
let ids = []
if (this.$refs.table.mutiSelectArr.mutiSelectIndex.length) {
this.$refs.table.mutiSelectArr.mutiSelectIndex.forEach((item) => {
ids.push(item.id)
})
}
return ids
},
//导出
handleExport() {
var params = this.getParams()
params.currentPage = 1
params.server_provider_type = "gsc"
params.server_provider_name = "gsc-vcp-web-facade"
// params.idsStr = this.filterIds().join(",")
params.params.method = "/evalOrderManage/exportEvalOrderAsync"
const list = [
...this.dowloadList,
{
name: "评估管理",
exportParam: JSON.stringify(params),
status: "waiting",
timeid: new Date().getTime()
// uuid: JSON.parse(res).data,
// ifSuccess: false
}
]
this.actionSetDownloadList({ list, type: "dowloadList" })
},
handleDownLoad() {},
//车辆评估
handleAssess(data) {
console.log("row", data)
this.$router.push({
path: "/evaluate",
query: {
id: data.id
evalOrderNo: data.evalOrderNo
}
})
},
......@@ -465,42 +480,46 @@ export default {
this.$router.push({
path: "/evalOrderDetail",
query: {
id: data.id
evalOrderNo: data.evalOrderNo
}
})
},
beforeSearchFn(type = 1) {
console.log(this.searchForm)
getParams() {
let params = deepClone(this.searchForm)
// 上牌时间
if (params?.registrationDate?.length) {
let [registrationStartDate, registrationEndDate] =
params.registrationDate
params.registrationStartDate = Util.dateFormate(
registrationStartDate,
"YYYY-MM-DD"
)
params.registrationEndDate = Util.dateFormate(
registrationEndDate,
"YYYY-MM-DD"
)
}
//评估单下单
if (params?.evalOrderTime?.length) {
let [evalOrderStartTime, evalOrderEndTime] = params.evalOrderTime
params.evalOrderStartTime = Util.dateFormate(
evalOrderStartTime,
"'YYYY-MM-DD HH:mm:ss'"
)
params.evalOrderEndTime = Util.dateFormate(
evalOrderEndTime,
"'YYYY-MM-DD HH:mm:ss'"
)
}
delete params.registrationDate
delete params.evalOrderTime
return {
t: params
}
},
beforeSearchFn() {
return new Promise((resolve, reject) => {
this.searchFormSearch = deepClone(this.searchForm)
// 上牌时间
if (this.searchForm?.registrationDate?.length) {
let [registrationStartDate, registrationEndDate] =
this.searchForm.registrationDate
this.searchFormSearch.registrationStartDate = Util.dateFormate(
registrationStartDate,
"YYYY-MM-DD"
)
this.searchFormSearch.registrationEndDate = Util.dateFormate(
registrationEndDate,
"YYYY-MM-DD"
)
}
//评估单下单
if (this.searchForm?.evalOrderTime?.length) {
let [evalOrderStartTime, evalOrderEndTime] =
this.searchForm.evalOrderTime
this.searchFormSearch.evalOrderStartTime = Util.dateFormate(
evalOrderStartTime,
"YYYY-MM-DD"
)
this.searchFormSearch.evalOrderEndTime = Util.dateFormate(
evalOrderEndTime,
"YYYY-MM-DD"
)
}
delete this.searchFormSearch.registrationDate
delete this.searchFormSearch.evalOrderTime
this.searchFormSearch = this.getParams()
resolve()
})
},
......@@ -546,7 +565,7 @@ export default {
</script>
<style scoped lang="scss">
.carImageUrl-preview {
.coverImage-preview {
width: 138px;
height: 54px;
::v-deep .photo-activity {
......
......@@ -191,54 +191,7 @@ export default {
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:
"分享时机,在不同的时机分析用户是否有分享的意愿,提供给他们合适的分享内容,能让分享的效果更好。尤其是刚上线的产品,很难通过产品的内部体系来实现快速的用户增长,所以会更加依赖于分享来达到广泛的传播,获取目标用户。所以监听用户的截图操作,提示用户进行分享,既缩短了以前分享截图的操作路径,避免了在之前长路径中的行为流失(比如截图完成后忘记分享或觉得麻烦放弃分享等等),也让用户觉得更加贴心。"
},
detailInfo: {},
configData: [
{
title: "合同状态",
......
......@@ -18,6 +18,10 @@
:form-data="editFormData"
:form-rules="formRules"
></glsx-combi-form>
<div class="flex-item" v-if="paramsObj.id">
<span class="flex-title">录入时间:</span>
<span class="flex-content">{{ paramsObj.createdDate }}</span>
</div>
</div>
</baseDialog>
</template>
......@@ -34,6 +38,7 @@ export default {
name: "sunDialog",
data() {
return {
isShow: false,
userInfo: this.$store.state.d2admin.user.info,
form: {
sellerMerchantId: "",
......@@ -107,12 +112,13 @@ export default {
{
label: "4S门店",
name: "sellerMerchantId",
placeHolder: "请选择",
placeholder: "请选择",
type: "select",
optionList: [],
optionId: "merchantId",
optionLabel: "merchantName",
optionsName: "storeIdList",
isDisabled: this.paramsObj.id ? true : false,
changeAttr: (val) => {
console.log(this.findIndexIds("storeIdList", "merchantId", val))
this.form.sellerMerchantName =
......@@ -125,7 +131,7 @@ export default {
{
label: "车辆类型",
name: "carType",
placeHolder: "请选择",
placeholder: "请选择",
type: "select",
isClear: true,
optionList: [],
......@@ -135,7 +141,7 @@ export default {
},
{
label: "激励价格(元)",
placeHolder: "请输入",
placeholder: "请输入",
name: "sunlightInspiresPrice",
type: "input",
maxlength: 11
......@@ -311,5 +317,20 @@ export default {
.tips {
color: #999999;
}
.flex-item {
display: flex;
align-items: center;
.flex-title {
color: #666666;
font-size: 14px;
width: 150px;
text-align: right;
display: inline-block;
}
.flex-content {
color: #333333;
font-size: 14px;
}
}
}
</style>
<!-- 阳光激励 -->
<!-- 合同管理 -->
<template>
<d2-container class="contract-wrap">
<div class="header" slot="header">
......@@ -68,9 +67,12 @@
</template>
<script>
import { receptionTagPage, receptionTagPageExport } from "@/api/resident.js"
import { listShop4sByRef } from "@api/merchant"
import { getSunlightPage } from "@/api/usedCarManagement.js"
import { mapActions, mapState } from "vuex"
import {
getSunlightPage,
deleteSunlightConfig,
exportSunlightPage
} from "@/api/usedCarManagement.js"
import inputRange from "../inputRange"
import { vehicleCategoryOpt } from "@/common/constants.js"
import { getServiceStore } from "@api/order"
......@@ -181,7 +183,14 @@ export default {
mounted() {
this.getServiceStore()
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
methods: {
...mapActions("d2admin/user", ["actionSetDownloadList"]),
handleAddStimulate() {
this.paramsObj = {}
this.sunVisible = true
......@@ -196,7 +205,19 @@ export default {
this.paramsObj = row
this.sunVisible = !this.sunVisible
},
handleDelete() {},
//删除
handleDelete(row) {
this.$confirm("请确认是否要执行当前操作?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
deleteSunlightConfig({ id: row.id }).then((res) => {
this.notice.okTips()
this.handleSearch()
})
})
},
dialogClose() {
this.sunVisible = !this.sunVisible
console.log("dialogClose", this.sunVisible)
......@@ -214,7 +235,7 @@ export default {
},
getServiceStore(merchantIds) {
getServiceStore({
scene: 7
scene: 7 //二手车
}).then((res) => {
this.baseData.storeIdList = res || []
this.getOptionsList()
......@@ -230,34 +251,37 @@ export default {
}
})
},
getParams() {
var params = deepClone(this.searchForm)
// 录入时间
if (params?.createdDate?.length) {
let [createdDateBegin, createdDateEnd] = params.createdDate
params.createdDateBegin = Util.dateFormate(
createdDateBegin,
"YYYY-MM-DD"
)
params.createdDateEnd = Util.dateFormate(createdDateEnd, "YYYY-MM-DD")
}
//激励价格
if (params?.sunlightInspiresPrice?.length) {
let [sunlightInspiresPriceBegin, sunlightInspiresPriceEnd] =
params.sunlightInspiresPrice
params.sunlightInspiresPriceBegin = sunlightInspiresPriceBegin
params.sunlightInspiresPriceEnd = sunlightInspiresPriceEnd
}
if (params.sellerMerchantIds && params.sellerMerchantIds == 0) {
delete params.sellerMerchantIds
}
delete params.sunlightInspiresPrice
delete params.createdDate
return {
t: params
}
},
beforeSearchFn() {
return new Promise((resolve, reject) => {
this.searchFormSearch = deepClone(this.searchForm)
// 录入时间
if (this.searchForm?.createdDate?.length) {
let [createdDateBegin, createdDateEnd] = this.searchForm.createdDate
this.searchFormSearch.createdDateBegin = Util.dateFormate(
createdDateBegin,
"YYYY-MM-DD"
)
this.searchFormSearch.createdDateEnd = Util.dateFormate(
createdDateEnd,
"YYYY-MM-DD"
)
}
//激励价格
if (this.searchForm?.sunlightInspiresPrice?.length) {
let [sunlightInspiresPriceBegin, sunlightInspiresPriceEnd] =
this.searchForm.sunlightInspiresPrice
this.searchFormSearch.sunlightInspiresPriceBegin =
sunlightInspiresPriceBegin
this.searchFormSearch.sunlightInspiresPriceEnd =
sunlightInspiresPriceEnd
}
delete this.searchFormSearch.sunlightInspiresPrice
delete this.searchFormSearch.createdDate
resolve()
this.searchFormSearch = this.getParams()
resolve(this.searchFormSearch)
})
},
handleSearch() {
......@@ -268,9 +292,36 @@ export default {
this.searchForm = this.$options.data.call(this).searchForm
this.handleSearch()
},
async exportTable() {
let selectedData = []
console.log(this.$refs.table.mutiSelectArr.mutiSelectIndex)
filterIds() {
let ids = []
if (this.$refs.table.mutiSelectArr.mutiSelectIndex.length) {
this.$refs.table.mutiSelectArr.mutiSelectIndex.forEach((item) => {
ids.push(item.id)
})
}
return ids
},
async handleExport() {
try {
var params = await this.beforeSearchFn()
params.currentPage = 1
params.ids = this.filterIds()
params.method = "/sunlightInspiresConfig/export"
console.log(params)
const list = [
...this.dowloadList,
{
name: "阳光激励配置",
exportParam: JSON.stringify(params),
status: "waiting",
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: "dowloadList" })
} catch (err) {
console.log(err)
}
},
getOptionsList() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!