Commit 8c645210 by 李伟康

```

feat(usedCarManagement): 新增车辆台账分页列表接口并优化相关页面配置

新增了车辆台账的分页查询接口 `getVehicleLedger`,用于支持新车辆台账模块的数据展示。
同时更新了路由标题、表格列配置及搜索条件,以适配新的业务字段和展示需求。
此外,调整了部分常量命名与结构,并修复了状态展示插槽逻辑,
确保状态颜色和文本显示正确。最后修改了导出功能对应的后端接口路径。
```
1 parent fe74d1eb
...@@ -294,3 +294,12 @@ export const updateRcvBankName = (data = {}) => { ...@@ -294,3 +294,12 @@ export const updateRcvBankName = (data = {}) => {
return request(data, RequestMethods.POST) return request(data, RequestMethods.POST)
} }
/**
*
车辆台账分页列表
*/
export const getVehicleLedger = (data = {}) => {
return gscPost("/vehicleLedger/pageList", data, {
timeout: 30000
})
}
\ No newline at end of file \ No newline at end of file
...@@ -355,7 +355,7 @@ export const routerName = { ...@@ -355,7 +355,7 @@ export const routerName = {
path: "/quitAndHandover", path: "/quitAndHandover",
name: "quitAndHandover", name: "quitAndHandover",
meta: { meta: {
title: "离职交接", title: "离职继承",
authId: "92007", authId: "92007",
parentId: "920", parentId: "920",
cache: false cache: false
......
const CODE_STATUS = {
1: '审核中',
2: '已通过',
3: '已驳回',
4: '已撤销'
}
const CODE_STATUS_COLOR = {
1: "#FDB757",
2: "#2CCA74",
3: "#EB4E4E",
4: '#B8B8B8'
}
const PAYMENT_TYPE = {
2: '是',
1: '否'
}
const IS_IN_STOCK = {
1: '是',
0: '否'
}
const PAYMENT_TYPE_OPTIONS = Object.keys(PAYMENT_TYPE).map((key) => {
return {
label: PAYMENT_TYPE[key],
value: key
}
})
const IS_IN_STOCK_OPTIONS = Object.keys(IS_IN_STOCK).map((key) => {
return {
label: IS_IN_STOCK[key],
value: key
}
})
const formatterPrice = (cellValue) => {
return cellValue != null ? `¥${cellValue.toFixed(2)}` : '-'
}
const TABLECOLUMNS = [ const TABLECOLUMNS = [
{ {
label: "评估单编号", label: "评估单编号",
prop: "vin", prop: "evalOrderNo",
minWidth: 120 minWidth: 176
}, },
{ {
label: "评估单编号", label: "评估单来源",
prop: "vin", prop: "source",
minWidth: 120 minWidth: 96,
formatter: (cellValue) => {
return {
1: 'APP',
2: '小程序',
3: '人工导入'
}[cellValue.source] || '-'
}
}, },
{ {
label: "评估单编号", label: "评估单时间",
prop: "vin", prop: "orderCreatedTime",
minWidth: 120 minWidth: 176
}, },
{ {
label: "评估单编号", label: "转让协议签署",
prop: "vin", minWidth: 120,
minWidth: 120 formatter: (cellValue) => {
return {
1: '是',
0: '否'
}[cellValue.transferAgreementSigned] || '-'
}
}, },
{ {
label: "评估单编号", label: "交接确认单签署",
prop: "vin", minWidth: 120,
minWidth: 120 formatter: (cellValue) => {
return {
1: '是',
0: '否'
}[cellValue.handoverConfirmSigned] || '-'
}
}, },
{ {
label: "评估单编号", label: "补充协议签署",
prop: "vin", minWidth: 120,
minWidth: 120 formatter: (cellValue) => {
return {
1: '是',
0: '否'
}[cellValue.supplementaryAgreementSigned] || '-'
}
}, },
{ {
label: "评估单编号", label: "代保管协议签署",
prop: "vin", minWidth: 120,
minWidth: 120 formatter: (cellValue) => {
return {
1: '是',
0: '否'
}[cellValue.custodyAgreementSigned] || '-'
}
}, },
{ {
label: "评估单编号", label: "企微审批单号(定金)",
prop: "vin", prop: "depositOaFlowCode",
minWidth: 120 minWidth: 172
}, },
{ {
label: "评估单编号", label: "企微审批状态(定金)",
prop: "vin", minWidth: 172,
minWidth: 120 prop: 'depositOaFlowStatus',
addHtml: 'statusHtml'
}, },
{ {
label: "评估单编号", label: "企微审批单号(尾款/全款)",
prop: "vin", prop: "finalPaymentOaFlowCode",
minWidth: 120 minWidth: 206
}, },
{ {
label: "评估单编号", label: "企微审批状态(尾款/全款)",
prop: "vin", minWidth: 206,
minWidth: 120 prop: 'finalPaymentOaFlowStatus',
addHtml: 'statusHtml'
}, },
{ {
label: "评估单编号", label: "门店",
prop: "vin", prop: "sellerMerchantName",
minWidth: 120 minWidth: 152
}, },
{ {
label: "评估单编号", label: "销售顾问",
prop: "vin", prop: "sellerName",
minWidth: 120 minWidth: 120
}, },
{ {
label: "评估单编号", label: "驻店人员",
prop: "vin", prop: "conversionName",
minWidth: 120 minWidth: 120
}, },
{ {
label: "评估单编号", label: "签约人",
prop: "vin", prop: "previousOwnerName",
minWidth: 120 minWidth: 120
}, },
{ {
label: "评估单编号", label: "收款方",
prop: "vin", prop: "payeeName",
minWidth: 120 minWidth: 120
}, },
{ {
label: "评估单编号", label: "车牌号",
prop: "vin", prop: "licensePlate",
minWidth: 120 minWidth: 120
}, },
{ {
label: "评估单编号", label: "类别",
prop: "vin", minWidth: 120,
minWidth: 120 formatter: (cellValue) => {
return {
1: '置换车',
2: '报废车'
}[cellValue.vehicleCategory] || '-'
}
}, },
{ {
label: "评估单编号", label: "品牌",
prop: "vin", prop: "carBrand",
minWidth: 120 minWidth: 120
}, },
{ {
label: "评估单编号", label: "车架号",
prop: "vin", prop: "vin",
minWidth: 120 minWidth: 176
}, },
{ {
label: "评估单编号", label: "收购时间(付款)",
prop: "vin", prop: "purchaseTime",
minWidth: 120 minWidth: 176
}, },
{ {
label: "评估单编号", label: "收购价格/元(包含对公流量费)",
prop: "vin", minWidth: 240,
minWidth: 120 formatter: (cellValue) => {
return formatterPrice(cellValue.contractPrice)
}
}, },
{ {
label: "评估单编号", label: "是否全款",
prop: "vin", minWidth: 120,
minWidth: 120 formatter: (cellValue) => {
return PAYMENT_TYPE[cellValue.paymentType] || '-'
}
}, },
{ {
label: "评估单编号", label: "定金时间",
prop: "vin", prop: "depositTime",
minWidth: 120 minWidth: 176
}, },
{ {
label: "评估单编号", label: "定金金额",
prop: "vin", minWidth: 120,
minWidth: 120 formatter: (cellValue) => {
return formatterPrice(cellValue.depositAmount)
}
}, },
{ {
label: "评估单编号", label: "尾款时间",
prop: "vin", prop: "finalPaymentTime",
minWidth: 120 minWidth: 176
}, },
{ {
label: "评估单编号", label: "尾款金额",
prop: "vin", minWidth: 120,
minWidth: 120 formatter: (cellValue) => {
return formatterPrice(cellValue.finalPaymentAmount)
}
}, },
{ {
label: "评估单编号", label: "入库时间",
prop: "vin", prop: "storageTime",
minWidth: 120 minWidth: 176
}, },
{ {
label: "评估单编号", label: "是否交付",
prop: "vin", minWidth: 120,
minWidth: 120 formatter: (cellValue) => {
return {
1: '是',
0: '否'
}[cellValue.isDelivered] || '-'
}
}, },
{ {
label: "评估单编号", label: "是否在库",
prop: "vin", minWidth: 120,
minWidth: 120 formatter: (cellValue) => {
return IS_IN_STOCK[cellValue.isInStock] || '-'
}
}, },
{ {
label: "评估单编号", label: "在库时长/天",
prop: "vin", prop: "daysInStock",
minWidth: 120 minWidth: 120
}, },
{ {
label: "评估单编号", label: "是否拍卖",
prop: "vin", minWidth: 120,
minWidth: 120 formatter: (cellValue) => {
return {
1: '是',
0: '否'
}[cellValue.isAuctioned] || '-'
}
}, },
{ {
label: "评估单编号", label: "拍卖价格",
prop: "vin", minWidth: 120,
minWidth: 120 formatter: (cellValue) => {
return formatterPrice(cellValue.sellingPrice)
}
}, },
{ {
label: "评估单编号", label: "拍卖时间",
prop: "vin", prop: "auctionTime",
minWidth: 120 minWidth: 176
}, },
{ {
label: "评估单编号", label: "收款时间",
prop: "vin", prop: "sellingTime",
minWidth: 120 minWidth: 176
}, },
{ {
label: "评估单编号", label: "付款方",
prop: "vin", prop: "seller",
minWidth: 120 minWidth: 120
}, },
{ {
label: "评估单编号", label: "收拍利润",
prop: "vin", minWidth: 120,
minWidth: 120 formatter: (cellValue) => {
return formatterPrice(cellValue.profit)
}
}, },
{ {
label: "评估单编号", label: "拍卖平台",
prop: "vin", prop: "auctionPlatform",
minWidth: 120 minWidth: 120
}, },
{ {
label: "评估单编号", label: "备注",
prop: "vin", prop: "sellingNotes",
minWidth: 120 minWidth: 120
}, },
{ {
label: "评估单编号", label: "车主身份证号码",
prop: "vin", prop: "partAIdentityCode",
minWidth: 120 minWidth: 150
}, },
{ {
label: "评估单编号", label: "电话",
prop: "vin", prop: "partAContactMobile",
minWidth: 120 minWidth: 120
}, },
{ {
label: "评估单编号", label: "卖方单位/个人地址",
prop: "vin", prop: "partAAddress",
minWidth: 120 minWidth: 150
}, },
{ {
label: "评估单编号", label: "登记证号",
prop: "vin", prop: "registrationNo",
minWidth: 120 minWidth: 120
}, },
{ {
label: "评估单编号", label: "厂牌(品牌)型号",
prop: "vin", prop: "completeBrandModel",
minWidth: 144
},
{
label: "车辆类型",
prop: "vehicleType",
minWidth: 120 minWidth: 120
}, },
{ {
label: "评估单编号", label: "是否对账",
prop: "vin", prop: "isReconciled",
minWidth: 120 minWidth: 120
}, },
] ]
module.exports = { module.exports = {
TABLECOLUMNS TABLECOLUMNS,
CODE_STATUS,
CODE_STATUS_COLOR,
PAYMENT_TYPE_OPTIONS,
IS_IN_STOCK_OPTIONS
} }
...@@ -74,24 +74,21 @@ ...@@ -74,24 +74,21 @@
:get-list-api="getListApi" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn" :before-search-fn="beforeSearchFn"
> >
<!-- <div <div
slot="carStatusHtml" slot="statusHtml"
slot-scope="scope" slot-scope="scope"
> >
<span <span
class="circle" class="circle"
:style="{ :style="{
background: CAR_STATUS_COLOR[scope.scope.carStatus] background:
CODE_STATUS_COLOR[scope.scope[scope.prop]]
}" }"
></span> ></span>
{{ CAR_STATUS[scope.scope.carStatus] || "-" }} <!-- baseData[scope.columnsObj.colorKey][scope.scope[scope.prop]] -->
{{CODE_STATUS[scope.scope[scope.prop]] || "-" }}
<!-- baseData[scope.columnsObj.enumKey][scope.scope[scope.prop]] || "-" -->
</div> </div>
<div
slot="sourceHtml"
slot-scope="scope"
>
{{ SOURCE_MAP[scope.scope.source] || "-" }}
</div> -->
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
...@@ -99,10 +96,14 @@ ...@@ -99,10 +96,14 @@
<script> <script>
import { deepClone } from "@/common/util" import { deepClone } from "@/common/util"
import { getCarManagementPage } from "@api/usedCarManagement" import { getVehicleLedger } from "@api/usedCarManagement"
import { mapActions, mapState } from "vuex" import { mapActions, mapState } from "vuex"
import { import {
TABLECOLUMNS TABLECOLUMNS,
CODE_STATUS,
CODE_STATUS_COLOR,
PAYMENT_TYPE_OPTIONS,
IS_IN_STOCK_OPTIONS
} from "./contant" } from "./contant"
import dayjs from "dayjs" import dayjs from "dayjs"
...@@ -113,54 +114,49 @@ export default { ...@@ -113,54 +114,49 @@ export default {
// mixins: [reportTrackPageMixin], // mixins: [reportTrackPageMixin],
data () { data () {
return { return {
CODE_STATUS,
CODE_STATUS_COLOR,
noDataUrl: require("@/assets/noData.png"), noDataUrl: require("@/assets/noData.png"),
statusEnum: {}, statusEnum: {},
searchForm: { searchForm: {
licensePlate: "", licensePlate: "",
vin: "", vin: "",
sourceNo: "", sellerMerchantName: '',
carTypeName: "", previousOwnerName: '',
registerTime: "", paymentType: '',
listingCity: "", inStock: '',
usageType: "", dateType: 'purchase',
ownerType: "", dateValue: '',
hasAccident: "",
carCreator: "",
carStatus: "",
originalOwner: "",
ownerContact: "",
custodian: "",
carCreateTime: "",
source: ""
}, },
selectOption: [ selectOption: [
{ {
label: "收购时间", label: "收购时间",
value: "payment" value: "purchase"
}, },
{ {
label: "定金时间", label: "定金时间",
value: "push" value: "deposit"
}, },
{ {
label: "尾款时间", label: "尾款时间",
value: "push1" value: "finalPayment"
}, },
{ {
label: "入库时间", label: "入库时间",
value: "payment1" value: "storage"
}, },
{ {
label: "拍卖时间", label: "拍卖时间",
value: "push2" value: "auction"
}, },
{ {
label: "收款时间", label: "收款时间",
value: "push2" value: "receivable"
}, },
{ {
label: "评估单时间", label: "评估单时间",
value: "push3" value: "orderCreated"
}, },
], ],
showFormData: [ showFormData: [
...@@ -180,35 +176,35 @@ export default { ...@@ -180,35 +176,35 @@ export default {
}, },
{ {
label: "门店", label: "门店",
name: "vin", name: "sellerMerchantName",
type: "input", type: "input",
isClear: true, isClear: true,
maxlength: 50 maxlength: 50
}, },
{ {
label: "签约人", label: "签约人",
name: "vin", name: "previousOwnerName",
type: "input", type: "input",
isClear: true, isClear: true,
maxlength: 20 maxlength: 20
}, },
{ {
label: "是否全款", label: "是否全款",
name: "ownerType", name: "paymentType",
type: "select", type: "select",
optionList: [], optionList: [],
optionId: "value", optionId: "value",
optionLabel: "label", optionLabel: "label",
optionsName: "ownerTypeOpts" optionsName: "paymentTypeOpts"
}, },
{ {
label: "是否在库", label: "是否在库",
name: "hasAccident", name: "inStock",
type: "select", type: "select",
optionList: [], optionList: [],
optionId: "value", optionId: "value",
optionLabel: "label", optionLabel: "label",
optionsName: "hasAccidentOpts" optionsName: "isInStockOpts"
}, },
{ {
addHtml: "selectDatePickerHtml" addHtml: "selectDatePickerHtml"
...@@ -216,11 +212,11 @@ export default { ...@@ -216,11 +212,11 @@ export default {
], ],
// 基本数据 // 基本数据
baseData: { baseData: {
usageTypeOpts: deepClone([]), // 是否全款 paymentTypeOpts: deepClone(PAYMENT_TYPE_OPTIONS), // 是否全款
ownerTypeOpts: deepClone([]), // 是否在库 isInStockOpts: deepClone(IS_IN_STOCK_OPTIONS), // 是否在库
}, },
tableSearchForm: {}, tableSearchForm: {},
getListApi: getCarManagementPage, getListApi: getVehicleLedger,
searchFormSearch: {}, searchFormSearch: {},
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
...@@ -278,24 +274,22 @@ export default { ...@@ -278,24 +274,22 @@ export default {
}, },
getParams () { getParams () {
const params = deepClone(this.searchForm) const params = deepClone(this.searchForm)
if (params.registerTime) { if (params.dateValue) {
const [srart, end] = params.registerTime const [srart, end] = params.dateValue
params.listingStartDate = const { dateType } = params
dayjs(srart).format("YYYY-MM-DD") + " 00:00:00" const srartKey = `${dateType}StartTime`
params.listingEndDate = dayjs(end).format("YYYY-MM-DD") + " 23:59:59"
} const endKey = `${dateType}EndTime`
if (params.carCreateTime) { params[srartKey] = dayjs(srart).format("YYYY-MM-DD HH:mm:ss")
const [srart, end] = params.carCreateTime params[endKey] = dayjs(end).format("YYYY-MM-DD HH:mm:ss")
params.createdStartDate = dayjs(srart).format("YYYY-MM-DD HH:mm:ss")
params.createdEndDate = dayjs(end).format("YYYY-MM-DD HH:mm:ss")
} }
delete params.registerTime delete params.dateValue
delete params.carCreateTime delete params.dateType
return params return params
}, },
handleExport () { handleExport () {
const params = { const params = {
method: "/carManagement/exportCarManageInfoAsync", method: "/vehicleLedger/exportAsync",
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()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!