优化收货功能

This commit is contained in:
zm2000 2026-05-21 11:36:23 +08:00
parent 03c5d46067
commit 6f5495c097

View File

@ -548,6 +548,12 @@
...this.formData
};
Object.keys(this.formData).forEach(key => {
if (key === 'tail_box_quantity' || key === 'shelf_life') {
const incomingValue = data[key];
newFormData[key] = incomingValue === undefined || incomingValue === null ? '' : incomingValue;
return;
}
if (data[key] !== undefined) {
newFormData[key] = data[key];
}
@ -1071,7 +1077,7 @@
.date-display {
padding: 18rpx 0;
color: #333;
font-size: 28rpx;
font-size: 35rpx;
}
}
</style>