Commit 88dea77b by 李伟康

```

refactor(gscRequest): 重构请求模块以使用 window.$gscApi

- 移除旧的 `createRequest` 实现,改用 `gscPost` 方法直接调用 `window.$gscApi`
- 更新所有使用旧请求方式的 API 接口,统一为新的 `gscPost` 调用形式
- 简化代码逻辑并提高可维护性

feat(vehicleManagement): 车辆详情页增强与状态控制优化

- 引入车辆状态等级映射 `CAR_STATUS_LEVEL` 并用于控制状态切换权限
- 增加表单项动态必填校验及错误提示功能
- 支持图片预览大图展示
- 完善操作记录列表渲染逻辑
- 表单保存时增加字段校验和加载状态提示
- 修复部分数据显示问题并增强用户体验

chore(deps): 更新依赖包源至 npmmirror 或 npmjs

- 调整多个依赖包的 resolved 地址,优先使用 npmmirror 提升下载速度
- 部分包恢复为官方 npmjs 源确保版本准确性
- 清理冗余的 @vue/vue-loader-v15 重复定义

feat(router): 修改车辆管理路由路径避免冲突

- 将车辆详情和编辑页路径分别更新为 `/vehicleDetail` 和 `/editVehicle`
- 避免因路径重复导致的页面跳转异常

feat(yqStoreManage): 新增二手车业务场景入口配置

- 在门店管理弹窗中新增“二手车业务”选项
- 设置默认关闭状态并添加描述信息

refactor(vehicleManagement/index): 深拷贝下拉选项防止数据污染

- 对所有下拉选项进行 deepClone 处理,避免引用污染原始数据
- 增加导出功能支持选择性导出已选中的车辆数据

style(detail.vue): 优化样式和布局提升可读性

- 增加 loading 状态和 loadComplete 判断提高渲染稳定性
- 表单项包裹 template 标签使结构更清晰
- 添加 is-error 样式类实现错误状态高亮显示
- 调整 flex 布局相关样式增强响应式表现
```
1 parent d3a907ac
...@@ -3662,6 +3662,27 @@ ...@@ -3662,6 +3662,27 @@
"whatwg-fetch": "^3.6.2" "whatwg-fetch": "^3.6.2"
}, },
"dependencies": { "dependencies": {
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.11.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.11.1.tgz",
"integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
}
},
"acorn-walk": { "acorn-walk": {
"version": "8.2.0", "version": "8.2.0",
"resolved": "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.2.0.tgz", "resolved": "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.2.0.tgz",
...@@ -4051,27 +4072,6 @@ ...@@ -4051,27 +4072,6 @@
"lodash": "^4.17.4" "lodash": "^4.17.4"
} }
}, },
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.11.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.11.1.tgz",
"integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
}
},
"@vue/vue2-jest": { "@vue/vue2-jest": {
"version": "27.0.0", "version": "27.0.0",
"resolved": "https://registry.npmmirror.com/@vue/vue2-jest/-/vue2-jest-27.0.0.tgz", "resolved": "https://registry.npmmirror.com/@vue/vue2-jest/-/vue2-jest-27.0.0.tgz",
...@@ -6079,7 +6079,7 @@ ...@@ -6079,7 +6079,7 @@
}, },
"cross-spawn": { "cross-spawn": {
"version": "6.0.5", "version": "6.0.5",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-6.0.5.tgz",
"integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -7374,7 +7374,7 @@ ...@@ -7374,7 +7374,7 @@
}, },
"ignore": { "ignore": {
"version": "4.0.6", "version": "4.0.6",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", "resolved": "https://registry.npmmirror.com/ignore/-/ignore-4.0.6.tgz",
"integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==",
"dev": true "dev": true
}, },
...@@ -8820,12 +8820,12 @@ ...@@ -8820,12 +8820,12 @@
"dependencies": { "dependencies": {
"address": { "address": {
"version": "1.2.2", "version": "1.2.2",
"resolved": "https://registry.npmmirror.com/address/-/address-1.2.2.tgz", "resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz",
"integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==" "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA=="
}, },
"ali-oss": { "ali-oss": {
"version": "6.23.0", "version": "6.23.0",
"resolved": "https://registry.npmmirror.com/ali-oss/-/ali-oss-6.23.0.tgz", "resolved": "https://registry.npmjs.org/ali-oss/-/ali-oss-6.23.0.tgz",
"integrity": "sha512-FipRmyd16Pr/tEey/YaaQ/24Pc3HEpLM9S1DRakEuXlSLXNIJnu1oJtHM53eVYpvW3dXapSjrip3xylZUTIZVQ==", "integrity": "sha512-FipRmyd16Pr/tEey/YaaQ/24Pc3HEpLM9S1DRakEuXlSLXNIJnu1oJtHM53eVYpvW3dXapSjrip3xylZUTIZVQ==",
"requires": { "requires": {
"address": "^1.2.2", "address": "^1.2.2",
...@@ -8892,12 +8892,12 @@ ...@@ -8892,12 +8892,12 @@
}, },
"mime": { "mime": {
"version": "2.6.0", "version": "2.6.0",
"resolved": "https://registry.npmmirror.com/mime/-/mime-2.6.0.tgz", "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz",
"integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==" "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg=="
}, },
"ms": { "ms": {
"version": "2.1.3", "version": "2.1.3",
"resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
} }
} }
...@@ -9297,7 +9297,7 @@ ...@@ -9297,7 +9297,7 @@
"dependencies": { "dependencies": {
"big.js": { "big.js": {
"version": "3.2.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz", "resolved": "https://registry.npmmirror.com/big.js/-/big.js-3.2.0.tgz",
"integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==" "integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q=="
}, },
"json5": { "json5": {
...@@ -13954,7 +13954,7 @@ ...@@ -13954,7 +13954,7 @@
}, },
"p-try": { "p-try": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "resolved": "https://registry.npmmirror.com/p-try/-/p-try-2.2.0.tgz",
"integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
"dev": true "dev": true
}, },
...@@ -15475,7 +15475,7 @@ ...@@ -15475,7 +15475,7 @@
"dependencies": { "dependencies": {
"pify": { "pify": {
"version": "4.0.1", "version": "4.0.1",
"resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", "resolved": "https://registry.npmmirror.com/pify/-/pify-4.0.1.tgz",
"integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==",
"dev": true "dev": true
}, },
...@@ -17141,7 +17141,7 @@ ...@@ -17141,7 +17141,7 @@
}, },
"type-fest": { "type-fest": {
"version": "0.6.0", "version": "0.6.0",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", "resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.6.0.tgz",
"integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==",
"dev": true "dev": true
}, },
...@@ -18452,7 +18452,7 @@ ...@@ -18452,7 +18452,7 @@
}, },
"yarn": { "yarn": {
"version": "1.22.19", "version": "1.22.19",
"resolved": "https://registry.npmmirror.com/yarn/-/yarn-1.22.19.tgz", "resolved": "https://registry.npmjs.org/yarn/-/yarn-1.22.19.tgz",
"integrity": "sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ==" "integrity": "sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ=="
}, },
"yorkie": { "yorkie": {
......
import { Request } from "glsk-toolkit" // const createRequest = () => {
import { baseConfig } from "@/main"
import util from "@/libs/util.js"
// 导出一个创建request实例的函数,而不是立即创建实例
const createRequest = (url, method, data) => { // return window.$gscApi({
const gscConfig = baseConfig?.gsc || {} // url,
let request = new Request({ // method,
...gscConfig, // data,
session: { // ...config
requiresSession: true, // })
sessionId: util.cookies.get("token") || "" // }
}, module.exports = {
events: { gscPost: (url, data, _config = {}) => {
// response: (responseData, config) => { console.log(url, data, _config)
// console.log( return window.$gscApi.post(url, data, _config)
// "%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" import { gscPost } from "./gscRequest";
// 数据看板指标统计 // 数据看板指标统计
export function getdataBoard(data) { export function getdataBoard (data) {
return http("/dataBoard/index", "post", data) return gscPost("/dataBoard/index", data)
} }
// 数据看板评估量趋势 // 数据看板评估量趋势
export function getEvaluationData(data) { export function getEvaluationData (data) {
return http("/dataBoard/evaluation", "post", data) return gscPost("/dataBoard/evaluation", data)
} }
// 数据看板成交量趋势 // 数据看板成交量趋势
export function getDealData(data) { export function getDealData (data) {
return http("/dataBoard/deal", "post", data) return gscPost("/dataBoard/deal", data)
} }
// 合同管理列表 // 合同管理列表
export function getContractList(data) { export function getContractList (data) {
return http("/evalElectronicContract/page", "post", data) return gscPost("/evalElectronicContract/page", data)
} }
// 评估单列表 // 评估单列表
export function getEvalOrderList(data) { export function getEvalOrderList (data) {
return http("/evalOrderManage/getEvalOrderList", "post", data) return gscPost("/evalOrderManage/getEvalOrderList", data)
} }
//评估单详情 //评估单详情
export function getEvalOrderDetail(data) { export function getEvalOrderDetail (data) {
console.log(data) console.log(data)
return http("/evalOrderManage/getEvalOrderDetail", "post", data) return gscPost("/evalOrderManage/getEvalOrderDetail", data)
} }
//评估单动态 //评估单动态
export function getEvalOrderPriceHistory(data) { export function getEvalOrderPriceHistory (data) {
return http("/evalOrderManage/getEvalOrderPriceHistory", "post", data) return gscPost("/evalOrderManage/getEvalOrderPriceHistory", data)
} }
//评估车辆 //评估车辆
export function evaluateCar(data) { export function evaluateCar (data) {
return http("/evalOrderManage/evaluate", "post", data) return gscPost("/evalOrderManage/evaluate", data)
} }
//车辆评估导出 //车辆评估导出
export function exportEvaluate(data) { export function exportEvaluate (data) {
return http("/evalOrderManage/exportEvalOrderAsync", "post", 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)
} }
// 新增阳光激励配置 // 新增阳光激励配置
export const createSunlightConfig = (data) => { export const createSunlightConfig = (data) => {
return http("/sunlightInspiresConfig/create", "post", data) return gscPost("/sunlightInspiresConfig/create", data)
} }
//阳光激励详情 //阳光激励详情
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 editCarStatus = (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)
} }
...@@ -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 }
...@@ -227,7 +227,7 @@ export const routerName = { ...@@ -227,7 +227,7 @@ export const routerName = {
component: _import("usedCarManagement/vehicleManagement/index") component: _import("usedCarManagement/vehicleManagement/index")
}, },
9200404: { 9200404: {
path: "/detail", path: "/vehicleDetail",
name: "vehicleDetail", name: "vehicleDetail",
meta: { meta: {
title: "车辆详情", title: "车辆详情",
...@@ -239,7 +239,7 @@ export const routerName = { ...@@ -239,7 +239,7 @@ export const routerName = {
component: _import("usedCarManagement/vehicleManagement/detail") component: _import("usedCarManagement/vehicleManagement/detail")
}, },
9200405: { 9200405: {
path: "/detail", path: "/editVehicle",
name: "editVehicle", name: "editVehicle",
meta: { meta: {
title: "编辑车辆", title: "编辑车辆",
......
...@@ -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'
}] }]
} }
}, },
......
...@@ -8,7 +8,19 @@ const CAR_STATUS = { ...@@ -8,7 +8,19 @@ const CAR_STATUS = {
6: '拍卖中', 6: '拍卖中',
7: '已退库', 7: '已退库',
} }
/**
* 库存中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_COLOR = { const CAR_STATUS_COLOR = {
0: 'warning', 0: 'warning',
...@@ -23,13 +35,14 @@ const CAR_STATUS_COLOR = { ...@@ -23,13 +35,14 @@ const CAR_STATUS_COLOR = {
const CAR_STATUS_OPTIONS = Object.keys(CAR_STATUS).map(key => { const CAR_STATUS_OPTIONS = Object.keys(CAR_STATUS).map(key => {
return { return {
label: CAR_STATUS[key], label: CAR_STATUS[key],
value: key, value: +key,
level: CAR_STATUS_LEVEL[key],
} }
}) })
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 +72,7 @@ const HAS_ACCIDENT_OPTIONS = Object.keys(HAS_ACCIDENT).map(key => { ...@@ -59,6 +72,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,
......
...@@ -244,10 +244,10 @@ export default { ...@@ -244,10 +244,10 @@ export default {
], ],
// 基本数据 // 基本数据
baseData: { baseData: {
usageTypeOpts: USAGE_TYPE_OPTIONS, //使用性质 usageTypeOpts: deepClone(USAGE_TYPE_OPTIONS), //使用性质
ownerTypeOpts: OWNER_TYPE_OPTIONS, //所有人性质 ownerTypeOpts: deepClone(OWNER_TYPE_OPTIONS), //所有人性质
hasAccidentOpts: HAS_ACCIDENT_OPTIONS, //是否事故 hasAccidentOpts: deepClone(HAS_ACCIDENT_OPTIONS), //是否事故
carStatusOpts: CAR_STATUS_OPTIONS //车辆状态 carStatusOpts: deepClone(CAR_STATUS_OPTIONS) //车辆状态
}, },
tableSearchForm: {}, tableSearchForm: {},
...@@ -428,14 +428,24 @@ export default { ...@@ -428,14 +428,24 @@ export default {
} }
}) })
}, },
filterIds() {
let ids = []
if (this.$refs.vehicleManagementTable.mutiSelectArr.contentIndex?.length) {
this.$refs.vehicleManagementTable.mutiSelectArr.contentIndex.forEach((item) => {
ids.push(item.id)
})
}
return ids
},
handleExport () { handleExport () {
let params = { let params = {
method: '/carManagement/export', method: '/carManagement/exportCarManageInfoAsync',
server_provider_type: 'gsc', server_provider_type: 'gsc',
server_provider_name: 'gsc-vcp-web-facade', server_provider_name: 'gsc-vcp-web-facade',
...this.getParams() ...this.getParams(),
} },
ids = this.filterIds()
if(ids.length) params.ids = ids
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!