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 @@ ...@@ -8903,9 +8903,9 @@
} }
}, },
"glsk-toolkit": { "glsk-toolkit": {
"version": "1.0.3", "version": "1.0.4",
"resolved": "https://registry.npmmirror.com/glsk-toolkit/-/glsk-toolkit-1.0.3.tgz", "resolved": "https://registry.npmmirror.com/glsk-toolkit/-/glsk-toolkit-1.0.4.tgz",
"integrity": "sha512-h1rRmLIIFvVh/CNcF5KqAbhCLStPgUAKS4Jx2awAYnURS1l2e1MAhzk9OSbL4hKyn5Tvz6vdLhT5CwWQASu+HA==", "integrity": "sha512-43g3qaYtSfxzSG4dVjr0gDmD/tvVnCZuQ+ONK2mkmuqzhclsTsuSLfn6enjQZELmvWQGj45YhEU7XdQ8sTKroA==",
"requires": { "requires": {
"@sentry/browser": "^7.101.1", "@sentry/browser": "^7.101.1",
"crypto-js": "^4.2.0" "crypto-js": "^4.2.0"
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
"flex.css": "^1.1.7", "flex.css": "^1.1.7",
"fuse.js": "^3.4.4", "fuse.js": "^3.4.4",
"glsk-oss-jssdk": "^1.0.6", "glsk-oss-jssdk": "^1.0.6",
"glsk-toolkit": "^1.0.3", "glsk-toolkit": "^1.0.4",
"glsx-common-sdk": "^0.3.0", "glsx-common-sdk": "^0.3.0",
"hash.js": "^1.0.0", "hash.js": "^1.0.0",
"hotkeys-js": "^3.6.2", "hotkeys-js": "^3.6.2",
......
...@@ -6,49 +6,50 @@ const createRequest = (url, method, data) => { ...@@ -6,49 +6,50 @@ const createRequest = (url, method, data) => {
const gscConfig = baseConfig?.gsc || {} const gscConfig = baseConfig?.gsc || {}
let request = new Request({ let request = new Request({
...gscConfig, ...gscConfig,
params: { session: {
sessionId: util.cookies.get("token") requiresSession: true,
sessionId: util.cookies.get("token") || ""
}, },
events: { events: {
response: (responseData, config) => { // response: (responseData, config) => {
console.log( // console.log(
"%c📥 response事件触发", // "%c📥 response事件触发",
"color: #4CAF50; font-weight: bold;", // "color: #4CAF50; font-weight: bold;",
responseData, // responseData,
config // config
) // )
}, // },
error: (error, config) => { // error: (error, config) => {
console.log( // console.log(
"%c❌ error事件触发", // "%c❌ error事件触发",
"color: #F44336; font-weight: bold;", // "color: #F44336; font-weight: bold;",
error, // error,
config // config
) // )
}, // },
request: (request, config) => { // request: (request, config) => {
console.log( // console.log(
"%c📤 request事件触发", // "%c📤 request事件触发",
"color: #2196F3; font-weight: bold;", // "color: #2196F3; font-weight: bold;",
request, // request,
config // config
) // )
}, // },
logout: (config) => { // logout: (config) => {
console.log( // console.log(
"%c🚪 logout事件触发", // "%c🚪 logout事件触发",
"color: #FF9800; font-weight: bold;", // "color: #FF9800; font-weight: bold;",
config // config
) // )
}, // },
duplicate: (url, config) => { // duplicate: (url, config) => {
console.log( // console.log(
"%c🚫 duplicate事件触发", // "%c🚫 duplicate事件触发",
"color: #9C27B0; font-weight: bold;", // "color: #9C27B0; font-weight: bold;",
url, // url,
config // config
) // )
} // }
} }
}) })
return request.request({ return request.request({
......
/**二手车 */ /**二手车 */
import http from "./gscRequest" 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) 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) console.log(http)
return http("/sunlightInspiresConfig/page", "post", data) return http("/sunlightInspiresConfig/page", "post", data)
} }
...@@ -66,4 +102,4 @@ export const editCarStatus = (data) => { ...@@ -66,4 +102,4 @@ export const editCarStatus = (data) => {
*/ */
export const getCarManagementLog = (data) => { export const getCarManagementLog = (data) => {
return http("/carManagement/carManagementLog", "post", data) return http("/carManagement/carManagementLog", "post", data)
}
\ No newline at end of file \ No newline at end of file
}
...@@ -1496,11 +1496,10 @@ export const scheduling_inviteStatus = [ ...@@ -1496,11 +1496,10 @@ export const scheduling_inviteStatus = [
// 时间tab // 时间tab
export const timeTabOpt = [ export const timeTabOpt = [
{ confId: "0", confValue: "全部" },
{ confId: "1", confValue: "今日" }, { confId: "1", confValue: "今日" },
{ confId: "2", confValue: "昨日" }, { confId: "2", confValue: "昨日" },
{ confId: "3", confValue: "本月" }, { confId: "3", confValue: "本月" },
{ confId: "3", confValue: "上月" } { confId: "4", confValue: "上月" }
] ]
//使用性质 //使用性质
export const usageTypeOpt = [ export const usageTypeOpt = [
...@@ -1536,7 +1535,7 @@ export const evaluationStatusOpt = [ ...@@ -1536,7 +1535,7 @@ export const evaluationStatusOpt = [
{ confId: "40", confValue: "已支付-定金" }, { confId: "40", confValue: "已支付-定金" },
{ confId: "50", confValue: "已支付-尾款" }, { confId: "50", confValue: "已支付-尾款" },
{ confId: "100", confValue: "已完成" }, { confId: "100", confValue: "已完成" },
{ confId: "1", confValue: "已驳回" } { confId: "-1", confValue: "已驳回" }
] ]
export const evaluationStatusOptMap = { export const evaluationStatusOptMap = {
10: "#FDB757", 10: "#FDB757",
...@@ -1545,7 +1544,7 @@ export const evaluationStatusOptMap = { ...@@ -1545,7 +1544,7 @@ export const evaluationStatusOptMap = {
40: "#2CCA74", 40: "#2CCA74",
50: "#2CCA74", 50: "#2CCA74",
100: "#8C8C8C", 100: "#8C8C8C",
1: "#EB4E4E" "-1": "#EB4E4E"
} }
// 合同类型 // 合同类型
export const electronicContractTypeOpt = [ export const electronicContractTypeOpt = [
......
...@@ -64,6 +64,12 @@ export const routerName = { ...@@ -64,6 +64,12 @@ export const routerName = {
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleExport" handle: "handleExport"
},
{
authId: "9200204",
parentId: "92002",
label: "图片下载",
handle: "handleDownLoad"
} }
], ],
component: _import("usedCarManagement/evaluationManagement/index") component: _import("usedCarManagement/evaluationManagement/index")
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<script> <script>
import lineHeader from "./lineHeader.vue" import lineHeader from "./lineHeader.vue"
import echartLine from "./echartLine.vue" import echartLine from "./echartLine.vue"
import { getEvaluationData } from "@/api/usedCarManagement.js"
export default { export default {
components: { components: {
lineHeader, lineHeader,
...@@ -23,30 +24,45 @@ export default { ...@@ -23,30 +24,45 @@ export default {
}, },
data() { data() {
return { return {
dateType: 1,
title: "评估量", title: "评估量",
xData: [ xData: [],
"2025-08-18", yData: []
"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
]
} }
}, },
created() {
this.getEvaluationData()
},
methods: { 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> </script>
......
...@@ -57,7 +57,29 @@ export default { ...@@ -57,7 +57,29 @@ export default {
}, 1000) }, 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() { 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 = { var option = {
grid: { grid: {
top: "37", top: "37",
...@@ -149,7 +171,11 @@ ${this.title}:${params[0].value}辆 ...@@ -149,7 +171,11 @@ ${this.title}:${params[0].value}辆
}, },
axisTick: { axisTick: {
show: false show: false
} },
// 设置y轴固定显示5个点
min: yAxisMin,
max: interval * 4, // 确保最大值是间隔的4倍,这样就有0,1,2,3,4共5个点
interval: interval
}, },
series: [ series: [
{ {
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<script> <script>
import lineHeader from "./lineHeader.vue" import lineHeader from "./lineHeader.vue"
import echartLine from "./echartLine.vue" import echartLine from "./echartLine.vue"
import { getDealData } from "@/api/usedCarManagement.js"
export default { export default {
components: { components: {
lineHeader, lineHeader,
...@@ -23,30 +24,43 @@ export default { ...@@ -23,30 +24,43 @@ export default {
}, },
data() { data() {
return { return {
dateType: 1,
title: "二手车成交量", title: "二手车成交量",
xData: [ xData: [],
"2025-08-18", yData: []
"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
]
} }
}, },
created() {
this.getDealData()
},
methods: { 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> </script>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<glsx-combi-form <glsx-combi-form
class="edit-form-container" class="edit-form-container"
ref="editFormRef" ref="editFormRef"
isBlock="true" :isBlock="true"
label-width="150px" label-width="150px"
:form-ref="editChildRef" :form-ref="editChildRef"
:form-obj="assessForm" :form-obj="assessForm"
...@@ -19,6 +19,14 @@ ...@@ -19,6 +19,14 @@
</template> </template>
<script> <script>
export default { export default {
props: {
detailInfo: {
type: Object,
default: function () {
return {}
}
}
},
data() { data() {
return { return {
editChildRef: "editChildRef", editChildRef: "editChildRef",
...@@ -113,6 +121,15 @@ export default { ...@@ -113,6 +121,15 @@ export default {
} }
} }
}, },
watch: {
detailInfo(val) {
console.log(val, "detailInfo")
this.assessForm = {
evalPrice: val.evalPrice,
evalOpinion: val.evalOpinion
}
}
},
methods: { methods: {
async confirm() { async confirm() {
const isValid = await this.$refs.editFormRef.$refs[ const isValid = await this.$refs.editFormRef.$refs[
......
...@@ -160,6 +160,12 @@ ...@@ -160,6 +160,12 @@
<script> <script>
import { deepClone } from "@/common/util" import { deepClone } from "@/common/util"
export default { export default {
props: {
detailInfo: {
type: Object,
default: () => {}
}
},
data() { data() {
return { return {
detailInfo: { detailInfo: {
...@@ -176,7 +182,9 @@ export default { ...@@ -176,7 +182,9 @@ export default {
key: "evalPrice", key: "evalPrice",
col: 24, col: 24,
formatter: (row) => { formatter: (row) => {
return 10000 + "元" return row.evalPrice || row.evalPrice === 0
? row.evalPrice + "元"
: "-"
} }
}, },
{ {
......
<!-- 评估动态 --> <!-- 评估动态 -->
<template> <template>
<div class="dynamics-wrapper"> <div class="dynamics-wrapper" v-if="dynamicsData && dynamicsData.length">
<div class="title">评估动态</div> <div class="title">评估动态</div>
<div class="timeline-box"> <div class="timeline-box">
<el-timeline> <el-timeline>
...@@ -51,47 +51,14 @@ ...@@ -51,47 +51,14 @@
<script> <script>
export default { export default {
data() { props: {
return { dynamicsData: {
dynamicsData: [ type: Array,
{ default: () => []
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评估师驳回
}
]
} }
},
data() {
return {}
} }
} }
</script> </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 @@ ...@@ -4,7 +4,7 @@
:dialog-config="dialogConfig" :dialog-config="dialogConfig"
:is-show.sync="visible" :is-show.sync="visible"
class="accountDailog" class="accountDailog"
@handleClick="handleAddConfirm" @handleClick="confirm"
> >
<div class="reject-dialog"> <div class="reject-dialog">
<glsx-combi-form <glsx-combi-form
...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
</template> </template>
<script> <script>
import { reject } from "@api/shelfManage.js"
export default { export default {
name: "RejectDialog", name: "RejectDialog",
data() { data() {
return { return {
infoForm: { infoForm: {
remark: "" rejectReason: "",
rejectSuggestion: ""
}, },
dialogConfig: { dialogConfig: {
title: "驳回", title: "驳回",
...@@ -36,22 +36,26 @@ export default { ...@@ -36,22 +36,26 @@ export default {
}, },
rejectRef: "rejectRef", rejectRef: "rejectRef",
formRules: { formRules: {
reason: [ rejectReason: [
{ required: true, message: "请输入驳回原因", trigger: "blur" } { required: true, message: "请输入驳回原因", trigger: "blur" }
], ],
remark: [{ required: true, message: "请输入驳回意见", trigger: "blur" }] rejectSuggestion: [
{ required: true, message: "请输入", trigger: "blur" }
]
}, },
editFormData: [ editFormData: [
{ {
label: "驳回原因", label: "驳回原因",
name: "reason", name: "rejectReason",
type: "input", type: "input",
placeholder: "请输入驳回原因",
maxlength: 50 maxlength: 50
}, },
{ {
label: "驳回意见", label: "驳回意见",
name: "remark", name: "rejectSuggestion",
type: "input", type: "input",
placeholder: "请输入",
maxlength: 200, maxlength: 200,
inputType: "textarea", inputType: "textarea",
showLimit: true, showLimit: true,
...@@ -90,20 +94,12 @@ export default { ...@@ -90,20 +94,12 @@ export default {
}, },
methods: { methods: {
handleAddConfirm() { async confirm() {
this.$refs.formRef.$refs[this.rejectRef].validate((valid) => { const isValid = await this.$refs.formRef.$refs[this.rejectRef].validate()
if (valid) { console.log(isValid)
var params = {} if (isValid) {
params.rejectedReason = this.infoForm.remark this.$emit("handleAddConfirm")
params.id = this.paramsObj.id }
reject(params).then((res) => {
this.notice.okTips("操作成功")
this.visible = true
thi.$router.go(-1)
})
}
})
}, },
handleClose() { handleClose() {
console.log("handleClose") console.log("handleClose")
......
...@@ -84,14 +84,14 @@ ...@@ -84,14 +84,14 @@
</template> </template>
</template> </template>
<template v-else> <template v-else>
<div
v-if="item.className"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
<div class="flex"> <div class="flex">
<div
v-if="item.className"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
{{ {{
item.formatter item.formatter
? item.formatter(detailInfo) || "-" ? item.formatter(detailInfo) || "-"
...@@ -160,7 +160,8 @@ ...@@ -160,7 +160,8 @@
<script> <script>
import { import {
evaluationStatusOpt, evaluationStatusOpt,
evaluationStatusOptMap evaluationStatusOptMap,
ownerTypeOpt
} from "@/common/constants.js" } from "@/common/constants.js"
import preview from "../../components/preview" import preview from "../../components/preview"
import { deepClone } from "@/common/util" import { deepClone } from "@/common/util"
...@@ -175,54 +176,6 @@ export default { ...@@ -175,54 +176,6 @@ export default {
height: "90px", height: "90px",
isClose: false 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: [ configData: [
{ {
title: "车辆信息", title: "车辆信息",
...@@ -245,11 +198,11 @@ export default { ...@@ -245,11 +198,11 @@ export default {
}, },
{ {
title: "上牌城市", title: "上牌城市",
key: "licensePlate" key: "registrationCityName"
}, },
{ {
title: "表显里程", title: "表显里程",
key: "vin" key: "mileageStr"
}, },
{ {
title: "使用性质", title: "使用性质",
...@@ -257,11 +210,28 @@ export default { ...@@ -257,11 +210,28 @@ export default {
}, },
{ {
title: "所有人性质", title: "所有人性质",
key: "registrationDate" key: "ownerType",
formatter: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"ownerTypeOpt", // 配置项数组的键名
row,
"ownerType"
)
return statusItem?.confValue || "-"
}
}, },
{ {
title: "天窗", title: "天窗",
key: "registrationDate" key: "sunroof",
formatter: (row) => {
let sunRoofMap = {
1: "无天窗",
2: "普通天窗",
3: "全景天窗"
}
return sunRoofMap[row.sunroof]
}
}, },
{ {
title: "品牌定位", title: "品牌定位",
...@@ -298,9 +268,13 @@ export default { ...@@ -298,9 +268,13 @@ export default {
title: "评估单状态", title: "评估单状态",
key: "status", key: "status",
formatter: (row) => { formatter: (row) => {
return this.baseData.evaluationStatusOpt.find( const statusItem = this.getStatusItem(
(item) => item.confId == row.status this.baseData,
).confValue "evaluationStatusOpt", // 配置项数组的键名
row,
"status"
)
return statusItem?.confValue || "-"
}, },
className: (row) => { className: (row) => {
return this.baseData.evaluationStatusOptMap[row.status] return this.baseData.evaluationStatusOptMap[row.status]
...@@ -365,10 +339,26 @@ export default { ...@@ -365,10 +339,26 @@ export default {
} }
], ],
baseData: { baseData: {
ownerTypeOpt: deepClone(ownerTypeOpt),
evaluationStatusOpt: deepClone(evaluationStatusOpt), evaluationStatusOpt: deepClone(evaluationStatusOpt),
evaluationStatusOptMap: deepClone(evaluationStatusOptMap) 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> </script>
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
<template> <template>
<div class="evalOrderDetail"> <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="footer">
<div class="cancel-btn" @click="handleCancel">关闭</div> <div class="cancel-btn" @click="handleCancel">关闭</div>
</div> </div>
...@@ -14,23 +14,13 @@ ...@@ -14,23 +14,13 @@
</template> </template>
<script> <script>
import vehicleInfo from "./components/vehicleInfo.vue" import { evaluateMixin } from "./components/evaluateMixin"
import dynamics from "./components/dynamics.vue"
import assessInfo from "./components/assessInfo.vue"
export default { export default {
components: { mixins: [evaluateMixin],
vehicleInfo,
dynamics,
assessInfo
},
data() { data() {
return {} return {}
}, },
methods: { methods: {}
handleCancel() {
this.$router.go(-1)
}
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
<!-- 车辆评估 -->
<template> <template>
<div class="evaluate-wrapper"> <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="footer">
<div class="save-btn" @click="handleSave">保存</div> <div class="save-btn" @click="handleSave">保存</div>
<div class="reject-btn" plain @click="handleReject">驳回</div> <div class="reject-btn" plain @click="handleReject">驳回</div>
<div class="cancel-btn" @click="handleCancel">关闭</div> <div class="cancel-btn" @click="handleCancel">关闭</div>
</div> </div>
<reject-dialog <reject-dialog
ref="rejectDialogRef"
v-if="rejectVisible" v-if="rejectVisible"
:rejectVisible="rejectVisible" :rejectVisible="rejectVisible"
:paramsObj="paramsObj" :paramsObj="paramsObj"
...@@ -23,17 +23,10 @@ ...@@ -23,17 +23,10 @@
</template> </template>
<script> <script>
import vehicleInfo from "./components/vehicleInfo.vue" import { evaluateMixin } from "./components/evaluateMixin"
import dynamics from "./components/dynamics.vue" import { evaluateCar } from "@/api/usedCarManagement"
import assess from "./components/assess.vue"
import rejectDialog from "./components/rejectDialog.vue"
export default { export default {
components: { mixins: [evaluateMixin],
vehicleInfo,
dynamics,
assess,
rejectDialog
},
data() { data() {
return { return {
rejectVisible: false, rejectVisible: false,
...@@ -41,20 +34,45 @@ export default { ...@@ -41,20 +34,45 @@ export default {
} }
}, },
methods: { methods: {
handleCancel() {
this.$router.go(-1)
},
handleReject() { handleReject() {
console.log("paramsObj", this.paramsObj) console.log("paramsObj", this.paramsObj)
this.rejectVisible = !this.rejectVisible this.rejectVisible = !this.rejectVisible
}, },
dialogClose() { dialogClose() {
this.rejectVisible = !this.rejectVisible 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() { handleSave() {
let isValid = this.$refs.assessRef.confirm() 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 @@ ...@@ -6,7 +6,7 @@
ref="showSearch" ref="showSearch"
class="show-search" class="show-search"
:search-form="searchForm" :search-form="searchForm"
:label-width="'100px'" :label-width="'120px'"
:form-data="showFormData" :form-data="showFormData"
> >
</d2-search> </d2-search>
...@@ -19,11 +19,8 @@ ...@@ -19,11 +19,8 @@
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header> <d2-table-header>
<el-button size="small" type="primary" @click="exportTable"> <auth-button category="Button" :show-btn-ids="['9200203']" />
导出
</el-button>
</d2-table-header> </d2-table-header>
<!-- :get-list-api="getListApi" -->
<d2-table <d2-table
ref="table" ref="table"
:get-list-api="getListApi" :get-list-api="getListApi"
...@@ -31,14 +28,16 @@ ...@@ -31,14 +28,16 @@
:table-params="tableParams" :table-params="tableParams"
:before-search-fn="beforeSearchFn" :before-search-fn="beforeSearchFn"
> >
<div slot="carImageUrl" slot-scope="scope" class="carImageUrl-preview"> <div slot="coverImage" slot-scope="scope" class="coverImage-preview">
<glsx-preview <glsx-preview
v-if="scope.scope.coverImage"
:image-url-arr=" :image-url-arr="
scope.scope.carImageUrl ? [scope.scope.carImageUrl] : [] scope.scope.coverImage ? [scope.scope.coverImage] : []
" "
:picOptions="picOptions" :picOptions="picOptions"
limit="1" limit="1"
></glsx-preview> ></glsx-preview>
<span v-else>-</span>
</div> </div>
<!-- 评估单状态 --> <!-- 评估单状态 -->
<div slot="statusHtml" slot-scope="scope"> <div slot="statusHtml" slot-scope="scope">
...@@ -60,7 +59,7 @@ ...@@ -60,7 +59,7 @@
<span style="margin-right: 10px"> <span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9200201']" /> <auth-button :data="scope.scope" :show-btn-ids="['9200201']" />
</span> </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']" /> <auth-button :data="scope.scope" :show-btn-ids="['9200202']" />
</span> </span>
</div> </div>
...@@ -70,10 +69,8 @@ ...@@ -70,10 +69,8 @@
</template> </template>
<script> <script>
import { receptionTagPage, receptionTagPageExport } from "@/api/resident.js" import { mapActions, mapState } from "vuex"
import preview from "../components/preview" import preview from "../components/preview"
import { listShop4sByRef } from "@api/merchant"
import { getBrandList } from "@/api/scene.js"
import { getEvalOrderList } from "@/api/usedCarManagement.js" import { getEvalOrderList } from "@/api/usedCarManagement.js"
import { import {
usageTypeOpt, usageTypeOpt,
...@@ -100,7 +97,7 @@ export default { ...@@ -100,7 +97,7 @@ export default {
isClose: false isClose: false
}, },
tableParams: { tableParams: {
listName: "list", listName: "records",
mutiSelectUniqueKey: "id", mutiSelectUniqueKey: "id",
mutiSelectName: "mutiSelectIndex", mutiSelectName: "mutiSelectIndex",
tableOption: { tableOption: {
...@@ -109,9 +106,9 @@ export default { ...@@ -109,9 +106,9 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: "车辆照片", label: "车辆照片",
prop: "carImageUrl", prop: "coverImage",
width: "138px", width: "138px",
addHtml: "carImageUrl" addHtml: "coverImage"
}, },
{ {
label: "车牌号", label: "车牌号",
...@@ -142,11 +139,13 @@ export default { ...@@ -142,11 +139,13 @@ export default {
label: "使用性质", label: "使用性质",
prop: "usageType", prop: "usageType",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.usageType const statusItem = this.getStatusItem(
? this.baseData.usageTypeOpt.find( this.baseData,
(item) => item.confId == cellValue.usageType "usageTypeOpt", // 配置项数组的键名
).confValue cellValue,
: "-" "usageType"
)
return statusItem?.confValue || "-"
} }
}, },
{ {
...@@ -154,22 +153,26 @@ export default { ...@@ -154,22 +153,26 @@ export default {
prop: "ownerType", prop: "ownerType",
minWidth: 120, minWidth: 120,
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.ownerType const statusItem = this.getStatusItem(
? this.baseData.ownerTypeOpt.find( this.baseData,
(item) => item.confId == cellValue.ownerType "ownerTypeOpt", // 配置项数组的键名
).confValue cellValue,
: "-" "ownerType"
)
return statusItem?.confValue || "-"
} }
}, },
{ {
label: "车辆类型", label: "车辆类型",
prop: "vehicleCategory", prop: "vehicleCategory",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.vehicleCategory const statusItem = this.getStatusItem(
? this.baseData.vehicleCategoryOpt.find( this.baseData,
(item) => item.confId == cellValue.vehicleCategory "vehicleCategoryOpt", // 配置项数组的键名
).confValue cellValue,
: "-" "vehicleCategory"
)
return statusItem?.confValue || "-"
} }
}, },
{ {
...@@ -226,36 +229,6 @@ export default { ...@@ -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: {}, searchFormSearch: {},
searchForm: { searchForm: {
licensePlate: "", licensePlate: "",
...@@ -358,7 +331,7 @@ export default { ...@@ -358,7 +331,7 @@ export default {
maxlength: 20 maxlength: 20
}, },
{ {
label: "新车下定", label: "是否新车下定",
name: "buyNewCar", name: "buyNewCar",
type: "select", type: "select",
isClear: true, isClear: true,
...@@ -443,19 +416,61 @@ export default { ...@@ -443,19 +416,61 @@ export default {
} }
}, },
mounted() { mounted() {
// getEvalOrderList().then((res) => {
// console.log(res, "9999")
// })
this.getOptionsList() this.getOptionsList()
}, },
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
methods: { 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) { handleAssess(data) {
console.log("row", data) console.log("row", data)
this.$router.push({ this.$router.push({
path: "/evaluate", path: "/evaluate",
query: { query: {
id: data.id evalOrderNo: data.evalOrderNo
} }
}) })
}, },
...@@ -465,42 +480,46 @@ export default { ...@@ -465,42 +480,46 @@ export default {
this.$router.push({ this.$router.push({
path: "/evalOrderDetail", path: "/evalOrderDetail",
query: { query: {
id: data.id evalOrderNo: data.evalOrderNo
} }
}) })
}, },
beforeSearchFn(type = 1) { getParams() {
console.log(this.searchForm) 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) => { return new Promise((resolve, reject) => {
this.searchFormSearch = deepClone(this.searchForm) this.searchFormSearch = this.getParams()
// 上牌时间
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
resolve() resolve()
}) })
}, },
...@@ -546,7 +565,7 @@ export default { ...@@ -546,7 +565,7 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.carImageUrl-preview { .coverImage-preview {
width: 138px; width: 138px;
height: 54px; height: 54px;
::v-deep .photo-activity { ::v-deep .photo-activity {
......
...@@ -191,54 +191,7 @@ export default { ...@@ -191,54 +191,7 @@ export default {
height: "90px", height: "90px",
isClose: false isClose: false
}, },
detailInfo: { 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: [ configData: [
{ {
title: "合同状态", title: "合同状态",
......
...@@ -18,6 +18,10 @@ ...@@ -18,6 +18,10 @@
:form-data="editFormData" :form-data="editFormData"
:form-rules="formRules" :form-rules="formRules"
></glsx-combi-form> ></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> </div>
</baseDialog> </baseDialog>
</template> </template>
...@@ -34,6 +38,7 @@ export default { ...@@ -34,6 +38,7 @@ export default {
name: "sunDialog", name: "sunDialog",
data() { data() {
return { return {
isShow: false,
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
form: { form: {
sellerMerchantId: "", sellerMerchantId: "",
...@@ -107,12 +112,13 @@ export default { ...@@ -107,12 +112,13 @@ export default {
{ {
label: "4S门店", label: "4S门店",
name: "sellerMerchantId", name: "sellerMerchantId",
placeHolder: "请选择", placeholder: "请选择",
type: "select", type: "select",
optionList: [], optionList: [],
optionId: "merchantId", optionId: "merchantId",
optionLabel: "merchantName", optionLabel: "merchantName",
optionsName: "storeIdList", optionsName: "storeIdList",
isDisabled: this.paramsObj.id ? true : false,
changeAttr: (val) => { changeAttr: (val) => {
console.log(this.findIndexIds("storeIdList", "merchantId", val)) console.log(this.findIndexIds("storeIdList", "merchantId", val))
this.form.sellerMerchantName = this.form.sellerMerchantName =
...@@ -125,7 +131,7 @@ export default { ...@@ -125,7 +131,7 @@ export default {
{ {
label: "车辆类型", label: "车辆类型",
name: "carType", name: "carType",
placeHolder: "请选择", placeholder: "请选择",
type: "select", type: "select",
isClear: true, isClear: true,
optionList: [], optionList: [],
...@@ -135,7 +141,7 @@ export default { ...@@ -135,7 +141,7 @@ export default {
}, },
{ {
label: "激励价格(元)", label: "激励价格(元)",
placeHolder: "请输入", placeholder: "请输入",
name: "sunlightInspiresPrice", name: "sunlightInspiresPrice",
type: "input", type: "input",
maxlength: 11 maxlength: 11
...@@ -311,5 +317,20 @@ export default { ...@@ -311,5 +317,20 @@ export default {
.tips { .tips {
color: #999999; 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> </style>
<!-- 阳光激励 --> <!-- 阳光激励 -->
<!-- 合同管理 -->
<template> <template>
<d2-container class="contract-wrap"> <d2-container class="contract-wrap">
<div class="header" slot="header"> <div class="header" slot="header">
...@@ -68,9 +67,12 @@ ...@@ -68,9 +67,12 @@
</template> </template>
<script> <script>
import { receptionTagPage, receptionTagPageExport } from "@/api/resident.js" import { mapActions, mapState } from "vuex"
import { listShop4sByRef } from "@api/merchant" import {
import { getSunlightPage } from "@/api/usedCarManagement.js" getSunlightPage,
deleteSunlightConfig,
exportSunlightPage
} from "@/api/usedCarManagement.js"
import inputRange from "../inputRange" import inputRange from "../inputRange"
import { vehicleCategoryOpt } from "@/common/constants.js" import { vehicleCategoryOpt } from "@/common/constants.js"
import { getServiceStore } from "@api/order" import { getServiceStore } from "@api/order"
...@@ -181,7 +183,14 @@ export default { ...@@ -181,7 +183,14 @@ export default {
mounted() { mounted() {
this.getServiceStore() this.getServiceStore()
}, },
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
methods: { methods: {
...mapActions("d2admin/user", ["actionSetDownloadList"]),
handleAddStimulate() { handleAddStimulate() {
this.paramsObj = {} this.paramsObj = {}
this.sunVisible = true this.sunVisible = true
...@@ -196,7 +205,19 @@ export default { ...@@ -196,7 +205,19 @@ export default {
this.paramsObj = row this.paramsObj = row
this.sunVisible = !this.sunVisible 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() { dialogClose() {
this.sunVisible = !this.sunVisible this.sunVisible = !this.sunVisible
console.log("dialogClose", this.sunVisible) console.log("dialogClose", this.sunVisible)
...@@ -214,7 +235,7 @@ export default { ...@@ -214,7 +235,7 @@ export default {
}, },
getServiceStore(merchantIds) { getServiceStore(merchantIds) {
getServiceStore({ getServiceStore({
scene: 7 scene: 7 //二手车
}).then((res) => { }).then((res) => {
this.baseData.storeIdList = res || [] this.baseData.storeIdList = res || []
this.getOptionsList() this.getOptionsList()
...@@ -230,34 +251,37 @@ export default { ...@@ -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() { beforeSearchFn() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.searchFormSearch = deepClone(this.searchForm) this.searchFormSearch = this.getParams()
// 录入时间 resolve(this.searchFormSearch)
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()
}) })
}, },
handleSearch() { handleSearch() {
...@@ -268,9 +292,36 @@ export default { ...@@ -268,9 +292,36 @@ export default {
this.searchForm = this.$options.data.call(this).searchForm this.searchForm = this.$options.data.call(this).searchForm
this.handleSearch() this.handleSearch()
}, },
async exportTable() { filterIds() {
let selectedData = [] let ids = []
console.log(this.$refs.table.mutiSelectArr.mutiSelectIndex) 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() { getOptionsList() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!