|
|
@@ -50,8 +50,12 @@ class StepMode2 : IStepMode {
|
|
|
}
|
|
|
|
|
|
8 -> {
|
|
|
+ //交叉作业要检查非不可解锁的区域外的所有区域的锁状态
|
|
|
if (mTicketDetailData?.ticketUserVOList?.filter { it.userRole == Constants.USER_ROLE_COLOCKER }
|
|
|
- ?.all { it.jobStatus!! == 5 } == true && mTicketDetailData.ticketPointsVOList?.all { it.pointStatus == "2" } == true) {
|
|
|
+ ?.all { it.jobStatus!! == 5 } == true && mTicketDetailData.ticketPointsVOList?.filter {
|
|
|
+ it.pointId !in (mTicketDetailData.noUnlockTicketPointsVOSet?.map { it.pointId }
|
|
|
+ ?: mutableListOf())
|
|
|
+ }?.all { it.pointStatus == "2" } == true) {
|
|
|
""
|
|
|
} else {
|
|
|
ContextCompat.getString(
|
|
|
@@ -66,10 +70,12 @@ class StepMode2 : IStepMode {
|
|
|
}
|
|
|
|
|
|
override fun showGoToUnlock(
|
|
|
+ mTicketDetail: TicketDetailRespVO?,
|
|
|
mPointList: MutableList<TicketDetailMonitorRespVO.IsJobTicketPointsVO>,
|
|
|
mUserList: MutableList<TicketDetailMonitorRespVO.IsJobTicketUser>
|
|
|
): Boolean {
|
|
|
- return !mPointList.all { it.pointStatus == "2" } && mUserList.all { it.jobStatus == 5 }
|
|
|
+ //交叉作业要检查非不可解锁的区域外的所有区域的锁状态
|
|
|
+ return !mPointList.filter { it.pointId !in (mTicketDetail?.noUnlockTicketPointsVOSet?.map { it.pointId }?: mutableListOf()) }.all { it.pointStatus == "2" } && mUserList.all { it.jobStatus == 5 }
|
|
|
}
|
|
|
|
|
|
override fun colockerInsideCanAdd(user: UserListRespVO.Row, mStep: Int): Boolean {
|
|
|
@@ -162,6 +168,6 @@ class StepMode2 : IStepMode {
|
|
|
}
|
|
|
|
|
|
override fun getMinColockerSize(): Int {
|
|
|
- return 2
|
|
|
+ return 1
|
|
|
}
|
|
|
}
|