提交 629edaeb authored 作者: leon's avatar leon

getters 经销商id

上级 7d9ad105
......@@ -62,11 +62,11 @@ export const useUserStore = defineStore({
return this.lastUpdateTime;
},
/**
* @description 是否是华润供应商
* @description 经销商id 华润是0 其他不是
* @return true是 , false不是 ,null用户信息为空
*/
getIsSupplier(): boolean | null {
return this.userInfo?.distributorId === 0 || getAuthCache<User>(USER_INFO_KEY)?.distributorId === 0 || null;
getDistributorId(): number | null {
return this.userInfo?.distributorId || getAuthCache<User>(USER_INFO_KEY)?.distributorId || null;
},
},
actions: {
......
......@@ -125,6 +125,7 @@
import { columns, searchFormSchema } from './schema';
import { StatusColorEnum, StatusEnum } from './schema';
import { BatchVerifyParams } from '/@/api/model/doctor';
import { useUserStore } from '/@/store/modules/user';
const go = useGo();
const { formConfig, showTableSetting, bordered, showIndexColumn } = componentSetting.table;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论