Highlight mobile app sourced job orders in dispatch table #162

This commit is contained in:
Kendrick Chan 2018-09-03 15:57:03 +08:00
parent 3be0882594
commit 1c53556713
4 changed files with 17 additions and 1 deletions

View file

@ -144,6 +144,17 @@ span.has-danger,
color: #fff !important;
}
.m-table__row--is_mobile td {
background-color: #0000ff !important;
color: #fff !important;
}
.m-table__row--is_mobile td > span,
.m-table__row--is_mobile td > span a,
.m-table__row--is_mobile td > span a i {
color: #fff !important;
}
.m-datatable.m-datatable--default > .m-datatable__table {
min-height: 0 !important;
}

View file

@ -788,6 +788,7 @@ class JobOrderController extends BaseController
$row['status'] = $statuses[$orow->getStatus()];
$row['flag_advance'] = $orow->isAdvanceOrder();
$row['plate_number'] = $orow->getCustomerVehicle()->getPlateNumber();
$row['is_mobile'] = $orow->getSource() == TransactionOrigin::MOBILE_APP;
$processor = $orow->getProcessedBy();
if ($processor == null)

View file

@ -739,7 +739,7 @@ class RAPIController extends Controller
public function changeService(Request $req, InvoiceCreator $ic)
{
// $this->debugRequest($req);
$this->debugRequest($req);
// allow rider to change service, promo, battery and trade-in options
$em = $this->getDoctrine()->getManager();

View file

@ -70,6 +70,10 @@
if (data.flag_advance) {
$(row).addClass('m-table__row--danger');
}
if (data.is_mobile) {
$(row).addClass('m-table__row--is_mobile');
}
}
},
columns: [