作者:小清新快乐尘埃2008 | 来源:互联网 | 2023-09-23 10:45
try{letresawaitthis.mgr.GetDrugWarehouseList(this.Userinfo.UserID,this.Userinfo.UnitID);th
try {
let res = await this.mgr.GetDrugWarehouseList(this.Userinfo.UserID, this.Userinfo.UnitID);
this.GetDrugDictData(res)
} catch (error) {
UI.ShowException(error);
}
public async GetDrugWarehouseList(userId: string, unitId: string) {
const data = await net.GetAuditWardList(
userId,
unitId,
"药品库房范围",
"OutReturnDrugMaterMgr",
"退药库房范围"
);
return data;
}
public async GetAuditWardList(userId: string, unitId: string, rangeName: string, moduleName: string, rightName: string) {
let data = await Ajax.Post(this.baseUrl + "SYSUserRight/GetRangeRight",
"IncludeQuoChr=true" +
"&UnitID=" + unitId +
"&UserID=" + userId +
"&RangeName=" + rangeName +
"&ModuleName=" + moduleName +
"&RightName=" + rightName);
return data;
}
[RightReg(
RIGHT_NAME = "退药库房范围",
RIGHT_TYPE = 2, //1 布尔权限2 范围权限
RANGE_NAME = "药品库房范围",
UI_MODULE_NAME = "OutReturnDrugMaterMgr",//注意!!!需与模块名称保持一致
DEFAULT_VALUE = "0",
ADMIN_DEFVALUE = "0", //必填
EXTEND_MARK = "",
RIGHT_DESCRIBE = "退药库房范围"
)]