fix: 过滤表单数据中的预计费用和行程字段
This commit is contained in:
@@ -596,7 +596,7 @@ export default function ApprovalDetail() {
|
|||||||
<Card title="申请内容" className={styles.section}>
|
<Card title="申请内容" className={styles.section}>
|
||||||
<div className={styles.formData}>
|
<div className={styles.formData}>
|
||||||
{Object.entries(detail.form_data)
|
{Object.entries(detail.form_data)
|
||||||
.filter(([key]) => !['approvers', 'cc_users'].includes(key))
|
.filter(([key]) => !['approvers', 'cc_users', 'itineraries', 'estimated_cost'].includes(key))
|
||||||
.map(([key, value]) => {
|
.map(([key, value]) => {
|
||||||
// 获取字段标签,优先使用映射表,没有则使用原始key
|
// 获取字段标签,优先使用映射表,没有则使用原始key
|
||||||
const label = formFieldLabelMap[key] || key
|
const label = formFieldLabelMap[key] || key
|
||||||
|
|||||||
Reference in New Issue
Block a user