feat(M08-B): 补保洁员资料细节

This commit is contained in:
Codex
2026-06-30 11:02:43 +08:00
parent d35c39e33f
commit 335adcdc22
13 changed files with 105 additions and 20 deletions
+2 -1
View File
@@ -462,11 +462,12 @@ async function handleCreateCleaner(
}
async function handleUpdateCleaner(
input: { userId: string; nickname: string; storeIds: string[]; note?: string }
input: { userId: string; nickname: string; phone?: string; storeIds: string[]; note?: string }
) {
await runAction(async () => {
await updateStaffUser(session.value, input.userId, {
nickname: input.nickname,
phone: input.phone,
roles: ['CLEANER'],
storeIds: input.storeIds,
note: input.note