Commit graph

84 commits

Author SHA1 Message Date
Methapon2001
d8844e7599 fix: make it fallback language instead of matched key 2024-12-19 12:02:45 +07:00
Methapon2001
0aeb812143 feat: add filter active only customer
This close #143
2024-12-18 16:33:15 +07:00
Methapon Metanipat
4528836f17
feat: quotation add worker after accepted (#140)
* feat: add dialog structure

* feat: add select functionality

* chore: clear unused

* feat: pass selectable product into dialog

* feat: add table

* feat: implement select worker and product

* feat: send disabled worker into component

* feat: add event emitted after submit

* chore: cleanup

* feat: add store

* feat: dialogquotationbtn

* feat: import worker from file and select them all

* feat: add title

* feat: add import button

* feat: i18n

* feat: lazy load person card image

* refactor: change import button color

* feat: add import worker button

* chore: cleanup

* chore: clean

* chore: clean

* feat: post quotation add worker appear on expired

* fix: type

* fix: only proceed when import has at least one

* feat: check more condition

* feat: fetch data from api

* fix: worker not update

---------

Co-authored-by: Methapon2001 <61303214+Methapon2001@users.noreply.github.com>
Co-authored-by: nwpptrs <jay02499@gmail.com>
2024-12-17 14:22:22 +07:00
Methapon2001
79d132f49e feat: only show active only when select flow 2024-12-17 13:44:50 +07:00
Methapon2001
f896715c68 fix: ellipsis not dynamic length 2024-12-17 11:42:49 +07:00
Methapon2001
36f4dc2fbb feat: make prefix id optional 2024-12-17 11:42:49 +07:00
Methapon2001
6a4ad4ac48 feat: add creatable menu when no options 2024-12-16 17:22:39 +07:00
Methapon2001
13149724c6 feat: disable create new if not select branch 2024-12-12 12:09:28 +07:00
Thanaphon Frappet
93804499f8 refactor: condition rules 2024-12-12 10:09:25 +07:00
Thanaphon Frappet
ca7713c88e refactor:handle sub branch 2024-12-11 12:06:04 +07:00
Thanaphon Frappet
db12f4f75e refactor: chech role 2024-12-10 15:29:10 +07:00
Thanaphon Frappet
eaa92f214d refactor: activeOnly 2024-12-06 16:28:15 +07:00
Methapon2001
ed13856449 feat(select-branch): add label view code-only 2024-12-04 15:44:51 +07:00
Thanaphon Frappet
c8be545ef8 refactor: handle action edit 2024-12-02 10:38:28 +07:00
Thanaphon Frappet
3679de69f1 refactor: add props branch virtual 2024-11-29 10:17:36 +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
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
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
Methapon Metanipat
5ea09453dc feat: add simple branch no parameter for select customer 2024-11-13 17:15:08 +07:00
Methapon Metanipat
6e796049d5
refactor: package workflow (#73)
* fix: service attributes type

* feat: select workflow component

* refactor: dialog properties => select work flow

* refactor: package => work new workflow step

* fix: useless  in future (service properties)

* fix: handle work undefine

---------

Co-authored-by: puriphatt <puriphat@frappet.com>
2024-11-13 16:06:32 +07:00
puriphatt
42e2f2b21d
feat: workflow template properties (#70)
* feat: add i18n

* refactor/feat: workflow attributes type

* refactor: workflow => gray stat card

* refactor: select menu with search => separator

* feat: workflow => workflow step properties

* fix: workflow type

* fix: dialog properties component => model data

* fix: form flow => prevent toggle expansion with keyboard

* refactor: workflow step data & change status

* fix: form flow properties btn

* refactor: side menu => hide sub index

* feat: workflow => avatar & status on table

* refactor: workflow => drawer id and dialog id

* feat: workflow => card

* fix: agencies => format address
2024-11-12 15:33:15 +07:00
Methapon Metanipat
d414685fe7
refactor: api select value (#69)
* feat: add file

* fix: wrong type

* feat: select customer component

* fixup! feat: select customer component

* fix: char case

* refactor: fn alias

* chore: add space

* feat: accept fetch parameter

* refactor: naming

* feat: add emit event create

* fix: add suffix to add text

* feat: add before options slot for select input comp

* fix: error when label not found

* fix: value type

* feat: add required param

* fix: wording

* refactor: fix customer

* feat: use new select component

* chore: add note

* feat: add decoration for select with creatable

* feat: emit event

* feat: close popup on click

* feat: adjust alignment

* feat: add readonly params

* feat: add select branch option

* feat: use new select component

* feat: add disabled params

* feat: adjust internal search and select

* refactor: props type

* feat: use new select component

* feat: add lib for select component

* refactor: use factory function instead

* refactor: merge two lines of code

* refactor: move watch inside

* refactor: fix value not in list check

* chore: cleanup

* fix: remove test page size

* chore: remove unused

* feat: use new select component

* fix: typo

* fix: error

* refactor: extract type

* refactor: change ref var to normal var

* refactor: force overwrite params to prevent error on render

* feat: add clearable parameter

* feat: make clearable
2024-11-12 11:56:14 +07:00
Methapon Metanipat
990514e7b3 feat: add debounce to select input 2024-11-11 13:31:47 +07:00
puriphatt
dc86377208 refactor: ellipsis title & tooltip on card 2024-11-11 12:10:28 +07:00
Methapon Metanipat
0b696032c1 fix: disable autocomplete for select with input 2024-11-11 10:57:11 +07:00
puriphatt
9708258e7a
feat: add workflow template fields (#63)
* feat: add type detail

* feat: option => agencies type

* feat: agencies i18n

* fix: workflow => add institution type

* refactor: map option specific category, key

* feat: select menu with search components

* feat: workflow => add field step description & agencies

* fix: workflow => table page

* refactor: workflow => floating dialog submit

---------

Co-authored-by: Methapon Metanipat <methapon@frappet.com>
2024-11-07 18:09:00 +07:00
Methapon Metanipat
f96837b133 refactor: use A.D. year 2024-11-05 07:30:03 +07:00
puriphatt
06a6bae2ca fix: main btn & select input component props, etc 2024-10-29 17:15:47 +07:00
Methapon Metanipat
8ea21b1795 feat: also allow other type (num or enum) 2024-10-28 10:17:39 +07:00
Methapon Metanipat
aa0c77f480 feat: add switch component 2024-10-28 10:04:57 +07:00
Methapon Metanipat
65bb13837e feat(date-picker): readonly and disable handle 2024-10-21 15:05:00 +07:00
Methapon Metanipat
7db7813a9e fix: some condition not met make node not show 2024-10-16 13:34:14 +07:00
Methapon Metanipat
35c8a0ffb3 feat: add filter node by text 2024-10-16 13:19:31 +07:00
Thanaphon Frappet
7510928e66 refactor: emit search 2024-10-15 18:01:18 +07:00
Methapon Metanipat
0a447a21f9 feat: add property deletable 2024-10-15 16:05:58 +07:00
Methapon Metanipat
4dd6002753 feat: add tree spacing and move arrage outside 2024-10-15 10:23:02 +07:00
puriphatt
389995ad76 fix: assign select 2024-10-11 10:08:11 +07:00
puriphatt
85b108a9b2 fix: clean and finalproduct installment 2024-10-10 17:49:14 +07:00
Thanaphon Frappet
fc52acf541 refactor: edit layout 2024-10-07 16:59:38 +07:00
Thanaphon Frappet
70cbc4b1d2 refactor: add new data employee 2024-10-07 12:58:27 +07:00
Methapon Metanipat
e538998472 fix: props not have effect 2024-10-04 13:22:16 +07:00
puriphatt
05779c760c fix: quotation select 2024-10-04 09:45:05 +07:00
puriphatt
9d745d8e52 refactor: worker select & employee nationality 2024-10-03 18:10:40 +07:00
Methapon Metanipat
8698268836 feat: handle uncheck tree and partial select 2024-10-03 15:27:03 +07:00
puriphatt
51f41abc4b refactor: component dialog, select input, select zone, tree view 2024-10-02 15:06:39 +07:00
Methapon Metanipat
c19b249725 feat: add transition 2024-10-01 09:53:38 +07:00
Methapon Metanipat
5754db419e refactor: tree styling 2024-09-30 16:54:50 +07:00
puriphatt
66b30b9e3f refactor: quotation product tree 2024-09-30 16:35:41 +07:00