This commit is contained in:
parent
fb23ec5fd4
commit
90589b3daf
34 changed files with 1271 additions and 13939 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { defineStore } from 'pinia';
|
||||
import { api } from 'src/boot/axios';
|
||||
import { ref } from 'vue';
|
||||
import type { AppConfig } from './types';
|
||||
|
||||
export const useConfigStore = defineStore('config-store', () => {
|
||||
const data = ref<AppConfig>();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
type AppConfig = {
|
||||
export type AppConfig = {
|
||||
vat: number;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,17 +3,17 @@ import {
|
|||
CreditNoteStatus as Status,
|
||||
CreditNotePayload as Payload,
|
||||
CreditNotePaybackStatus,
|
||||
} from './types.ts';
|
||||
} from './types';
|
||||
import { ref } from 'vue';
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
import { api } from 'src/boot/axios.ts';
|
||||
import { PaginationResult } from 'src/types.ts';
|
||||
import { manageAttachment, manageFile } from '../utils/index.ts';
|
||||
import { api } from 'src/boot/axios';
|
||||
import { PaginationResult } from 'src/types';
|
||||
import { manageAttachment, manageFile } from '../utils';
|
||||
|
||||
const ENDPOINT = 'credit-note';
|
||||
|
||||
export * from './types.ts';
|
||||
export * from './types';
|
||||
|
||||
export async function getCreditNoteStats() {
|
||||
const res = await api.get<Record<Status, number>>(`/${ENDPOINT}/stats`);
|
||||
|
|
|
|||
|
|
@ -500,6 +500,6 @@ const useCustomerStore = defineStore('api-customer', () => {
|
|||
};
|
||||
});
|
||||
|
||||
export * from './types.ts';
|
||||
export * from './types';
|
||||
|
||||
export default useCustomerStore;
|
||||
|
|
|
|||
|
|
@ -2,17 +2,17 @@ import {
|
|||
DebitNote as Data,
|
||||
DebitNoteStatus as Status,
|
||||
DebitNotePayload as Payload,
|
||||
} from './types.ts';
|
||||
} from './types';
|
||||
import { ref } from 'vue';
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
import { api } from 'src/boot/axios.ts';
|
||||
import { PaginationResult } from 'src/types.ts';
|
||||
import { manageAttachment, manageFile } from '../utils/index.ts';
|
||||
import { api } from 'src/boot/axios';
|
||||
import { PaginationResult } from 'src/types';
|
||||
import { manageAttachment, manageFile } from '../utils';
|
||||
|
||||
const ENDPOINT = 'debit-note';
|
||||
|
||||
export * from './types.ts';
|
||||
export * from './types';
|
||||
|
||||
export async function getDebitNoteStats() {
|
||||
const res = await api.get<Record<Status, number>>(`/${ENDPOINT}/stats`);
|
||||
|
|
|
|||
|
|
@ -52,8 +52,4 @@ export type Payment = {
|
|||
};
|
||||
};
|
||||
|
||||
export enum PaymentDataStatus {
|
||||
Success = 'PaymentSuccess',
|
||||
Wait = 'PaymentWait',
|
||||
}
|
||||
export type Receipt = Payment;
|
||||
|
|
|
|||
|
|
@ -237,4 +237,4 @@ export const useQuotationPayment = defineStore('quotation-payment', () => {
|
|||
};
|
||||
});
|
||||
|
||||
export * from './types.ts';
|
||||
export * from './types';
|
||||
|
|
|
|||
|
|
@ -353,4 +353,4 @@ export const useRequestList = defineStore('request-list', () => {
|
|||
};
|
||||
});
|
||||
|
||||
export * from './types.ts';
|
||||
export * from './types';
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ export const useTaskOrderStore = defineStore('taskorder-store', () => {
|
|||
[TaskOrderStatus.Complete]: 0,
|
||||
[TaskOrderStatus.Accept]: 0,
|
||||
[TaskOrderStatus.Submit]: 0,
|
||||
[TaskOrderStatus.Restart]: 0,
|
||||
});
|
||||
const fileManager = manageAttachment(api, 'task-order');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue