🐛 fix(运单管理): 打卡记录里程回显按正整数归一
后端若仍下发 "200.00",编辑打卡记录时原样保存会被正整数校验拒掉。
This commit is contained in:
@@ -5993,7 +5993,8 @@ export default {
|
|||||||
weight: record.weight || '',
|
weight: record.weight || '',
|
||||||
volume: record.volume || '',
|
volume: record.volume || '',
|
||||||
quantity: record.quantity || '',
|
quantity: record.quantity || '',
|
||||||
mileage: Number(record.mileage) > 0 ? String(record.mileage) : '',
|
// 里程只有正整数口径,后端若仍下发 "200.00" 会过不了提交时的正整数校验
|
||||||
|
mileage: Number(record.mileage) > 0 ? String(Number(record.mileage)) : '',
|
||||||
remark: record.remark || '',
|
remark: record.remark || '',
|
||||||
photos: (record.photos || [])
|
photos: (record.photos || [])
|
||||||
.filter(photo => photo?.url)
|
.filter(photo => photo?.url)
|
||||||
|
|||||||
Reference in New Issue
Block a user