华西海圻ELN前端工程
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

43 lines
1.2 KiB

//判断是否显示其他输入框
export const isShowOther = (v = [], col) => {
if (col && !col.otherCode) {
return false
}
// 确保v是数组类型,以避免类型错误
const arr = Array.isArray(v) ? v : [v]
const otherArr = ['其他', '遮光', 'CA-QC Dilution-', '拒绝', '部分接受', "污染"]
return arr.some((item) => otherArr.includes(item))
}
//radioAndOther判断是否显示其他输入框
export const isShowOtherByRadioAndOther = (v = '', col) => {
if (col && !col.otherCode) {
return false
}
const otherArr = ['其他', '异常', '不一致']
return otherArr.includes(v)
}
//checkboxTree判断是否显示其他输入框
export const isShowOtherByCheckboxTree = (v = "") => {
const otherArr = ['其他', '样品信息', '样品', '部分接受', '给药 ',
'样本采集',
'日常观察 ',
'皮肤评分',
'眼刺激评分',
'麻醉 ',
'交配确认',
'PND检测',
'神经行为功能评测',
'血糖测定',
'遥测数据采集',
'呼吸检测',
'血压测定',
'心电检测',
'体温测定',
'毒代 TK',
'药代 PK'
, '细胞因子']
return otherArr.includes(v)
}