fix: 新增下钻支持、移动端库存区域下钻加category:Inventory
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -534,7 +534,8 @@ export default function App() {
|
|||||||
<div className="text-[7px] text-gray-300 font-normal italic">上周六-本周五</div>
|
<div className="text-[7px] text-gray-300 font-normal italic">上周六-本周五</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex justify-between items-center gap-1">
|
<div className="flex justify-between items-center gap-1">
|
||||||
<div className="flex-1 flex flex-col items-center cursor-pointer hover:bg-green-50 py-1 rounded transition-all group">
|
<div className="flex-1 flex flex-col items-center cursor-pointer hover:bg-green-50 py-1 rounded transition-all group"
|
||||||
|
onClick={() => setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', title: '本周新增车辆' })}>
|
||||||
<span className="text-xs font-bold text-gray-800 group-hover:text-green-600">{SUMMARY.weeklyNew}</span>
|
<span className="text-xs font-bold text-gray-800 group-hover:text-green-600">{SUMMARY.weeklyNew}</span>
|
||||||
<span className="text-[8px] text-green-500/80 font-bold mt-0.5">新增</span>
|
<span className="text-[8px] text-green-500/80 font-bold mt-0.5">新增</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -1029,7 +1030,7 @@ export default function App() {
|
|||||||
<button
|
<button
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
setShowPlateNumbers({ batch: 'All', model: model.model, location: reg, source: 'asset', title: `${model.model} - ${reg}` });
|
setShowPlateNumbers({ batch: 'All', model: model.model, location: reg, category: 'Inventory', source: 'asset', title: `${model.model} - ${reg}库存` });
|
||||||
}}
|
}}
|
||||||
className="text-[10px] font-bold text-blue-500 hover:underline"
|
className="text-[10px] font-bold text-blue-500 hover:underline"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -984,6 +984,10 @@ app.get('/weekly-detail', async (c) => {
|
|||||||
} else if (type === 'pending') {
|
} else if (type === 'pending') {
|
||||||
sql = `SELECT truck.id AS truck_id, truck.plate_number, NULL AS handover_date, NULL AS contract_type, NULL AS customer_name
|
sql = `SELECT truck.id AS truck_id, truck.plate_number, NULL AS handover_date, NULL AS contract_type, NULL AS customer_name
|
||||||
FROM tab_truck truck WHERE truck.is_deleted=0 AND truck.is_operation=1 AND truck.truck_rent_status=7`;
|
FROM tab_truck truck WHERE truck.is_deleted=0 AND truck.is_operation=1 AND truck.truck_rent_status=7`;
|
||||||
|
} else if (type === 'new') {
|
||||||
|
sql = `SELECT truck.id AS truck_id, truck.plate_number, truck.create_time AS handover_date, NULL AS contract_type, NULL AS customer_name
|
||||||
|
FROM tab_truck truck WHERE truck.is_deleted=0 AND truck.is_operation=1
|
||||||
|
AND truck.create_time >= ${WEEK_START_SQL} AND truck.create_time < ${WEEK_END_SQL} ORDER BY truck.create_time DESC`;
|
||||||
} else {
|
} else {
|
||||||
return c.json([]);
|
return c.json([]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user