feat: include Canceled and Pending statuses in task status checks & update submitTaskOrder to accept user ID
This commit is contained in:
parent
1aedfe742f
commit
fc804afd58
2 changed files with 17 additions and 6 deletions
|
|
@ -130,8 +130,10 @@ export const useTaskOrderStore = defineStore('taskorder-store', () => {
|
|||
return null;
|
||||
}
|
||||
|
||||
async function submitTaskOrder(id: string) {
|
||||
const res = await api.post<TaskOrder>(`/task-order/${id}/submit`);
|
||||
async function submitTaskOrder(id: string, submitUserId?: string) {
|
||||
const res = await api.post<TaskOrder>(`/task-order/${id}/submit`, {
|
||||
params: { submitUserId },
|
||||
});
|
||||
|
||||
if (res.status < 400) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue