司机预约 显示拒绝原因
This commit is contained in:
@@ -428,6 +428,7 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
|
||||
stateName: '',
|
||||
addStatus: '',
|
||||
addStatusName: '',
|
||||
rejectReason: '',
|
||||
hasEdit: true,
|
||||
);
|
||||
|
||||
@@ -498,7 +499,9 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
|
||||
final endDateTime = DateTime.parse(reservation.endTime);
|
||||
|
||||
// 如果当前时间在结束时间之后,则不能编辑
|
||||
if (now.isAfter(endDateTime)) {
|
||||
if (now.isAfter(endDateTime) ||
|
||||
plateNumber.isEmpty ||
|
||||
reservation.addStatus != "0") {
|
||||
reservation.hasEdit = false;
|
||||
} else {
|
||||
reservation.hasEdit = true;
|
||||
@@ -612,7 +615,7 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
|
||||
),
|
||||
),
|
||||
),
|
||||
!reservation.hasEdit || plateNumber.isEmpty
|
||||
!reservation.hasEdit
|
||||
? SizedBox()
|
||||
: GestureDetector(
|
||||
onTap: () async {
|
||||
@@ -664,6 +667,9 @@ class C_ReservationController extends GetxController with BaseControllerMixin {
|
||||
_buildDetailRow('结束时间:', reservation.endTime),
|
||||
_buildDetailRow('联系人:', reservation.contacts),
|
||||
_buildDetailRow('联系电话:', reservation.phone),
|
||||
reservation.addStatus == "5"
|
||||
? _buildDetailRow('拒绝原因:', reservation.rejectReason)
|
||||
: SizedBox(),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user