Commit graph

106 commits

Author SHA1 Message Date
puriphatt
c39bc9a4d2 fix: quotation => emp count 2024-12-19 10:36:35 +07:00
puriphatt
1d4b101931 fix: quotation => worker item count 2024-12-18 18:03:20 +07:00
Methapon2001
ca38cfaec0 perf: add fallback without waiting for error 2024-12-17 14:39:02 +07:00
Methapon2001
e0d24b49cb fix: price not match with original price by .01
This will calculate quantity later when no discount is set.
However when discount is set there may be some number that can introduce
+-0.01
2024-12-16 16:56:06 +07:00
Thanaphon Frappet
ae5412da5f refactor: edit code 2024-12-12 12:09:02 +07:00
Thanaphon Frappet
2ac03f6dee refactor: send creatable disabled text 2024-12-12 12:06:59 +07:00
Thanaphon Frappet
af3aa005a3 refactor: send creatable disabled 2024-12-12 12:05:33 +07:00
Thanaphon Frappet
d6c8f0240a refactor: delete branch virtual 2024-12-06 11:16:51 +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
puriphatt
e1a27aa8d4 fix: quotation product item amount text center 2024-12-04 11:56:05 +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
Thanaphon Frappet
d58333224c refactor: delete upload file 2024-11-26 11:08:04 +07:00
Methapon Metanipat
0bb715d7ab refactor: add type 2024-11-26 09:32:48 +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
Thanaphon Frappet
6b6ffe8163 refactor: handle show table worker only !readonly 2024-11-13 15:18:43 +07:00
Methapon Metanipat
6fe81fc47c fix: on delete worker update selected worker properly 2024-11-13 14:36:45 +07:00
Methapon Metanipat
9f6121dbf1 fix: when in quotation form make it input only 2024-11-12 11:59:44 +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
f2b9ab0217 fix: option not show 2024-11-11 17:12:56 +07:00
Methapon Metanipat
14f3c17be4 feat: store saved options and fallback 2024-11-11 14:16:18 +07:00
Thanaphon Frappet
bbb2d5c8b4 refactor: add bages urgent 2024-11-11 11:05:12 +07:00
Thanaphon Frappet
9f7b4340eb refactor: edit btn preview 2024-11-08 14:40:26 +07:00
Thanaphon Frappet
25f21cd158 refactor: usr format nuber deciml 2024-11-08 11:22:56 +07:00
Thanaphon Frappet
9e70383d3b refactor: handle color badge 2024-11-08 11:14:56 +07:00
puriphatt
cd8de062c1 refactor: table row per page 2024-11-08 11:03:50 +07:00
puriphatt
28b48e6c6f refactor: quotation table width & clear warning 2024-11-08 10:55:58 +07:00
Thanaphon Frappet
e48f2a66ee refactor: edit top and bottom 2024-11-08 10:48:10 +07:00
Thanaphon Frappet
4db0987dd2 feat: add table urgent display 2024-11-08 10:42:47 +07:00
Thanaphon Frappet
55f6a5f84e refactor: add table 2024-11-07 17:53:45 +07:00
Methapon Metanipat
caab7aedf2 chore: update random 2024-11-07 16:50:41 +07:00
Methapon Metanipat
a18d73d76d feat: delay animation so that it start different 2024-11-07 16:12:28 +07:00
Methapon Metanipat
549ac70413 feat: add animation for urgent quotation 2024-11-07 16:01:09 +07:00
Thanaphon Frappet
850782a44d refactor: handle title i18n 2024-11-07 15:12:56 +07:00
Methapon Metanipat
3c743913db
refactor: urgent quotation ui (#61) 2024-11-07 11:45:24 +07:00
Methapon Metanipat
4bfa5e8906
refactor: urgent quotation card (#60) 2024-11-07 10:55:55 +07:00
Methapon Metanipat
7e9a033a47 feat: adjust product count on select worker 2024-11-05 07:25:41 +07:00
Thanaphon Frappet
3f414b156a refactor: handle name prefix 2024-11-04 15:38:12 +07:00
puriphatt
aaad527885 fix: display quotation name on quotation card 2024-11-04 14:08:48 +07:00
puriphatt
72fa68462e fix: quotation card status display and i18n 2024-11-01 17:54:27 +07:00
Methapon Metanipat
7817f8bd40
feat: custom worker count (#46)
* feat: add worker max type

* feat: add default worker max

* refactor: support adjustable worker max

* refactor: bind worker max to form data
2024-11-01 14:34:03 +07:00
puriphatt
317aadb0f7 fix: quotation custom split 2024-10-31 13:49:46 +07:00
Thanaphon Frappet
9e28126f80 refactor: hide add customer at quotation 2024-10-29 09:03:54 +07:00
Methapon Metanipat
62b21f185e feat: add tooltip on hover icon nly button 2024-10-29 09:02:00 +07:00
Methapon Metanipat
9c8cba0a21 refactor: use icon on quotation card 2024-10-28 10:23:49 +07:00
Methapon Metanipat
55234cd3c9 fix: typo 2024-10-28 10:17:12 +07:00
Methapon Metanipat
26ada83f93 feat: update quotation card 2024-10-25 18:10:36 +07:00