refactor: signal success all status

This commit is contained in:
Thanaphon Frappet 2024-11-28 15:53:22 +07:00
parent ba64702287
commit 9eb2ddea61
2 changed files with 30 additions and 1 deletions

View file

@ -236,7 +236,7 @@ export const useRequestList = defineStore('request-list', () => {
return null;
}
async function editStatusRequestWork(body: Step) {
async function editStatusRequestWork(body: Step, successAll?: boolean) {
const res = await api.put<Step>(
`/request-work/${body.requestWorkId}/step-status/${body.step}`,
{
@ -245,6 +245,7 @@ export const useRequestList = defineStore('request-list', () => {
requestWorkId: undefined,
step: undefined,
},
{ params: { successAll } },
);
if (res.status < 400) return res.data;