Rml workorder/update new stuff

This commit is contained in:
Luca Haid
2025-08-07 14:12:34 +00:00
parent ee9ff0b93d
commit 17e099e487
9 changed files with 55 additions and 28 deletions
@@ -8,6 +8,12 @@
background-color: #f8d7da !important; /* Balanced Red */
}
/* 🟠 High Priority: Deadline less than 2 weeks away */
.table-hover .tt-rml-workorder-high:hover,
.tt-rml-workorder-high {
background-color: #ffd5a1 !important; /* Balanced Orange */
}
/* 🟡 Medium: Deadline less than 3 weeks away */
.table-hover .tt-rml-workorder-medium:hover,
.tt-rml-workorder-medium {
@@ -22,7 +22,26 @@ Vue.component('r-m-l-workorder-admin', {
:crud-config="crudConfig"
>
<template v-slot:preorderinfo="{ row }">
<div v-html="row.preorderInfo" class="small"></div>
<div class="small">
<div>
<strong>Kunde:</strong> {{ row.customerCompany || row.customerName }}
</div>
<div>
<strong>Anschluss:</strong>
{{ row.street }} {{ row.hausnummer }}<template v-if="row.stiege">/{{ row.stiege }}</template><template v-if="row.apartment"> / WE: {{ row.apartment }}</template>, {{ row.plz }} {{ row.city }}
</div>
<div>
<strong>OAID:</strong> <span class="text-pink">{{ row.oaid }}</span>
<tt-button
icon="fas fa-external-link-alt"
@click="window.open(window.TT_CONFIG.BASE_PATH + '/Preorder/Index?filter[ucode]=' + row.ucode, '_blank');"
additional-class="btn-link btn-sm p-0 m-0"
title="Zur Bestellung"
/>
</div>
</div>
</template>
<template v-slot:status="{ row }">
@@ -106,6 +125,7 @@ Vue.component('r-m-l-workorder-admin', {
`,
data() {
return {
window,
workordersToAssign: [],
editingWorkorderId: null,
companies: [],
@@ -121,6 +141,10 @@ Vue.component('r-m-l-workorder-admin', {
if (['completed', 'new'].includes(row.status) || !deadlineDate.isValid()) {
return 'tt-rml-workorder-irrelevant';
}
// if status is correction_requested, return tt-rml-workorder-high
if (row.status === 'correction_requested') {
return 'tt-rml-workorder-high';
}
const daysLeft = deadlineDate.diff(moment(), 'days');
@@ -27,4 +27,8 @@
}
.tt-file-gallery-item.border.border-danger {
border: 4px solid #f1556c!important;
}
.RMLWorkorderCompany-table .modal-body {
overflow-y: hidden;
}