Fix quick entry persistence
This commit is contained in:
parent
45d7249d13
commit
08354ac897
|
|
@ -396,7 +396,7 @@ function saveEntry() {
|
||||||
<input
|
<input
|
||||||
v-model="note"
|
v-model="note"
|
||||||
maxlength="40"
|
maxlength="40"
|
||||||
placeholder="备注(可选)"
|
placeholder="备注"
|
||||||
aria-label="备注"
|
aria-label="备注"
|
||||||
@focus="startNoteEditing"
|
@focus="startNoteEditing"
|
||||||
@blur="noteEditing = false"
|
@blur="noteEditing = false"
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ export function createEntry(input: EntryInput): LedgerEntry {
|
||||||
return {
|
return {
|
||||||
id: createId(),
|
id: createId(),
|
||||||
ownerId: input.createdBy ?? "local-user",
|
ownerId: input.createdBy ?? "local-user",
|
||||||
ledgerIds: input.ledgerIds,
|
ledgerIds: [...new Set(input.ledgerIds)],
|
||||||
type: input.type,
|
type: input.type,
|
||||||
amount: input.amount,
|
amount: input.amount,
|
||||||
currency: input.currency,
|
currency: input.currency,
|
||||||
|
|
|
||||||
|
|
@ -266,7 +266,7 @@ function chooseChild(category: Category) {
|
||||||
<span class="edit-field-leading note"><NotebookText :size="19" /></span>
|
<span class="edit-field-leading note"><NotebookText :size="19" /></span>
|
||||||
<span class="edit-field-copy">
|
<span class="edit-field-copy">
|
||||||
<small>备注</small>
|
<small>备注</small>
|
||||||
<textarea v-model="note" maxlength="120" rows="3" placeholder="补充说明(可选)"></textarea>
|
<textarea v-model="note" maxlength="120" rows="3" placeholder="补充说明"></textarea>
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
|
|
@ -277,7 +277,7 @@ async function deleteEntry() {
|
||||||
<span class="entry-field-icon note"><NotebookText :size="19" /></span>
|
<span class="entry-field-icon note"><NotebookText :size="19" /></span>
|
||||||
<span class="entry-field-copy">
|
<span class="entry-field-copy">
|
||||||
<small>备注</small>
|
<small>备注</small>
|
||||||
<textarea v-model="note" maxlength="120" rows="3" placeholder="补充说明(可选)"></textarea>
|
<textarea v-model="note" maxlength="120" rows="3" placeholder="补充说明"></textarea>
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue