Commit 8c645210 by 李伟康

```

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

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