feat: add additional info to preview

This commit is contained in:
Methapon Metanipat 2024-10-18 12:32:55 +07:00
parent 5a8e17f236
commit 859c6b7961
3 changed files with 16 additions and 4 deletions

View file

@ -619,7 +619,12 @@ async function searchEmployee(text: string) {
function storeDataLocal() {
localStorage.setItem(
'quotation-preview',
JSON.stringify(quotationFormData.value),
JSON.stringify({
data: quotationFormData.value,
meta: {
createdBy: quotationFormState.value.createdBy('tha'),
},
}),
);
window.open('/quotation/document-view', '_blank');