| | |
| | | }) { |
| | | val comment = |
| | | if (position == Constants.reasons.lastIndex) input else Constants.reasons[position] |
| | | taskRepository.taskReassignment(comment, taskModel.id.toString()).also { |
| | | taskRepository.taskReassignment(comment, input, taskModel.id.toString()).also { |
| | | newTaskDialog.dismiss() |
| | | dialog2.dismiss() |
| | | checkApplyForReassignResult(activity, taskModel) |
| | |
| | | suspend fun getUnreadCount() = api.getUnreadCount().interceptAwait() |
| | | |
| | | /*任务改派*/ |
| | | suspend fun taskReassignment(comment: String, taskId: String?): Boolean { |
| | | val map = mapOf<String, Any?>("comment" to comment, "taskId" to taskId) |
| | | suspend fun taskReassignment(comment: String, remark: String, taskId: String?): Boolean { |
| | | val map = mapOf<String, Any?>("comment" to comment, "remark" to remark, "taskId" to taskId) |
| | | api.taskReassignment(getBody(map)).interceptAwait() |
| | | return true |
| | | } |
| | |
| | | }) { |
| | | val comment = |
| | | if (position == Constants.reasons.lastIndex) input else Constants.reasons[position] |
| | | taskRepository.taskReassignment(comment, taskId.toString()).also { |
| | | taskRepository.taskReassignment(comment, input, taskId.toString()).also { |
| | | dialog.dismiss() |
| | | checkApplyForReassignResult() |
| | | } |
| | |
| | | }) { |
| | | val comment = |
| | | if (position == Constants.reasons.lastIndex) input else Constants.reasons[position] |
| | | taskRepository.taskReassignment(comment, taskId.toString()).also { |
| | | taskRepository.taskReassignment(comment, input, taskId.toString()).also { |
| | | dialog.dismiss() |
| | | checkApplyForReassignResult() |
| | | } |