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
This commit is contained in:
Methapon Metanipat 2024-11-01 14:34:03 +07:00 committed by GitHub
parent 6d77c1a19d
commit 7817f8bd40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 33 additions and 13 deletions

View file

@ -23,6 +23,7 @@ const DEFAULT_DATA: QuotationPayload = {
urgent: false,
customerBranchId: '',
worker: [],
workerMax: 1,
payBillDate: new Date(),
paySplit: [],
paySplitCount: 0,
@ -158,8 +159,6 @@ export const useQuotationForm = defineStore('form-quotation', () => {
if (mode === 'assign') return;
currentFormState.value.mode = mode;
console.log(currentFormData.value);
}
async function submitQuotation() {