Commit b7de070e 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 24a3575e 046fee7c
Showing 46 changed files with 862 additions and 483 deletions
......@@ -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",
......
import { Request } from "glsk-toolkit"
import { baseConfig } from "@/main"
import util from "@/libs/util.js"
// 导出一个创建request实例的函数,而不是立即创建实例
const createRequest = (url, method, data) => {
const gscConfig = baseConfig?.gsc || {}
let request = new Request({
...gscConfig,
params: {
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
)
}
}
})
return request.request({
url,
method,
data
})
module.exports = {
gscPost: (url, data, _config = {}) => {
return window.$gscApi.post(url, data, _config)
}
}
export default createRequest
/**二手车 */
import http from "./gscRequest"
// 评估单列表
export function getEvalOrderList (data) {
return http("/evalOrderManage/getEvalOrderList", "post", data)
import { gscPost } from "./gscRequest"
// 数据看板指标统计
export function getdataBoard(data) {
return gscPost("/dataBoard/index", data)
}
// 数据看板评估量趋势
export function getEvaluationData(data) {
return gscPost("/dataBoard/evaluation", data)
}
// 数据看板成交量趋势
export function getDealData(data) {
return gscPost("/dataBoard/deal", data)
}
// 合同管理列表
export function getContractList(data) {
return gscPost("/evalElectronicContract/page", data)
}
// 合同管理详情
export function getContractDetail(data) {
return gscPost("/evalElectronicContract/detail", data)
}
//合同下载
export function getContractDownload(data) {
return gscPost("/evalElectronicContract/getContractFileUrl", data)
}
//编辑合同详情
export function getContractEdit(data) {
return gscPost("/evalElectronicContract/editDescription", data)
}
// 评估单列表
export function getEvalOrderList(data) {
return gscPost("/evalOrderManage/getEvalOrderList", data)
}
//评估单详情
export function getEvalOrderDetail(data) {
console.log(data)
return gscPost("/evalOrderManage/getEvalOrderDetail", data)
}
//评估单动态
export function getEvalOrderPriceHistory(data) {
return gscPost("/evalOrderManage/getEvalOrderPriceHistory", data)
}
//评估车辆
export function evaluateCar(data) {
return gscPost("/evalOrderManage/evaluate", data, { returnAll: true })
}
//车辆评估导出
export function exportEvaluate(data) {
return gscPost("/evalOrderManage/exportEvalOrderAsync", data)
}
//阳光激励配置分页
export function getSunlightPage (data) {
console.log(http)
return http("/sunlightInspiresConfig/page", "post", data)
export function getSunlightPage(data) {
console.log(gscPost)
return gscPost("/sunlightInspiresConfig/page", data)
}
//修改阳光激励配置
export const updateSunlightConfig = (data) => {
return http("/sunlightInspiresConfig/edit", "post", data)
return gscPost("/sunlightInspiresConfig/edit", data, { returnAll: true })
}
// 新增阳光激励配置
export const createSunlightConfig = (data) => {
return http("/sunlightInspiresConfig/create", "post", data)
return gscPost("/sunlightInspiresConfig/create", data, { returnAll: true })
}
//阳光激励详情
export const getSunlightConfig = (data) => {
return http("/sunlightInspiresConfig/details", "post", data)
return gscPost("/sunlightInspiresConfig/details", data)
}
//阳光激励操作日记
export const getSunlightLog = (data) => {
return http("/sunlightInspiresConfig/log/page", "post", data)
return gscPost("/sunlightInspiresConfig/log/page", data)
}
//阳光激励导出
export const exportSunlightPage = (data) => {
return http("/sunlightInspiresConfig/export", "post", data)
return gscPost("/sunlightInspiresConfig/export", data)
}
//删除阳光激励配置
export const deleteSunlightConfig = (data) => {
return http("/sunlightInspiresConfig/delete", "post", data)
return gscPost("/sunlightInspiresConfig/delete", data)
}
/**
* 获取车辆管理列表
*/
export const getCarManagementPage = (data) => {
return http("/carManagement/carManagementPage", "post", data)
return gscPost("/carManagement/carManagementPage", data)
}
/**
* 导出车辆管理列表
*/
export const exportCarManagementPage = (data) => {
return http("/carManagement/export", "post", data)
return gscPost("/carManagement/export", data)
}
/**
* 获取车辆管理详情
*/
export const getCarManagementDetail = (data) => {
return http("/carManagement/details", "post", data)
return gscPost("/carManagement/details", data)
}
/**
* 车辆状态变更
*/
export const getCarManagementList = (data) => {
return http("/carManagement/edit", "post", data)
export const editCarStatus = (data) => {
return gscPost("/carManagement/edit", data)
}
/**
* 车辆管理操作日志
*/
export const getCarManagementLog = (data) => {
return http("/carManagement/carManagementLog", "post", data)
}
\ No newline at end of file
return gscPost("/carManagement/carManagementLog", data)
}
......@@ -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,30 +1544,25 @@ export const evaluationStatusOptMap = {
40: "#2CCA74",
50: "#2CCA74",
100: "#8C8C8C",
1: "#EB4E4E"
"-1": "#EB4E4E"
}
// 合同类型
export const electronicContractTypeOpt = [
{ confId: "1", confValue: "二手车买卖合同" },
{ confId: "3", confValue: "二手车车辆交接单" },
{ confId: "2", confValue: "二手车代保管协议" },
{ confId: "4", confValue: "确认交接单" }
{ confId: "1", confValue: "二手车转让协议" },
{ confId: "3", confValue: "二手车补充协议" },
{ confId: "2", confValue: "车辆代保管协议" },
{ confId: "4", confValue: "车辆交接确认单" }
]
//合同流转状态
export const electronicContractStatusOpt = [
{ confId: "0", confValue: "合同创建" },
{ confId: "1", confValue: "合同签署中" },
{ confId: "2", confValue: "合同签署完成" },
{ confId: "7", confValue: "合同拒签" },
{ confId: "3", confValue: "合同撤回" }
{ confId: "2", confValue: "合同签署完成" }
]
//付款状态
export const payStatusOpt = [
{ confId: "40", confValue: "已支付-定金", color: "#2CCA74" },
{ confId: "50", confValue: "已支付-尾款", color: "#2CCA74" },
{ confId: "50", confValue: "已支付-全款", color: "#2CCA74" },
{ confId: "100", confValue: "已完成", color: "#8C8C8C" },
{ confId: "1", confValue: "已驳回", color: "#EB4E4E" }
{ confId: "1", confValue: "定金" },
{ confId: "2", confValue: "尾款" },
{ confId: "3", confValue: "全款" }
]
// 拆分支付
export const splitPayOpt = [
......@@ -1582,3 +1576,9 @@ export const oaFlowStatusOpt = [
{ confId: "3", confValue: "已驳回", color: "#EB4E4E" },
{ confId: "4", confValue: "已撤销", color: "#8C8C8C" }
]
//支付状态
export const oaFlowPaymentStatusOpt = [
{ confId: "1", confValue: "支付成功", color: "#2CCA74" },
{ confId: "2", confValue: "支付失败", color: "#EB4E4E" },
{ confId: "3", confValue: "支付中", color: "#FDB757" }
]
......@@ -250,6 +250,22 @@ export const rangePickerOptions_year = {
return false
}
}
export const todayEndPickerOptions = {
disabledDate(time) {
// 获取当天结束时间(23:59:59)
const today = new Date()
const todayEnd = new Date(
today.getFullYear(),
today.getMonth(),
today.getDate(),
23,
59,
59
)
return time.getTime() > todayEnd.getTime()
}
}
/**
* 店面配置-门店产值
......
......@@ -169,7 +169,8 @@
import {
rangePickerOptions,
yesterdayPicker,
rangePickerOptions_30day2
rangePickerOptions_30day2,
todayEndPickerOptions
} from "@/common/format"
export default {
name: "D2Search",
......@@ -178,7 +179,8 @@ export default {
pickerOption: {
rangePickerOptions: rangePickerOptions,
yesterdayPicker: yesterdayPicker,
rangePickerOptions_30day2: rangePickerOptions_30day2
rangePickerOptions_30day2: rangePickerOptions_30day2,
todayEndPickerOptions: todayEndPickerOptions
}
}
},
......@@ -209,14 +211,13 @@ export default {
// type: Number,
// default: 12
// }
selectPopperAppendToBody:{
selectPopperAppendToBody: {
type: Boolean,
default: true
}
},
mounted() {
},
mounted() {},
methods: {
// 选择框-添加其他属性
......
......@@ -23,6 +23,9 @@ import { config } from "@/common/baseConfig"
import GLMapSdk from "@/common/glsk-mapapi-sdk"
// import { GLCombiForm } from "glsx-components" // 权限按钮 (根据权限动态创建)
import VueLazyload from "vue-lazyload"
import { Request } from "glsk-toolkit"
import util from "@/libs/util.js"
Vue.prototype.$mapapi = new GLMapSdk()
Vue.use(VueLazyload, {
// 懒加载默认加载图片
......@@ -48,7 +51,7 @@ process.env.NODE_ENV === "production" &&
tracesSampleRate: 1.0,
logErrors: true,
// 解决火狐浏览器 无法捕获错误的问题
beforeSend(event, hint) {
beforeSend (event, hint) {
const isNonErrorException =
event.exception.values[0].value.startsWith(
"Non-Error exception captured"
......@@ -129,19 +132,41 @@ fetch(
console.log("response", code, response)
if (code == "200") {
console.log(data)
baseConfig = data
// console.log("baseConfig", baseConfig)
// window.$fetchConfig = data
} else {
baseConfig = response
window.$fetchConfig = response
console.log(response)
window.$gscApi = new Request({
...response.gsc,
// baseURL:'http://192.168.3.145:9898/gsc-vcp-web-facade',
// baseURL: 'http://192.168.1.103:5006',
session: {
requiresSession: true,
sessionId: _ => util.cookies.get("token")
},
events: {
error: (error, config) => {
Vue.prototype.$message.error(error.msg)
},
logout: (response, config) => {
store.dispatch("d2admin/user/clear")
util.cookies.remove("token")
router.replace("/login")
Vue.prototype.$message.error('登录超时,请重新登录')
}
}
})
console.log(window.$gscApi, '========')
}
})
.finally(() => {
init()
})
function init() {
function init () {
new Vue({
router,
store,
......@@ -154,7 +179,7 @@ function init() {
Vue.prototype.baseConfig = baseConfig
return h(App)
},
created() {
created () {
// 系统配置
Vue.config.devtools = true
// 展示系统信息
......@@ -166,7 +191,7 @@ function init() {
// 初始化全屏监听
this.$store.dispatch("d2admin/fullscreen/listen")
},
mounted() {}
mounted () { }
}).$mount("#app")
}
export { baseConfig }
......@@ -5,7 +5,7 @@ import {
reportTrack
} from "@api/resident"
export default {
data() {
data () {
return {
prePagePath: "",
track_timerFlag: false,
......@@ -14,19 +14,26 @@ export default {
track_timer_out: null
}
},
beforeRouteEnter(to, from, next) {
beforeRouteEnter (to, from, next) {
next((vm) => {
vm.prePagePath = from.path
})
},
computed: {
loginAccount() {
loginAccount () {
return this.$store.state.d2admin.user.info.loginAccount
}
},
methods: {
setReportTrackData(
/**
*
* @param {动作类型} eventType
* @param {事件别名} eventCode
* @param {业务参数} businessParam
* @param {浏览批次id} batchId
*/
setReportTrackData (
eventType,
eventCode = "",
businessParam = "",
......@@ -70,7 +77,7 @@ export default {
})
}
},
getRandomString(length = 30) {
getRandomString (length = 30) {
const characters =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
let result = ""
......@@ -81,7 +88,7 @@ export default {
}
return result
},
onPageShow() {
onPageShow () {
if (this.track_page_view_flag) return
if (!this.track_batchId) {
this.track_batchId = `DJ_${this.getRandomString()}_${Date.now()}`
......@@ -96,16 +103,17 @@ export default {
this.setBrowseTrackData()
}, 300)
},
onPageHide() {
onPageHide () {
this.track_timerFlag = false
this.track_batchId = null
this.track_page_view_flag = false
clearTimeout(this.track_timer_out)
this.track_timer_out = null
},
setBrowseTrackData() {
setBrowseTrackData () {
try {
if (!this.track_timerFlag || (this.$route.path != "/qualityControlList" && this.$route.path != "/shopConfig")) {
// || (this.$route.path != "/qualityControlList" && this.$route.path != "/shopConfig")
if (!this.track_timerFlag) {
return
} else {
this.track_timer_out = setTimeout(() => {
......@@ -122,7 +130,7 @@ export default {
console.log(error)
}
},
getPrePagePath(_this) {
getPrePagePath (_this) {
let current = _this
const visited = new Set()
......
......@@ -33,9 +33,11 @@ export default {
setTimeout(() => {
if (e.id == 'app') return
let target = e.target || e
if (target.dataset && Object.keys(target.dataset).length && target.dataset.eventCode) this.setReportTrackData(0, target.dataset.eventCode, JSON.parse(target.dataset.track))
if (target.dataset && Object.keys(target.dataset).length && target.dataset.eventCode) {
this.setReportTrackData(0, target.dataset.eventCode, JSON.parse(target.dataset?.track || '{}'))
}
else this.getTrackData(target.parentElement)
}, 100)
}, 10)
},
intervalRepoet () {
if (!this.timerFlag) return
......
......@@ -64,6 +64,12 @@ export const routerName = {
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9200206",
parentId: "92002",
label: "图片下载",
handle: "handleDownLoad"
}
],
component: _import("usedCarManagement/evaluationManagement/index")
......@@ -200,7 +206,7 @@ export const routerName = {
authId: "9200405",
name: "编辑车辆",
parentId: "92004"
}
},
]
},
{
......@@ -216,29 +222,37 @@ export const routerName = {
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9200406",
parentId: "92004",
label: "图片下载",
handle: "handleDownLoad"
}
],
component: _import("usedCarManagement/vehicleManagement/index")
},
9200404: {
path: "/detail",
path: "/vehicleDetail",
name: "vehicleDetail",
meta: {
title: "车辆详情",
authId: "9200404",
parentId: "92004",
activePath: "/vehicleManagement",
cache: false
},
auth: [],
component: _import("usedCarManagement/vehicleManagement/detail")
},
9200405: {
path: "/detail",
path: "/editVehicle",
name: "editVehicle",
meta: {
title: "编辑车辆",
authId: "9200405",
parentId: "92004",
activePath: "/vehicleManagement",
cache: false
},
auth: [],
......
......@@ -191,7 +191,7 @@ export default {
},
searchList() {
this.page = {
pageSize: this.page.pageSize,
pageSize: this.pageSize,
currentPage: 1
}
this.getSelectingList()
......
......@@ -11,7 +11,7 @@
<!-- 员工积分明细页二手车积分类型为“积分提现”时 ,显示一下字段-->
<template
v-if="
detailInfo.infoName == '积分提现' && detailInfo.sceneType == 5
detailInfo.infoName == '积分提现' && detailInfo.sceneType == 7
"
>
<el-row :gutter="20">
......@@ -82,13 +82,13 @@
<el-col :span="12">
<el-form-item
:label="
detailInfo.sceneType == 5 ? '车辆类型:' : '商品名称:'
detailInfo.sceneType == 7 ? '车辆类型:' : '商品名称:'
"
class="halfItem"
>
<template v-if="detailInfo.sceneType == 5">{{
detailInfo.goodIds
? detailInfo.goodIds == 1
<template v-if="detailInfo.sceneType == 7">{{
detailInfo.goodsId
? detailInfo.goodsId == 1
? "置换车"
: "报废车"
: "-"
......
......@@ -20,7 +20,9 @@
<div class="d2-container-content">
<d2-table-header title="课程配置列表">
<span>
<el-button size="small" @click="handleExport"> 导出 </el-button></span
<el-button size="small" @click="handleExport" type="primary">
导出
</el-button></span
>
</d2-table-header>
<d2-table
......
......@@ -25,7 +25,7 @@
短课程配课
</el-button>
<span style="margin-left: 10px">
<el-button size="small" @click="handleExport">
<el-button size="small" @click="handleExport" type="primary">
导出
</el-button></span
>
......
......@@ -1037,48 +1037,52 @@ export default {
closeWarnDialog() {
this.warningVisible = false
},
beforeSearchFn() {
return new Promise((resolve) => {
this.searchFormSearch = deepClone(this.searchForm)
if (this.searchFormSearch.orderTime) {
this.searchFormSearch.orderStartTime = Util.dateFormate(
this.searchFormSearch.orderTime[0],
"YYYY-MM-DD 00:00:00"
getParams() {
const params = deepClone(this.searchForm)
if (params.orderTime) {
params.orderStartTime = Util.dateFormate(
params.orderTime[0],
"YYYY-MM-DD 00:00:00"
)
params.orderEndTime = Util.dateFormate(
params.orderTime[1],
"YYYY-MM-DD 23:59:59"
)
delete params.orderTime
}
const dateFormatList = [
{
attr: "createdDate",
startAttr: "createStartTime",
endAttr: "createEndTime"
},
{
attr: "businessDevTime",
startAttr: "businessDevStartTime",
endAttr: "businessDevEndTime"
}
]
dateFormatList.forEach((item) => {
if (
params[item.attr] &&
params[item.attr].length
) {
params[item.startAttr] = Util.dateFormate(
params[item.attr][0],
"YYYY-MM-DD"
)
this.searchFormSearch.orderEndTime = Util.dateFormate(
this.searchFormSearch.orderTime[1],
"YYYY-MM-DD 23:59:59"
params[item.endAttr] = Util.dateFormate(
params[item.attr][1],
"YYYY-MM-DD"
)
delete this.searchFormSearch.orderTime
}
const dateFormatList = [
{
attr: "createdDate",
startAttr: "createStartTime",
endAttr: "createEndTime"
},
{
attr: "businessDevTime",
startAttr: "businessDevStartTime",
endAttr: "businessDevEndTime"
}
]
dateFormatList.forEach((item) => {
if (
this.searchFormSearch[item.attr] &&
this.searchFormSearch[item.attr].length
) {
this.searchFormSearch[item.startAttr] = Util.dateFormate(
this.searchFormSearch[item.attr][0],
"YYYY-MM-DD"
)
this.searchFormSearch[item.endAttr] = Util.dateFormate(
this.searchFormSearch[item.attr][1],
"YYYY-MM-DD"
)
delete this.searchFormSearch[item.attr]
}
})
delete params[item.attr]
})
return params
},
beforeSearchFn() {
return new Promise((resolve) => {
this.searchFormSearch = this.getParams()
resolve()
})
},
......@@ -1202,7 +1206,7 @@ export default {
},
handleExport() {
var params = deepClone(this.searchFormSearch)
var params = this.getParams()
// debugger
params.method =
"dj.api.smarcarlife.serviceMerchant.shopSettingList.export.async"
......
......@@ -52,6 +52,11 @@ export default {
sceneDesc: '次新车用户领取套餐包转化',
sceneType: 2,
isOpen: 'N'
},{
sceneName: '二手车业务',
sceneDesc: '门店二手车置换或报废业务',
sceneType: 7,
isOpen: 'N'
}]
}
},
......
......@@ -25,7 +25,9 @@
</video>
<img
class="video-poster"
src="../../../../assets/video-default.png"
:src="
videoImg ? videoImg : '../../../../assets/video-default.png'
"
/>
<div class="mask">
<div
......@@ -209,6 +211,10 @@ export default {
index: {
type: Number,
default: -1
},
videoImg: {
type: String,
default: ""
}
},
watch: {
......
......@@ -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,28 @@ export default {
}, 1000)
}
},
getMax() {
let tickIntervalNum = 0
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 / 5)
var option = {
grid: {
top: "37",
......@@ -100,13 +121,13 @@ ${this.title}:${params[0].value}辆
show: false
},
axisTick: {
show: true,
show: false,
lineStyle: {
color: "#E9E9E9"
color: "#fff"
}
},
splitLine: {
show: false, // 根据截图隐藏网格线
show: false, // 隐藏网格线
color: "#E9E9E9"
},
axisLine: {
......@@ -144,12 +165,16 @@ ${this.title}:${params[0].value}辆
fontSize: "12px"
},
splitLine: {
show: true, // 根据截图隐藏网格线
show: true, // 根据隐藏网格线
color: "#E9E9E9"
},
axisTick: {
show: false
}
},
// 设置y轴固定显示5个点
min: yAxisMin,
max: interval * 5, // 确保最大值是间隔的4倍,这样就有0,1,2,3,4共5个点
interval: interval
},
series: [
{
......
......@@ -70,6 +70,16 @@ export default {
.active {
color: #ffffff;
background: #2a58ad;
&:first-child {
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
}
&:last-child {
border-right: none;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
}
.time:last-child {
border-right: none;
......
......@@ -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",
......@@ -33,7 +41,9 @@ export default {
type: "input",
isClear: true,
maxlength: 11,
width: "544px"
width: "570px",
placeholder: "请输入",
append: "元"
},
{
label: "评估意见",
......@@ -43,7 +53,8 @@ export default {
inputType: "textarea",
// showLimit: true,
rows: 4,
width: "570px"
width: "570px",
placeholder: "请输入"
}
],
assessRules: {
......@@ -94,8 +105,8 @@ export default {
callback(new Error("请输入有效数字"))
} else if (numValue <= 0) {
callback(new Error("评估价必须大于0"))
} else if (numValue > 99999999.99) {
callback(new Error("评估价必须小于99999999.99"))
} else if (numValue > 9999999.99) {
callback(new Error("评估价必须小于9999999.99"))
} else {
callback()
}
......@@ -113,12 +124,31 @@ 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[
this.editChildRef
].validate()
return isValid
try {
const formRef = this.$refs.editFormRef
if (!formRef || !formRef.$refs || !formRef.$refs[this.editChildRef]) {
console.error("Form reference not found")
return false
}
const isValid = await formRef.$refs[this.editChildRef].validate()
console.log(isValid, "isValid")
return isValid
} catch (error) {
console.error("Validation failed:", error)
return false
}
}
}
}
......
......@@ -85,7 +85,7 @@
</template>
<template v-else>
<div
v-if="item.className"
v-if="item.className && item.className(detailInfo)"
:style="{
background: item.className(detailInfo)
}"
......@@ -128,7 +128,7 @@
<el-col :span="item.col ? item.col : 12" :key="key">
<el-form-item :label="item.title + ':'">
<div
v-if="item.className"
v-if="item.className && item.className(detailInfo)"
:style="{
background: item.className(detailInfo)
}"
......@@ -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 + "元"
: "-"
}
},
{
......
......@@ -24,6 +24,7 @@
::v-deep .el-form-item__label {
color: #666666;
font-size: 14px;
line-height: 20px;
}
.itemDiv {
display: flex;
......@@ -39,9 +40,16 @@
text-overflow: ellipsis;
white-space: nowrap;
}
::v-deep .el-col {
margin-bottom: 20px;
}
::v-deep .el-form-item__content {
max-width: calc(100% - 150px);
width: calc(100% - 150px);
word-break: break-all;
line-height: 20px;
}
::v-deep el-form-item--medium .el-form-item__label {
line-height: 20px;
}
}
.unit {
......@@ -69,6 +77,21 @@
height: 100%;
object-fit: contain;
position: static !important;
border-radius: 4px;
}
::v-deep .video-poster {
position: absolute;
width: 104px;
height: 104px;
object-fit: fill;
top: 0;
right: 0;
left: 0;
bottom: 0;
border-radius: 4px;
}
::v-deep .mask {
border-radius: 4px;
}
::v-deep .pic-box {
margin-right: 16px;
......
<!-- 评估动态 -->
<template>
<div class="dynamics-wrapper">
<div class="dynamics-wrapper" v-if="dynamicsData && dynamicsData.length">
<div class="title">评估动态</div>
<div class="timeline-box">
<el-timeline>
......@@ -11,9 +11,12 @@
>
<div class="time-box">
<div class="createdBy">
{{ item.opType == 20 ? "驻店人员" : "总部定价师" }}:<span>{{
item.createdBy
}}</span>
<div>
{{ item.opType == 20 ? "驻店人员" : "总部定价师" }}:<span>{{
item.createdBy
}}</span>
</div>
<div class="time">{{ item.quoteTime }}</div>
</div>
<!-- 评估师驳回 -->
<template v-if="item.opType == 30">
......@@ -51,47 +54,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>
......@@ -99,23 +69,33 @@ export default {
<style lang="scss" scoped>
.dynamics-wrapper {
background: #fff;
margin: 0 20px;
margin: 0 20px 20px;
.title {
color: #333333;
font-size: 16px;
padding: 13.5px 20px;
line-height: 23px;
border-bottom: 1px solid #e5e5e5;
font-weight: 600;
}
.timeline-box {
padding: 18px 20px;
.time-box {
.createdBy {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 896px;
margin-bottom: 4px;
color: #666666;
font-size: 14px;
font-weight: 400;
line-height: 20px;
.time {
color: #999999;
font-size: 12px;
font-weight: 400;
}
span {
color: #333333;
font-size: 14px;
......@@ -136,6 +116,7 @@ export default {
.reason {
color: #333333;
font-weight: 400;
max-width: 832px;
}
}
}
......
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")
......@@ -131,8 +127,8 @@ export default {
margin: 0 0 20px !important;
}
.el-textarea .el-input__count {
right: 90px;
bottom: -10px;
right: 16px;
bottom: 3px;
font-size: 12px;
color: #999999;
}
......
......@@ -24,10 +24,10 @@
"
>
<glsx-preview
:key="preIndex"
:image-url-arr="
detailInfo[item.key] ? detailInfo[item.key] : []
"
:videoImg="detailInfo[item.key][0] + videoStr"
:picOptions="{ ...picOptions, type: item.otherType }"
limit="1"
></glsx-preview>
......@@ -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 && item.className(detailInfo)"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
{{
item.formatter
? item.formatter(detailInfo) || "-"
......@@ -128,7 +128,7 @@
<el-col :span="item.col ? item.col : 12" :key="key">
<el-form-item :label="item.title + ':'">
<div
v-if="item.className"
v-if="item.className && item.className(detailInfo)"
:style="{
background: item.className(detailInfo)
}"
......@@ -160,7 +160,9 @@
<script>
import {
evaluationStatusOpt,
evaluationStatusOptMap
evaluationStatusOptMap,
ownerTypeOpt,
usageTypeOpt
} from "@/common/constants.js"
import preview from "../../components/preview"
import { deepClone } from "@/common/util"
......@@ -170,59 +172,13 @@ export default {
},
data() {
return {
videoStr: "?x-oss-process=video/snapshot,t_7000,f_jpg,w_800,h_600,m_fast",
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:
"分享时机,在不同的时机分析用户是否有分享的意愿,提供给他们合适的分享内容,能让分享的效果更好。尤其是刚上线的产品,很难通过产品的内部体系来实现快速的用户增长,所以会更加依赖于分享来达到广泛的传播,获取目标用户。所以监听用户的截图操作,提示用户进行分享,既缩短了以前分享截图的操作路径,避免了在之前长路径中的行为流失(比如截图完成后忘记分享或觉得麻烦放弃分享等等),也让用户觉得更加贴心。"
},
rules: {},
configData: [
{
title: "车辆信息",
......@@ -245,27 +201,49 @@ export default {
},
{
title: "上牌城市",
key: "licensePlate"
key: "registrationCityName"
},
{
title: "表显里程",
key: "vin"
key: "mileageStr"
},
{
title: "使用性质",
key: "carTypeName"
key: "carTypeName",
formatter: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"usageTypeOpt", // 配置项数组的键名
row,
"usageType"
)
return statusItem ? statusItem.confValue : "-"
}
},
{
title: "所有人性质",
key: "registrationDate"
key: "ownerType",
formatter: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"ownerTypeOpt",
row,
"ownerType"
)
return statusItem ? statusItem.confValue : "-"
}
},
{
title: "天窗",
key: "registrationDate"
},
{
title: "品牌定位",
key: "vin"
key: "sunroof",
formatter: (row) => {
let sunRoofMap = {
1: "无天窗",
2: "普通天窗",
3: "全景天窗"
}
return sunRoofMap[row.sunroof]
}
},
{
title: "门店",
......@@ -298,12 +276,16 @@ 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 ? statusItem.confValue : "-"
},
className: (row) => {
return this.baseData.evaluationStatusOptMap[row.status]
return this.baseData.evaluationStatusOptMap[row.status] || ""
}
},
{
......@@ -365,10 +347,27 @@ export default {
}
],
baseData: {
usageTypeOpt: deepClone(usageTypeOpt),
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,21 +14,21 @@
</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"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
export default {
components: {
vehicleInfo,
dynamics,
assessInfo
},
mixins: [evaluateMixin, reportTrackPageMixin],
data() {
return {}
return {
trackBusinessParam: {},
track_event_code: "evaluate_management_detail",
track_businessParam_key: "trackBusinessParam"
}
},
methods: {
handleCancel() {
this.$router.go(-1)
mounted() {
this.trackBusinessParam = { evalOrderNo: this.evalOrderNo }
this.onPageShow()
}
}
}
......@@ -43,7 +43,7 @@ export default {
left: 50%;
text-align: center;
margin-left: -28px;
padding: 20px;
padding: 0 20px 20px;
cursor: pointer;
.cancel-btn {
color: #666666;
......
<!-- 车辆评估 -->
<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="save-btn"
@click="handleSave"
:data-track="
JSON.stringify({
evalOrderNo: this.evalOrderNo
})
"
data-event-code="evaluate_management_assess_save"
>
保存
</div>
<div
class="reject-btn"
plain
@click="handleReject"
:data-track="
JSON.stringify({
evalOrderNo: this.evalOrderNo
})
"
data-event-code="evaluate_management_reject_save"
>
驳回
</div>
<div class="cancel-btn" @click="handleCancel">关闭</div>
</div>
<reject-dialog
ref="rejectDialogRef"
v-if="rejectVisible"
:rejectVisible="rejectVisible"
:paramsObj="paramsObj"
......@@ -23,38 +46,77 @@
</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 reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
import { evaluateMixin } from "./components/evaluateMixin"
import { evaluateCar } from "@/api/usedCarManagement"
export default {
components: {
vehicleInfo,
dynamics,
assess,
rejectDialog
},
mixins: [evaluateMixin, reportTrackPageMixin],
data() {
return {
rejectVisible: false,
paramsObj: {}
paramsObj: {},
trackBusinessParam: {},
track_event_code: "evaluate_management_assess",
track_businessParam_key: "trackBusinessParam"
}
},
mounted() {
this.trackBusinessParam = { evalOrderNo: this.evalOrderNo }
this.onPageShow()
},
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()
handleAddConfirm() {
let params = {
vin: this.detailInfo.vin,
opType: 30, //10评估师报价,20客户报价,30评估师驳回
evalOrderNo: this.evalOrderNo,
...this.$refs.rejectDialogRef.infoForm
}
this.submitData(params)
},
async handleSave() {
let isValid = await this.$refs.assessRef.confirm()
if (isValid) {
let params = {
vin: this.detailInfo.vin,
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)
if (res.data.code == 0) {
this.$message.success("操作成功")
this.handleCancel()
this.rejectVisible = false
} else if (res.data.code == 1000) {
this.refreshPage()
} else {
this.$message.error(res.data.msg)
}
})
})
},
refreshPage() {
// 方式一:重新加载当前路由
this.$router.go(0)
this.getEvalOrderDetail()
this.getEvalOrderPriceHistory()
}
}
}
......@@ -68,8 +130,8 @@ export default {
bottom: 0px;
left: 50%;
text-align: center;
margin-left: -28px;
padding: 20px;
padding: 0 20px 20px;
margin-left: -95px;
cursor: pointer;
display: flex;
.save-btn {
......
......@@ -34,6 +34,7 @@
::v-deep .el-form-item__label {
color: #666666;
font-size: 14px;
line-height: 20px;
}
.itemDiv {
display: flex;
......@@ -49,14 +50,28 @@
text-overflow: ellipsis;
white-space: nowrap;
}
::v-deep .el-col {
margin-bottom: 20px;
}
::v-deep .el-form-item__content {
width: calc(100% - 150px);
word-break: break-all;
line-height: 20px;
}
::v-deep .el-form-item--medium .el-form-item__label {
line-height: 20px;
}
}
::v-deep .edit-form-item {
width: 100%;
}
.flex {
display: flex;
align-items: align-items;
}
.unit {
margin-left: 8px;
flex-shrink: 0;
......@@ -82,6 +97,7 @@
height: 100%;
object-fit: contain;
position: static !important;
border-radius: 4px;
}
::v-deep .pic-box {
margin-right: 16px;
......
<template>
<div class="range">
<div :class="[
' el-date-editor',
'el-range-editor',
'el-input__inner',
'el-date-editor--daterange',
'el-range-editor--small',
pickerVisible ? 'is-active' : ''
]"
@click="handleRangeClick"
@mouseleave="showClose = false"
@mousemove="handleMove"
ref="reference">
<div
:class="[
' el-date-editor',
'el-range-editor',
'el-input__inner',
'el-date-editor--daterange',
'el-range-editor--small',
pickerVisible ? 'is-active' : ''
]"
@click="handleRangeClick"
@mouseleave="showClose = false"
@mousemove="handleMove"
ref="reference"
>
<template v-if="infinity">
<el-input-number class="el-range-input hide-btn"
:placeholder="startPlaceholder"
v-model="userInput[0]"
@blur="handleBlur(0)"></el-input-number>
<el-input-number
class="el-range-input hide-btn"
:placeholder="startPlaceholder"
v-model="userInput[0]"
@blur="handleBlur(0)"
></el-input-number>
<span class="el-range-separator">至</span>
<el-input-number class="el-range-input hide-btn"
:placeholder="endPlaceholder"
v-model="userInput[1]"
@blur="handleBlur(1)"></el-input-number>
<el-input-number
class="el-range-input hide-btn"
:placeholder="endPlaceholder"
v-model="userInput[1]"
@blur="handleBlur(1)"
></el-input-number>
</template>
<template v-else>
<el-input v-model="userInput[0]"
:placeholder="startPlaceholder"
@blur="handleBlur(0)"
@input="handleStartInput"
class="el-range-input"></el-input>
<el-input
v-model="userInput[0]"
:placeholder="startPlaceholder"
@blur="handleBlur(0)"
@input="handleStartInput"
class="el-range-input"
></el-input>
<span class="el-range-separator">至</span>
<el-input v-model="userInput[1]"
:placeholder="endPlaceholder"
@input="handleEndInput"
@focus="handleFocus"
@blur="handleBlur(1)"
class="el-range-input"></el-input>
<el-input
v-model="userInput[1]"
:placeholder="endPlaceholder"
@input="handleEndInput"
@focus="handleFocus"
@blur="handleBlur(1)"
class="el-range-input"
></el-input>
</template>
<i v-show="showClose"
@click="handleClickIcon"
class="el-icon-circle-close"></i>
<i
v-show="showClose"
@click="handleClickIcon"
class="el-icon-circle-close"
></i>
</div>
<div class="errorTips"
v-if="tipsShow">最大金额需大于最小金额</div>
<div class="errorTips" v-if="tipsShow">最大金额需大于最小金额</div>
</div>
</template>
<script>
import { limitPrice } from '@/common/format'
import { limitPrice } from "@/common/format"
export default {
data() {
return {
......@@ -55,8 +65,8 @@ export default {
showClose: false,
userInput: this.displayValue,
oldVal: {
startInput: '',
endInput: ''
startInput: "",
endInput: ""
},
tipsShow: false
}
......@@ -70,7 +80,7 @@ export default {
infinity: Boolean,
regRuleStr: {
type: String,
default: 'priceReg'
default: "priceReg"
}
},
watch: {
......@@ -85,12 +95,28 @@ export default {
},
methods: {
handleStartInput(event) {
this.userInput[0] = limitPrice(event, this.oldVal.startInput, 20, 2, '', '', this.regRuleStr)
this.userInput[0] = limitPrice(
event,
this.oldVal.startInput,
15,
2,
"",
"",
this.regRuleStr
)
this.oldVal.startInput = this.userInput[0]
},
handleEndInput(event) {
this.userInput[1] = limitPrice(event, this.oldVal.endInput, 20, 2, '', '', this.regRuleStr)
this.userInput[1] = limitPrice(
event,
this.oldVal.endInput,
15,
2,
"",
"",
this.regRuleStr
)
this.oldVal.endInput = this.userInput[1]
},
handleClickIcon(event) {
......@@ -132,10 +158,10 @@ export default {
contrastValue() {
const val = this.userInput
if (Array.isArray(val)) {
if (val[0] == '-') {
if (val[0] == "-") {
val[0] = null
}
if (val[1] == '-') {
if (val[1] == "-") {
val[1] = null
}
if (val[0] && val[1]) {
......
......@@ -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: "",
......@@ -94,8 +99,8 @@ export default {
callback(new Error("请输入有效数字"))
} else if (numValue <= 0) {
callback(new Error("激励价格必须大于0"))
} else if (numValue > 99999999.99) {
callback(new Error("激励价格必须小于99999999.99"))
} else if (numValue > 9999999.99) {
callback(new Error("激励价格必须小于9999999.99"))
} else {
callback()
}
......@@ -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
......@@ -221,9 +227,13 @@ export default {
? updateSunlightConfig
: createSunlightConfig
Methods(params).then((res) => {
console.log(res)
this.notice.okTips("操作成功")
this.visible = true
if (res.data.code == 0) {
this.$message.success("操作成功")
this.visible = true
this.$emit("handleAddConfirm")
} else {
this.$message.error(res.data.msg)
}
})
}
})
......@@ -311,5 +321,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>
......@@ -24,6 +24,7 @@
::v-deep .el-form-item__label {
color: #666666;
font-size: 14px;
line-height: 20px;
}
.itemDiv {
display: flex;
......@@ -39,9 +40,14 @@
text-overflow: ellipsis;
white-space: nowrap;
}
::v-deep .el-col {
margin-bottom: 20px;
}
::v-deep .el-form-item__content {
max-width: calc(100% - 150px);
width: calc(100% - 150px);
word-break: break-all;
line-height: 20px;
.unit {
// margin-left: 8px;
flex-shrink: 0;
......@@ -84,5 +90,6 @@
.flex {
display: flex;
align-items: center;
line-height: 20px;
}
}
const CAR_STATUS = {
0: '库存中',
1: '已售出',
2: '待售',
3: '已预定',
1: '已售出',
4: '已交付',
5: '待拍卖',
6: '拍卖中',
7: '已退库',
}
const CAR_STATUS_COLOR = {
0: 'warning',
1: 'info',
2: 'danger',
3: 'success',
4: 'success',
5: 'danger',
6: 'warning',
7: 'info',
/**
* 库存中0→待售2→已预定3→已售出1→已交付4→待拍卖5→拍卖中6→已退库7
*/
const CAR_STATUS_LEVEL = {
0: 1,
1: 4,
2: 2,
3: 3,
4: 5,
5: 6,
6: 7,
7: 8,
}
const CAR_STATUS_OPTIONS = Object.keys(CAR_STATUS).map(key => {
const CAR_STATUS_ORDER = [0, 2, 3, 1, 4, 5, 6, 7]
const CAR_STATUS_OPTIONS = CAR_STATUS_ORDER.map(key => {
return {
label: CAR_STATUS[key],
value: key,
value: +key,
level: CAR_STATUS_LEVEL[key],
}
})
const CAR_STATUS_COLOR = {
0: '#fdb757',
1: '#8c8c8c',
2: '#eb4e4e',
3: '#2cca74',
4: '#2cca74',
5: '#eb4e4e',
6: '#fdb757',
7: '#8c8c8c',
}
const USAGE_TYPE = {
1: '非营运',
2: '营运',
3: '营转非'
// 3: '营转非'
}
const USAGE_TYPE_OPTIONS = Object.keys(USAGE_TYPE).map(key => {
return {
......@@ -59,6 +73,7 @@ const HAS_ACCIDENT_OPTIONS = Object.keys(HAS_ACCIDENT).map(key => {
})
module.exports = {
CAR_STATUS,
CAR_STATUS_LEVEL,
CAR_STATUS_COLOR,
CAR_STATUS_OPTIONS,
USAGE_TYPE,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!