优化修改订单
This commit is contained in:
parent
1f5872249e
commit
3db30d8fd2
|
|
@ -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'
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue