Commit graph

3318 commits

Author SHA1 Message Date
Methapon Metanipat
10534f2f25 fix: error when no data 2024-11-25 09:39:37 +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
puriphatt
9105dcf7fe refactor: quotation card badge color & constant 2024-11-22 16:46:05 +07:00
puriphatt
063439c1c6 fix: quotation card dark mode badge 2024-11-22 16:35:19 +07:00
puriphatt
929acbca29 fix: quotation card code color 2024-11-22 16:33:46 +07:00
puriphatt
da4842a4dd fix: package properties 2024-11-22 16:16:38 +07:00
Thanaphon Frappet
92e99dd9a4 refactor: edit 18n 2024-11-22 14:37:59 +07:00
Thanaphon Frappet
c6c0b6e78e refactor: handle young worker 18 2024-11-22 14:09:10 +07:00
Thanaphon Frappet
f54ca1bd68 refactor: handle can edit employee 2024-11-22 13:33:02 +07:00
Methapon Metanipat
fcb122a47e feat: add select user component 2024-11-22 10:29:52 +07:00
Methapon Metanipat
59c5c0b0ca refactor: use enum instead 2024-11-22 10:29:52 +07:00
Methapon Metanipat
7d76521fb6 refactor: re-export type 2024-11-22 10:29:52 +07:00
Thanaphon Frappet
c56d14b2ea refactor: set layout no data 2024-11-21 17:40:12 +07:00
Thanaphon Frappet
589869a9eb refactor: handle undefined 2024-11-21 17:24:06 +07:00
puriphatt
e3341d13be refactor: body section bordered & overflow 2024-11-21 12:46:52 +07:00
puriphatt
557eb9bf12 fix: disable input dark mode 2024-11-21 11:57:02 +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
puriphatt
aa79a4ef7d refactor: table no data icon color 2024-11-21 11:42:59 +07:00
Thanaphon Frappet
1e15dcc856 refactor: add id 2024-11-21 09:48:46 +07:00
Thanaphon Frappet
3036ca1070 refactor: add id 2024-11-20 17:35:45 +07:00
Thanaphon Frappet
bad389f6be refactor: citizen missig 2024-11-20 17:35:33 +07:00
Thanaphon Frappet
aa823d68aa refactor: handle birth date and register date 2024-11-20 17:34:58 +07:00
puriphatt
60f93a16e0 fix: package properties flow not current when change 2024-11-20 15:33:45 +07:00
Thanaphon Frappet
b87178e0b5 refactor: handle id 2024-11-20 14:41:55 +07:00
Thanaphon Frappet
1a1f2cb9f3 refactor: reset form 2024-11-20 14:41:42 +07:00
Thanaphon Frappet
937f7cbad4 refactor: edit btn branch 2024-11-20 11:28:50 +07:00
Thanaphon Frappet
7a74852ff6 refactor: add id 2024-11-19 18:02:11 +07:00
Thanaphon Frappet
d18df61b3f fix: ! it is crash 2024-11-19 17:51:20 +07:00
puriphatt
9b96d22480 fix/refactor: handle submit properties 2024-11-19 17:39:56 +07:00
puriphatt
221f421991 feat: dialog properties emit show 2024-11-19 17:39:04 +07:00
puriphatt
2784922557 fix: package => disable work product step checkbox when readonly 2024-11-19 17:38:43 +07:00
Methapon Metanipat
f6645b0a86
refactor: change stats card icon for each status (#78)
* refactor: change stats card icon for each status

* refactor: change stats color
2024-11-19 15:57:26 +07:00
Thanaphon Frappet
c6190bbedc refactor: add prefix id 2024-11-19 10:53:30 +07:00
Methapon Metanipat
732c81ed57
feat: add get real file url component and pass down (#77) 2024-11-19 09:14:43 +07:00
puriphatt
119e2c03a6 fix: remove prop in step 2024-11-18 14:51:41 +07:00
Thanaphon Frappet
6fa930ff29 refactor: handle show data readonly 2024-11-18 10:07:41 +07:00
Thanaphon Frappet
4515f93933 refactor: edit layout 2024-11-18 10:07:41 +07:00
Thanaphon Frappet
a7ada91861 refactor: edit current inde of checkup and work 2024-11-18 10:07:41 +07:00
Methapon Metanipat
0c8e314c8b refactor: use page size component 2024-11-18 10:07:41 +07:00
Methapon Metanipat
c2b3fe68f6 fix: field name typo 2024-11-18 10:07:41 +07:00
Methapon Metanipat
c617349a89 feat: add pagination page size component 2024-11-15 09:59:15 +07:00
puriphatt
5414c014f9 fix: quotation/agencies => header select col 2024-11-14 18:02:44 +07:00
Thanaphon Frappet
e4418a45df refactor: use select office 2024-11-14 17:52:01 +07:00
Thanaphon Frappet
fda0d581ae refactor: create fetch office by id 2024-11-14 17:51:38 +07:00
Thanaphon Frappet
b1d08b19ee refactor: add define props multiple 2024-11-14 17:50:50 +07:00
Thanaphon Frappet
a5988bc3d4 refactor: create select muliple 2024-11-14 17:50:03 +07:00
Thanaphon Frappet
e19a15eaeb refactor: fetch office 2024-11-14 15:50:23 +07:00
Thanaphon Frappet
6bfd88c305 refactor: handle office 2024-11-14 15:49:20 +07:00
Thanaphon Frappet
201a1ce35f refactor: handle i18n 2024-11-14 15:11:55 +07:00