药品管理

This commit is contained in:
zoujiandong
2023-12-22 15:40:27 +08:00
parent 546d64bb0d
commit 8810edfe10
6 changed files with 1205 additions and 1 deletions
+19 -1
View File
@@ -117,4 +117,22 @@ export const formatRelation=(val)=>{
return ''
}
};
export const formatProductType=(val)=>{
//0:'未知',2:'中成药', 3:'西药'
let data={0:'未知',1:'中成药', 2:'西药'}
if(val || val==0){
return data[val]
}else{
return ''
}
};
export const formatProductStatus=(val)=>{
//0:'未知',2:'中成药', 3:'西药'
let data={1:'正常', 2:'下架'}
if(val){
return data[val]
}else{
return ''
}
};