//判断是否显示其他输入框
|
|
export const isShowOther = (v = [], col) => {
|
|
if (col && !col.otherCode) {
|
|
return false
|
|
}
|
|
// 确保v是数组类型,以避免类型错误
|
|
const arr = Array.isArray(v) ? v : [v]
|
|
const otherArr = ['其他', '遮光', 'CA-QC Dilution-', '拒绝', '部分接受']
|
|
//和凡哥商量,只要value为负数都显示其他
|
|
return arr.some((item) => otherArr.includes(item))
|
|
}
|