feat(equipment): 接入运维模式开关与编辑用户 mode 字段

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-08-25 14:12:29 +08:00
co-authored by Claude Opus 4.7
parent 2e07a7fcee
commit f6d6591c69
5 changed files with 30 additions and 11 deletions
+3 -2
View File
@@ -16,11 +16,11 @@ interface MemberForm {
/** 员工编号查询接口(页面私有) */
const getEmployeeByWorkNo = (sn: string, workNo: string) =>
get<any>('weighingScale/v5/getUserInfoByWkno', { sn, workNo })
get<any>('weighingScale/v6/getUserInfoByWkno', { sn, workNo })
/** 添加/编辑用户接口(页面私有) */
const addUser = (data: Record<string, any>) =>
put('weighingScale/v5/edit/user', data)
put('weighingScale/v6/edit/user', data)
/** 目标设备 SN(由 userManagement 跳转传入) */
let targetSn = ''
@@ -306,6 +306,7 @@ Page({
birthday: this.data.birthday,
height: heightNum,
weight: isNaN(weightNum) ? 0 : weightNum,
mode: getApp<IAppOption>().globalData.operationsEngineer ? 'ops' : 'normal',
}
addUser(payload)