Commit graph

57 commits

Author SHA1 Message Date
puriphatt
3e619e6856 feat: arithmetic calc price function 2024-12-24 17:39:15 +07:00
Methapon2001
3eda26bbf7 feat: add drop image product mgmt 2024-12-23 17:17:39 +07:00
Methapon2001
0c6440f3fb fix: theme invert 2024-12-19 14:40:44 +07:00
Methapon2001
5e524ec91d refactor: use switch case instead 2024-12-19 12:02:45 +07:00
Methapon2001
75e36663c2 chore: clean datetime function 2024-12-18 09:15:21 +07:00
Methapon2001
f9f0d1d313 refactor: use locale format from moment 2024-12-18 09:15:06 +07:00
Methapon2001
a7158a7511 docs: add function docs 2024-12-18 08:58:29 +07:00
Methapon2001
cd27514c33 refactor: use default locale instead of en-gb 2024-12-18 08:55:04 +07:00
Methapon2001
d8062c9174 refactor: use switch case for better readability 2024-12-17 15:01:00 +07:00
Methapon2001
ed423cfaf7 refactor: prevent error 2024-12-17 14:57:50 +07:00
Methapon2001
5afe625290 refactor: date time util function default 2024-12-16 16:27:49 +07:00
puriphatt
1b4c06b182
fix/refactor: quotation installment (#121)
* refactor/feat: i18n

* chore: clean log

* refactor: type

* refactor: installment and product table state relation

* refactor: handle split custom

---------

Co-authored-by: Thanaphon Frappet <thanaphon@frappet.com>
2024-12-06 11:01:52 +07:00
Methapon2001
f3982978fa fix: typo 2024-12-03 12:57:48 +07:00
Methapon2001
677cfb3756 fix: lang not reset if value not match 2024-11-29 17:09:45 +07:00
Methapon2001
820b81aede feat: add template string 2024-11-27 13:55:19 +07:00
Thanaphon Frappet
aef712b409 fix: function convertTemplate 2024-11-27 12:55:44 +07:00
Methapon Metanipat
4f3d39bf59 fix: backward compat 2024-11-25 09:03:50 +07:00
Methapon Metanipat
972f6ba13e
feat: menu request list (#75)
* feat: i18n

* feat: request list

* refactor: hide stat transition on app.scss

* feat: request list i18n

* feat: request list => constants and main page

* feat: add store

* feat: add fetch data

* feat: add utilities fn

* feat: add store function / types

* refactor: request list type

* refactor: request list constants

* refactor: quotation card => add customData and badge color props

* feat: avatar group components

* feat: request list group

* refactor: request list => remove tab, add table data

* feat: send search query

* feat: add parameter

* refactor: remove unused function

* fix: rename component lits to list

* feat: show stats from api

* chore: cleanup

* refactor: make it type safe

* refactor: accept rotate flow id as parameter

* feat: use page size component

* feat: add component, data display & expansion product

* feat: i18n

* refactor: constants and request list table

* refactor: type code, createdAt, updatedAt

* refactor: utils function changThemeMode

* feat: request list => view page

* refactor: use type instead of infer from value

* fix: function getEmployeeName att type

* refactor: fetch work list

* refactor: loop work list

* feat: add i18n duty

* feat: add form issue component

* feat: add form issue section

* fix: store error

* refactor: edit by value

* refactor: accept basic info from outside instead

* feat: add status filter support on fetch

* refactor: remove delete button

* refactor: wording

* feat/fix: request list i18n & constant

* feat: document type

* feat/refactor: request list => document expansion

* refactor: doc expansion use FormGroupHead

* refactor: fetch data based on id from route param

* refactor: text area disable

* feat: properties expansion display (mocking)

* refactor: add document at product relation

* refactor: edit get value product

* feat: get workflow step to show on top

* refactor: add type

* refactor: add get attachment

* refactor: add view attachment

* refactor: edit file name

* refactor: define props get hide icon

* refactor: edit align row

* refactor: by value table document

* refactor: by value row table

* feat: add independent ocr dialog

* chore: clean up

* refactor: accept more props and small adjustment

* fix: error withDefault call

* feat: accept default metadata when open

* fix: typo

* feat: add override hook when finish ocr

* feat: reset state on open

* feat: detect reader result is actually string

* fix: variable name conflict

* feat: properties to input component

* feat: properties input in properties expansion

* feat: properties expansion data (temporary)

* refactor: add i18n status work

* refactor: edit type work status and add step status

* refactor: add edit status work

* refactor: edit step work

* refactor: properties data type

* refactor: filter selected product & specific properties

* feat: add emit event

* refactor: change variable name for better understanding

* refactor: hide step that no properties

* refactor: work status type to validate

* feat: work status color

* refactor: key for filename

* refactor: close expansion when change step

* refactor: responsive meta data

* refactor: product expansion responsive

* fix: dark mode step text color

* fix: document expansion table no data label

* refactor: main page body bordered and overflow hidden

* refactor: use utils function instead

* refactor: add process

* refactor: by value  name

* refactor: add upload file

* refactor: upload file

* refactor: by value

* fix: option worker type

* refactor: fetchRequestAttachment after edit

* fix: metadata display

* refactor: add class full-height

* refactor: edit type

* refactor: fetch file

* refactor: by value visa

* refactor: request list attributes type

* fix: properties to input props (placeholder, readonly, disable)

* feat: request list properties function

* fix: error when no workflow

* docs: update comment to fix indent

* refactor: step type (attributes)

* refactor: add attributes payload on editStatusRequestWork function

* feat/refactor: functional form expansion/filter worklist

* refactor: set attributes properties after submit

* refactor: add request work ready status

* feat: request list => form employee component

* feat/refactor: form expansion select user/layout

* fix: properties readonly

---------

Co-authored-by: puriphatt <puriphat@frappet.com>
Co-authored-by: Thanaphon Frappet <thanaphon@frappet.com>
2024-11-22 18:02:03 +07:00
Methapon Metanipat
b0136bba4d
refactor: global shared state and function (#79)
* refactor: expose i18n instance

* feat: add global app utility function

* refactor: use global utility function

* refactor: avoid undefined when use outside vue

refactor: avoid undefined when use outside vue

* refactor: remove dup code and use util

* refactor: auto fetch option when use store
2024-11-21 11:55:44 +07:00
Thanaphon Frappet
de97a348e7 fix: thai address text spacing 2024-11-14 10:37:17 +07:00
Methapon Metanipat
6efce3c4bb
feat: rich text template (#68)
* feat: add file

* feat: add template convert function

* refactor: update function
2024-11-11 14:55:36 +07:00
puriphatt
ed56228964 refactor: format address add address EN 2024-11-11 11:49:29 +07:00
puriphatt
b03774957b feat: utils => format address 2024-11-11 11:29:17 +07:00
Methapon Metanipat
5888f3a9dd feat: add util function convert csv to data 2024-11-11 09:17:16 +07:00
Methapon Metanipat
f96837b133 refactor: use A.D. year 2024-11-05 07:30:03 +07:00
Net
0986200910
feat: adjust payment page (#31)
* feat: add installment no label

* feat: update types

* refactor: add i18n

* refactor: view receipt

* refactor: add type

* refactor: add dateFormatTh

* fixup! refactor: add i18n

* fixup! refactor: add dateFormatTh

* refactor: use dateFormatJS in monthDisplay

* refactor: handle year th-TH

* ลบ log

* refactor: handle color view mod
2024-10-31 10:00:35 +07:00
Methapon Metanipat
19428bef81 feat: add utils function for array 2024-10-30 11:30:44 +07:00
Methapon Metanipat
725edad3e1 feat: add util for array management 2024-10-30 09:32:03 +07:00
Thanaphon Frappet
c07ac9d66f refactor: format gender 2024-10-15 14:51:12 +07:00
Methapon Metanipat
2ce41bf9af feat: add util calculate with precision 2024-10-04 11:53:55 +07:00
puriphatt
9d745d8e52 refactor: worker select & employee nationality 2024-10-03 18:10:40 +07:00
Methapon Metanipat
5c978fd8f3 refactor: remove unused lang (for now) 2024-10-03 08:55:19 +07:00
Methapon Metanipat
b717c7689c refactor: return type 2024-10-02 17:09:26 +07:00
Methapon Metanipat
6858cf4103 chore: rename type 2024-10-02 17:06:57 +07:00
Methapon Metanipat
51993e97f2 fix: wrong format 2024-10-02 16:52:57 +07:00
Methapon Metanipat
5798c6f56b refactor: update ocr 2024-10-02 16:50:51 +07:00
Methapon Metanipat
1ea507583d feat: check for valid input checksum 2024-10-02 16:25:52 +07:00
Methapon Metanipat
61a8dd4ea4 fix: typo 2024-10-02 16:17:02 +07:00
Methapon Metanipat
25f69cb012 refactor: check sum function now return num instead 2024-10-02 16:04:48 +07:00
Methapon Metanipat
e34c279fae feat: send original value in instead 2024-10-02 15:59:25 +07:00
Methapon Metanipat
78a64bef84 refactor: merge type and subtype 2024-10-02 15:58:13 +07:00
Methapon Metanipat
3ae0a05b6e feat: also send original object into format function 2024-10-02 15:52:28 +07:00
Methapon Metanipat
c59d163a54 feat: add formatter 2024-10-02 15:46:22 +07:00
Methapon Metanipat
d79d77cb87 fix: missing format 2024-10-02 15:12:46 +07:00
Methapon Metanipat
5d292c5a5c feat: add formatter and check function 2024-10-02 15:02:12 +07:00
Methapon Metanipat
d4ef35c220 feat: add util file to base64 2024-10-02 15:01:58 +07:00
Methapon Metanipat
263d575955 feat: add ocr function 2024-10-02 13:55:52 +07:00
Methapon Metanipat
440177c133 refactor: make year as A.D. 2024-09-30 11:09:07 +07:00
puriphatt
30379bfe25 fix: date picker input format 2024-08-29 13:28:18 +07:00
puriphatt
70b50e132f feat(03): young worker warning dialog 2024-08-28 13:49:57 +07:00