fix: 修复变量名不一致和移除预计费用
This commit is contained in:
@@ -720,7 +720,7 @@ class FeishuNotificationService
|
||||
return false;
|
||||
}
|
||||
|
||||
error_log("🔍 准备更新操作人消息: message_id={$message->message_id}, company_id={$companyId}, feishu_app_id={$feishu_app_id}");
|
||||
error_log("🔍 准备更新操作人消息: message_id={$message->message_id}, company_id={$companyId}, feishu_app_id={$feishuAppId}");
|
||||
|
||||
// 使用该消息对应的飞书应用配置
|
||||
$this->companyId = $companyId;
|
||||
|
||||
@@ -613,19 +613,16 @@ export default function ApprovalDetail() {
|
||||
<span className={styles.itineraryIndex}>行程 {index + 1}</span>
|
||||
</div>
|
||||
{Object.entries(itinerary).map(([ikey, ivalue]) => {
|
||||
if (ikey === 'id') return null
|
||||
if (ikey === 'id' || ikey === 'estimated_cost') return null
|
||||
const itineraryLabelMap: Record<string, string> = {
|
||||
destination: '目的地',
|
||||
start_date: '开始日期',
|
||||
end_date: '结束日期',
|
||||
estimated_cost: '预计费用',
|
||||
}
|
||||
const itineraryLabel = itineraryLabelMap[ikey] || ikey
|
||||
let displayValue = ivalue as string
|
||||
if (ikey.includes('date') && ivalue) {
|
||||
displayValue = dayjs(String(ivalue)).format('YYYY-MM-DD')
|
||||
} else if (ikey === 'estimated_cost' && ivalue) {
|
||||
displayValue = `¥${Number(ivalue).toFixed(2)}`
|
||||
}
|
||||
return (
|
||||
<div key={ikey} className={styles.itineraryRow}>
|
||||
|
||||
Reference in New Issue
Block a user