feat(web-admin): add mp webview CRM contract list pages.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
e54a168829
commit
a9ee5d440e
4 files changed
+824
-28
No files matched your search
@@ -55,6 +55,9 @@ export function buildContractListQuery(input: {
|
||||
export function buildContractCard(row: {
|
||||
id: string | number
|
||||
contractNo?: string
|
||||
/** 桌面/API 字段 */
|
||||
contractName?: string
|
||||
/** 兼容旧测试/别名 */
|
||||
contractTitle?: string
|
||||
customerName?: string
|
||||
amount?: number
|
||||
@@ -62,16 +65,18 @@ export function buildContractCard(row: {
|
||||
barrelDeposit?: number
|
||||
status?: string
|
||||
signDate?: string
|
||||
canApprove?: boolean
|
||||
}) {
|
||||
const total =
|
||||
(Number(row.amount) || 0) + (Number(row.freight) || 0) + (Number(row.barrelDeposit) || 0)
|
||||
return {
|
||||
id: String(row.id),
|
||||
contractNo: row.contractNo || '—',
|
||||
contractTitle: row.contractTitle || '—',
|
||||
contractTitle: row.contractName || row.contractTitle || '—',
|
||||
customerName: row.customerName || '—',
|
||||
amountText: formatContractMoney(total),
|
||||
status: row.status || '',
|
||||
signDate: row.signDate || '—'
|
||||
signDate: row.signDate || '—',
|
||||
canApprove: !!row.canApprove
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user