菜单--基础数据--录单限制--新建--勾选启用--选择动作--填入以下公式--保存
单件符合("T(com.itdida.core.utils.StringUtils).isNotBlank(danJianRuCangHao) && @baseService.count('select count(1) from yun_dan_dan_jian where dan_jian_ru_cang_hao = ? and yun_dan_id != ?', danJianRuCangHao, yunDanId) > 0") || 运单属性("T(com.itdida.core.utils.BeanUtils).isDuplicated(yunDanDanJianEntityList, 'danJianRuCangHao')")