优化修改订单

This commit is contained in:
Mrking 2025-01-19 22:25:08 +08:00
parent 1f5872249e
commit 3db30d8fd2
1 changed files with 4 additions and 0 deletions

View File

@ -350,6 +350,9 @@ const addRow = (row) => {
}
}
if (!row.deliveryDate) {
row.deliveryDate = Date.now() + (24 * 60 * 60 * 1000)
}
// @ts-ignore
formData.value.entrys.push({
itemKey: Math.random().toString(36).substring(2),
@ -362,6 +365,7 @@ const addRow = (row) => {
price: 0,
amount: 0,
discount: 0,
deliveryDate: row.deliveryDate,
unit: row.unit || 'pcs'
})