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 861 additions and 465 deletions
...@@ -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",
......
import { Request } from "glsk-toolkit" module.exports = {
import { baseConfig } from "@/main" gscPost: (url, data, _config = {}) => {
import util from "@/libs/util.js" return window.$gscApi.post(url, data, _config)
// 导出一个创建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
})
} }
export default createRequest
/**二手车 */ /**二手车 */
import http from "./gscRequest"
// 评估单列表
export function getEvalOrderList (data) { import { gscPost } from "./gscRequest"
return http("/evalOrderManage/getEvalOrderList", "post", data)
// 数据看板指标统计
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) { export function getSunlightPage(data) {
console.log(http) console.log(gscPost)
return http("/sunlightInspiresConfig/page", "post", data) return gscPost("/sunlightInspiresConfig/page", data)
} }
//修改阳光激励配置 //修改阳光激励配置
export const updateSunlightConfig = (data) => { export const updateSunlightConfig = (data) => {
return http("/sunlightInspiresConfig/edit", "post", data) return gscPost("/sunlightInspiresConfig/edit", data, { returnAll: true })
} }
// 新增阳光激励配置 // 新增阳光激励配置
export const createSunlightConfig = (data) => { export const createSunlightConfig = (data) => {
return http("/sunlightInspiresConfig/create", "post", data) return gscPost("/sunlightInspiresConfig/create", data, { returnAll: true })
} }
//阳光激励详情 //阳光激励详情
export const getSunlightConfig = (data) => { export const getSunlightConfig = (data) => {
return http("/sunlightInspiresConfig/details", "post", data) return gscPost("/sunlightInspiresConfig/details", data)
} }
//阳光激励操作日记 //阳光激励操作日记
export const getSunlightLog = (data) => { export const getSunlightLog = (data) => {
return http("/sunlightInspiresConfig/log/page", "post", data) return gscPost("/sunlightInspiresConfig/log/page", data)
} }
//阳光激励导出 //阳光激励导出
export const exportSunlightPage = (data) => { export const exportSunlightPage = (data) => {
return http("/sunlightInspiresConfig/export", "post", data) return gscPost("/sunlightInspiresConfig/export", data)
} }
//删除阳光激励配置 //删除阳光激励配置
export const deleteSunlightConfig = (data) => { export const deleteSunlightConfig = (data) => {
return http("/sunlightInspiresConfig/delete", "post", data) return gscPost("/sunlightInspiresConfig/delete", data)
} }
/** /**
* 获取车辆管理列表 * 获取车辆管理列表
*/ */
export const getCarManagementPage = (data) => { export const getCarManagementPage = (data) => {
return http("/carManagement/carManagementPage", "post", data) return gscPost("/carManagement/carManagementPage", data)
} }
/** /**
* 导出车辆管理列表 * 导出车辆管理列表
*/ */
export const exportCarManagementPage = (data) => { export const exportCarManagementPage = (data) => {
return http("/carManagement/export", "post", data) return gscPost("/carManagement/export", data)
} }
/** /**
* 获取车辆管理详情 * 获取车辆管理详情
*/ */
export const getCarManagementDetail = (data) => { export const getCarManagementDetail = (data) => {
return http("/carManagement/details", "post", data) return gscPost("/carManagement/details", data)
} }
/** /**
* 车辆状态变更 * 车辆状态变更
*/ */
export const getCarManagementList = (data) => { export const editCarStatus = (data) => {
return http("/carManagement/edit", "post", data) return gscPost("/carManagement/edit", data)
} }
/** /**
* 车辆管理操作日志 * 车辆管理操作日志
*/ */
export const getCarManagementLog = (data) => { export const getCarManagementLog = (data) => {
return http("/carManagement/carManagementLog", "post", data) return gscPost("/carManagement/carManagementLog", data)
} }
...@@ -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,30 +1544,25 @@ export const evaluationStatusOptMap = { ...@@ -1545,30 +1544,25 @@ 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 = [
{ confId: "1", confValue: "二手车买卖合同" }, { confId: "1", confValue: "二手车转让协议" },
{ confId: "3", confValue: "二手车车辆交接单" }, { confId: "3", confValue: "二手车补充协议" },
{ confId: "2", confValue: "二手车代保管协议" }, { confId: "2", confValue: "车辆代保管协议" },
{ confId: "4", confValue: "确认交接单" } { confId: "4", confValue: "车辆交接确认单" }
] ]
//合同流转状态 //合同流转状态
export const electronicContractStatusOpt = [ export const electronicContractStatusOpt = [
{ confId: "0", confValue: "合同创建" },
{ confId: "1", confValue: "合同签署中" }, { confId: "1", confValue: "合同签署中" },
{ confId: "2", confValue: "合同签署完成" }, { confId: "2", confValue: "合同签署完成" }
{ confId: "7", confValue: "合同拒签" },
{ confId: "3", confValue: "合同撤回" }
] ]
//付款状态 //付款状态
export const payStatusOpt = [ export const payStatusOpt = [
{ confId: "40", confValue: "已支付-定金", color: "#2CCA74" }, { confId: "1", confValue: "定金" },
{ confId: "50", confValue: "已支付-尾款", color: "#2CCA74" }, { confId: "2", confValue: "尾款" },
{ confId: "50", confValue: "已支付-全款", color: "#2CCA74" }, { confId: "3", confValue: "全款" }
{ confId: "100", confValue: "已完成", color: "#8C8C8C" },
{ confId: "1", confValue: "已驳回", color: "#EB4E4E" }
] ]
// 拆分支付 // 拆分支付
export const splitPayOpt = [ export const splitPayOpt = [
...@@ -1582,3 +1576,9 @@ export const oaFlowStatusOpt = [ ...@@ -1582,3 +1576,9 @@ export const oaFlowStatusOpt = [
{ confId: "3", confValue: "已驳回", color: "#EB4E4E" }, { confId: "3", confValue: "已驳回", color: "#EB4E4E" },
{ confId: "4", confValue: "已撤销", color: "#8C8C8C" } { 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 = { ...@@ -250,6 +250,22 @@ export const rangePickerOptions_year = {
return false 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 @@ ...@@ -169,7 +169,8 @@
import { import {
rangePickerOptions, rangePickerOptions,
yesterdayPicker, yesterdayPicker,
rangePickerOptions_30day2 rangePickerOptions_30day2,
todayEndPickerOptions
} from "@/common/format" } from "@/common/format"
export default { export default {
name: "D2Search", name: "D2Search",
...@@ -178,7 +179,8 @@ export default { ...@@ -178,7 +179,8 @@ export default {
pickerOption: { pickerOption: {
rangePickerOptions: rangePickerOptions, rangePickerOptions: rangePickerOptions,
yesterdayPicker: yesterdayPicker, yesterdayPicker: yesterdayPicker,
rangePickerOptions_30day2: rangePickerOptions_30day2 rangePickerOptions_30day2: rangePickerOptions_30day2,
todayEndPickerOptions: todayEndPickerOptions
} }
} }
}, },
...@@ -209,14 +211,13 @@ export default { ...@@ -209,14 +211,13 @@ export default {
// type: Number, // type: Number,
// default: 12 // default: 12
// } // }
selectPopperAppendToBody:{ selectPopperAppendToBody: {
type: Boolean, type: Boolean,
default: true default: true
} }
}, },
mounted() { mounted() {},
},
methods: { methods: {
// 选择框-添加其他属性 // 选择框-添加其他属性
......
...@@ -23,6 +23,9 @@ import { config } from "@/common/baseConfig" ...@@ -23,6 +23,9 @@ import { config } from "@/common/baseConfig"
import GLMapSdk from "@/common/glsk-mapapi-sdk" import GLMapSdk from "@/common/glsk-mapapi-sdk"
// import { GLCombiForm } from "glsx-components" // 权限按钮 (根据权限动态创建) // import { GLCombiForm } from "glsx-components" // 权限按钮 (根据权限动态创建)
import VueLazyload from "vue-lazyload" import VueLazyload from "vue-lazyload"
import { Request } from "glsk-toolkit"
import util from "@/libs/util.js"
Vue.prototype.$mapapi = new GLMapSdk() Vue.prototype.$mapapi = new GLMapSdk()
Vue.use(VueLazyload, { Vue.use(VueLazyload, {
// 懒加载默认加载图片 // 懒加载默认加载图片
...@@ -48,7 +51,7 @@ process.env.NODE_ENV === "production" && ...@@ -48,7 +51,7 @@ process.env.NODE_ENV === "production" &&
tracesSampleRate: 1.0, tracesSampleRate: 1.0,
logErrors: true, logErrors: true,
// 解决火狐浏览器 无法捕获错误的问题 // 解决火狐浏览器 无法捕获错误的问题
beforeSend(event, hint) { beforeSend (event, hint) {
const isNonErrorException = const isNonErrorException =
event.exception.values[0].value.startsWith( event.exception.values[0].value.startsWith(
"Non-Error exception captured" "Non-Error exception captured"
...@@ -129,19 +132,41 @@ fetch( ...@@ -129,19 +132,41 @@ fetch(
console.log("response", code, response) console.log("response", code, response)
if (code == "200") { if (code == "200") {
console.log(data) console.log(data)
baseConfig = data baseConfig = data
// console.log("baseConfig", baseConfig) // console.log("baseConfig", baseConfig)
// window.$fetchConfig = data // window.$fetchConfig = data
} else { } else {
baseConfig = response baseConfig = response
window.$fetchConfig = 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(() => { .finally(() => {
init() init()
}) })
function init() { function init () {
new Vue({ new Vue({
router, router,
store, store,
...@@ -154,7 +179,7 @@ function init() { ...@@ -154,7 +179,7 @@ function init() {
Vue.prototype.baseConfig = baseConfig Vue.prototype.baseConfig = baseConfig
return h(App) return h(App)
}, },
created() { created () {
// 系统配置 // 系统配置
Vue.config.devtools = true Vue.config.devtools = true
// 展示系统信息 // 展示系统信息
...@@ -166,7 +191,7 @@ function init() { ...@@ -166,7 +191,7 @@ function init() {
// 初始化全屏监听 // 初始化全屏监听
this.$store.dispatch("d2admin/fullscreen/listen") this.$store.dispatch("d2admin/fullscreen/listen")
}, },
mounted() {} mounted () { }
}).$mount("#app") }).$mount("#app")
} }
export { baseConfig } export { baseConfig }
...@@ -5,7 +5,7 @@ import { ...@@ -5,7 +5,7 @@ import {
reportTrack reportTrack
} from "@api/resident" } from "@api/resident"
export default { export default {
data() { data () {
return { return {
prePagePath: "", prePagePath: "",
track_timerFlag: false, track_timerFlag: false,
...@@ -14,19 +14,26 @@ export default { ...@@ -14,19 +14,26 @@ export default {
track_timer_out: null track_timer_out: null
} }
}, },
beforeRouteEnter(to, from, next) { beforeRouteEnter (to, from, next) {
next((vm) => { next((vm) => {
vm.prePagePath = from.path vm.prePagePath = from.path
}) })
}, },
computed: { computed: {
loginAccount() { loginAccount () {
return this.$store.state.d2admin.user.info.loginAccount return this.$store.state.d2admin.user.info.loginAccount
} }
}, },
methods: { methods: {
setReportTrackData( /**
*
* @param {动作类型} eventType
* @param {事件别名} eventCode
* @param {业务参数} businessParam
* @param {浏览批次id} batchId
*/
setReportTrackData (
eventType, eventType,
eventCode = "", eventCode = "",
businessParam = "", businessParam = "",
...@@ -70,7 +77,7 @@ export default { ...@@ -70,7 +77,7 @@ export default {
}) })
} }
}, },
getRandomString(length = 30) { getRandomString (length = 30) {
const characters = const characters =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
let result = "" let result = ""
...@@ -81,7 +88,7 @@ export default { ...@@ -81,7 +88,7 @@ export default {
} }
return result return result
}, },
onPageShow() { onPageShow () {
if (this.track_page_view_flag) return if (this.track_page_view_flag) return
if (!this.track_batchId) { if (!this.track_batchId) {
this.track_batchId = `DJ_${this.getRandomString()}_${Date.now()}` this.track_batchId = `DJ_${this.getRandomString()}_${Date.now()}`
...@@ -96,16 +103,17 @@ export default { ...@@ -96,16 +103,17 @@ export default {
this.setBrowseTrackData() this.setBrowseTrackData()
}, 300) }, 300)
}, },
onPageHide() { onPageHide () {
this.track_timerFlag = false this.track_timerFlag = false
this.track_batchId = null this.track_batchId = null
this.track_page_view_flag = false this.track_page_view_flag = false
clearTimeout(this.track_timer_out) clearTimeout(this.track_timer_out)
this.track_timer_out = null this.track_timer_out = null
}, },
setBrowseTrackData() { setBrowseTrackData () {
try { 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 return
} else { } else {
this.track_timer_out = setTimeout(() => { this.track_timer_out = setTimeout(() => {
...@@ -122,7 +130,7 @@ export default { ...@@ -122,7 +130,7 @@ export default {
console.log(error) console.log(error)
} }
}, },
getPrePagePath(_this) { getPrePagePath (_this) {
let current = _this let current = _this
const visited = new Set() const visited = new Set()
......
...@@ -33,9 +33,11 @@ export default { ...@@ -33,9 +33,11 @@ export default {
setTimeout(() => { setTimeout(() => {
if (e.id == 'app') return if (e.id == 'app') return
let target = e.target || e 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) else this.getTrackData(target.parentElement)
}, 100) }, 10)
}, },
intervalRepoet () { intervalRepoet () {
if (!this.timerFlag) return if (!this.timerFlag) return
......
...@@ -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: "9200206",
parentId: "92002",
label: "图片下载",
handle: "handleDownLoad"
} }
], ],
component: _import("usedCarManagement/evaluationManagement/index") component: _import("usedCarManagement/evaluationManagement/index")
...@@ -200,7 +206,7 @@ export const routerName = { ...@@ -200,7 +206,7 @@ export const routerName = {
authId: "9200405", authId: "9200405",
name: "编辑车辆", name: "编辑车辆",
parentId: "92004" parentId: "92004"
} },
] ]
}, },
{ {
...@@ -216,29 +222,37 @@ export const routerName = { ...@@ -216,29 +222,37 @@ export const routerName = {
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleExport" handle: "handleExport"
},
{
authId: "9200406",
parentId: "92004",
label: "图片下载",
handle: "handleDownLoad"
} }
], ],
component: _import("usedCarManagement/vehicleManagement/index") component: _import("usedCarManagement/vehicleManagement/index")
}, },
9200404: { 9200404: {
path: "/detail", path: "/vehicleDetail",
name: "vehicleDetail", name: "vehicleDetail",
meta: { meta: {
title: "车辆详情", title: "车辆详情",
authId: "9200404", authId: "9200404",
parentId: "92004", parentId: "92004",
activePath: "/vehicleManagement",
cache: false cache: false
}, },
auth: [], auth: [],
component: _import("usedCarManagement/vehicleManagement/detail") component: _import("usedCarManagement/vehicleManagement/detail")
}, },
9200405: { 9200405: {
path: "/detail", path: "/editVehicle",
name: "editVehicle", name: "editVehicle",
meta: { meta: {
title: "编辑车辆", title: "编辑车辆",
authId: "9200405", authId: "9200405",
parentId: "92004", parentId: "92004",
activePath: "/vehicleManagement",
cache: false cache: false
}, },
auth: [], auth: [],
......
...@@ -191,7 +191,7 @@ export default { ...@@ -191,7 +191,7 @@ export default {
}, },
searchList() { searchList() {
this.page = { this.page = {
pageSize: this.page.pageSize, pageSize: this.pageSize,
currentPage: 1 currentPage: 1
} }
this.getSelectingList() this.getSelectingList()
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<!-- 员工积分明细页二手车积分类型为“积分提现”时 ,显示一下字段--> <!-- 员工积分明细页二手车积分类型为“积分提现”时 ,显示一下字段-->
<template <template
v-if=" v-if="
detailInfo.infoName == '积分提现' && detailInfo.sceneType == 5 detailInfo.infoName == '积分提现' && detailInfo.sceneType == 7
" "
> >
<el-row :gutter="20"> <el-row :gutter="20">
...@@ -82,13 +82,13 @@ ...@@ -82,13 +82,13 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item <el-form-item
:label=" :label="
detailInfo.sceneType == 5 ? '车辆类型:' : '商品名称:' detailInfo.sceneType == 7 ? '车辆类型:' : '商品名称:'
" "
class="halfItem" class="halfItem"
> >
<template v-if="detailInfo.sceneType == 5">{{ <template v-if="detailInfo.sceneType == 7">{{
detailInfo.goodIds detailInfo.goodsId
? detailInfo.goodIds == 1 ? detailInfo.goodsId == 1
? "置换车" ? "置换车"
: "报废车" : "报废车"
: "-" : "-"
......
...@@ -20,7 +20,9 @@ ...@@ -20,7 +20,9 @@
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header title="课程配置列表"> <d2-table-header title="课程配置列表">
<span> <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-header>
<d2-table <d2-table
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
短课程配课 短课程配课
</el-button> </el-button>
<span style="margin-left: 10px"> <span style="margin-left: 10px">
<el-button size="small" @click="handleExport"> <el-button size="small" @click="handleExport" type="primary">
导出 导出
</el-button></span </el-button></span
> >
......
...@@ -1037,19 +1037,18 @@ export default { ...@@ -1037,19 +1037,18 @@ export default {
closeWarnDialog() { closeWarnDialog() {
this.warningVisible = false this.warningVisible = false
}, },
beforeSearchFn() { getParams() {
return new Promise((resolve) => { const params = deepClone(this.searchForm)
this.searchFormSearch = deepClone(this.searchForm) if (params.orderTime) {
if (this.searchFormSearch.orderTime) { params.orderStartTime = Util.dateFormate(
this.searchFormSearch.orderStartTime = Util.dateFormate( params.orderTime[0],
this.searchFormSearch.orderTime[0],
"YYYY-MM-DD 00:00:00" "YYYY-MM-DD 00:00:00"
) )
this.searchFormSearch.orderEndTime = Util.dateFormate( params.orderEndTime = Util.dateFormate(
this.searchFormSearch.orderTime[1], params.orderTime[1],
"YYYY-MM-DD 23:59:59" "YYYY-MM-DD 23:59:59"
) )
delete this.searchFormSearch.orderTime delete params.orderTime
} }
const dateFormatList = [ const dateFormatList = [
{ {
...@@ -1065,20 +1064,25 @@ export default { ...@@ -1065,20 +1064,25 @@ export default {
] ]
dateFormatList.forEach((item) => { dateFormatList.forEach((item) => {
if ( if (
this.searchFormSearch[item.attr] && params[item.attr] &&
this.searchFormSearch[item.attr].length params[item.attr].length
) { ) {
this.searchFormSearch[item.startAttr] = Util.dateFormate( params[item.startAttr] = Util.dateFormate(
this.searchFormSearch[item.attr][0], params[item.attr][0],
"YYYY-MM-DD" "YYYY-MM-DD"
) )
this.searchFormSearch[item.endAttr] = Util.dateFormate( params[item.endAttr] = Util.dateFormate(
this.searchFormSearch[item.attr][1], params[item.attr][1],
"YYYY-MM-DD" "YYYY-MM-DD"
) )
delete this.searchFormSearch[item.attr]
} }
delete params[item.attr]
}) })
return params
},
beforeSearchFn() {
return new Promise((resolve) => {
this.searchFormSearch = this.getParams()
resolve() resolve()
}) })
}, },
...@@ -1202,7 +1206,7 @@ export default { ...@@ -1202,7 +1206,7 @@ export default {
}, },
handleExport() { handleExport() {
var params = deepClone(this.searchFormSearch) var params = this.getParams()
// debugger // debugger
params.method = params.method =
"dj.api.smarcarlife.serviceMerchant.shopSettingList.export.async" "dj.api.smarcarlife.serviceMerchant.shopSettingList.export.async"
......
...@@ -52,6 +52,11 @@ export default { ...@@ -52,6 +52,11 @@ export default {
sceneDesc: '次新车用户领取套餐包转化', sceneDesc: '次新车用户领取套餐包转化',
sceneType: 2, sceneType: 2,
isOpen: 'N' isOpen: 'N'
},{
sceneName: '二手车业务',
sceneDesc: '门店二手车置换或报废业务',
sceneType: 7,
isOpen: 'N'
}] }]
} }
}, },
......
...@@ -25,7 +25,9 @@ ...@@ -25,7 +25,9 @@
</video> </video>
<img <img
class="video-poster" class="video-poster"
src="../../../../assets/video-default.png" :src="
videoImg ? videoImg : '../../../../assets/video-default.png'
"
/> />
<div class="mask"> <div class="mask">
<div <div
...@@ -209,6 +211,10 @@ export default { ...@@ -209,6 +211,10 @@ export default {
index: { index: {
type: Number, type: Number,
default: -1 default: -1
},
videoImg: {
type: String,
default: ""
} }
}, },
watch: { watch: {
......
...@@ -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,28 @@ export default { ...@@ -57,7 +57,28 @@ export default {
}, 1000) }, 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() { 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 = { var option = {
grid: { grid: {
top: "37", top: "37",
...@@ -100,13 +121,13 @@ ${this.title}:${params[0].value}辆 ...@@ -100,13 +121,13 @@ ${this.title}:${params[0].value}辆
show: false show: false
}, },
axisTick: { axisTick: {
show: true, show: false,
lineStyle: { lineStyle: {
color: "#E9E9E9" color: "#fff"
} }
}, },
splitLine: { splitLine: {
show: false, // 根据截图隐藏网格线 show: false, // 隐藏网格线
color: "#E9E9E9" color: "#E9E9E9"
}, },
axisLine: { axisLine: {
...@@ -144,12 +165,16 @@ ${this.title}:${params[0].value}辆 ...@@ -144,12 +165,16 @@ ${this.title}:${params[0].value}辆
fontSize: "12px" fontSize: "12px"
}, },
splitLine: { splitLine: {
show: true, // 根据截图隐藏网格线 show: true, // 根据隐藏网格线
color: "#E9E9E9" color: "#E9E9E9"
}, },
axisTick: { axisTick: {
show: false show: false
} },
// 设置y轴固定显示5个点
min: yAxisMin,
max: interval * 5, // 确保最大值是间隔的4倍,这样就有0,1,2,3,4共5个点
interval: interval
}, },
series: [ series: [
{ {
......
...@@ -70,6 +70,16 @@ export default { ...@@ -70,6 +70,16 @@ export default {
.active { .active {
color: #ffffff; color: #ffffff;
background: #2a58ad; 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 { .time:last-child {
border-right: none; border-right: none;
......
...@@ -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",
...@@ -33,7 +41,9 @@ export default { ...@@ -33,7 +41,9 @@ export default {
type: "input", type: "input",
isClear: true, isClear: true,
maxlength: 11, maxlength: 11,
width: "544px" width: "570px",
placeholder: "请输入",
append: "元"
}, },
{ {
label: "评估意见", label: "评估意见",
...@@ -43,7 +53,8 @@ export default { ...@@ -43,7 +53,8 @@ export default {
inputType: "textarea", inputType: "textarea",
// showLimit: true, // showLimit: true,
rows: 4, rows: 4,
width: "570px" width: "570px",
placeholder: "请输入"
} }
], ],
assessRules: { assessRules: {
...@@ -94,8 +105,8 @@ export default { ...@@ -94,8 +105,8 @@ export default {
callback(new Error("请输入有效数字")) callback(new Error("请输入有效数字"))
} else if (numValue <= 0) { } else if (numValue <= 0) {
callback(new Error("评估价必须大于0")) callback(new Error("评估价必须大于0"))
} else if (numValue > 99999999.99) { } else if (numValue > 9999999.99) {
callback(new Error("评估价必须小于99999999.99")) callback(new Error("评估价必须小于9999999.99"))
} else { } else {
callback() callback()
} }
...@@ -113,12 +124,31 @@ export default { ...@@ -113,12 +124,31 @@ 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[ try {
this.editChildRef const formRef = this.$refs.editFormRef
].validate() 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 return isValid
} catch (error) {
console.error("Validation failed:", error)
return false
}
} }
} }
} }
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
</template> </template>
<template v-else> <template v-else>
<div <div
v-if="item.className" v-if="item.className && item.className(detailInfo)"
:style="{ :style="{
background: item.className(detailInfo) background: item.className(detailInfo)
}" }"
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<el-col :span="item.col ? item.col : 12" :key="key"> <el-col :span="item.col ? item.col : 12" :key="key">
<el-form-item :label="item.title + ':'"> <el-form-item :label="item.title + ':'">
<div <div
v-if="item.className" v-if="item.className && item.className(detailInfo)"
:style="{ :style="{
background: item.className(detailInfo) background: item.className(detailInfo)
}" }"
...@@ -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 + "元"
: "-"
} }
}, },
{ {
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
::v-deep .el-form-item__label { ::v-deep .el-form-item__label {
color: #666666; color: #666666;
font-size: 14px; font-size: 14px;
line-height: 20px;
} }
.itemDiv { .itemDiv {
display: flex; display: flex;
...@@ -39,9 +40,16 @@ ...@@ -39,9 +40,16 @@
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
::v-deep .el-col {
margin-bottom: 20px;
}
::v-deep .el-form-item__content { ::v-deep .el-form-item__content {
max-width: calc(100% - 150px); width: calc(100% - 150px);
word-break: break-all; word-break: break-all;
line-height: 20px;
}
::v-deep el-form-item--medium .el-form-item__label {
line-height: 20px;
} }
} }
.unit { .unit {
...@@ -69,6 +77,21 @@ ...@@ -69,6 +77,21 @@
height: 100%; height: 100%;
object-fit: contain; object-fit: contain;
position: static !important; 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 { ::v-deep .pic-box {
margin-right: 16px; margin-right: 16px;
......
<!-- 评估动态 --> <!-- 评估动态 -->
<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>
...@@ -11,10 +11,13 @@ ...@@ -11,10 +11,13 @@
> >
<div class="time-box"> <div class="time-box">
<div class="createdBy"> <div class="createdBy">
<div>
{{ item.opType == 20 ? "驻店人员" : "总部定价师" }}:<span>{{ {{ item.opType == 20 ? "驻店人员" : "总部定价师" }}:<span>{{
item.createdBy item.createdBy
}}</span> }}</span>
</div> </div>
<div class="time">{{ item.quoteTime }}</div>
</div>
<!-- 评估师驳回 --> <!-- 评估师驳回 -->
<template v-if="item.opType == 30"> <template v-if="item.opType == 30">
<div class="reject-box"> <div class="reject-box">
...@@ -51,47 +54,14 @@ ...@@ -51,47 +54,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>
...@@ -99,23 +69,33 @@ export default { ...@@ -99,23 +69,33 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.dynamics-wrapper { .dynamics-wrapper {
background: #fff; background: #fff;
margin: 0 20px; margin: 0 20px 20px;
.title { .title {
color: #333333; color: #333333;
font-size: 16px; font-size: 16px;
padding: 13.5px 20px; padding: 13.5px 20px;
line-height: 23px; line-height: 23px;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
font-weight: 600;
} }
.timeline-box { .timeline-box {
padding: 18px 20px; padding: 18px 20px;
.time-box { .time-box {
.createdBy { .createdBy {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 896px;
margin-bottom: 4px; margin-bottom: 4px;
color: #666666; color: #666666;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
line-height: 20px; line-height: 20px;
.time {
color: #999999;
font-size: 12px;
font-weight: 400;
}
span { span {
color: #333333; color: #333333;
font-size: 14px; font-size: 14px;
...@@ -136,6 +116,7 @@ export default { ...@@ -136,6 +116,7 @@ export default {
.reason { .reason {
color: #333333; color: #333333;
font-weight: 400; 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 @@ ...@@ -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")
...@@ -131,8 +127,8 @@ export default { ...@@ -131,8 +127,8 @@ export default {
margin: 0 0 20px !important; margin: 0 0 20px !important;
} }
.el-textarea .el-input__count { .el-textarea .el-input__count {
right: 90px; right: 16px;
bottom: -10px; bottom: 3px;
font-size: 12px; font-size: 12px;
color: #999999; color: #999999;
} }
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
" "
> >
<glsx-preview <glsx-preview
:key="preIndex"
:image-url-arr=" :image-url-arr="
detailInfo[item.key] ? detailInfo[item.key] : [] detailInfo[item.key] ? detailInfo[item.key] : []
" "
:videoImg="detailInfo[item.key][0] + videoStr"
:picOptions="{ ...picOptions, type: item.otherType }" :picOptions="{ ...picOptions, type: item.otherType }"
limit="1" limit="1"
></glsx-preview> ></glsx-preview>
...@@ -84,14 +84,14 @@ ...@@ -84,14 +84,14 @@
</template> </template>
</template> </template>
<template v-else> <template v-else>
<div class="flex">
<div <div
v-if="item.className" v-if="item.className && item.className(detailInfo)"
:style="{ :style="{
background: item.className(detailInfo) background: item.className(detailInfo)
}" }"
:class="'dot'" :class="'dot'"
></div> ></div>
<div class="flex">
{{ {{
item.formatter item.formatter
? item.formatter(detailInfo) || "-" ? item.formatter(detailInfo) || "-"
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<el-col :span="item.col ? item.col : 12" :key="key"> <el-col :span="item.col ? item.col : 12" :key="key">
<el-form-item :label="item.title + ':'"> <el-form-item :label="item.title + ':'">
<div <div
v-if="item.className" v-if="item.className && item.className(detailInfo)"
:style="{ :style="{
background: item.className(detailInfo) background: item.className(detailInfo)
}" }"
...@@ -160,7 +160,9 @@ ...@@ -160,7 +160,9 @@
<script> <script>
import { import {
evaluationStatusOpt, evaluationStatusOpt,
evaluationStatusOptMap evaluationStatusOptMap,
ownerTypeOpt,
usageTypeOpt
} 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"
...@@ -170,59 +172,13 @@ export default { ...@@ -170,59 +172,13 @@ export default {
}, },
data() { data() {
return { return {
videoStr: "?x-oss-process=video/snapshot,t_7000,f_jpg,w_800,h_600,m_fast",
picOptions: { picOptions: {
width: "90px", width: "90px",
height: "90px", height: "90px",
isClose: false isClose: false
}, },
detailInfo: { rules: {},
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,27 +201,49 @@ export default { ...@@ -245,27 +201,49 @@ export default {
}, },
{ {
title: "上牌城市", title: "上牌城市",
key: "licensePlate" key: "registrationCityName"
}, },
{ {
title: "表显里程", title: "表显里程",
key: "vin" key: "mileageStr"
}, },
{ {
title: "使用性质", title: "使用性质",
key: "carTypeName" key: "carTypeName",
formatter: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"usageTypeOpt", // 配置项数组的键名
row,
"usageType"
)
return statusItem ? statusItem.confValue : "-"
}
}, },
{ {
title: "所有人性质", title: "所有人性质",
key: "registrationDate" key: "ownerType",
formatter: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"ownerTypeOpt",
row,
"ownerType"
)
return statusItem ? statusItem.confValue : "-"
}
}, },
{ {
title: "天窗", title: "天窗",
key: "registrationDate" key: "sunroof",
}, formatter: (row) => {
{ let sunRoofMap = {
title: "品牌定位", 1: "无天窗",
key: "vin" 2: "普通天窗",
3: "全景天窗"
}
return sunRoofMap[row.sunroof]
}
}, },
{ {
title: "门店", title: "门店",
...@@ -298,12 +276,16 @@ export default { ...@@ -298,12 +276,16 @@ 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 ? statusItem.confValue : "-"
}, },
className: (row) => { className: (row) => {
return this.baseData.evaluationStatusOptMap[row.status] return this.baseData.evaluationStatusOptMap[row.status] || ""
} }
}, },
{ {
...@@ -365,10 +347,27 @@ export default { ...@@ -365,10 +347,27 @@ export default {
} }
], ],
baseData: { baseData: {
usageTypeOpt: deepClone(usageTypeOpt),
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,21 +14,21 @@ ...@@ -14,21 +14,21 @@
</template> </template>
<script> <script>
import vehicleInfo from "./components/vehicleInfo.vue" import { evaluateMixin } from "./components/evaluateMixin"
import dynamics from "./components/dynamics.vue" import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
import assessInfo from "./components/assessInfo.vue"
export default { export default {
components: { mixins: [evaluateMixin, reportTrackPageMixin],
vehicleInfo,
dynamics,
assessInfo
},
data() { data() {
return {} return {
trackBusinessParam: {},
track_event_code: "evaluate_management_detail",
track_businessParam_key: "trackBusinessParam"
}
}, },
methods: { methods: {
handleCancel() { mounted() {
this.$router.go(-1) this.trackBusinessParam = { evalOrderNo: this.evalOrderNo }
this.onPageShow()
} }
} }
} }
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
left: 50%; left: 50%;
text-align: center; text-align: center;
margin-left: -28px; margin-left: -28px;
padding: 20px; padding: 0 20px 20px;
cursor: pointer; cursor: pointer;
.cancel-btn { .cancel-btn {
color: #666666; color: #666666;
......
<!-- 车辆评估 -->
<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
<div class="reject-btn" plain @click="handleReject">驳回</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 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,38 +46,77 @@ ...@@ -23,38 +46,77 @@
</template> </template>
<script> <script>
import vehicleInfo from "./components/vehicleInfo.vue" import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
import dynamics from "./components/dynamics.vue" import { evaluateMixin } from "./components/evaluateMixin"
import assess from "./components/assess.vue" import { evaluateCar } from "@/api/usedCarManagement"
import rejectDialog from "./components/rejectDialog.vue"
export default { export default {
components: { mixins: [evaluateMixin, reportTrackPageMixin],
vehicleInfo,
dynamics,
assess,
rejectDialog
},
data() { data() {
return { return {
rejectVisible: false, rejectVisible: false,
paramsObj: {} paramsObj: {},
trackBusinessParam: {},
track_event_code: "evaluate_management_assess",
track_businessParam_key: "trackBusinessParam"
} }
}, },
methods: { mounted() {
handleCancel() { this.trackBusinessParam = { evalOrderNo: this.evalOrderNo }
this.$router.go(-1) this.onPageShow()
}, },
methods: {
handleReject() { handleReject() {
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() {
handleSave() { let params = {
let isValid = this.$refs.assessRef.confirm() 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 { ...@@ -68,8 +130,8 @@ export default {
bottom: 0px; bottom: 0px;
left: 50%; left: 50%;
text-align: center; text-align: center;
margin-left: -28px; padding: 0 20px 20px;
padding: 20px; margin-left: -95px;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
.save-btn { .save-btn {
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
::v-deep .el-form-item__label { ::v-deep .el-form-item__label {
color: #666666; color: #666666;
font-size: 14px; font-size: 14px;
line-height: 20px;
} }
.itemDiv { .itemDiv {
display: flex; display: flex;
...@@ -49,14 +50,28 @@ ...@@ -49,14 +50,28 @@
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
::v-deep .el-col {
margin-bottom: 20px;
}
::v-deep .el-form-item__content { ::v-deep .el-form-item__content {
width: calc(100% - 150px); width: calc(100% - 150px);
word-break: break-all; 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 { ::v-deep .edit-form-item {
width: 100%; width: 100%;
} }
.flex {
display: flex;
align-items: align-items;
}
.unit { .unit {
margin-left: 8px; margin-left: 8px;
flex-shrink: 0; flex-shrink: 0;
...@@ -82,6 +97,7 @@ ...@@ -82,6 +97,7 @@
height: 100%; height: 100%;
object-fit: contain; object-fit: contain;
position: static !important; position: static !important;
border-radius: 4px;
} }
::v-deep .pic-box { ::v-deep .pic-box {
margin-right: 16px; margin-right: 16px;
......
<template> <template>
<div class="range"> <div class="range">
<div :class="[ <div
:class="[
' el-date-editor', ' el-date-editor',
'el-range-editor', 'el-range-editor',
'el-input__inner', 'el-input__inner',
...@@ -11,43 +12,52 @@ ...@@ -11,43 +12,52 @@
@click="handleRangeClick" @click="handleRangeClick"
@mouseleave="showClose = false" @mouseleave="showClose = false"
@mousemove="handleMove" @mousemove="handleMove"
ref="reference"> ref="reference"
>
<template v-if="infinity"> <template v-if="infinity">
<el-input-number class="el-range-input hide-btn" <el-input-number
class="el-range-input hide-btn"
:placeholder="startPlaceholder" :placeholder="startPlaceholder"
v-model="userInput[0]" v-model="userInput[0]"
@blur="handleBlur(0)"></el-input-number> @blur="handleBlur(0)"
></el-input-number>
<span class="el-range-separator">至</span> <span class="el-range-separator">至</span>
<el-input-number class="el-range-input hide-btn" <el-input-number
class="el-range-input hide-btn"
:placeholder="endPlaceholder" :placeholder="endPlaceholder"
v-model="userInput[1]" v-model="userInput[1]"
@blur="handleBlur(1)"></el-input-number> @blur="handleBlur(1)"
></el-input-number>
</template> </template>
<template v-else> <template v-else>
<el-input v-model="userInput[0]" <el-input
v-model="userInput[0]"
:placeholder="startPlaceholder" :placeholder="startPlaceholder"
@blur="handleBlur(0)" @blur="handleBlur(0)"
@input="handleStartInput" @input="handleStartInput"
class="el-range-input"></el-input> class="el-range-input"
></el-input>
<span class="el-range-separator">至</span> <span class="el-range-separator">至</span>
<el-input v-model="userInput[1]" <el-input
v-model="userInput[1]"
:placeholder="endPlaceholder" :placeholder="endPlaceholder"
@input="handleEndInput" @input="handleEndInput"
@focus="handleFocus" @focus="handleFocus"
@blur="handleBlur(1)" @blur="handleBlur(1)"
class="el-range-input"></el-input> class="el-range-input"
></el-input>
</template> </template>
<i v-show="showClose" <i
v-show="showClose"
@click="handleClickIcon" @click="handleClickIcon"
class="el-icon-circle-close"></i> class="el-icon-circle-close"
></i>
</div> </div>
<div class="errorTips" <div class="errorTips" v-if="tipsShow">最大金额需大于最小金额</div>
v-if="tipsShow">最大金额需大于最小金额</div>
</div> </div>
</template> </template>
<script> <script>
import { limitPrice } from '@/common/format' import { limitPrice } from "@/common/format"
export default { export default {
data() { data() {
return { return {
...@@ -55,8 +65,8 @@ export default { ...@@ -55,8 +65,8 @@ export default {
showClose: false, showClose: false,
userInput: this.displayValue, userInput: this.displayValue,
oldVal: { oldVal: {
startInput: '', startInput: "",
endInput: '' endInput: ""
}, },
tipsShow: false tipsShow: false
} }
...@@ -70,7 +80,7 @@ export default { ...@@ -70,7 +80,7 @@ export default {
infinity: Boolean, infinity: Boolean,
regRuleStr: { regRuleStr: {
type: String, type: String,
default: 'priceReg' default: "priceReg"
} }
}, },
watch: { watch: {
...@@ -85,12 +95,28 @@ export default { ...@@ -85,12 +95,28 @@ export default {
}, },
methods: { methods: {
handleStartInput(event) { 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] this.oldVal.startInput = this.userInput[0]
}, },
handleEndInput(event) { 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] this.oldVal.endInput = this.userInput[1]
}, },
handleClickIcon(event) { handleClickIcon(event) {
...@@ -132,10 +158,10 @@ export default { ...@@ -132,10 +158,10 @@ export default {
contrastValue() { contrastValue() {
const val = this.userInput const val = this.userInput
if (Array.isArray(val)) { if (Array.isArray(val)) {
if (val[0] == '-') { if (val[0] == "-") {
val[0] = null val[0] = null
} }
if (val[1] == '-') { if (val[1] == "-") {
val[1] = null val[1] = null
} }
if (val[0] && val[1]) { if (val[0] && val[1]) {
......
...@@ -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: "",
...@@ -94,8 +99,8 @@ export default { ...@@ -94,8 +99,8 @@ export default {
callback(new Error("请输入有效数字")) callback(new Error("请输入有效数字"))
} else if (numValue <= 0) { } else if (numValue <= 0) {
callback(new Error("激励价格必须大于0")) callback(new Error("激励价格必须大于0"))
} else if (numValue > 99999999.99) { } else if (numValue > 9999999.99) {
callback(new Error("激励价格必须小于99999999.99")) callback(new Error("激励价格必须小于9999999.99"))
} else { } else {
callback() callback()
} }
...@@ -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
...@@ -221,9 +227,13 @@ export default { ...@@ -221,9 +227,13 @@ export default {
? updateSunlightConfig ? updateSunlightConfig
: createSunlightConfig : createSunlightConfig
Methods(params).then((res) => { Methods(params).then((res) => {
console.log(res) if (res.data.code == 0) {
this.notice.okTips("操作成功") this.$message.success("操作成功")
this.visible = true this.visible = true
this.$emit("handleAddConfirm")
} else {
this.$message.error(res.data.msg)
}
}) })
} }
}) })
...@@ -311,5 +321,20 @@ export default { ...@@ -311,5 +321,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>
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
::v-deep .el-form-item__label { ::v-deep .el-form-item__label {
color: #666666; color: #666666;
font-size: 14px; font-size: 14px;
line-height: 20px;
} }
.itemDiv { .itemDiv {
display: flex; display: flex;
...@@ -39,9 +40,14 @@ ...@@ -39,9 +40,14 @@
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
::v-deep .el-col {
margin-bottom: 20px;
}
::v-deep .el-form-item__content { ::v-deep .el-form-item__content {
max-width: calc(100% - 150px); width: calc(100% - 150px);
word-break: break-all; word-break: break-all;
line-height: 20px;
.unit { .unit {
// margin-left: 8px; // margin-left: 8px;
flex-shrink: 0; flex-shrink: 0;
...@@ -84,5 +90,6 @@ ...@@ -84,5 +90,6 @@
.flex { .flex {
display: flex; display: flex;
align-items: center; align-items: center;
line-height: 20px;
} }
} }
<!-- 驳回 --> <!-- 详情 -->
<template> <template>
<baseDialog <baseDialog
:dialog-config="dialogConfig" :dialog-config="dialogConfig"
:config="config"
:is-show.sync="visible" :is-show.sync="visible"
class="accountDailog" class="accountDailog"
@handleClick="handleAddConfirm"
> >
<div class="sun-dialog"> <template v-loading="loading">
<div class="sun-dialog" v-if="isShow">
<div class="info-wrapper"> <div class="info-wrapper">
<div class="item" v-for="(item, index) in configData" :key="index"> <div class="item" v-for="(item, index) in configData" :key="index">
<div class="title" v-if="item.title">{{ item.title }}</div> <div class="title" v-if="item.title">{{ item.title }}</div>
<div class="detail-content"> <div class="detail-content">
<div class="form_div" v-if="item.infoData && item.infoData.length"> <div
class="form_div"
v-if="item.infoData && item.infoData.length"
>
<el-form <el-form
ref="ruleForm" ref="ruleForm"
class="edit-sub-block" class="edit-sub-block"
...@@ -23,7 +27,10 @@ ...@@ -23,7 +27,10 @@
<el-row :gutter="20"> <el-row :gutter="20">
<template v-for="(item, key) in item.infoData"> <template v-for="(item, key) in item.infoData">
<el-col :span="item.col ? item.col : 12" :key="key"> <el-col :span="item.col ? item.col : 12" :key="key">
<el-form-item :label="item.title + ':'" :prop="item.key"> <el-form-item
:label="item.title + ':'"
:prop="item.key"
>
<template v-if="item.type == 'imgList'"> <template v-if="item.type == 'imgList'">
<div <div
class="photo-box" class="photo-box"
...@@ -35,7 +42,9 @@ ...@@ -35,7 +42,9 @@
<glsx-preview <glsx-preview
:key="preIndex" :key="preIndex"
:image-url-arr=" :image-url-arr="
detailInfo[item.key] ? detailInfo[item.key] : [] detailInfo[item.key]
? detailInfo[item.key]
: []
" "
:picOptions="{ ...picOptions, type: item.type }" :picOptions="{ ...picOptions, type: item.type }"
limit="1" limit="1"
...@@ -165,21 +174,26 @@ ...@@ -165,21 +174,26 @@
</div> </div>
</div> </div>
</template> </template>
<template v-if="loglist.length">
<template v-if="item.operateTitle"> <template v-if="item.operateTitle">
<div class="operation-wrapper"> <div class="operation-wrapper">
<div class="operateTitle">{{ item.operateTitle }}</div> <div class="operateTitle">{{ item.operateTitle }}</div>
<template v-for="(item, ind) in list"> <template v-for="(item, ind) in loglist">
<div class="list-item" :key="`list_${index}_${ind}`"> <div class="list-item" :key="`list_${index}_${ind}`">
<div class="name">{{ item.name }}</div> <div class="name">
<div class="user">操作人:{{ item.user }}</div> {{ item.opType == 1 ? "新增" : "修改" }}激励数据
<div class="time">操作时间:{{ item.time }}</div>
</div> </div>
</template> <div class="user">操作人:{{ item.createdBy }}</div>
<div class="time">操作时间:{{ item.createdDate }}</div>
</div> </div>
</template> </template>
</div> </div>
</template>
</template>
</div> </div>
</div> </div>
</div></template
>
</baseDialog> </baseDialog>
</template> </template>
...@@ -191,10 +205,16 @@ export default { ...@@ -191,10 +205,16 @@ export default {
name: "sunDialog", name: "sunDialog",
data() { data() {
return { return {
rules: {},
dialogConfig: { dialogConfig: {
title: "阳光激励详情", title: "阳光激励详情",
width: "880px" width: "880px"
}, },
config: {
isShowFooter: false
},
loading: true,
isShow: true,
baseData: { baseData: {
vehicleCategoryOpt: deepClone(vehicleCategoryOpt) vehicleCategoryOpt: deepClone(vehicleCategoryOpt)
}, },
...@@ -215,13 +235,18 @@ export default { ...@@ -215,13 +235,18 @@ export default {
row, row,
"carType" "carType"
) )
return statusItem?.confValue || "-" return statusItem ? statusItem.confValue : "-"
} }
}, },
{ {
title: "激励价格", title: "激励价格",
key: "sunlightInspiresPrice", key: "sunlightInspiresPrice",
suffixText: "元" formatter: (row) => {
return row.sunlightInspiresPrice ||
row.sunlightInspiresPrice === 0
? row.sunlightInspiresPrice + "元"
: "-"
}
}, },
{ {
title: "录入时间", title: "录入时间",
...@@ -247,23 +272,8 @@ export default { ...@@ -247,23 +272,8 @@ export default {
] ]
} }
], ],
loglist: [ loglist: [],
{ detailInfo: {}
name: "修改保管地",
user: "张三",
time: "2020-05-05 10:10:10"
},
{
name: "修改车辆状态",
user: "张三",
time: "2020-05-05 10:10:10"
},
{
name: "新增车辆卖出价",
user: "张三",
time: "2020-05-05 10:10:10"
}
]
} }
}, },
...@@ -286,11 +296,6 @@ export default { ...@@ -286,11 +296,6 @@ export default {
set(newVal) { set(newVal) {
this.$emit("dialogClose", { flag: newVal, attrName: "detailVisible" }) this.$emit("dialogClose", { flag: newVal, attrName: "detailVisible" })
} }
},
detailInfo: {
get() {
return this.paramsObj
}
} }
}, },
...@@ -307,9 +312,19 @@ export default { ...@@ -307,9 +312,19 @@ export default {
}, },
getSunlightLog() { getSunlightLog() {
return new Promise((resolve) => { return new Promise((resolve) => {
getSunlightLog({ id: this.paramsObj.id }).then((res) => { let params = { t: { id: this.paramsObj.id } }
console.log("getSunlightLog", res) getSunlightLog(params).then((res) => {
this.logList = res this.loglist = res.records
})
resolve()
})
},
getSunlightConfig() {
return new Promise((resolve) => {
getSunlightConfig({ id: this.paramsObj.id }).then((res) => {
// this.loading = false
this.isShow = true
this.detailInfo = res
}) })
resolve() resolve()
}) })
...@@ -318,7 +333,9 @@ export default { ...@@ -318,7 +333,9 @@ export default {
console.log("paramsObj", this.paramsObj) console.log("paramsObj", this.paramsObj)
this.allData() this.allData()
}, },
allData() {}, allData() {
Promise.all([this.getSunlightConfig(), this.getSunlightLog()])
},
handleClose() { handleClose() {
console.log("handleClose") console.log("handleClose")
// this.visible = false // this.visible = false
...@@ -329,7 +346,7 @@ export default { ...@@ -329,7 +346,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import "./detail.scss"; @import "./detail.scss";
::v-deep .el-dialog__body { ::v-deep .el-dialog__body {
padding: 32px 20px !important; padding: 12px 20px !important;
} }
::v-deep .el-dialog__footer { ::v-deep .el-dialog__footer {
border-top: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5;
......
const CAR_STATUS = { const CAR_STATUS = {
0: '库存中', 0: '库存中',
1: '已售出',
2: '待售', 2: '待售',
3: '已预定', 3: '已预定',
1: '已售出',
4: '已交付', 4: '已交付',
5: '待拍卖', 5: '待拍卖',
6: '拍卖中', 6: '拍卖中',
7: '已退库', 7: '已退库',
} }
/**
* 库存中0→待售2→已预定3→已售出1→已交付4→待拍卖5→拍卖中6→已退库7
const CAR_STATUS_COLOR = { */
0: 'warning', const CAR_STATUS_LEVEL = {
1: 'info', 0: 1,
2: 'danger', 1: 4,
3: 'success', 2: 2,
4: 'success', 3: 3,
5: 'danger', 4: 5,
6: 'warning', 5: 6,
7: 'info', 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 { return {
label: CAR_STATUS[key], 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 = { const USAGE_TYPE = {
1: '非营运', 1: '非营运',
2: '营运', 2: '营运',
3: '营转非' // 3: '营转非'
} }
const USAGE_TYPE_OPTIONS = Object.keys(USAGE_TYPE).map(key => { const USAGE_TYPE_OPTIONS = Object.keys(USAGE_TYPE).map(key => {
return { return {
...@@ -59,6 +73,7 @@ const HAS_ACCIDENT_OPTIONS = Object.keys(HAS_ACCIDENT).map(key => { ...@@ -59,6 +73,7 @@ const HAS_ACCIDENT_OPTIONS = Object.keys(HAS_ACCIDENT).map(key => {
}) })
module.exports = { module.exports = {
CAR_STATUS, CAR_STATUS,
CAR_STATUS_LEVEL,
CAR_STATUS_COLOR, CAR_STATUS_COLOR,
CAR_STATUS_OPTIONS, CAR_STATUS_OPTIONS,
USAGE_TYPE, USAGE_TYPE,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!