feat(equipment): 接入运维模式开关与编辑用户 mode 字段
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
2e07a7fcee
commit
f6d6591c69
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user