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>
This commit is contained in:
Methapon Metanipat 2024-11-22 18:02:03 +07:00 committed by GitHub
parent 9105dcf7fe
commit 972f6ba13e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 3653 additions and 57 deletions

View file

@ -131,6 +131,8 @@ export default {
enterToAdd: 'Press enter to add.',
forExample: 'eg. {example}',
importFromFile: 'Import From File {suffix}',
customer: 'Customer',
individual: 'Individual',
},
menu: {
@ -203,7 +205,7 @@ export default {
debitNote: 'Debit Note',
},
managDocumente: {
manageDocument: {
title: 'Docs',
document: 'Document',
},
@ -841,6 +843,48 @@ export default {
name: 'Agencies Name',
},
requestList: {
title: 'Request List',
caption: 'All Request List',
quotationCode: 'Quotation Code',
requestListCode: 'Request List Code',
invoiceCode: 'Invoice Code',
receiptCode: 'Receipt Code',
alienIdCard: 'Alien Identification Card"',
relatedDoc: 'Related Documents',
attachment: 'Documents',
documentInSystem: 'Documents in the System',
noDocumentYet: 'Document Not Found',
companyEmployee: 'Company Employee',
localEmployee: 'Local Employee',
nonLocalEmployee: 'Non Local Employee',
status: {
work: {
Pending: 'Await for order',
Ready: 'Ready for order',
Waiting: 'Work assigned, awaiting action',
InProgress: 'In progress',
Validate: 'Awaiting validation',
Ended: 'Completed',
Completed: 'Work finished',
},
Pending: 'Pending',
InProgress: 'In Progress',
Completed: 'Completed',
AwaitOrder: 'Awaiting Order',
ReadyOrder: 'Ready for Order',
EndOrder: 'Order Completed',
AwaitReview: 'Awaiting Review',
UploadedAwaitReview: 'Uploaded, Awaiting Review',
ReviewedAwaitUpload: 'Reviewed, Awaiting Upload',
Reviewed: 'Reviewed',
ApprovedReview: 'Approved',
},
},
dialog: {
title: {
incompleteDataEntry: 'Incomplete Data Entry',
@ -968,4 +1012,11 @@ export default {
district: 'District',
province: 'Province',
},
duty: {
text: '{subject} Duty',
notInclude: 'Not Include Duty',
include: 'Include Duty',
cost: 'Duty Cost (Baht)',
},
};

View file

@ -131,6 +131,8 @@ export default {
enterToAdd: 'กดปุ่ม Enter เพื่อเพิ่ม',
forExample: 'เช่น {example}',
importFromFile: 'นำเข้าจากไฟล์ {suffix}',
customer: 'ลูกค้า',
individual: 'รายบุคคล',
},
menu: {
@ -203,7 +205,7 @@ export default {
debitNote: 'ใบเพิ่มหนี้',
},
managDocumente: {
manageDocument: {
title: 'คลังเอกสาร',
document: 'เอกสาร',
},
@ -833,6 +835,47 @@ export default {
name: 'ชื่อหน่วยงาน',
},
requestList: {
title: 'ใบรายการคำขอ',
caption: 'ใบรายการคำขอทั้งหมด',
quotationCode: 'เลขที่ใบเสนอราคา',
requestListCode: 'เลขที่ใบรายการคำขอ',
invoiceCode: 'เลขที่ใบแจ้งหนี้',
receiptCode: 'เลขที่ใบเสร็จ/กำกับภาษี',
alienIdCard: 'บัตรประจำตัวต่างด้าว',
relatedDoc: 'เอกสารที่เกี่ยวข้อง',
attachment: 'ไฟล์เอกสาร',
documentInSystem: 'เอกสารในระบบ',
noDocumentYet: 'ยังไม่พบเอกสาร',
companyEmployee: 'พนักงานบริษัท',
localEmployee: 'พนักงานในพื้นที่',
nonLocalEmployee: 'พนักงานนอกพื้นที่',
status: {
work: {
Pending: 'รอสั่งงาน',
Ready: 'พร้อมสั่งงาน',
Waiting: 'สั่งงานเเล้วรอดำเนินการ',
InProgress: 'กำลังดำเนินการ',
Validate: 'รอตรวจสอบ',
Ended: 'เสร็จสิ้น',
Completed: 'จบงาน',
},
Pending: 'รอดำเนินการ',
InProgress: 'ดำเนินการ',
Completed: 'เสร็จสิ้น',
AwaitOrder: 'รอสั่งงาน',
ReadyOrder: 'พร้อมสั่งงาน',
EndOrder: 'จบงาน',
AwaitReview: 'รอตรวจสอบ',
UploadedAwaitReview: 'อัปโหลดแล้ว รอตรวจสอบ',
ReviewedAwaitUpload: 'ตรวจสอบแล้ว รอการอัปโหลด',
Reviewed: 'ตรวจสอบแล้ว',
ApprovedReview: 'ผ่านการตรวจสอบ',
},
},
dialog: {
title: {
incompleteDataEntry: 'กรอกข้อมูลไม่ครบ',
@ -955,4 +998,11 @@ export default {
district: 'อำเภอ',
province: 'จังหวัด',
},
duty: {
text: 'อากร{subject}',
notInclude: 'ไม่ติดอากร',
include: 'ติดอากร',
cost: 'จำนวนเงินอากร (บาท)',
},
};