Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ujia
/
uj-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 250784d9
authored
Nov 23, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化车辆和财务页面,调整日期选择功能,增加日期限制,排序列以符合预设顺序
1 parent
4da57903
Pipeline
#608
for
250784d9
failed
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
10 deletions
apps/web/subapps/usedcar/src/pages/Ledger/FinancialLedger.tsx
apps/web/subapps/usedcar/src/pages/Ledger/VehicleLedger.tsx
apps/web/subapps/usedcar/src/pages/Ledger/FinancialLedger.tsx
View file @
250784d
import { useMemo, useState } from 'react';
import { useQuery } from '@tanstack/react-query';
import
type {
Dayjs } from 'dayjs';
import { UAlert, UCard
, UImage
} from '@uj/ui';
import
dayjs, { type
Dayjs } from 'dayjs';
import { UAlert, UCard } from '@uj/ui';
import { downloadCenter } from '@uj/platform-sdk';
import { DataTable, SearchForm, type FieldSchema } from '@/components';
import { financialLedgerApi } from '@/api';
...
...
@@ -59,16 +59,14 @@ export default function FinancialLedger() {
essential: true,
inputProps: { maxLength: 20 },
},
{ name: 'storageTime', label: '入库时间', type: 'dateRange' },
];
const columns = [
{
title: '车辆照片',
dataIndex: 'carPhoto',
width: 112,
render: (v: unknown) =>
typeof v === 'string' ? <UImage src={v} width={88} height={64} /> : '-',
name: 'storageTime',
label: '入库时间',
type: 'dateRange',
disabledDate: (date) => date.isAfter(dayjs(), 'day'),
},
];
const columns = [
...(
[
['卖方单位/个人', 'partAName'],
...
...
apps/web/subapps/usedcar/src/pages/Ledger/VehicleLedger.tsx
View file @
250784d
...
...
@@ -196,6 +196,59 @@ export default function VehicleLedger() {
{ title: '拍卖价格', dataIndex: 'sellingPrice', width: 110, render: money },
{ title: '收拍利润', dataIndex: 'profit', width: 110, render: money },
);
const columnOrder = [
'评估单编号',
'评估单时间',
'评估单来源',
'总部定价师',
'转让协议签署',
'交接确认单签署',
'补充协议签署',
'代保管协议签署',
'企微审批单号(定金)',
'企微审批状态(定金)',
'企微审批单号(尾款/全款)',
'企微审批状态(尾款/全款)',
'门店',
'销售顾问',
'驻店人员',
'签约人',
'收款方',
'车牌号',
'类别',
'品牌',
'车架号',
'收购时间(付款)',
'收购价格/元(包含对公流量费)',
'是否全款',
'定金时间',
'定金金额',
'尾款时间',
'尾款金额',
'入库时间',
'是否交付',
'是否在库',
'在库时长/天',
'是否拍卖',
'拍卖价格',
'拍卖时间',
'收款时间',
'付款方',
'收拍利润',
'拍卖平台',
'备注',
'车主身份证号码',
'电话',
'卖方单位/个人地址',
'登记证号',
'厂牌(品牌)型号',
'车辆类型',
'是否对账',
];
columns.sort(
(left, right) =>
columnOrder.indexOf(String(left.title)) - columnOrder.indexOf(String(right.title)),
);
return (
<>
<UCard className="uj-filter-card" size="small">
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment