Commit graph

497 commits

Author SHA1 Message Date
Thanaphon Frappet
9eb2ddea61 refactor: signal success all status 2024-11-28 15:55:31 +07:00
Thanaphon Frappet
66d2a17277 fix: installment no 2024-11-28 09:47:27 +07:00
Methapon2001
2eabc5fcd7 refactor: user store 2024-11-27 15:33:14 +07:00
Methapon2001
435d2ce4c8 feat: add preview template text 2024-11-27 14:27:02 +07:00
Thanaphon Frappet
e7cb52d482 refactor: add type invoice id 2024-11-27 09:20:24 +07:00
puriphatt
f87547d1bc fix: request list => form expansion add individual cost 2024-11-26 16:33:09 +07:00
puriphatt
80f45501e4 fix: edit service work id 2024-11-25 15:56:27 +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
7d76521fb6 refactor: re-export type 2024-11-22 10:29:52 +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
aa823d68aa refactor: handle birth date and register date 2024-11-20 17:34:58 +07:00
Thanaphon Frappet
b87178e0b5 refactor: handle id 2024-11-20 14:41:55 +07:00
Thanaphon Frappet
fda0d581ae refactor: create fetch office by id 2024-11-14 17:51:38 +07:00
Thanaphon Frappet
e19a15eaeb refactor: fetch office 2024-11-14 15:50:23 +07:00
Thanaphon Frappet
f8717b3d01 refactor: handle zipcode 2024-11-14 11:30:00 +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
Methapon Metanipat
202e8c2e6f
feat: import worker with multiple criteria (#72)
* feat: add i18n import from file

* fix: background color

* feat: add import worker component

* feat: support newer passport

* refactor: update validator

* fix: wrong endpoint

* refactor: change to display passport

* feat: add component and state

* fix: wrong validator

* refactor: add i18n

* refactor: add slont top-append

* refactor: use v-model

* refactor: impurt workder

* fix: criteria

* refactor: add customer branch id

---------

Co-authored-by: Thanaphon Frappet <thanaphon@frappet.com>
2024-11-13 11:53:25 +07:00
Thanaphon Frappet
55aacaac1e fix: table value missing 2024-11-13 10:33:37 +07:00
Thanaphon Frappet
f1813f4cca refactor: handle value is null 2024-11-12 17:49:02 +07:00
Methapon Metanipat
9d61ab8946 feat: add i18n 2024-11-12 16:35:33 +07:00
Thanaphon Frappet
ae83a574e0 refactor: handle attachment customer 2024-11-12 16:02:41 +07:00
Thanaphon Frappet
5be282b8d0 refactor: handle attachment emplpyee 2024-11-12 16:02:41 +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
Thanaphon Frappet
1dbb113049 refactor: add type 2024-11-12 10:39:44 +07:00
Thanaphon Frappet
03ba79a401 refactor: edit type work 2024-11-12 10:24:57 +07:00
Thanaphon Frappet
b4fc7c7202 refactor: edit type visa 2024-11-12 09:01:38 +07:00
Thanaphon Frappet
7397a80894 refactor: handle meta passport 2024-11-11 15:43:15 +07:00
Methapon Metanipat
5237d2cd5b refactor: remove in-country-notice group from meta manager and file 2024-11-11 15:02:47 +07:00
Thanaphon Frappet
82d28cc3aa refactor: edit type passpor 2024-11-11 14:59:08 +07:00
Net
ce3d809bd9
feat: form ocr (#56)
* refactor: add i18n

* refactor: add id in type employee visa

* refactor: edit layout ui visa

* refactor: add menu visa

* refactor: add type visa

* refactor: by value visa

* refactor: add workerType in option

* refactor: add index visa

* feat: submit add  delete and assign value

* feat: use submitVisa

* fix: col not working

* refactor: handle mrz and remark can is null

* refactor: add i18n

* refactor: add option workerStatus

* refactor: edit layout input

* refactor: menu set sub true

* refactor: add visa at dialog add

* refactor: handle index visa

* refactor: add i18n

* refactor: add input entryCount and issueCountry

* refactor: add input entryCout and issueCountry
2024-11-11 09:39:43 +07:00
puriphatt
4e622153ac
feat: agencies => image upload (#67) 2024-11-08 17:21:25 +07:00
Methapon Metanipat
2bcbfbb20d feat: add param for product fetch 2024-11-08 15:14:39 +07:00
puriphatt
b87e15301f
feat: menu agencies (#65)
* feat: agencies => add agencies menu

---------

Co-authored-by: Methapon Metanipat <methapon@frappet.com>
2024-11-08 13:11:42 +07:00
Thanaphon Frappet
1aaaa5f2a6 refactor: add type Expired at quotation status 2024-11-08 11:13:41 +07:00
Methapon Metanipat
f3fdaac2b1
feat: add product document list (#64)
* feat: product => document select
2024-11-08 10:22:50 +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
f41fc7656c feat: show quotation / invoice code on enter 2024-11-07 15:32:57 +07:00
Thanaphon Frappet
ac155bcdd5 refactor: add type expired and urgent first 2024-11-07 14:23:10 +07:00
Thanaphon Frappet
125ae9e125 refactor: edit value default 2024-11-07 14:22:13 +07:00
Thanaphon Frappet
f6ccbc530a refactor: edit type 2024-11-07 14:21:00 +07:00
Thanaphon Frappet
9ff50e94a3 refactor: add type status 2024-11-07 12:51:15 +07:00
puriphatt
980bb86574 fix: service workflow & work fallback name 2024-11-04 10:35:26 +07:00
Methapon Metanipat
9655597679
fix: change order wrong value in workflow management page (#50)
* fix: responsible person not display correctly after move

* fix: typo
2024-11-01 17:20:11 +07:00
Methapon Metanipat
0ef389c69b
feat: quotation attachment (#49)
* fix: i18n

* fix: 18n

* feat: file upload component

* feat: quotation attachment

---------

Co-authored-by: puriphatt <puriphat@frappet.com>
2024-11-01 17:18:24 +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
Methapon Metanipat
6d77c1a19d feat: detect accept status in payload 2024-11-01 14:31:10 +07:00
Methapon Metanipat
05c1c07384
feat: add employee under employer (#35)
* refactor: btn add in table

* refactor: Emits addEmployee

* fix: visa can is null

* refactor: update data

* fix: number not update

---------

Co-authored-by: Thanaphon Frappet <thanaphon@frappet.com>
2024-10-31 17:43:56 +07:00
Methapon Metanipat
e558a19350 refactor: add quotation payload 2024-10-31 13:49:46 +07:00
Methapon Metanipat
a1a3032775 refactor: add name field for custom insallment type 2024-10-31 13:19:06 +07:00